-
Notifications
You must be signed in to change notification settings - Fork 4
DAS-2389 - Update python version to 3.12 #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. I ran the unit tests and they all succeeded. I have one nit about whether we have an unnecessary addition to the pip_test_requirements.txt, but I'll give my approval as I don't find that to be a blocking comment.
tests/pip_test_requirements.txt
Outdated
pre-commit~=4.2.0 | ||
pycodestyle~=2.14.0 | ||
pylint ~= 3.3.7 | ||
astroid ~= 3.3.10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice that astroid is now listed in pip_test_requirements as an explicit dependency. I think we could remove it and allow pylint to handle it unless there is a specific need for it that I'm not aware of.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will recheck.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed it - 62e8584
docker/service.Dockerfile
Outdated
RUN conda create -y --name hoss --file conda_requirements.txt python=3.11 -q \ | ||
--channel conda-forge \ | ||
--override-channels | ||
RUN conda config --remove channels defaults |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need the RUN conda config --remove channels defaults
if you are creating a new instance of a docker image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no. I think it is there to remove any old ones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed it - 62e8584
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like I had a lot of the same comments that other people did. Did you also verify the regression tests are all still passing? both the regression and internal ones?
edited: I'm going to guess no?
AssertionError: Test output does not match reference file, HOSS bounding box spatial, 3-D (well ordered) request.
3 of the regressions failed.
docker/service.Dockerfile
Outdated
RUN conda create -y --name hoss --file conda_requirements.txt python=3.11 -q \ | ||
--channel conda-forge \ | ||
--override-channels | ||
RUN conda config --remove channels defaults |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is overkill since you have --override-channels on the next command, but it doesn't hurt I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed it -62e8584
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no changes to the functionality of the service, this should be a patch version probably?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated it - bd2f805
tests/pip_test_requirements.txt
Outdated
pre-commit~=4.2.0 | ||
pycodestyle~=2.14.0 | ||
pylint ~= 3.3.7 | ||
astroid ~= 3.3.10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you need to add asteroid? seems like we don't import it anywhere and you can build and run the tests without it explicitly added here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I needed it. will recheck.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed it. - 62e8584
CHANGELOG.md
Outdated
## v1.2.0 | ||
### 2025-08-21 | ||
|
||
This version of HOSS updates the consa environment to support Python 3.12. This also updates the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version of HOSS updates the consa environment to support Python 3.12. This also updates the | |
This version of HOSS updates the conda environment to support Python 3.12. This also updates the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated - 62e8584
CHANGELOG.md
Outdated
### 2025-08-21 | ||
|
||
This version of HOSS updates the consa environment to support Python 3.12. This also updates the | ||
dependent packages to their latest supportable versions. Also updates harmony library version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dependent packages to their latest supportable versions. Also updates harmony library version. | |
dependent packages to their latest supportable versions. Also updates Harmony Service Library version. |
But that's still not a complete sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated - 62e8584
Which ones failed for you Matt? |
I rebuilt both hoss and maskfill from the branches, and they pass now. don't know what that was from. sorry. |
Let me know if anything else needs to be updated for PR to be approved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the updates. Looks alright to me now.
Description
Update python version to 3.12 and also update the supporting packages. The default group in conda environment was already removed in DAS-2361
Jira Issue ID
DAS-2389
Local Test Steps
bin/build-image,
bin/build-test,
bin/run-test
PR Acceptance Checklist
CHANGELOG.md
updated to include high level summary of PR changes.docker/service_version.txt
updated if publishing a release.