Repository navigation
Description
Three more test-windows suites (markdown-format hook, shared lib tests, cloud-bootstrap accounting) spend 275 s p50 combined, mostly flat per-case spawn cost on Git Bash.
Measurements
| Step | p50 | p95 | min | max | Detail |
|---|---|---|---|---|---|
| Test the markdown-format hook | 119.0 s | 133.4 s | 80 | 145 | 167 PASS + 4 SKIPPED in 114.4 s, about 0.68 s/case; 86 hook-invocation call sites; 3,049 lines |
| Run shared lib tests (hook-utils) | 85.0 s | 92.1 s | 62 | 96 | 597 cases in 82.7 s, about 0.14 s/case |
| Test cloud-bootstrap plugin accounting | 71.0 s | 78.0 s | 47 | 81 | 79 assertions over 13 scenarios in 70.0 s, 2.7 to 4.5 s per scenario |
Linux spawn proxy (strace -f): markdown-format 7,317 forks and 11,687 execs; cloud-bootstrap 2,283 forks and 8,665 execs; hook-utils not collected (stalled under strace in the timing cases). Windows timings from run 37090684624 and 40 runs 37075818834..37091316717.
Cause
- markdown-format: no dominant case. Largest gaps are the SessionStart kill-switch-off probe at 11.2 s and kill-switch-unset at 5.9 s, then many 3 to 5 s cases. The C1 fd1-leak case measures a 715 ms base three times against an 8 s sink sleep; the sleep is not on the critical path (delta 6 ms).
- hook-utils: about 20 s is two
buffer_stdintiming cases that exercise idle and stall windows by design (sliced stall path 12.25 s, pre-4.1 delimiter-read fallback 8.12 s). The rest is flat spawn cost. - cloud-bootstrap: each scenario extracts the plugin block, builds fixture git repos and a stub
claudeCLI, and runs the block. Flat cost per scenario.
Proposed fix
Put these suites in separate jobs (the 4-job layout in #5830 puts markdown-format and hook-utils together; a finer split would separate them). Do not run them concurrently inside one job: hook-utils and markdown-format assert timing and scaling (for example bash_parse_segments: 8x the command costs 7x and the buffer_stdin idle bounds), and the hook-utils buffering cases stalled under strace, which shows they are sensitive to a slowed host. Per-suite spawn reduction is a further option: for cloud-bootstrap, build the fixture repos once and reuse them across scenarios; for markdown-format, batch the 86 hook invocations where cases allow. Measure per-case forks first.
Accuracy guard
Separate jobs change no test. For fixture sharing in cloud-bootstrap, scenarios must stay isolated (confirm no scenario mutates shared state), the 13 scenarios and 79 assertions must all still run, and the PASS list must match before and after. The by-design timing cases in hook-utils stay unchanged.
Related
#5886 (CI lane work), #5830 (13-minute PR run), #3716 (local test wall clock on Git Bash), #5958 (where it was observed). #5935 does not touch these suites.
🤖 Generated with Claude Code
Activity
perf(ci): shard the rename executor suite and run test-windows as six…
kyle-sexton commentedon Oct 3, 2026
Closing as delivered by the proposed fix (separate jobs). After #6023 the three suites run in different jobs: markdown-format and cloud-bootstrap in
test-windows-hooks, and hook-utils intest-windows-lib, with no concurrency inside a job. That keeps the hook-utils and markdown-format timing assertions unchanged.Measured on #6023 (dispatched run 37101504440 and the PR run): every Windows job took 162-239 s, against the 746 s single job measured here. Every case still runs.
Spawn reduction (sharing cloud-bootstrap fixtures, batching markdown-format invocations) is set aside, not filed. Test-windows is no longer the slowest check on a PR: on #6023's ready run the Windows jobs finished at 06:07:56, the
ci.ymllanes at about 06:07:00, and claude-review at 06:09:13, so a faster suite would not get a PR to green any sooner. Reopen if Windows becomes the slowest check again.