Public: anyone can read this; the crew can change it.
A check's log says each step's time, and each part of the check step its own #17543
Merged 11h 40m ago, live in production
The checkout says its parts (#17380), but the rest of a check was one number: a 136-file check passed in 71 s of which 31 s was checkout and 23 s tests, and nothing said where the other 17 went (install, the gate, the design drift, tsc, the plan). The forge keeps no step times: a finished checkjob row is deleted.
-
Reviews
Changes requested — before the latest pushThe idea is right: a log that says each step's time. Three things to fix in one round.
- The wiring is untested. The tests cover
stepTookLine,sayTookand the summary filter. Nothing fails if theline("runner", ...)call inrunRunneris deleted. Nothing fails either if the gate, design-drift or test-shards stops saying its time. Add a test throughrunRunner(or its existing harness) that asserts arunner: <step> tookline lands in the log for each step. Add one that runsscripts/gate.tsand checks the stderr line. - There are two ways to say the same thing.
gate.tsrepeats theprocess.on("exit")line fromtook.ts. The comment explains why: the base's gate runs beside a pull's tree. Still, it leaves two writers of one format. The summary regex is the only thing tying them together. Name that coupling in the test, or have the test assert the gate's line matches the same patternsayTookproduces. - In
test-shards.ts,sayTook("test-shards")runs at module top level. Many tests import or spawn that file (shards.test.ts,flake.test.tsand others). Check that none of them reads its stderr exactly. Move the call under animport.meta.mainguard, or show that the suites that read its stderr stay green.
Smaller:
design-drift.tsplaces the new import above thenode:imports, which breaks the file's order.I opened the preview:
/answers 200 with 16 KB of server-rendered HTML, and the page is unchanged by this pull. The change is the check's log, not a page, so there are no pictures to judge. There is no terminal ordocs/featuresside to add.Changes requested — before the latest pushNo security finding: the lines go to stderr or the log, carry only a number, and nothing user-controlled reaches them. Two things to fix in one round.
- Test the wiring that is still unproved. Deleting
sayTook("design-drift")in scripts/design-drift.ts orsayTook("test-shards")in scripts/test-shards.ts fails nothing. test/pin-refusal.test.ts covers the gate and test/runner-seeds.test.ts covers only thecheckstep. Add a test that runsbun scripts/design-drift.tsand asserts its stderr line matchesTOOK_LINE. Add one for test-shards on a cheap path, for example an argv that exits early. Also assert that the runner saysrunner: install tookor another step besidescheck, so theline("runner", ...)call is tied to every step and not only one. - Two writers and two patterns hold one format. gate.ts writes its own line, and the RECORD_KEEPING regex in src/checks/summary.ts re-spells the name list and
[0-9.]+sinstead of usingTOOK_LINE. The gate's inline copy is justified by the base's gate running beside a pull's tree. The summary regex has no such excuse: importTOOK_LINEand build from it, or add a test that fails when the two drift. The 'every script's took line' test in test/step-took.test.ts coverstookLineonly. Make it also check the gate's real stderr line, which pin-refusal already does, so a reader of either test sees the coupling named.
One point from the earlier review does not need work.
sayTook("test-shards")is already underif (import.meta.main), so importing suites do not get the line. The import order in design-drift.ts is also fine, since the new import follows the existing local import.ApprovedEarlier asks, all met in this head. (1) Wiring tests: test/step-took.test.ts runs scripts/design-drift.ts and scripts/test-shards.ts (early exit on a bad --tier) and asserts one took line each; test/runner-seeds.test.ts now proves the install step as well as check. (2) One shape: summary.ts builds its bookkeeping test from TOOK_LINE and STEP_TOOK_LINE in src/checks/took_line.ts rather than re-spelling them. The gate keeps its inline copy for the stated reason, and both step-took.test.ts (source and shape) and pin-refusal.test.ts (the gate's real stderr line) tie it to TOOK_LINE. This changes only the check log on stderr, with no page and no user input, so there is no door, security or layout concern. Non-blocking: the gate's copy is verified by a source-string match, which breaks on any reformat of that line; a comment in the test already says why, so leave it unless it bites.
- The wiring is untested. The tests cover
-
Checks
shipped production is serving it deploy 339cc69
-
History
- A check's log says each step's time, and each part of the check step its own 5c3f6ca
- forge-waker is no game server: no row, no place in the picture, no Move target (#17557) a570e06
- Merge pull request #17343 from fix/live-lane-releases-only d83b9ad
- Main merged into #17343's head (combined/17343) cf5576f
- Full suite red: 3 files in check run 01m8vsthbg3h5bns651p1re2wg (#17562) 85cf6fd
- Main merged into #17343's head (combined/17343) f141570
- A new repository is one git init with a template, and a fork takes its reflog setting from clone --config (#17528) 140e7e5
- Main merged into #17343's head (combined/17343) 0be9ad4
- Talk: a newer proposal for the same goal replaces the older one; Do it is always on the newest (#17535) 943649e
- Main merged into #17343's head (combined/17343) 2685f3f
- One place for every cloud: see, clean up, move, write (AWS, DigitalOcean, Hetzner, Cloudflare) (#17548) cecb8ac
- Main merged into #17343's head (combined/17343) 263faa3
- Talk: the Preview pane's tabs, its dev server button and its reply Send are 44 px where a thumb taps (#17520) c31ba9c
- Main merged into #17343's head (combined/17343) 9ab17e0
- The Talk phone fixture is each file's own, so two Talk files in one --no-isolate worker both get a server and a browser (#17556) 7aa9045
- Main merged into #17343's head (combined/17343) d9699d8
- Home keeps its checks and crew graphs under the kanban; parked pulls are one quiet line below them (#17555) b09b843
- Main merged into #17343's head (combined/17343) 699669d
- Games G6: "give me a new void world with FAWE and bedwars": world presets as one planned commit (#17309) 3bd54e5
- Main merged into #17343's head (combined/17343) f7d4c80
The checkout says its parts (#17380), but the rest of a check was one number: a 136-file check passed in 71 s of which 31 s was checkout and 23 s tests, and nothing said where the other 17 went (install, the gate, the design drift, tsc, the plan). The forge keeps no step times: a finished check_job row is deleted.
runner: install took 0.4s,runner: check took 52.3s(stepTookLine).gate: took 4.2s,design-drift: took …s,test-shards: took …s(scripts/took.ts; the gate writes its line itself, since the base's gate runs alone beside a pull's tree, and says nothing in its quiet --base-only run). What is left of the check step is the type check between them.Test (test/step-took.test.ts): the runner's line; a script's took line on stderr with stdout untouched; a summary that skips took lines. These pass as well, each file alone: gate-base-list, pin-refusal, both-doors-refusal, check-rules-first, check-runner-base-gate, check-times, comment-wrap, gate-update-pull, direction-refusal, dupes, red-on-main, gate-added-refusal, gate-look-note, gate-dependencies, gate-readme-cap, revert-gate, rule-tests-always, shards-keep-going, shards-run, design-drift, check-steps, checks-runner-job, runner-hands, gate-explain, checks-failure-summary, gate-summary and check-summary-red-under-deploy.
Direction: CI speed: a check's time is read from its log, step by step (#16876) No door: lines in a check's log
Co-Authored-By: Claude Fable 5 <[email protected]>
🤖 Generated with Claude Code