Skip to content

ci: pin GitHub Actions runner images instead of relying on *-latest - #1576

Merged
reyammer merged 1 commit into
mainfrom
gh-1573-ci-pin-github-actions-runner
Oct 29, 2026
Merged

reyammer merged 1 commit into
mainfrom
gh-1573-ci-pin-github-actions-runner

Conversation

@reyammer

Copy link
Copy Markdown
Collaborator

Replace floating *-latest GitHub Actions runner labels across .github/workflows/ and dist-workspace.toml with explicit OS image versions so runner image upgrades happen deliberately via PRs instead of unannounced upstream rollovers:

  • General CI workflows: Pin ubuntu-latest -> ubuntu-26.04, macos-latest -> macos-26, and windows-latest -> windows-2025 (including replacing ${{ matrix.os }}-latest in rust-test.yml's run job with an explicit [ubuntu-26.04, macos-26, windows-2025] matrix).
  • CLI release & ONNX/tract parity (dist-workspace.toml, cli-release.yml, rust-test.yml tract-parity): Pin Linux x86_64 and global cargo-dist jobs to ubuntu-24.04 (preserving glibc 2.39 compatibility alongside ubuntu-24.04-arm and matching cargo-dist v0.31.0's KNOWN_GITHUB_RUNNERS), macOS arm64 to macos-26, and Windows x64 to windows-2025.
  • Legacy toolchains (python-build-test-and-release-package.yml): Keep ubuntu-24.04 on test-wheels-legacy-python (for prebuilt Python 3.8/3.9 binaries in actions/setup-python) and keep existing macos-14 pins untouched.

Testing: Verified with uv run scripts/check_gh_actions.py, just python check-source, just python check-docs, just python test, and PR CI workflows.

Fixes #1573

Replace floating *-latest runner labels across .github/workflows/ and dist-workspace.toml with explicit OS image versions (ubuntu-26.04, macos-26, windows-2025, and ubuntu-24.04 where glibc 2.39 compatibility or legacy Python toolchains require it) so runner upgrades happen deliberately via PRs.

Fixes #1573
@reyammer
reyammer requested a review from invernizzi as a code owner October 29, 2026 05:52
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 40825876822

Warning

Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →

Coverage remained the same at 96.845%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 729
Covered Lines: 706
Line Coverage: 96.84%
Coverage Strength: 0.97 hits per line

💛 - Coveralls

@reyammer
reyammer merged commit 110b93c into main Oct 29, 2026
63 of 64 checks passed
@reyammer
reyammer deleted the gh-1573-ci-pin-github-actions-runner branch October 29, 2026 06:11
@reyammer

Copy link
Copy Markdown
Collaborator Author

@ia0 FYI ubuntu-latest is migrating from 24.04 to 26.06 and broke some stuff. now following best practices and pinning the runners to specific versions to avoid this in the future. the auto generated cli-release.yaml is drifting (and still has the warnings from the CI checks), but I guess it is what it is for now...

@ia0

ia0 commented Nov 3, 2026

Copy link
Copy Markdown
Member

Yes, cli-release is in a bad shape and there has been no activity from the maintainers on axodotdev/cargo-dist#2320 (but it got a recent activity from users experiencing the same issue).

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.

ci: pin GitHub Actions runner images instead of relying on *-latest

3 participants