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/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
34 changes: 34 additions & 0 deletions tests/test_runners.py
Original file line number Diff line number Diff line change
@@ -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}"
Loading