diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index ebba61b..08638b7 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -15,16 +15,16 @@ permissions: jobs: benchmarks: name: Run benchmarks - # The one job left behind when the rest moved to ubuntu-26.04 on 2026-10-02, - # and pinned rather than left on `ubuntu-latest` on purpose. CodSpeedHQ/action - # v5.2.1 fails on 26.04 with `##[error]Unsupported system` — measured, not - # guessed, in run 37063015887. `ubuntu-latest` is 24.04 today, so leaving it - # there would work right up to the day GitHub moves that label, and then break - # on main at a moment nobody picked. 24.04 is supported until April 2029. + # The last job to move to ubuntu-26.04. It stayed on 24.04 when the rest + # moved on 2026-10-02: CodSpeedHQ/action v5.2.1 failed there with + # `##[error]Unsupported system` (run 37063015887). CodSpeed's runner and + # action v5.5.0 (2026-10-14) added Ubuntu 26.04 on x86_64 and arm64: + # https://github.com/CodSpeedHQ/runner/releases/tag/v5.5.0 # - # Move it to 26.04 once CodSpeed supports it; nothing here will notice when - # that happens, so it is worth trying on a branch now and then. - runs-on: ubuntu-24.04 + # A named image, never `ubuntu-latest`: that label moves on GitHub's + # schedule, and a job that breaks then breaks on main at a moment nobody + # picked (tests/test_runners.py). + runs-on: ubuntu-26.04 timeout-minutes: 25 steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index d12fdb4..187ef35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,12 @@ what has already shipped, and for nothing else. See `RELEASING.md`. ### Changed +- **Every job runs on ubuntu-26.04, CodSpeed's too.** The benchmarks stayed on ubuntu-24.04 when the + other jobs moved on 2026-10-02, because CodSpeed's action failed on 26.04 with "Unsupported system" + (run 37063015887). CodSpeed's runner and action v5.5.0 (2026-10-14) support it, and the action here + is already v5.6.3. `tests/test_runners.py`, as in apkradar, now fails if any job runs on another + image or on `ubuntu-latest`, whose image changes on GitHub's schedule. + - **Python 3.15 is supported, and 3.16 is the row allowed to fail.** 3.15.0 went final on 2026-10-09; it moves from the experimental `3.15-dev` row to the stable matrix, the classifiers and the README badge, and `3.16-dev` takes its place as the one row with `continue-on-error`, as in apkradar. diff --git a/tests/test_runners.py b/tests/test_runners.py new file mode 100644 index 0000000..0c64b95 --- /dev/null +++ b/tests/test_runners.py @@ -0,0 +1,34 @@ +"""Every job runs on the same runner image, named, never `ubuntu-latest`. + +The jobs moved to ubuntu-26.04 on 2026-10-02, except CodSpeed's: CodSpeedHQ/action +v5 failed there with "Unsupported system". CodSpeed added Ubuntu 26.04 in runner +and action v5.5.0 (2026-10-14), and the last job followed on 2026-11-23, as in +apkradar, whose tests/test_runners.py this is. + +`ubuntu-latest` is not used anywhere: it moves to a new image on GitHub's +schedule, and a job that breaks then breaks on main at a moment nobody picked. +""" +from __future__ import annotations + +from pathlib import Path + +import yaml + +WORKFLOWS = Path(__file__).resolve().parents[1] / ".github" / "workflows" +IMAGE = "ubuntu-26.04" + + +def jobs(): + for path in sorted(WORKFLOWS.glob("*.yml")): + workflow = yaml.safe_load(path.read_text(encoding="utf-8")) + for name, job in (workflow.get("jobs") or {}).items(): + yield f"{path.name}:{name}", job.get("runs-on") + + +def test_there_are_jobs_to_look_at(): + assert len(list(jobs())) > 10 + + +def test_every_job_runs_on_the_same_named_image(): + elsewhere = {job: runner for job, runner in jobs() if runner != IMAGE} + assert elsewhere == {}, f"jobs not on {IMAGE}: {elsewhere}"