Skip to content

ci: Linux jobs run on ubuntu-24.04 and Node jobs on Node 24 (C5) - #715

Merged
DrunkOnJava merged 2 commits into
mainfrom
ci/c5-runner-pins
Oct 5, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
ci/c5-runner-pins

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

From the CI audit of 2026-10-05, ahead of the 2026-10-19 runner change.

  • Ubuntu. ubuntu-latest moves to Ubuntu 26 from 2026-10-19. That would change apt packages (wabt), Playwright's --with-deps and every preinstalled tool without a commit here. Every Linux job is now pinned to ubuntu-24.04, so moving to 26.04 becomes a deliberate edit of that label.
  • Node. Node 20 reached end of life in April 2026. The viewer, audit and release smoke jobs move to Node 24, the active LTS.
  • macOS Intel. publish.yml notes what replaces macos-15-intel, GitHub's last Intel macOS image, for the x86_64 wheel when it retires.

This renames the matrix checks that carry the runner label, so it merges only after the main-protection ruleset requires CI passed alone (C1).


Note

Low Risk
Infrastructure-only workflow and doc edits; behavior should match current ubuntu-latest on 24.04, with a one-time risk of Node 24 surfacing viewer dependency issues.

Overview
Pins all Linux GitHub Actions jobs from ubuntu-latest to ubuntu-24.04 across CI, release, deploy, fuzz, measure, and nightly workflows, with a note in ci.yml that this blocks an unreviewed jump when ubuntu-latest becomes Ubuntu 26 (2026-10-19). Matrix job names that embed the runner label (e.g. MSRV build + real files / ubuntu-24.04 / msrv) and docs/maintaining.md are updated to match.

Viewer and release smoke jobs that install Node via actions/setup-node move from Node 20 to Node 24 (ci.yml viewer-dependencies, deploy-viewer.yml, publish.yml viewer-release-smoke).

publish.yml adds a short comment on macos-15-intel being the last Intel macOS image and the planned Rosetta/cross-build fallback when it retires. No application or library code changes.

Reviewed by Cursor Bugbot for commit 7b0eed6. Configure here.

From the CI audit of 2026-10-05, ahead of 2026-10-19:

- ubuntu-latest moves to Ubuntu 26 from 2026-10-19, which would change
  apt packages (wabt), Playwright's --with-deps and every preinstalled tool
  without a commit here. Every Linux job is pinned to ubuntu-24.04; moving
  to 26.04 is a deliberate edit of that label.
- Node 20 reached end of life in April 2026. The viewer, audit and release
  smoke jobs use Node 24, the active LTS.
- publish.yml notes what replaces macos-15-intel, GitHub's last Intel
  macOS image, for the x86_64 wheel when it retires.

The check names that carry the runner label change with it
(build + real files / ubuntu-24.04 / ...); the ruleset requires CI passed
alone.
@DrunkOnJava
DrunkOnJava merged commit 7c37dc9 into main Oct 5, 2026
33 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/c5-runner-pins branch October 5, 2026 12:25
DrunkOnJava added a commit that referenced this pull request Oct 18, 2026
…e release binaries (C10)

The rest of the audit's C10 items, and the findings zizmor (#721) reported:

- impostor-commit / ref-version-mismatch: dtolnay/rust-toolchain regenerates
  its stable, nightly and master branches, so the pinned commits were on no
  branch. Re-pinned to the current heads (stable 89b1218, nightly 0e28dd9,
  master 7e38f4b, read from the API today); the next regeneration will flag
  them again.
- artipacked: `persist-credentials: false` on the 32 checkouts that kept the
  token. No workflow pushes; the `gh` calls authenticate with GH_TOKEN.
- cache-poisoning: publish.yml restores no cache, so a release is built from
  nothing a pull request's run could have written. It also gains a
  concurrency group that queues a second release run instead of racing it.
- The Python packages CI installs move into tools/ci/requirements-ifc.txt
  (ifcopenshell 0.8.5) and requirements-test.txt (jsonschema 4.26.0, pytest
  8.4.2), which a new Dependabot pip entry watches. IfcOpenShell 0.9 and
  pytest 9 are major updates and stay the maintainer's call.
- codeql.yml runs on ubuntu-24.04, which C5 (#715) missed.
- Release binaries are built with cargo auditable 0.7.7, so `cargo audit
  bin` can check a shipped binary against RustSec.
DrunkOnJava added a commit that referenced this pull request Oct 18, 2026
…e release binaries (C10) (#733)

These are the CI audit's last C10 items, plus fixes for the findings zizmor reported after #721.

**zizmor findings**
- **impostor-commit and ref-version-mismatch.**
  - dtolnay/rust-toolchain rebuilds its `stable`, `nightly` and `master` branches, so the commits we had pinned were no longer on any branch.
  - Every use is re-pinned to one commit of the action's `master` branch, `683b588` (2026-10-16), with the `toolchain` input each already passed. `master` only moves forward, so the pin cannot become an impostor commit again; `stable` had diverged from the commit pinned on 2026-10-05 by the time this landed. zizmor's `ref-version-mismatch` still warns when `master` moves on (#765 replaces the action with `rustup`).
- **artipacked.** The 32 checkouts that kept the token now set `persist-credentials: false`. No workflow pushes, and every `gh` call authenticates with `GH_TOKEN`.
- **cache-poisoning.** publish.yml no longer restores any cache, so a release is built from nothing a pull request's run could have written.

**Other C10 items**
- publish.yml gets a concurrency group with `cancel-in-progress: false`, so a second release run waits instead of racing the first.
- CI's Python packages are pinned in `tools/ci/requirements-ifc.txt` (ifcopenshell 0.8.5) and `tools/ci/requirements-test.txt` (jsonschema 4.26.0, pytest 8.4.2), and a new Dependabot `pip` entry watches them.
- IfcOpenShell 0.9 and pytest 9 are major updates, so moving to them stays the maintainer's call.
- codeql.yml now runs on `ubuntu-24.04`; C5 (#715) missed it.
- Release binaries are built with `cargo auditable` 0.7.7, so `cargo audit bin` can check a shipped binary against RustSec. There is a CHANGELOG entry for this. The release-binaries job then reads each Linux binary's section headers and fails if `.dep-v0` is gone; on this PR's run it was present in `rvt-info`, `rvt-ifc` and `rvt-analyze` on both musl targets, with `[profile.release] strip = true` unchanged.

**Testing**
- The ci.yml jobs that install from the requirements files run on this pull request.
- release-binaries runs on this pull request because its own workflow file changed (#722).
- publish.yml runs only on a tag, so its cache and concurrency changes are checked by YAML parsing and zizmor alone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant