GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Pin Python 3.13.15 for older CLI versions in the multi-language check by henrymercer · Pull Request #4210 · github/codeql-action

Conversation

@henrymercer

@henrymercer henrymercer commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

The "Multi-language repository" PR check is failing intermittently on ubuntu-latest for older CLI versions, for example in this run on main, with ImportError: cannot import name '_ERR_MSG' from 'importlib._bootstrap'.

The check installs Python 3.13 for these CLI versions because they don't work with Python 3.14 (#3212). Version 20261005.85 of the ubuntu-24.04 runner image has Python 3.13.16 in its toolcache, and 3.13.16 includes python/cpython@b0a181d8fc, a backport of the change that removed importlib._bootstrap._ERR_MSG in 3.14. Jobs that still run on the previous image get 3.13.15 and pass.

This PR pins the version to 3.13.15, which setup-python downloads on images that don't have it in their toolcache. The step's condition is unchanged, so newer CLI versions such as default also get 3.13.15, even though they don't need it.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Which use cases does this change impact?

Environments:

  • Testing/None - This change does not impact any CodeQL workflows in production.

How did/will you validate this change?

  • End-to-end tests - I am depending on PR checks (i.e. tests in pr-checks).

If something goes wrong after this change is released, what are the mitigation and rollback strategies?

  • Development/testing only - This change cannot cause any failures in production.

How will you know if something goes wrong after this change is released?

  • Other - The "Multi-language repository" PR check will keep failing for older CLI versions.

Are there any special considerations for merging or releasing this change?

  • No special considerations - This change can be merged at any time.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@henrymercer
Pin Python 3.13.15 for older CLI versions in multi-language check
6b99698
Co-authored-by: Copilot App <[email protected]>
@henrymercer
henrymercer requested a balanced review from Copilot October 7, 2026 18:00
@github-actions github-actions Bot added the size/XS Should be very easy to review label Oct 7, 2026
Copilot started reviewing on behalf of henrymercer October 7, 2026 18:01
View session
Copilot AI reviewed Oct 7, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Warning

  • Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.

🟢 Approval recommended

The focused version pin addresses the documented CI failure without changing the existing execution condition.

0 open findings

What changed in this PR

Pins Python 3.13.15 in the multi-language PR check to avoid extractor failures with older CodeQL CLI versions.

Changes:

  • Pins setup-python to Python 3.13.15.
  • Documents the Python 3.13.16 incompatibility.
File Description
pr-checks/​checks/​multi-language-autodetect.yml Updates the workflow template’s Python version and rationale.
.github/​workflows/​__multi-language-autodetect.yml Generated counterpart; excluded from direct review.
Files excluded by content exclusion policy (1)
  • .github/workflows/__multi-language-autodetect.yml

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@henrymercer
henrymercer marked this pull request as ready for review October 7, 2026 18:02
@henrymercer
henrymercer requested a review from a team as a code owner October 7, 2026 18:03
mbg
mbg approved these changes Oct 7, 2026
View reviewed changes
@henrymercer
henrymercer enabled auto-merge October 7, 2026 18:08
@henrymercer
henrymercer added this pull request to the merge queue Oct 7, 2026
Merged via the queue into main with commit e0b52db Oct 7, 2026
234 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@henrymercer
henrymercer deleted the henrymercer/pin-python-for-older-clis-in-ci branch October 7, 2026 18:25
This was referenced Oct 8, 2026
Merge main into releases/v4 #4214
Merged
Merge releases/v4 into releases/v3 #4216
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@mbg mbg mbg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size/XS Should be very easy to review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@henrymercer @mbg
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.