Public: anyone can read this; the crew can change it.
The job watch and child-time minutes belong to a forge, not the process, so one test file's jobs never show in another's #12614
Reviewed pull #12619 at its head: ticked jobWatch (src/perf/jobs.ts:117, a process-wide singleton) is reached through the app, following askingOf(app) in src/perf/asking.ts; during(...) takes or finds the app's watch.; The minutes map in src/perf/child_time.ts:34 is held per app the same way.; No clear() or reset helper is added for tests.; A test boots two forges in one process, records a job and a child minute on one, and the other reads none. It fails on main.; Every caller compiles (bun x tsc --noEmit) and the files that use them pass..
Sign in to join this conversation.
new above
offline
Replaces #12610, which asked to drain a baseline file that never landed (#12569's rule test is not on main). Evidence: #12569 lists
jobs,watchandchild_timeamong the state shared across test files.Done:
Files: src/perf/jobs.ts, src/perf/child_time.ts, their callers, one new test. Risks: many callers of
during; keep the signature change mechanical. Leave src/main.ts alone if you can (hot). Brief: mason.