Repository navigation
ci: cut macOS runner slots and bound every CI step with a timeout - #237
Merged
Merged
Conversation
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.
Cuts the macOS runner slots dotfiles CI takes per run and makes a hung step fail fast and name itself.
What changed
timeout-minutessized from its normal runtime (jobs run 1 to 13 minutes), plus job-level limits on the lint, role, skill-contracts and changes jobs.runner.gitandkittynow run onubuntu-latest. Per run on macOS: before, lint plus 9 role jobs (10); after, lint plus 7 (8) on a full run (push to main), with the existing path selection still narrowing a pull request further.timeout, the suites that stalled for 10 to 30 minutes before fix(test): stop the lint job's ansible suites spending a minute per play on fact gathering #232 finish with every assertion passing: claude-steps-catalog 364s, git-unattended-auth 304s, cubic-instructions 324s, planwright-marketplace 96s, copilot-retirement 40s. Nothing waited on a prompt, lock or stdin. The time is per-play cost: about 5s of fact gathering and about 1.5 to 2.6s per module call, across dozens of plays. fix(test): stop the lint job's ansible suites spending a minute per play on fact gathering #232's subset gathering and pipelining already took the dominant cost away. One environment note: without a UTF-8 locale ansible refuses at once ("locale encoding to be UTF-8"), which looks like a failure rather than a hang.LEFTHOOK_EXCLUDEline can be trimmed.lefthook run pre-commit --all-fileswith the nine slow suites excluded finished in 168s, and the nine suites run one after another in about 20 minutes (serial, nothing parallel). Run them in a normal commit once to confirm before dropping the line.Roles moved to Ubuntu, and why each is safe
kitty: two symlink tasks. Nothing macOS-specific.git: blockinfile,ssh-keygen, file modes and git config. The only OS branch is the default signing-program path (a value, not a behaviour). Checked here in check mode on Linux: the play loads and runs only the git tasks.ssh(on Debian its tag also selects thelinuxrole's sshd tasks, which need sudo and rewrite the runner's sshd),tmux(macOS terminfo install),fish(Homebrew prefix),osx,environments,upgrade,services(proves a Mac provisions none of the Linux services). A fixture test now pins each role's runner.Nothing was skipped or deleted: every check still runs.
Queue and run times (before, from the throughput readings)
After:
gitandkittyleave that queue; the first runs of this PR give their Ubuntu timings (added to the PR once CI has run).Review
lefthook.ymlchange needed.Step records
Steps at
convergence(run000001)Ended on
4aedc82fe951.Steps at
post-pr(run000001)Ended on
4aedc82fe951.