Repository navigation
Conversation
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
sha174n
left a comment
There was a problem hiding this comment.
LGTM — official tag-pinned base image.
3080b62 to
3cbee27
Compare
3cbee27 to
48d5079
Compare
| run: | | ||
| if [ "$INPUT_PYTHON_VERSION" = "current" ]; then | ||
| RESOLVED_VERSION="3.11" | ||
| RESOLVED_VERSION="3.12" |
There was a problem hiding this comment.
scripts/uv-pip-compile.sh reads this current value to pick the Python it resolves requirements/*.txt with, so moving it to 3.12 changes what the lock files should contain. requirements/development.txt:76 still pins backports-tarfile, which jaraco-context only requires on Python < 3.12, so regenerating on 3.12 drops that pin and the check-python-deps job will see a diff. Should the regenerated requirements files be committed in this PR?
| run: | | ||
| if [ "$INPUT_PYTHON_VERSION" = "current" ]; then | ||
| RESOLVED_VERSION="3.11" | ||
| RESOLVED_VERSION="3.12" |
There was a problem hiding this comment.
With current on 3.12 and next on 3.13, no backend unit or integration job runs on 3.11, but requires-python is still >=3.11 and the py311 image is still published. A 3.12-only construct such as itertools.batched would pass CI and then fail for anyone on the supported 3.11 floor. Is there a job that still runs the backend suite on 3.11, or should one be kept in the matrix?
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #45183 +/- ##
==========================================
- Coverage 84.63% 84.63% -0.01%
==========================================
Files 3069 3069
Lines 205446 205446
Branches 48306 48306
==========================================
- Hits 173879 173873 -6
- Misses 28277 28283 +6
Partials 3290 3290
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
rusackas
left a comment
There was a problem hiding this comment.
Thanks for this @benispeti, and for sticking with it through the review rounds! I think the direction seems right, but a couple of things before this can go in.
GitHub shows conflicts with master now, so this needs a rebase. Heads up that master has since picked up per-platform cache refs (e.g. 3.11-slim-trixie-arm64 in the compose files, plus the assert_platform_cache_refs checks in docker.yml), so those will need the same 3.12 treatment as part of resolving it.
As sadpandajoe flagged above, check-python-deps is failing since moving current to 3.12 drops the backports-tarfile pin. Run ./scripts/uv-pip-compile.sh and commit the result. The question above about keeping a backend job on the 3.11 floor is still open too, and I'd love to see that settled before merging.
Also, would you mind adding a short UPDATING.md note that the default image moves to Python 3.12? Holler if you want a hand with any of it.
a7eb574 to
6debb91
Compare
|
Hi @rusackas! Thanks for the guideance. I've resolved your findings except these two items. I'd appreciate some support from the superset team to resolve them.
|
SUMMARY
Update the default production Python base image from python:3.11-slim-trixie to python:3.12-slim-trixie, and align related Docker cache references, CI assertions, and the devcontainer.
A primary motivation is reducing duplicate Python build tools in the production image. The newer setuptools and wheel versions are installed during the build; they are not part of the base image. The attached Syft SBOM comparison shows that the Python 3.11 base image also contributed setuptools 79.0.1 and wheel 0.45.1, duplicating the newer build-installed versions (setuptools 84.0.0 and wheel 0.46.3). The Python 3.12 base image no longer includes those older copies, so the duplicates are absent from its SBOM.
Python 3.11 is scheduled to reach end of life in October 2027, so moving to a supported version is also needed soon. Python 3.12 is supported through October 2028, according to the Python Developer’s Guide.
Removing the duplicate SBOM items also reduce the final size of the default docker image. This can be verified via comparing the size of superset
master-py311andmaster-py312docker images.SBOM evidence:
syft-sbom-superset-py12.txt
syft-sbom-superset-py11.txt
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Not applicable.
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION