CASSANDRA-20997: Upgrade testing docker image to Ubuntu 22.04 and add Python 3.12/3.13 support#127
Open
arvindKandpal-ksolves wants to merge 1 commit intoapache:trunkfrom
Conversation
michaelsembwever
requested changes
Mar 25, 2026
Member
michaelsembwever
left a comment
There was a problem hiding this comment.
would need a new file name and tagging…
| @@ -46,13 +73,18 @@ RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2 | |||
| RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 3 | |||
| RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 4 | |||
… Python 3.12/3.13 support Details: - Upgraded base image from ubuntu:20.04 to ubuntu:22.04. - Fixed Python 3.6 compilation on Jammy by building OpenSSL 1.1.1w from source with gcc-9. - Applied sed patch for SIGSTKSZ to fix Glibc 2.35 compatibility for Python 3.6. - Added Python 3.12 and 3.13 environments. - Pinned pip<25.0 and setuptools==60.8.2 to maintain compatibility with legacy editable installs and ccm. - Added dummy pkgutil.ImpImporter injection to fix setuptools crashes on Python 3.12+.
8cd92e2 to
ec4a897
Compare
Author
|
@michaelsembwever , I completely missed that one. I just pushed an update with the 3.10 fix. While I was at it, I followed your lead from the in-tree images and renamed the files to be generic (ubuntu_j11.docker and ubuntu_j11_w_dependencies.docker). I've also updated all the scattered references across the repo (README, Jenkins groovy scripts, etc.) to use the new generic tags, and verified that the image builds cleanly on my end. Let me know if I missed anything else! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation and Context
To support Python 3.12 and 3.13 for
cqlshtesting (CASSANDRA-20997), the base testing docker image (ubuntu2004_j11.docker) needed an upgrade to Ubuntu 22.04 (Jammy). However, upgrading to Jammy completely broke the legacy Python 3.6 build due to incompatibilities with modern toolchains (OpenSSL 3.0 and Glibc 2.35). Additionally, modern versions ofpipandsetuptoolsbreak the legacycassandra-driverandccmdependency installations.This PR upgrades the image while surgically retaining full support for all older Python environments (including 3.6) so that we don't have to split the testing images between
trunkandcassandra-5.0.Description of Changes
ubuntu:20.04toubuntu:22.04.gcc-9and compiledOpenSSL 1.1.1wfrom source to bypass Jammy's OpenSSL 3.0 clash.sedpatch toModules/faulthandler.cto hardcodeSIGSTKSZ, fixing the Glibc 2.35 compilation error.distutilslibrary."pip<25.0"and"setuptools==60.8.2"across 3.11+ environments to maintain compatibility with legacy editable installs (setup.py develop) andccmflat-layout structures.pkgutil.ImpImportervia a surgicalsedpatch to fixsetuptoolsinternal crashes on Python 3.12+ (where theimpmodule is entirely removed).Testing
env2.7throughenv3.13) initialize successfully without hanging.cassandra-driver(via git clone) andccm, install and compile successfully across all environments.patch by Arvind Kandpal; for CASSANDRA-20997