Skip to content

fix(ci): pin Python 3.8 jobs to ubuntu-24.04 - #494

Closed
pengfeiye wants to merge 1 commit into
mainfrom
fix-ci-pin-python-3.8-jobs-to-ubuntu-24.04
Closed

pengfeiye wants to merge 1 commit into
mainfrom
fix-ci-pin-python-3.8-jobs-to-ubuntu-24.04

Conversation

@pengfeiye

@pengfeiye pengfeiye commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

CI fails on every PR right now, before any code is tested. ubuntu-latest now resolves to ubuntu-26.04, and actions/python-versions has no Python 3.8 build for 26.04 (the 26.04 builds start at 3.10). So actions/setup-python stops with Version 3.8 with arch x64 not found.

This affects every job that sets up Python 3.8:

  • Python 3.8 and Pylint and Black (test.yml) fail at "Setup python".
  • docs (sdk-reference.yml) fails at the same step.
  • Python 3.x is cancelled by the matrix's fail-fast, so no tests run at all.

For an example, see the checks on #493.

Changes

  • Pin the pytest, black (Pylint and Black), and docs jobs to ubuntu-24.04, with a comment that explains why.

The last green runs (#488 and #490, on 2026-09-30) used exactly this setup. They ran on ubuntu-24.04, and setup-python@v2 downloaded python-3.8.18-linux-24.04-x64. The change keeps Python 3.8 in CI, which matches requires-python = ">=3.8". It also keeps pylint on the 3.8-compatible release, so the lint job doesn't pick up the newer too-many-positional-arguments check against existing code.

The long-term fix is to drop Python 3.8 (end of life since October 2024) from the support policy and CI. That is a support decision, so it isn't part of this PR.

Testing

  • Confirmed the root cause from the failed job logs (runner image ubuntu-26.04) and from the actions/python-versions manifest (3.8.18 exists for 20.04, 22.04, and 24.04, but not for 26.04)
  • Both workflow files parse, and every job's runs-on is ubuntu-24.04
  • The checks on this PR are the real test

Related

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

ubuntu-latest now resolves to ubuntu-26.04, and actions/python-versions has
no Python 3.8 build for 26.04 (its builds start at 3.10). setup-python fails
with "Version 3.8 with arch x64 not found", so the Python 3.8, Pylint and
Black, and docs jobs fail on every PR, and fail-fast cancels Python 3.x.

Pin these jobs to ubuntu-24.04, the image they last passed on, where
setup-python downloads python-3.8.18-linux-24.04-x64.

Co-authored-by: Cursor <cursoragent@cursor.com>

This branch was successfully deployed

1 active deployment
sdk-reference — 6523e564 Deployed Nov 4, 2026 by pengfeiye via docs #595
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant