Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/defect-pr-hardening-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fail-to-pass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
schema: spec-driven
created: 2026-10-29
skip_specs: true
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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).
2 changes: 1 addition & 1 deletion tests/test_workflow_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Loading