Repository navigation
Description
Filed at the owner's request from the 2026-10-09 review of GitHub Actions warnings and notices.
Problem
Checked at release/v0.2.32 (27cf6bd). main and the tip of release/v0.2.31 (a6ac3f0) have the same tree.
-
Every job of ours shows the notice "The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026" ([Ubuntu]
ubuntu-latestlabel will use Ubuntu 26.04 in November 2026 actions/runner-images#14748). Examples:- https://github.com/dan-petty/devops-cli/actions/runs/37939293848 (Static Analysis, Tests & Coverage)
- runs 37939941004 (Build & Publish Service Image), 37939949181 (CodeQL), 37939941424 (Cleanup PR DevContainer) and 37937619772 (DevContainer Image)
GitHub moves the label between October 19 and November 19. During that month, any job may land on either image.
-
Nine runner selections use
ubuntu-latest:ci.yml:28,48,72,170,262,release.yml:25,167,cleanup-devcontainer.yml:34andcodeql.yml:30. The last one is the non-swift arm of a template expression, and the matrix has onlyactionsandpython. Today they all resolve toubuntu-24.04, image 20261004.327.1 (run 37939949186, "Set up job"). -
Confirmed break: on 26.04, CI stops using the pinned Python.
- Both setup-uv steps pass
python-version: "3.14":.github/actions/setup-toolchain/action.yml:24-34(astral-sh/setup-uv20cfd1bf, v10.0.1) andrelease.yml:52-59(c18668ad, v10.2.0). setup-uv exports the value asUV_PYTHON=3.14(src/setup-uv.ts:228-230), and that overrides.python-version(3.14.7). - On 24.04 the system Python is 3.12.3, so uv installs its own CPython. Run 37939949186 runs
cpython-3.14.7from_temp/uv-python-dir, the same version that.python-versionand the devcontainer use. - The 26.04 image ships Python 3.14.4 as
/usr/bin/python3(Ubuntu2604-Readme, image 20260927.149.1). - setup-uv's cache key includes the OS version (
setup-uv-2-…-ubuntu-24.04-3.14-…;src/cache/restore-cache.ts:102-105). So the first 26.04 run of each job starts with no managed Python, and uv's default preference takes a matching system interpreter before it downloads one. - Reproduced with uv 0.12.16, offline, with an empty
UV_PYTHON_INSTALL_DIRand a systempython3.14on PATH.UV_PYTHON=3.14 uv syncprints "Using CPython 3.14.8 interpreter at: /usr/bin/python3.14", even though.python-versionsays 3.14.7. WithUV_MANAGED_PYTHON=1, uv accepts only a managed install. - setup-uv's post step then skips the Python cache ("no managed Python installation was found … set UV_PYTHON_PREFERENCE=only-managed",
src/save-cache.ts:96-101). No managed Python is ever cached, so every later run also stays on Ubuntu's 3.14.4 build, while the pin and the devcontainer use 3.14.7.
- Both setup-uv steps pass
-
Checked and not affected:
- No workflow has installed apt packages or used sudo since refactor(ci): ci installs nothing on the runner, and live bubblewrap tests skip where bwrap is missing #832.
- shellcheck goes from 0.9.0 to 0.11.0. actionlint 1.7.12 with shellcheck 0.11.0 reports 0 errors on all four workflows at 27cf6bd.
- Neither image lists bubblewrap, so the
bwrap-marked tests keep skipping (tests/conftest.py:1121-1128; run 37939949186 ended with 10268 passed, 24 skipped).
-
Not yet run on 26.04: Docker Engine goes from 28.0.4 to 29.4.2 (Buildx is 0.37.x on both). These steps use the daemon:
- DevContainer Image: devcontainers/ci
513af61f(v0.3.1900000450), on the runner's defaultdockerdriver; - the Service Image build, smoke test and Trivy scan in
ci.ymlandrelease.yml: setup-buildxf87e5991(v4.4.1), build-push-actionc3c9e263(v7.4.0), trivy-actioned142fd0(v0.36.0, Trivy v0.70.0).
- DevContainer Image: devcontainers/ci
Proposed remedy
-
Set
UV_MANAGED_PYTHON: "1"in the workflow-levelenv:ofci.ymlandrelease.yml, the two workflows that run setup-uv. It reaches the composite'suv syncand every lateruv runstep. uv then uses only its own CPython, on any image..python-version, the devcontainer and local runs do not change. setup-uv's warning names the older spelling,UV_PYTHON_PREFERENCE=only-managed; uv 0.12.16 documentsUV_MANAGED_PYTHON. -
Replace all nine
ubuntu-latestselections withubuntu-26.04, and makecodeql.yml:30a plain label. Merge this before October 19, so no job runs during the mixed rollout and every later image change goes through review. -
Validate on 26.04 before the next release pull request merges:
- Static Analysis, Tests & Coverage and CodeQL run on the pull request itself.
- A
workflow_dispatchof CI Quality Gate on the branch runs Service Image (build, smoke test, Trivy). release.yml's Build & Publish Service Image builds when the cut sets the release branch's version. DevContainer Image runs on the release pull request into main, becauseci.ymlis one of its image-content paths.
If a job fails on 26.04 and needs more than a setting to fix, move it to
ubuntu-24.04with a comment naming its follow-up issue, so it does not hold the other jobs back.
Acceptance criteria
- No workflow job runs on
ubuntu-latest. Each namesubuntu-26.04, orubuntu-24.04with a comment linking its follow-up issue. -
ci.ymlandrelease.ymlsetUV_MANAGED_PYTHON: "1". A test next totest_github_workflows_caching_configurationintests/test_ci.pyfails when a workflow that uses setup-uv lacks it, or when a job'sruns-onis a-latestlabel. - On ubuntu-26.04, Static Analysis and Tests & Coverage run CPython 3.14.7 from setup-uv's managed directory. On a key miss, setup-uv saves the
-pythoncache, and no "Skipping Python cache save" warning appears. - Tests & Coverage passes on ubuntu-26.04 with the same skip count as on 24.04 (24 at 27cf6bd), or the pull request explains each difference.
- Service Image (build, smoke test, Trivy) passes on ubuntu-26.04 from a CI Quality Gate
workflow_dispatchon the branch. DevContainer Image andrelease.yml's Build & Publish Service Image pass on it before the next release pull request merges. - This repository's own workflow runs no longer show the "ubuntu-latest label will migrate" notice.
-
uv run devops cipasses.
Update 2026-10-09: re-scope before building (owner decision)
The assessment and its challenge found that this item can't pass its own last criterion as written: actionlint 1.7.12 (devops ci, the pre-push hook) rejects ubuntu-26.04 as an unknown runner label (9 errors), and upstream actionlint has released nothing since 2026-03-30 with its 26.04 PRs unmerged. The owner chose:
- Name
ubuntu-24.04in all nineruns-onselections (codeql's as a plain label), each with a comment linking fix(ci): ci jobs move from ubuntu-24.04 to ubuntu-26.04 once the workflow linter accepts the label #1501. A named label isn't migrated on 2026-10-19, so the deadline risk is gone. - Keep
UV_MANAGED_PYTHON: "1"at workflow level in ci.yml and release.yml, and the test (no-latestrunner;UV_MANAGED_PYTHONwherever setup-uv is reached, directly or through the local composite action). Do not also setUV_PYTHON_PREFERENCE: uv 0.12.16 refuses to run with both. - Moved to fix(ci): ci jobs move from ubuntu-24.04 to ubuntu-26.04 once the workflow linter accepts the label #1501: the move to
ubuntu-26.04and the 26.04 checks (criteria 3-5, Docker 29), once the workflow linter accepts the label. chore(deps): the workflow linter comes from a maintained source that knows current runner labels, replacing the stalled actionlint #1119 is re-scoped to replace actionlint.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 9, 2026
Placed in v0.2.32 by the owner, 2026-10-09: it must land before GitHub starts moving ubuntu-latest to Ubuntu 26.04 on 2026-10-19.
dan-petty-bot commentedon Oct 9, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The break is confirmed but time-bounded (Oct 19–Nov 19, 2026); CI is not failing today, so it is urgent but not a current outage.Once the label migrates, every CI job silently uses a different Python build than the pin and devcontainer, risking subtle test and build divergence.The remedy is setting one environment variable in two workflow files and replacing nine 'ubuntu-latest' strings with a pinned image tag.dan-petty-bot commentedon Oct 9, 2026
Admitted to v0.2.32: after v0.2.32 started, only a critical fix can join it. A person can place it in a planned release, and that placement stands. (devops roadmap reprioritize)
[-]fix(ci): ci jobs run on a named ubuntu-26.04 runner and always use uv's managed python, never the runner's own python 3.14[/-][+]fix(ci): ci jobs run on a named ubuntu-24.04 runner and always use uv's managed python, never the runner's own python[/+]fix(ci): ci jobs run on a named ubuntu-24.04 runner and always use uv…
dan-petty-bot commentedon Oct 9, 2026
What changed
#1507, merged into
release/v0.2.32as 293fcac.7 file(s) changed.
How it was verified
Check runs at c709181:
Acceptance Criteria of
docs/agent/tasks/task-1494-ci-named-runner-managed-python.md:ubuntu-latest. All nine selections nameubuntu-24.04with a comment linking fix(ci): ci jobs move from ubuntu-24.04 to ubuntu-26.04 once the workflow linter accepts the label #1501, andcodeql.yml's is a plain label.ci.ymlandrelease.ymlsetUV_MANAGED_PYTHON: "1"in their workflow-levelenv, which reaches the composite action'suv syncand every lateruv run.test_github_workflows_name_their_runner_and_use_managed_pythonintests/test_ci.py, next totest_github_workflows_caching_configuration, fails when a job'sruns-onis a-latestlabel, or when a workflow that reaches setup-uv, directly or through a local composite action, lacks the setting. It failed on the tree before the change with the nine jobs, and fails whenci.yml's setting is removed.ubuntu-latest. Runs onmain(Renovate pull requests intomain, the schedules, dispatches) usemain's workflows and show it until v0.2.32's release pull request merges.uv run devops cipasses.ubuntu-26.04and its checks on 26.04 (managed CPython 3.14.7 and the-pythoncache save, the Tests & Coverage skip count, Docker 29 builds of the Service and DevContainer images, Trivy): moved to fix(ci): ci jobs move from ubuntu-24.04 to ubuntu-26.04 once the workflow linter accepts the label #1501, which waits for the workflow linter to accept the label.feat(release): v0.2.32 (#1516)