Repository navigation
fix(scripts): show check:changed progress and bound each step - #35507
Conversation
Output stays buffered per task, so a long unit-test step looked hung for 30+ minutes. Print each task's completion, a 60s heartbeat naming running tasks, and kill any step after 30 min (--timeout=<minutes> overrides). Co-Authored-By: Claude <[email protected]>
[Low impact] The changes affect the local developer check runner. Enable whole-tree cleanup before merging so timed-out typechecks actually stop their compilers. Findings
SummaryAdds progress output and a configurable timeout to
Reviews (1) · Last reviewed commit: "fix(scripts): show check:changed progres..." · Reviewed by Greptile |
| try { | ||
| const result = await runProcess({ program, args, cwd: root, env, timeoutMs: null }, 'tail') | ||
| const result = await runProcess( | ||
| { program, args, cwd: root, env, timeoutMs: stepTimeoutMs || null }, |
There was a problem hiding this comment.
Timed-out compilers keep running
When typechecking exceeds the timeout, this call kills the wrapper but leaves its compiler children running. runProcess only stops the whole process tree when terminationBarrier is enabled, and the typecheck wrapper has no signal handlers to stop its children. Those compilers keep using CPU and memory after the check reports failure. Pass terminationBarrier: true so the timeout stops the whole check.
| { program, args, cwd: root, env, timeoutMs: stepTimeoutMs || null }, | |
| { program, args, cwd: root, env, timeoutMs: stepTimeoutMs || null, terminationBarrier: true }, |
ELI5
pnpm check:changedprinted one line and then nothing until every check finished, so a slow unit-test step looked hung for 16–35+ minutes (report). Now it says what finished, what is still running, and gives up on a stuck step.What Changed
✓ <task> (<elapsed>)as each check passes.timeoutMs) and report it as a failure;--timeout=<minutes>overrides it, and--timeout=0disables it.This keeps the small surface #34834 asked for: no caching, selection, or process-host changes.
Testing
ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2: all 37 checks passed in 49.8s, each printing a completion line.runProcesswithtimeoutMs: 500onsleep 10returnstimedOut: true.Visual Proof
N/A — developer CLI output only.
Agent skill upstream boundary