-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update to Python 3.12.x (#5736) #5951
Open
dsotirho-ucsc
wants to merge
15
commits into
develop
Choose a base branch
from
issues/dsotirho-ucsc/5736-update-python-to-3-12
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update to Python 3.12.x (#5736) #5951
dsotirho-ucsc
wants to merge
15
commits into
develop
from
issues/dsotirho-ucsc/5736-update-python-to-3-12
+117
−84
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dsotirho-ucsc
added
reqs
[process] PR includes commit requiring ``make requirements``
upgrade
[process] PR includes commit requiring manual upgrade
labels
Feb 10, 2024
dsotirho-ucsc
force-pushed
the
issues/dsotirho-ucsc/5736-update-python-to-3-12
branch
4 times, most recently
from
February 13, 2024 17:17
b810ca2
to
c09e7d4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5951 +/- ##
===========================================
- Coverage 85.34% 85.34% -0.01%
===========================================
Files 155 155
Lines 20785 20795 +10
===========================================
+ Hits 17739 17747 +8
- Misses 3046 3048 +2 ☔ View full report in Codecov by Sentry. |
dsotirho-ucsc
force-pushed
the
issues/dsotirho-ucsc/5736-update-python-to-3-12
branch
from
February 14, 2024 22:45
c09e7d4
to
e4c1675
Compare
achave11-ucsc
force-pushed
the
develop
branch
from
February 15, 2024 21:38
ed4b5e1
to
858f6fb
Compare
hannes-ucsc
force-pushed
the
develop
branch
3 times, most recently
from
May 28, 2024 06:58
0762297
to
3f7f6ce
Compare
dsotirho-ucsc
force-pushed
the
issues/dsotirho-ucsc/5736-update-python-to-3-12
branch
from
August 8, 2024 17:40
e4c1675
to
3ab9f81
Compare
dsotirho-ucsc
force-pushed
the
issues/dsotirho-ucsc/5736-update-python-to-3-12
branch
from
August 19, 2024 17:03
3ab9f81
to
ca1c534
Compare
dsotirho-ucsc
force-pushed
the
issues/dsotirho-ucsc/5736-update-python-to-3-12
branch
2 times, most recently
from
August 27, 2024 18:25
c6c31f6
to
9dd4804
Compare
dsotirho-ucsc
force-pushed
the
issues/dsotirho-ucsc/5736-update-python-to-3-12
branch
11 times, most recently
from
September 20, 2024 19:59
af1fdf3
to
b2bb083
Compare
nadove-ucsc
previously approved these changes
Oct 2, 2024
achave11-ucsc
removed
the
upgrade
[process] PR includes commit requiring manual upgrade
label
Oct 2, 2024
achave11-ucsc
force-pushed
the
issues/dsotirho-ucsc/5736-update-python-to-3-12
branch
from
October 2, 2024 21:20
c00b327
to
cb9f617
Compare
achave11-ucsc
added
the
sandbox
[process] Resolution is being verified in sandbox deployment
label
Oct 2, 2024
dsotirho-ucsc
added
the
deploy:shared
[process] PR requires deploying `shared` component
label
Oct 2, 2024
IT failure due to combination of FIPS mode & the new bookworm-based Python image can be replicated with these commands:
Terminal log:
|
dsotirho-ucsc
force-pushed
the
issues/dsotirho-ucsc/5736-update-python-to-3-12
branch
2 times, most recently
from
October 18, 2024 18:12
310fbe5
to
ee38a8a
Compare
Resolves error with libgcrypt on bookworm: Fatal error in libgcrypt, requested algo not in md context
Fulfills transitive requirement of distutils, which Python 3.12 removed from the standard library
For Python 3.12 support
Resolves error during `make requirements`: × Building wheel for jq (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [1390 lines of output] running bdist_wheel running build running build_ext ... jq.c:12124:55: error: no member named 'ob_digit' in 'struct _longobject' const digit* digits = ((PyLongObject*)x)->ob_digit; ~~~~~~~~~~~~~~~~~~ ^ jq.c:13608:47: error: no member named 'ob_digit' in 'struct _longobject' const digit* digits = ((PyLongObject*)b)->ob_digit; ~~~~~~~~~~~~~~~~~~ ^ 41 warnings and 7 errors generated. error: command '/usr/bin/clang' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for jq
Resolves errors originating from flake8 failing to parse f-strings under Python 3.12 E122 continuation line missing indentation or outdented E131 continuation line unaligned for hanging indent E202 whitespace before ')' E202 whitespace before ']' E202 whitespace before '}' E203 whitespace before ':' E221 multiple spaces before operator E222 multiple spaces after operator E225 missing whitespace around operator E231 missing whitespace after ',' E231 missing whitespace after ':' E231 missing whitespace after ';' E271 multiple spaces after keyword E272 multiple spaces before keyword E702 multiple statements on one line (semicolon) E713 test for membership should be 'not in' W604 backticks are deprecated, use 'repr()'
Resolves error during `make requirements_update`: 19.11 Building wheels for collected packages: fastavro 19.11 Building wheel for fastavro (pyproject.toml): started 36.96 Building wheel for fastavro (pyproject.toml): finished with status 'error' 36.97 error: subprocess-exited-with-error 36.97 36.97 × Building wheel for fastavro (pyproject.toml) did not run successfully. 36.97 │ exit code: 1 36.97 ╰─> [73 lines of output] 36.97 <string>:31: SyntaxWarning: invalid escape sequence '\(' 36.97 running bdist_wheel 36.97 running build … 36.97 gcc: internal compiler error: Illegal instruction signal terminated program as 36.97 Please submit a full bug report, 36.97 with preprocessed source if appropriate. 36.97 See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions. 36.97 error: command '/usr/bin/gcc' failed with exit code 4 36.97 [end of output]
Resolves error during test: ERROR: test_openapi (integration_test.OpenAPIIntegrationTest.test_openapi) (component='service') ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/daniel/repo/azul1/test/integration_test.py", line 1856, in test_openapi validate_spec(spec) File "/Users/daniel/repo/azul1/.venv/lib/python3.12/site-packages/openapi_spec_validator/shortcuts.py", line 17, in validate_spec return validator.validate(spec, spec_url=spec_url) ... AttributeError: '_io.BufferedReader' object has no attribute 'decode'
Resolves DeprecationWarning during schema validation: Traceback (most recent call last): File "/Users/daniel/.pyenv/versions/3.12.6/lib/python3.12/unittest/suite.py", line 306, in _tearDownPreviousClass tearDownClass() AssertionError: ["{message : DeprecationWarning('Automatically retrieving remote references can be a security vulnerability and is discouraged by the JSON Schema specifications. Relying on this behavior is deprecated and will shortly become an error. If you are sure you want to remotely retrieve your reference and that it is safe to do so, you can find instructions for doing so via referencing.Registry in the referencing documentation (https://referencing.readthedocs.org).'), category : 'DeprecationWarning', filename : '/Users/daniel/repo/azul1/.venv/lib/python3.12/site-packages/jsonschema/exceptions.py', lineno : 475, line : None}", ...]
Resolves finding during `make pep8`: F842 local variable 'cs' is annotated but never used
Resolves finding during `make pep8` E122 continuation line missing indentation or outdented
Resolves error during test: AttributeError: 'not_called' is not a valid assertion. Use a spec for the mock if 'not_called' is meant to be an attribute.
dsotirho-ucsc
force-pushed
the
issues/dsotirho-ucsc/5736-update-python-to-3-12
branch
from
October 30, 2024 00:00
ee38a8a
to
70f573d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
1 review
[process] Lead requested changes once
deploy:shared
[process] PR requires deploying `shared` component
orange
[process] Done by the Azul team
reqs
[process] PR includes commit requiring ``make requirements``
sandbox
[process] Resolution is being verified in sandbox deployment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Connected issues: #5736
Checklist
Author
develop
issues/<GitHub handle of author>/<issue#>-<slug>
1 when the issue title describes a problem, the corresponding PR
title is
Fix:
followed by the issue titleAuthor (partiality)
p
tag to titles of partial commitspartial
or completely resolves all connected issuespartial
labelAuthor (chains)
base
or this PR is not chained to another PRchained
or is not chained to another PRAuthor (reindex, API changes)
r
tag to commit title or the changes introduced by this PR will not require reindexing of any deploymentreindex:dev
or the changes introduced by it will not require reindexing ofdev
reindex:anvildev
or the changes introduced by it will not require reindexing ofanvildev
reindex:anvilprod
or the changes introduced by it will not require reindexing ofanvilprod
reindex:prod
or the changes introduced by it will not require reindexing ofprod
reindex:partial
and its description documents the specific reindexing procedure fordev
,anvildev
,anvilprod
andprod
or requires a full reindex or carries none of the labelsreindex:dev
,reindex:anvildev
,reindex:anvilprod
andreindex:prod
API
or this PR does not modify a REST APIa
(A
) tag to commit title for backwards (in)compatible changes or this PR does not modify a REST APIapp.py
or this PR does not modify a REST APIAuthor (upgrading deployments)
make docker_images.json
and committed the resulting changes or this PR does not modifyazul_docker_images
, or any other variables referenced in the definition of that variableu
tag to commit title or this PR does not require upgrading deploymentsupgrade
or does not require upgrading deploymentsdeploy:shared
or does not modifydocker_images.json
, and does not require deploying theshared
component for any other reasondeploy:gitlab
or does not require deploying thegitlab
componentdeploy:runner
or does not require deploying therunner
imageAuthor (hotfixes)
F
tag to main commit title or this PR does not include permanent fix for a temporary hotfixanvilprod
andprod
) have temporary hotfixes for any of the issues connected to this PRAuthor (before every review)
develop
, squashed old fixupsmake requirements_update
or this PR does not modifyrequirements*.txt
,common.mk
,Makefile
andDockerfile
R
tag to commit title or this PR does not modifyrequirements*.txt
reqs
or does not modifyrequirements*.txt
make integration_test
passes in personal deployment or this PR does not modify functionality that could affect the IT outcomePeer reviewer (after approval)
System administrator (after approval)
demo
orno demo
no demo
no sandbox
N reviews
label is accurateOperator (before pushing merge the commit)
reindex:…
labels andr
commit title tagno demo
develop
_select dev.shared && CI_COMMIT_REF_NAME=develop make -C terraform/shared apply_keep_unused
or this PR is not labeleddeploy:shared
_select dev.gitlab && CI_COMMIT_REF_NAME=develop make -C terraform/gitlab apply
or this PR is not labeleddeploy:gitlab
_select anvildev.shared && CI_COMMIT_REF_NAME=develop make -C terraform/shared apply_keep_unused
or this PR is not labeleddeploy:shared
_select anvildev.gitlab && CI_COMMIT_REF_NAME=develop make -C terraform/gitlab apply
or this PR is not labeleddeploy:gitlab
deploy:gitlab
deploy:gitlab
System administrator
dev.gitlab
are complete or this PR is not labeleddeploy:gitlab
anvildev.gitlab
are complete or this PR is not labeleddeploy:gitlab
Operator (before pushing merge the commit)
_select dev.gitlab && make -C terraform/gitlab/runner
or this PR is not labeleddeploy:runner
_select anvildev.gitlab && make -C terraform/gitlab/runner
or this PR is not labeleddeploy:runner
sandbox
label or PR is labeledno sandbox
dev
or PR is labeledno sandbox
anvildev
or PR is labeledno sandbox
sandbox
deployment or PR is labeledno sandbox
anvilbox
deployment or PR is labeledno sandbox
sandbox
deployment or PR is labeledno sandbox
anvilbox
deployment or PR is labeledno sandbox
sandbox
or this PR does not remove catalogs or otherwise causes unreferenced indices indev
anvilbox
or this PR does not remove catalogs or otherwise causes unreferenced indices inanvildev
sandbox
or this PR is not labeledreindex:dev
anvilbox
or this PR is not labeledreindex:anvildev
sandbox
or this PR is not labeledreindex:dev
anvilbox
or this PR is not labeledreindex:anvildev
p
if the PR is also labeledpartial
Operator (chain shortening)
develop
or this PR is not labeledbase
chained
label from the blocked PR or this PR is not labeledbase
base
base
label from this PR or this PR is not labeledbase
Operator (after pushing the merge commit)
dev
anvildev
dev
dev
anvildev
anvildev
_select dev.shared && make -C terraform/shared apply
or this PR is not labeleddeploy:shared
_select anvildev.shared && make -C terraform/shared apply
or this PR is not labeleddeploy:shared
dev
anvildev
Operator (reindex)
dev
or this PR is neither labeledreindex:partial
norreindex:dev
anvildev
or this PR is neither labeledreindex:partial
norreindex:anvildev
dev
or this PR is neither labeledreindex:partial
norreindex:dev
anvildev
or this PR is neither labeledreindex:partial
norreindex:anvildev
dev
or this PR is neither labeledreindex:partial
norreindex:dev
anvildev
or this PR is neither labeledreindex:partial
norreindex:anvildev
dev
or this PR does not require reindexingdev
anvildev
or this PR does not require reindexinganvildev
dev
or this PR does not require reindexingdev
anvildev
or this PR does not require reindexinganvildev
dev
or this PR does not require reindexingdev
anvildev
or this PR does not require reindexinganvildev
Operator
deploy:shared
,deploy:gitlab
,deploy:runner
,API
,reindex:partial
,reindex:anvilprod
andreindex:prod
labels to the next promotion PRs or this PR carries none of these labelsdeploy:shared
,deploy:gitlab
,deploy:runner
,API
,reindex:partial
,reindex:anvilprod
andreindex:prod
labels, from the description of this PR to that of the next promotion PRs or this PR carries none of these labelsShorthand for review comments
L
line is too longW
line wrapping is wrongQ
bad quotesF
other formatting problem