You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: a hung test job or superseded main run no longer holds macOS runners for hours #1289
Stop macOS runner contention from delaying CI, and tag releases in particular:
give the test job in .github/workflows/ci.yml a timeout-minutes;
let a newer main push cancel a superseded main run's builds.
Tag runs and dispatched runs are never cancelled.
Why
In the 0.14.0 cycle, macOS runner capacity was the CI bottleneck:
Hung test jobs: runs 36244428518 and 36253117000 each held two macOS runners for the full 360-minute default timeout, because a unit-test binary hung. Healthy test jobs take at most 5 minutes on every target.
Release queued: the 0.14.0 tag run (36471046101) took 85 minutes, about 50 of them queued for macOS runners. Three main runs from the day's merges were ahead of it, one building the same commit.
ci.yml has no concurrency group, and the test job has no timeout.
Current behavior
A hung test binary holds a macOS runner for 6 hours.
Every main push runs the full six-target pipeline to completion, even after a newer push has superseded it. All builds cross-compile on macos-latest.
Expected behavior
The test job times out after 30 minutes.
A new main push cancels the superseded main run's build jobs while they're queued or running. The rest of that run is skipped because it depends on build.
Tag runs and workflow_dispatch runs are never cancelled.
Scope notes
Use job-level concurrency on build, not workflow-level. Workflow-level cancellation could interrupt the nightly job between gh release delete nightly and gh release create nightly, leaving no nightly release. With the group on build only, a run that has reached publishing has already finished its builds, so it runs to completion.
Group key: workflow, job and matrix.target, plus main for main pushes or github.run_id otherwise, so non-main runs never share a group. Set cancel-in-progress to github.ref == 'refs/heads/main'.
Trade-off: a quickly superseded main commit gets no benchmark or conformance reports published.
Activity