8000 ci: cut macOS runner slots and bound every CI step with a timeout by inkatze · Pull Request #237 · inkatze/dotfiles · GitHub
[go: up one dir, main page]

Skip to content

ci: cut macOS runner slots and bound every CI step with a timeout - #237

Merged
inkatze merged 4 commits into
mainfrom
planwright/flight/mc-dotfiles-ad-hoc-901ba14f
Nov 11, 2026
Merged

inkatze merged 4 commits into
mainfrom
planwright/flight/mc-dotfiles-ad-hoc-901ba14f

Conversation

@inkatze
@inkatze inkatze commented Nov 11, 2026 •
Copy link
Copy Markdown
Owner

Cuts the macOS runner slots dotfiles CI takes per run and makes a hung step fail fast and name itself.

What changed

  1. Timeouts. Every lint step and every role-job step now carries a timeout-minutes sized from its normal runtime (jobs run 1 to 13 minutes), plus job-level limits on the lint, role, skill-contracts and changes jobs.
  2. Fewer macOS slots. The role matrix gained a per-role runner. git and kitty now run on ubuntu-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.
  3. Hang root cause: not reproduced. Run here under 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.
  4. For the operator: the standing LEFTHOOK_EXCLUDE line can be trimmed. lefthook run pre-commit --all-files with 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.
  • Stay on macOS: ssh (on Debian its tag also selects the linux role'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)

job median wait longest wait median run
test (kitty) 1h7m 2h29m 3m
test (osx) 1h7m 2h20m 10m
test (git) 40m 1h40m 3m
test (tmux) 51m 2h47m 3m

After: git and kitty leave that queue; the first runs of this PR give their Ubuntu timings (added to the PR once CI has run).

Review

  • polish: one expression-only finding applied.
  • panel-review (gemini, two passes): pass 1 applied three fixes, pass 2 applied nothing.
  • Bot review: skipped (cubic monthly quota reached, resumes 2 December 2026; dotfiles has no PR-Agent workflow yet).
  • No lefthook.yml change needed.
Step records

Steps at convergence (run 000001)

# Step Kind Target Hosting Backend Session Head Start End Outcome Excerpt Output
1 polish skill polish in-session inline 7ebfa1d to 9cca740 2026-11-11T06:11:03Z 2026-11-11T06:17:45Z applied (degraded: run inline in the flight session per the operator's brief) polish pass over the 3-commit diff: one expression-only finding (stale macOS-only wording in the role-matrix comments) applied in 9cca740; nothing else found.
2 panel-review skill panel-review in-session inline 9cca740 to 4aedc82 2026-11-11T06:19:34Z 2026-11-11T06:37:15Z applied (degraded: first of a looping panel-review, run inline per the operator's relay; end = fix-commit time) panel-review pass 1 (gemini, inline): 9 rows; 3 validated and applied (job timeout backstop raised, misplaced lint comment, runner assertion loop over every role); 1 dropped as hallucinated (a nonexistent step); 2 declined (per-step timeouts on every setup step; exact-string fixture match).
3 panel-review skill panel-review in-session inline 4aedc82 2026-11-11T15:45:08Z 2026-11-11T16:00:18Z passed (degraded: second pass of a looping panel-review, run inline per the operator's relay) panel-review pass 2 (gemini, inline) on 4aedc82: nine lenses, eight none; one low row (an unguarded sudo mkdir -p of /usr/local/bin, a harmless no-op on Ubuntu, plus the per-step timeouts already declined) declined, naming a step that does not exist for the other half. Applied nothing.

Ended on 4aedc82fe951.

Steps at post-pr (run 000001)

# Step Kind Target Hosting Backend Session Head Start End Outcome Excerpt Output
1 bot-review skill bot-review in-session inline 4aedc82 2026-11-11T16:09:01Z 2026-11-11T16:09:01Z skipped: missing (cubic monthly quota reached, resumes 2 December 2026; dotfiles has no PR-Agent workflow yet (operator instruction))

Ended on 4aedc82fe951.

@inkatze
inkatze marked this pull request as ready for review November 11, 2026 17:45
@inkatze
inkatze merged commit 153fd97 into main Nov 11, 2026
25 of 26 checks passed
@inkatze
inkatze deleted the planwright/flight/mc-dotfiles-ad-hoc-901ba14f branch November 11, 2026 17:58
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

0