Commit 447eee7
fix(pm): stream dispatch-gates self-test verdicts, document detached run (#14520)
selfTest()'s t() collector now prints each case's ✓/✗ line the moment the
case is decided, instead of buffering all cases into an array and printing
them only after the last one in the tail loop. The tail is reduced to the
failed/length summary, unchanged in wording and exit codes.
On an agent container the battery cannot finish in the foreground (the
container's ~10-minute cap SIGTERMs it), and a killed run used to leave zero
diagnostic lines. Streaming means a killed run now leaves every case decided
before the kill readable in the log.
Both files' headers gain a "run this detached on an agent container" section
with the exact command. The triage's "record it in package.json's script
comment" instruction lands in check-dispatch-gates.mjs's header instead —
package.json is JSON and holds no comments, and that file is what
check:pm-dispatch-gates actually runs.
Option 2 from the triage (share one derivation across the end-to-end cases)
is deferred per the ruling — no case is merged, no spawn removed, no case's
name, condition or order moved.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 9acddde commit 447eee7
2 files changed
Lines changed: 62 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
9 | 34 | | |
10 | 35 | | |
11 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
20 | 40 | | |
21 | 41 | | |
22 | 42 | | |
| |||
10032 | 10052 | | |
10033 | 10053 | | |
10034 | 10054 | | |
10035 | | - | |
| 10055 | + | |
| 10056 | + | |
| 10057 | + | |
| 10058 | + | |
| 10059 | + | |
| 10060 | + | |
| 10061 | + | |
| 10062 | + | |
| 10063 | + | |
| 10064 | + | |
| 10065 | + | |
| 10066 | + | |
| 10067 | + | |
10036 | 10068 | | |
10037 | 10069 | | |
10038 | 10070 | | |
| |||
16829 | 16861 | | |
16830 | 16862 | | |
16831 | 16863 | | |
| 16864 | + | |
| 16865 | + | |
| 16866 | + | |
16832 | 16867 | | |
16833 | | - | |
| 16868 | + | |
16834 | 16869 | | |
16835 | | - | |
16836 | 16870 | | |
16837 | 16871 | | |
16838 | 16872 | | |
| |||
0 commit comments