Skip to content

ci(python): test 3.11, 3.13 and 3.14 on ubuntu-latest - #3013

Merged
inureyes merged 3 commits into
lablup:mainfrom
Jaeyeong-CHOI:ci/python-39-runner
Nov 14, 2026
Merged

inureyes merged 3 commits into
lablup:mainfrom
Jaeyeong-CHOI:ci/python-39-runner

Conversation

@Jaeyeong-CHOI

@Jaeyeong-CHOI Jaeyeong-CHOI commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

test (Python 3.9) fails in actions/setup-python on every PR that touches python/, because ubuntu-latest is now Ubuntu 26.04 and there is no CPython 3.9 build for that image. Instead of pinning the 3.9 job to an older image, the test matrix now follows the Python that Ubuntu 26.04 ships: 3.9 is replaced by 3.14, and the matrix runs 3.11, 3.13 and 3.14 on ubuntu-latest.

Closes #3012.

Why not pin to ubuntu-24.04

The maintainer prefers to keep every job on ubuntu-latest rather than hold one leg on an image that GitHub will retire. Ubuntu 26.04 ships Python 3.14 as its default python3 (python3-defaults 3.14.3 in resolute, and the runner image lists Python 3.14.4 under Language and Runtime), so CI now tests the interpreter users of the current LTS get by default.

Change

  • .github/workflows/python.yml: python-version: ['3.11', '3.13', '3.14'] on ubuntu-latest. All three have Ubuntu 26.04 x64 builds in the actions/python-versions manifest (3.11.18, 3.13.18, 3.14.10). The lint, type-check job is unchanged.
  • The header comment describes the matrix as oldest tested, previous and 26.04 default instead of floor/current/ceiling.

Declared floor no longer tested

python/pyproject.toml still declares requires-python = ">=3.9" and is not changed here. After this PR CI no longer runs 3.9 (or 3.10), so the declared floor is untested. Options for a follow-up: raise requires-python to >=3.11 (3.9 reached end of life in October 2025), or add a 3.10 leg, which still has a 26.04 build, if 3.10 should stay covered.

Test plan

  • actions/python-versions manifest checked for linux/x64 builds with platform_version 26.04: 3.10 through 3.15 present, 3.9 absent
  • test (Python 3.11), test (Python 3.13), test (Python 3.14) and lint, type-check pass in this PR's CI run

`ubuntu-latest` now resolves to Ubuntu 26.04, and actions/setup-python
publishes no CPython 3.9 build for that image, so `test (Python 3.9)` fails
in the setup step on every pull request that touches `python/`.

Give the test matrix an `os` per version and keep the 3.9 leg on
ubuntu-24.04, where the build exists. The 3.11 and 3.13 legs and the lint
job stay on ubuntu-latest, and the job names are unchanged.
Replace the ubuntu-24.04 pin for the 3.9 leg with a matrix that follows the default python3 of ubuntu-latest. Ubuntu 26.04 ships Python 3.14 and actions/setup-python has no 3.9 build for it, so the matrix is now 3.11, 3.13 and 3.14, all on ubuntu-latest. requires-python stays >=3.9, which CI no longer exercises.

Refs lablup#3012
@inureyes inureyes changed the title ci(python): run the Python 3.9 test job on ubuntu-24.04 ci(python): test 3.11, 3.13 and 3.14 on ubuntu-latest Nov 14, 2026
@inureyes

Copy link
Copy Markdown
Member

Thank you for the careful diagnosis and the thorough test plan, @Jaeyeong-CHOI. The manifest check and the run links made the cause easy to confirm.

After discussing it, the maintainer decided not to pin a leg to ubuntu-24.04, since that image will be retired too and we would rather keep every job on ubuntu-latest. Instead the matrix now follows the Python that Ubuntu 26.04 ships by default (3.14), so I pushed a commit to your branch (after merging main in) that changes the matrix to 3.11, 3.13 and 3.14 on ubuntu-latest, and updated the title and description to match.

One consequence: requires-python = ">=3.9" is no longer exercised by CI. That is left for a separate decision (raise the floor, or add a 3.10 leg, which still has a 26.04 build).

@inureyes
inureyes merged commit a1694f6 into lablup:main Nov 14, 2026
35 checks passed
@inureyes inureyes added the status:done Completed label Nov 14, 2026
inureyes added a commit that referenced this pull request Nov 15, 2026
CI stopped testing 3.9 and 3.10 when #3013 moved the matrix to 3.11, 3.13 and 3.14 on ubuntu-latest, so the declared `requires-python = ">=3.9"` floor was untested. The floor now matches the oldest tested interpreter: `requires-python`, ruff `target-version` and mypy `python_version` move to 3.11, the classifiers list 3.11, 3.13 and 3.14, and the README, client docs and CHANGELOG say 3.11. Ruff's py311 target flagged one `asyncio.TimeoutError` alias in a test, replaced with the builtin `TimeoutError` (the same class on 3.11). The UP006/UP007/UP035/UP045 ignores stay, so existing annotations are not rewritten.

Ruff lint and format, mypy on `python/src`, and the unit tests pass on 3.11 and 3.14 (140 passed).

Refs #3012, #3013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:done Completed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(python): Python 3.9 test job fails in setup-python on ubuntu-latest (now Ubuntu 26.04)

2 participants