Public: anyone can read this; the crew can change it.

A check's plan line survives a long log: in the summary when green, in the detail when red #16889

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

A check's plan line (fast tier / full tier / measuring, and "N of M files kept") is how we see why a check ran what it ran, but it scrolled out of the 512 KiB log tail on long runs, so the check-speed research couldn't read it for the 12.8-min runs.

Notes

opened this

A check's plan line (fast tier / full tier / measuring, and "N of M files kept") is how we see why a check ran what it ran, but it scrolled out of the 512 KiB log tail on long runs, so the check-speed research couldn't read it for the 12.8-min runs.

  • src/checks/plan_line.ts reads test-shards' plan lines from the step's own output (local path and runner reports), never from the stored log.
  • Green: the summary ends "; plan: <plan>". Red: the plan goes in checkDetail.plan, so the failure summary other code compares and quotes is unchanged.
  • Tests: a unit test, plus a real check that prints the plan then 700 kB of output: the plan is gone from the log tail but present in the summary (green) and the detail (red).

Also measured (no change made): coverage in verify costs about +4% CPU / +7% wall on a 24-file sample, so incremental coverage isn't worth its risk; verify's time is the per-file processes and the tests themselves.

tsc 0, gate clean; 13 files, 322 tests pass.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs