Repository navigation
Fix: Bump Python to 3.11 across workflows - #960
Merged
ModeSevenIndustrialSolutions merged 1 commit intoOct 23, 2026
Merged
Conversation
Python 3.8 reached end of life in October 2024. Eleven workflows still pinned setup-python to 3.8 (one to 3.10) while fourteen others already used 3.11. The stale pin is now an active break, not just tech debt: maven-build-action v0.5.5 replaced the JavaScript infovista-opensource/vars-to-env-action with lfreleng-actions/vars-to-env-action v0.0.1, a composite action whose entrypoint hard-exits when the interpreter on PATH is older than 3.9. compose-maven-verify.yaml pairs that action with a 3.8 interpreter, so every caller tracking @main fails with: vars-to-env-action needs Python 3.9 or newer, but neither python3 nor python on PATH is Bump all remaining 3.8 pins and the lone 3.10 pin to 3.11, and drop the argcomplete<3.7.1 constraints in the two docker workflows, whose own comments scoped them to the 3.8 pin. Left unchanged on purpose: - gerrit-compose-required-rtdv3-verify.yaml, whose interpreter comes from the consumer's tox.ini or .readthedocs.yaml and can still be 3.8, so its argcomplete marker must stay. - gerrit-compose-required-rtdv3-merge.yaml, deliberately on 3.13. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
askb
force-pushed
the
fix/bump-python-3.11
branch
from
October 23, 2026 07:27
016df1f to
862a8cd
Compare
There was a problem hiding this comment.
🟢 Approval recommended
The scoped updates satisfy the reported minimum Python requirement, and the removed constraints no longer apply under Python 3.11.
No open issues 🎉
What changed in this PR
Updates reusable workflows to Python 3.11, addressing the reported Maven action compatibility failure and aligning older interpreter pins with the codebase.
Changes:
- Updates Python pins from 3.8 or 3.10 to 3.11 across 11 workflows.
- Removes obsolete Python 3.8-specific
argcompleteconstraints and explanatory comments from two Docker workflows. - Leaves the intentional Read the Docs interpreter exceptions unchanged.
| File | Description |
|---|---|
.github/workflows/composed-prescan-sonar-cloud.yaml |
Uses Python 3.11 for SonarCloud prescans. |
.github/workflows/composed-maven-sonar-cloud.yaml |
Uses Python 3.11 for Maven SonarCloud analysis. |
.github/workflows/composed-maven-nexus-iq.yaml |
Uses Python 3.11 for Maven Nexus IQ analysis. |
.github/workflows/composed-generic-sonar-cloud.yaml |
Uses Python 3.11 for generic SonarCloud analysis. |
.github/workflows/composed-cmake-sonar-cloud.yaml |
Uses Python 3.11 for CMake SonarCloud analysis. |
.github/workflows/composed-autotools-sonar-cloud.yaml |
Uses Python 3.11 for Autotools SonarCloud analysis. |
.github/workflows/compose-maven-verify.yaml |
Uses Python 3.11 to satisfy Maven action requirements. |
.github/workflows/compose-maven-merge.yaml |
Updates Maven merge jobs from Python 3.10 to 3.11. |
.github/workflows/compose-gradle-publish.yaml |
Uses Python 3.11 for Gradle publishing. |
.github/workflows/compose-docker-verify.yaml |
Updates Python and removes the obsolete dependency constraint. |
.github/workflows/compose-docker-release-verify.yaml |
Updates Python and removes the obsolete dependency constraint. |
Review effort: Balanced
ModeSevenIndustrialSolutions
approved these changes
Oct 23, 2026
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.
Problem
Python 3.8 reached end of life in October 2024. Eleven workflows still pinned
setup-pythonto 3.8 (one to 3.10) while fourteen others already used 3.11.The stale pin is now an active break, not just tech debt.
maven-build-actionv0.5.5 replaced the JavaScriptinfovista-opensource/vars-to-env-actionwithlfreleng-actions/vars-to-env-actionv0.0.1 — a composite action whoseentrypoint hard-exits when the interpreter on
PATHis older than 3.9:compose-maven-verify.yamlpairs that action with a 3.8 interpreter, so theworkflow is internally inconsistent and every consumer tracking
@mainfails before Maven even starts.
Real-world breakage: opendaylight/netconf run 39595547820
(
11.0.x, which trackscompose-maven-verify.yaml@main).Tagged releases are unaffected —
v0.11.0resolvesmaven-build-actionv0.5.3 and
v0.10.4resolves v0.4.1, both still on the JavaScript action.Only untagged
maincarries v0.5.5.Change
"3.8"pins and the lone"3.10"pin to"3.11"(11 files).argcomplete<3.7.1; python_version < "3.9"constraints in the twodocker workflows. Their own comments scoped them to the 3.8 pin
("the marker retires itself when this job moves off 3.8"), so they are now dead.
Left unchanged on purpose
gerrit-compose-required-rtdv3-verify.yaml— its interpreter comes from theconsumer's
tox.ini/.readthedocs.yamland can still be 3.8, so itsargcompletemarker must stay.gerrit-compose-required-rtdv3-merge.yaml— deliberately on 3.13, with acomment explaining why.
Validation
pre-commit run --all-filespasses — actionlint, yamllint, gha-workflow-linter,reuse lint, codespell, Validate GitHub Workflows all green.