Page MenuHomePhabricator

Migrate to a newer Python than 3.9 so CI doesn't have a bullseye-based image still.
Closed, ResolvedPublic

Description

Issues I encountered before I stopped trying to do this as part of the 2.3.0 release:

  • pip3 no longer supports --system
    • … so it installs to …local/ and ln/etc. paths need to be updated
    • … so python path needs to be updated from site-packages to dist-packages
  • typing no longer has an re attribute

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
ci: use v3.0.0 in CI/CD templaterepos/ci-tools/commit-message-validator!27bd808work/bd808/bump-default-versionmain
HISTORY: Prep for 3.0.0 releaserepos/ci-tools/commit-message-validator!26bd808work/bd808/3.0.0main
dev: Add Python 3.13 & 3.14; drop Python <3.11repos/ci-tools/commit-message-validator!25bd808work/bd808/python3.14main
Customize query in GitLab

Event Timeline

The current code will work with python3.12 and earlier, so we should be able to switch to a bookworm (python3.11) base. Some work needs to be done on the library itself to unblock trixie (python3.13). That AttributeError: module 'typing' has no attribute 're' error is something that changed in type annotations between 3.12 and 3.13 that needs a polyfill of some sort. It is probably time to do a major version bump too to drop some older Python versions.

bd808 changed the task status from Open to In Progress.Jul 11 2026, 12:27 AM
bd808 claimed this task.

Change #1310140 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[integration/config@master] tox: Bump commit-message-validator to 3.0.0

https://gerrit.wikimedia.org/r/1310140

Change #1310186 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[integration/config@master] docker(commit-message-validator): Update to v3.3.0

https://gerrit.wikimedia.org/r/1310186

bd808 triaged this task as High priority.Jul 13 2026, 11:12 PM
bd808 moved this task from To Do to Needs Review/Feedback on the User-bd808 board.

Change #1310140 merged by jenkins-bot:

[integration/config@master] tox: Bump commit-message-validator to 3.0.0

https://gerrit.wikimedia.org/r/1310140

Change #1310186 merged by jenkins-bot:

[integration/config@master] Docker: [commit-message-validator] Update to v3.0.0

https://gerrit.wikimedia.org/r/1310186

Mentioned in SAL (#wikimedia-releng) [2026-07-14T11:53:53Z] <James_F> Docker: [commit-message-validator] Update to v3.0.0, for T431799

Change #1310556 had a related patch set uploaded (by Jforrester; author: Jforrester):

[integration/config@master] jjb: [commit-message-validator] Switch users to 3.0.0

https://gerrit.wikimedia.org/r/1310556

Change #1310556 merged by jenkins-bot:

[integration/config@master] jjb: [commit-message-validator] Switch users to 3.0.0

https://gerrit.wikimedia.org/r/1310556