ci: reduce macOS runner queue pressure - #754
Merged
Merged
Conversation
beruro
marked this pull request as ready for review
August 10, 2026 08:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Both pull-request validation jobs run on
macos-latest, so each CI run consumes two of the organization’s five concurrent macOS slots. Bursty branch updates create a long queue, and without PR-scoped cancellation, superseded commits continue waiting or running after a newer commit exists.Solution
Add PR-scoped workflow concurrency with
cancel-in-progress: true, so a new push replaces the older CI run for that PR. Move the platform-independent Frontend typecheck, lint, and Vitest job toubuntu-latest, while retaining Rust clippy on macOS for platform coverage. Scope thenode_modulescache key by runner OS.The resulting invariant is: each PR has at most one current CI run, and each run consumes at most one macOS runner slot.
Potential risks
The Frontend job now executes on Linux, so an unintentionally OS-dependent frontend test could behave differently. The suite models Windows and macOS paths as explicit inputs rather than relying on the host platform, and the unchanged Rust job retains macOS execution. The first Ubuntu run reproduced four failures that also reproduce identically on local macOS at the same SHA; those existing
developfailures are fixed separately by #753. Rollback is a single revert of this commit.Verification
git diff --check— passed..github/workflows/ci.yml— passed..github/workflows/ci.yml— passed.completed/cancelled.developSSR test-boundary failures in a separate single-responsibility PR.