Skip to content

Fix: Bump Python to 3.11 across workflows - #960

Merged
ModeSevenIndustrialSolutions merged 1 commit into
lfit:mainfrom
askb:fix/bump-python-3.11
Oct 23, 2026
Merged

ModeSevenIndustrialSolutions merged 1 commit into
lfit:mainfrom
askb:fix/bump-python-3.11

Conversation

@askb

@askb askb commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Problem

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:

vars-to-env-action needs Python 3.9 or newer, but neither python3 nor python on PATH is

compose-maven-verify.yaml pairs that action with a 3.8 interpreter, so the
workflow is internally inconsistent and every consumer tracking @main
fails before Maven even starts
.

Real-world breakage: opendaylight/netconf run 39595547820
(11.0.x, which tracks compose-maven-verify.yaml@main).

Tagged releases are unaffected — v0.11.0 resolves maven-build-action
v0.5.3 and v0.10.4 resolves v0.4.1, both still on the JavaScript action.
Only untagged main carries v0.5.5.

Change

  • Bump all remaining "3.8" pins and the lone "3.10" pin to "3.11" (11 files).
  • Drop the argcomplete<3.7.1; python_version < "3.9" constraints in the two
    docker 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 the
    consumer's tox.ini / .readthedocs.yaml and can still be 3.8, so its
    argcomplete marker must stay.
  • gerrit-compose-required-rtdv3-merge.yaml — deliberately on 3.13, with a
    comment explaining why.

Validation

pre-commit run --all-files passes — actionlint, yamllint, gha-workflow-linter,
reuse lint, codespell, Validate GitHub Workflows all green.

@github-actions github-actions Bot added the bug Something isn't working label Oct 23, 2026
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
askb force-pushed the fix/bump-python-3.11 branch from 016df1f to 862a8cd Compare October 23, 2026 07:27
@askb askb changed the title fix: bump Python to 3.11 across workflows Fix: Bump Python to 3.11 across workflows Oct 23, 2026
@askb
askb requested a balanced review from Copilot October 23, 2026 07:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 argcomplete constraints 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
ModeSevenIndustrialSolutions merged commit 0190600 into lfit:main Oct 23, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants