Skip to content

fix(scripts): show check:changed progress and bound each step - #35507

Merged
nwparker merged 1 commit into
mainfrom
nwparker/check-changed-progress
Oct 29, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/check-changed-progress

Conversation

@nwparker

@nwparker nwparker commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​42 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​33

ELI5

pnpm check:changed printed 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

  • Print ✓ <task> (<elapsed>) as each check passes.
  • Every 60s, print total elapsed time and the running tasks with their elapsed time.
  • Kill a step's process tree after 30 min (via process-host's existing timeoutMs) and report it as a failure; --timeout=<minutes> overrides it, and --timeout=0 disables 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.
  • Smoke test: runProcess with timeoutMs: 500 on sleep 10 returns timedOut: true.

Visual Proof

N/A — developer CLI output only.

Agent skill upstream boundary

  • Not applicable.

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]>
@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[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

  1. P1 Timed-out compilers keep running ▶

Summary

Adds progress output and a configurable timeout to check:changed.

  • check:changed shows which checks are done and which are still running.
  • Each check step stops at a configurable time limit.

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 },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

Suggested change
{ program, args, cwd: root, env, timeoutMs: stepTimeoutMs || null },
{ program, args, cwd: root, env, timeoutMs: stepTimeoutMs || null, terminationBarrier: true },

@nwparker
nwparker enabled auto-merge (squash) October 29, 2026 00:41
@nwparker
nwparker merged commit d4b1041 into main Oct 29, 2026
31 of 32 checks passed
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