ci: run macOS x64 and musl tests on PRs only with the ci: full label - #804
Merged
Merged
Conversation
The macOS x64 job (Rosetta) and the musl job (uncached build in an Alpine container) are the slowest CI jobs and set the pull request wall time. Pull requests now skip both unless they carry the `ci: full` label; pushes to main and manual dispatches still run them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fspy benchmarklinuxmacoswindows |
GitHub lists a skipped matrix job under its unexpanded name, so the
single-entry matrix showed up as `Test (${{ matrix.shard }})` on pull
requests. Drop the matrix and have the shared steps read job-level env
vars instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wan9chi
added this pull request to stack #806
October 5, 2026 01:45
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.
Motivation
The macOS x64 job is the slowest CI job and sets the wall time for every pull request: it takes 220–245s, while the next slowest, musl, takes ~130s. Its compile step takes the same ~30s as on arm64. The extra time is Rosetta translating each x64 binary (node, bun, deno, Chromium, Codex, tsgo, and each test binary) the first time it runs on a fresh runner. musl is next: it builds with no Rust cache inside the Alpine container (76s of its ~130s).
Pull requests now skip both jobs unless they have the
ci: fulllabel. Adding the label reruns CI with both jobs included, anddonewaits for them, so a labeled PR can't merge until they pass. Pushes tomainand manual dispatches still always run them.macOS x64 moves out of the
testmatrix into its own job, because a matrixexcludecan't remove anincludeentry. It reuses theteststeps through a YAML anchor.🤖 Generated with Claude Code