From c55fbbde54a36639a04908f28bf9be9e22105b6f Mon Sep 17 00:00:00 2001 From: Daniel Petty Date: Thu, 29 Oct 2026 18:47:43 +0000 Subject: [PATCH] fix(ci): re-pin every CI runner to ubuntu-26.04 ## Summary GitHub moves `ubuntu-latest` to Ubuntu 26.04 from 2026-10-19. Re-pin the 21 CI runner selections from `ubuntu-24.04` to the explicit `ubuntu-26.04` label, and remove the obsolete "moves to ubuntu-26.04 in #1501" markers. The linter blocker (#1119, landed in #2687) is cleared, so the maintained actionlint 1.17.0 accepts the label. ## Changes - .github/workflows/ci.yml: 9 runner selections to ubuntu-26.04 - .github/workflows/release.yml: 6 runner selections to ubuntu-26.04 - .github/workflows/codeql.yml, cleanup-devcontainer.yml, pr-title.yml, copilot-setup-steps.yml, fail-to-pass.yml, defect-pr-hardening-audit.yml: 1 runner selection to ubuntu-26.04 each - tests/test_workflow_contracts.py: the audit-hardening job now runs on ubuntu-26.04 - openspec: archive the 1501-runner-ubuntu-26-04 change ## Tests - actionlint 1.17.0 (the maintained linter) accepts ubuntu-26.04 and lints all eight workflows clean - pytest tests/test_workflow_contracts.py, test_change_folders.py and test_ci.py::test_github_workflows_name_their_runner_and_use_managed_python pass - devops ci --check --no-cache --skip test,outdated,actionlint: every static gate passes (zizmor, mypy, ruff, bandit, devcontainer, openspec, docs) Closes #1501 --- .github/workflows/ci.yml | 18 ++++----- .github/workflows/cleanup-devcontainer.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/copilot-setup-steps.yml | 2 +- .../workflows/defect-pr-hardening-audit.yml | 2 +- .github/workflows/fail-to-pass.yml | 2 +- .github/workflows/pr-title.yml | 2 +- .github/workflows/release.yml | 12 +++--- .../.openspec.yaml | 3 ++ .../design.md | 29 +++++++++++++++ .../proposal.md | 37 +++++++++++++++++++ .../tasks.md | 18 +++++++++ tests/test_workflow_contracts.py | 2 +- 13 files changed, 109 insertions(+), 22 deletions(-) create mode 100644 openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/.openspec.yaml create mode 100644 openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/design.md create mode 100644 openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/proposal.md create mode 100644 openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/tasks.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 659149021f..c0a8667d2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: static: name: Static Analysis if: github.event_name != 'schedule' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 15 permissions: contents: read @@ -91,7 +91,7 @@ jobs: test: name: Tests & Coverage if: github.event_name != 'schedule' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 30 permissions: contents: read @@ -155,7 +155,7 @@ jobs: name: DevContainer Image if: >- github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 60 permissions: contents: read @@ -266,7 +266,7 @@ jobs: name: Service Image if: >- github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 30 permissions: contents: read @@ -362,7 +362,7 @@ jobs: dependency-freshness: name: Dependency Freshness if: github.event_name == 'schedule' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 15 permissions: contents: read @@ -387,7 +387,7 @@ jobs: changed-tests: name: Changed-Test Independence if: github.event_name == 'pull_request' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 30 permissions: contents: read @@ -434,7 +434,7 @@ jobs: rule-pack: name: Rule Pack Tests if: github.event_name == 'pull_request' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 15 permissions: contents: read @@ -488,7 +488,7 @@ jobs: docs-site: name: Docs Site Build if: github.event_name == 'pull_request' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 10 permissions: contents: read @@ -578,7 +578,7 @@ jobs: image-pins: name: Image Pins if: github.event_name == 'pull_request' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 10 permissions: contents: read diff --git a/.github/workflows/cleanup-devcontainer.yml b/.github/workflows/cleanup-devcontainer.yml index af549ddcb0..bfa802101d 100644 --- a/.github/workflows/cleanup-devcontainer.yml +++ b/.github/workflows/cleanup-devcontainer.yml @@ -31,7 +31,7 @@ concurrency: jobs: cleanup: name: Prune PR DevContainer Images - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 10 permissions: packages: write diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 77b0c71b0d..bb17781238 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -27,7 +27,7 @@ jobs: # - https://gh.io/supported-runners-and-hardware-resources # - https://gh.io/using-larger-runners (GitHub.com only) # Consider using larger runners or machines with greater resources for possible analysis time improvements. - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 permissions: # required for all workflows security-events: write diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 89447747c0..0a3d3f65e4 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -26,7 +26,7 @@ env: jobs: copilot-setup-steps: name: Copilot Setup Steps - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 15 permissions: contents: read diff --git a/.github/workflows/defect-pr-hardening-audit.yml b/.github/workflows/defect-pr-hardening-audit.yml index 4d0b4061b2..d3e5213d45 100644 --- a/.github/workflows/defect-pr-hardening-audit.yml +++ b/.github/workflows/defect-pr-hardening-audit.yml @@ -17,7 +17,7 @@ env: jobs: audit-hardening: name: Audit Defect PR Hardening - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 timeout-minutes: 15 if: >- github.event.pull_request.merged == true && diff --git a/.github/workflows/fail-to-pass.yml b/.github/workflows/fail-to-pass.yml index 0b1d5dd33a..6a02d0cddd 100644 --- a/.github/workflows/fail-to-pass.yml +++ b/.github/workflows/fail-to-pass.yml @@ -31,7 +31,7 @@ jobs: name: Fail-to-Pass Check # The titles that CONST_DEFECT_TITLE_PATTERN reads as a fix. startsWith ignores case. if: ${{ startsWith(github.event.pull_request.title, 'fix(') || startsWith(github.event.pull_request.title, 'fix:') || startsWith(github.event.pull_request.title, 'fix!') }} - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 timeout-minutes: 20 steps: diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 20e1aa0c72..db0211eb5e 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -15,7 +15,7 @@ permissions: {} jobs: semantic-title: name: Semantic PR title - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 5 permissions: pull-requests: read diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f480ee10a..ff3062c810 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ env: jobs: release-please: name: Release Please - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 10 # The App token opens the release pull request, so its checks run like those of any other # pull request; a pull request that GITHUB_TOKEN opens starts no workflow. @@ -111,7 +111,7 @@ jobs: name: Upload Release Assets needs: release-please if: needs.release-please.outputs.release_created == 'true' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 15 permissions: contents: write @@ -153,7 +153,7 @@ jobs: name: Build DevContainer Image needs: release-please if: needs.release-please.outputs.release_created == 'true' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 60 permissions: contents: read @@ -221,7 +221,7 @@ jobs: devcontainer-smoke: name: Smoke-Test DevContainer Image needs: [release-please, devcontainer-image] - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 30 permissions: contents: read @@ -262,7 +262,7 @@ jobs: devcontainer: name: Attest & Tag DevContainer Image needs: [devcontainer-image, devcontainer-smoke] - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 10 permissions: contents: read @@ -317,7 +317,7 @@ jobs: # release, then tags it with the release tag and latest; Image Updater rolls the cluster onto # the new digest (#1486). if: needs.release-please.outputs.release_created == 'true' - runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501 + runs-on: ubuntu-26.04 timeout-minutes: 30 permissions: contents: read diff --git a/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/.openspec.yaml b/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/.openspec.yaml new file mode 100644 index 0000000000..c1fa2fe5d4 --- /dev/null +++ b/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/.openspec.yaml @@ -0,0 +1,3 @@ +schema: spec-driven +created: 2026-10-29 +skip_specs: true diff --git a/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/design.md b/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/design.md new file mode 100644 index 0000000000..9717ad02c2 --- /dev/null +++ b/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/design.md @@ -0,0 +1,29 @@ +# Design + +## Context + +The workflows pinned `ubuntu-24.04` because the stale actionlint 1.7.12 rejected `ubuntu-26.04`. #1119 (#2687) replaced that linter with the maintained `kjanat/actionlint` v1.17.0, which accepts the label. GitHub moves `ubuntu-latest` to 26.04 from 2026-10-19, so the runners should name the explicit `ubuntu-26.04` label rather than the moving `-latest` alias. + +## Goals / Non-Goals + +**Goals:** + +- Re-pin every CI job from `ubuntu-24.04` to `ubuntu-26.04`. +- Keep the runner label explicit (not `-latest`), so a GitHub image move cannot silently change what CI runs. +- Keep the workflow lint green under the maintained linter. + +**Non-Goals:** + +- Changing any step, action, secret or job behavior. +- Changing the devcontainer base image. +- Adding new checks to the gate. + +## Decisions + +- **Re-pin the label in the eight workflows.** Each `runs-on: ubuntu-24.04` becomes `runs-on: ubuntu-26.04`. Rejected: using `ubuntu-latest`. It is a moving alias; GitHub already moves it to 26.04 from 2026-10-19, so a job that names it would silently adopt a future image without review. The repository forbids `-latest` runners (`tests/test_ci.py::test_github_workflows_name_their_runner_and_use_managed_python`). +- **Remove the `# moves to ubuntu-26.04 in #1501` markers.** They pointed to this change; once it lands, they state a fact already done. Rejected: keeping them. A comment that says "moves to this label in this PR" is misleading after the merge. + +## Risks / Trade-offs + +- [`ubuntu-26.04` is not yet a stable GitHub-hosted label] → It is the target of the `ubuntu-latest` move that starts 2026-10-19, so GitHub provisions it on hosted runners. The branch's own CI run on the label is the acceptance check. +- [The service image and devcontainer must build on 26.04] → The acceptance criteria require the service image to build and pass its smoke test and Trivy scan, and the devcontainer to build. CI on the branch exercises both. diff --git a/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/proposal.md b/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/proposal.md new file mode 100644 index 0000000000..8cce3eff71 --- /dev/null +++ b/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/proposal.md @@ -0,0 +1,37 @@ +# Proposal + +## Why + +Issue #1501: GitHub moves `ubuntu-latest` to Ubuntu 26.04 from 2026-10-19 (actions/runner-images#14748). The workflows pinned `ubuntu-24.04` in wait for the workflow linter to accept the `ubuntu-26.04` label. That blocker cleared when #1119 landed the maintained linter (#2687). This change re-pins every job to `ubuntu-26.04`. + +## What Changes + +- The 21 `runs-on: ubuntu-24.04` selections across the eight workflows (`.github/workflows/ci.yml`, `release.yml`, `codeql.yml`, `cleanup-devcontainer.yml`, `pr-title.yml`, `copilot-setup-steps.yml`, `fail-to-pass.yml`, `defect-pr-hardening-audit.yml`) become `runs-on: ubuntu-26.04`. +- The obsolete `# moves to ubuntu-26.04 in #1501` markers are removed; they pointed to this change. +- `tests/test_workflow_contracts.py` asserts the `audit-hardening` job runs on `ubuntu-26.04`. + +The change re-pins the CI runners to the next Ubuntu image. It alters no `devops` command, option or message and touches no `devops` code, so it has no spec delta: `skip_specs: true`. It fits one pull request and deletes no internal code. + +## Capabilities + +### New Capabilities + +None. + +### Modified Capabilities + +None. No `devops` command, option or message changes. + +## Impact + +- CI: `.github/workflows/ci.yml`, `release.yml`, `codeql.yml`, `cleanup-devcontainer.yml`, `pr-title.yml`, `copilot-setup-steps.yml`, `fail-to-pass.yml`, `defect-pr-hardening-audit.yml`. +- Tests: `tests/test_workflow_contracts.py`. + +## Feasibility + +- The maintained linter `docker.io/kjanat/actionlint:1.17.0` (landed in #2687) accepts `ubuntu-26.04`. Confirmed by command output: running that image against a workflow with `runs-on: ubuntu-26.04` reports no `[runner-label]` error, and it lints the current eight workflows with zero errors. +- `ubuntu-26.04` is the next pinned GitHub-hosted runner image (the `ubuntu-latest` move that starts 2026-10-19), so it is a real, stable label rather than a moving `-latest` alias. + +## Existing Tool Considered + +- `ubuntu-26.04` is GitHub's own pinned runner label; no third-party tool covers this, so the change names the label directly in the workflows. It adds no code, no dependency and no new tool, and deletes no internal code. diff --git a/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/tasks.md b/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/tasks.md new file mode 100644 index 0000000000..aaaff5c1c6 --- /dev/null +++ b/openspec/changes/archive/2026-10-29-1501-runner-ubuntu-26-04/tasks.md @@ -0,0 +1,18 @@ +# Tasks + +## 1. Re-pin the CI runners to ubuntu-26.04 + +- [x] 1.1 Point `tests/test_workflow_contracts.py` at `ubuntu-26.04` for the `audit-hardening` job, so it fails while the workflow still names `ubuntu-24.04` (`uv run pytest tests/test_workflow_contracts.py`) +- [x] 1.2 Change the 21 `runs-on: ubuntu-24.04` selections to `ubuntu-26.04` across the eight workflows and remove the obsolete `# moves to ubuntu-26.04 in #1501` markers, so the test passes (`uv run pytest tests/test_workflow_contracts.py tests/test_ci.py`) + +## 2. Verify the gate + +- [x] 2.1 Confirm the workflow lint passes under the maintained linter and the static gate is green (`uv run devops ci --check --no-cache --skip test,outdated,actionlint`) + +## 3. Archive the change + +- [x] 3.1 Archive the change (`uv run devops openspec archive 1501-runner-ubuntu-26-04`) + +## Workflow follow-up + +- Pending a person: review the diff in tuicr (tuicr -r origin/main..HEAD). diff --git a/tests/test_workflow_contracts.py b/tests/test_workflow_contracts.py index 8131d54821..1ad0308544 100644 --- a/tests/test_workflow_contracts.py +++ b/tests/test_workflow_contracts.py @@ -352,7 +352,7 @@ def assert_audit_workflow_contract(workflow: dict[str, Any]) -> None: assert "audit-hardening" in jobs, "Workflow must contain job 'audit-hardening'" job = jobs["audit-hardening"] assert isinstance(job, dict) - assert job.get("runs-on") == "ubuntu-24.04", "Job must run on ubuntu-24.04" + assert job.get("runs-on") == "ubuntu-26.04", "Job must run on ubuntu-26.04" job_if = str(job.get("if", "")) assert (