Skip to content

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

Closed

Description

@Jaeyeong-CHOI

Summary

The Python workflow's test (Python 3.9) job fails in the actions/setup-python step before any test runs. The ubuntu-latest runner image now resolves to Ubuntu 26.04, and the actions/python-versions manifest has no CPython 3.9 build for that image, so every pull request that touches python/ gets a red check.

Background

.github/workflows/python.yml defines the test job with runs-on: ubuntu-latest, a python-version matrix of ['3.9', '3.11', '3.13'], and actions/setup-python@v7. The newest 3.9 release in the manifest ships linux/x64 builds for Ubuntu 22.04 and 24.04 only, while 3.10, 3.11 and 3.13 also have 26.04 builds, so only the 3.9 leg fails. python/pyproject.toml declares requires-python = ">=3.9" (line 10), so the 3.9 leg is the only CI coverage of the declared floor.

Proposed Solution

Pin the Python 3.9 matrix leg to a runner image that still has a 3.9 build, ubuntu-24.04, while leaving the other legs on ubuntu-latest. This keeps coverage of the declared floor without dropping the 3.9 version.

Implementation Notes

  • .github/workflows/python.yml: the test job (runs-on: ubuntu-latest, matrix python-version: ['3.9', '3.11', '3.13'], actions/setup-python@v7). The lint, type-check job pins 3.11 and is unaffected.
  • python/pyproject.toml:10: requires-python = ">=3.9".
  • A per-version runs-on (for example a matrix include: entry, or a mapping expression) can keep 3.9 on ubuntu-24.04 and the rest on ubuntu-latest.

Acceptance Criteria

  • test (Python 3.9) installs 3.9 and runs pytest python/tests -m "not e2e" to completion.
  • test (Python 3.11), test (Python 3.13) and lint, type-check keep passing.
  • The declared floor >=3.9 stays covered by CI.

Original Suggestion

Title: ci(python): test (Python 3.9) fails in setup-python now that ubuntu-latest is Ubuntu 26.04

Summary

The Python workflow's test (Python 3.9) job fails before any test runs: actions/setup-python cannot find a CPython 3.9 build for the runner image. Every pull request that touches python/ gets a red check from it, whatever the change is.

Reproduction steps

Open any pull request that changes a file under python/ (the workflow is path-filtered, so it had not run since 2026-10-21). Six such PRs opened on 2026-11-12 show the same failure: #3001, #3003, #3005, #3007, #3009, #3011.

Expected behavior

test (Python 3.9) installs Python 3.9 and runs the suite, as test (Python 3.11) and test (Python 3.13) do.

Actual behavior

The job stops in the setup step. test (Python 3.11), test (Python 3.13) and lint, type-check pass on the same PRs.

mlxcel version

main @ 955335a (.github/workflows/python.yml)

Install method

Built from source

Platform

GitHub-hosted runner, ubuntu-latest (Ubuntu 26.04, x64)

Model checkpoint

None needed

Relevant logs

From https://github.com/lablup/mlxcel/actions/runs/43160332554/job/130989701701:

Run actions/setup-python@v7
  python-version: 3.9
Version 3.9 was not found in the local cache
##[error]The version '3.9' with architecture 'x64' was not found for Ubuntu 26.04.
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

Additional context

  • Cause. The test job runs on ubuntu-latest, which now resolves to Ubuntu 26.04. In the actions/python-versions manifest the newest 3.9 release (3.9.25) has linux/x64 builds for Ubuntu 22.04 and 24.04 only; 3.10, 3.11 and 3.13 have 26.04 builds as well.
  • History. The last runs of this workflow before today were on 2026-10-21 (a push to main and a PR) and passed.
  • python/pyproject.toml still declares requires-python = ">=3.9", so the 3.9 job is the only CI coverage of the declared floor.
  • A fix is ready on a branch: keep the 3.9 job on ubuntu-24.04.

Pre-submission checks

  • I searched existing issues and did not find a duplicate
  • This is not a security vulnerability (those go to SECURITY.md instead)

Activity

  1. changed the title [-]ci(python): test (Python 3.9) fails in setup-python now that ubuntu-latest is Ubuntu 26.04[/-] [+]ci(python): Python 3.9 test job fails in setup-python on ubuntu-latest (now Ubuntu 26.04)[/+] on Nov 12, 2026
  2. added
    status:ready
    type:bug
    priority:high
    platform:linux
    on Nov 12, 2026
  3. added
    status:done
    and removed
    status:ready
    on Nov 14, 2026
  4. added this to the 0.9 milestone on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform:linuxpriority:highstatus:donetype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions