14 lines
1.3 KiB
Plaintext
14 lines
1.3 KiB
Plaintext
|
|
# 183-boxmd-reject-speedup: Boxmd reject speedup
|
||
|
|
|
||
|
|
Goal: trim box_md rejects test cost
|
||
|
|
|
||
|
|
Steps:
|
||
|
|
1. Read 168 result notes in done/168-slowest-resweep.md.* for the box_md rejects x2 target (~0.6s each). 2. On a feature branch: reduce spawns/sleeps (inproc pattern where proven) keeping all assertions identical (never weaken tests); run the file until green. Done criteria: result notes list before/after seconds + pass count, or exact blocking failure.
|
||
|
|
|
||
|
|
Done criteria: result notes appended below; file moved to done/.
|
||
|
|
|
||
|
|
Result notes (append below before moving to done/):
|
||
|
|
|
||
|
|
Completed 2026-10-09T02:57:06Z via box tasks done:
|
||
|
|
DONE on branch builder/boxmd-reject-speedup (uncommitted, test-only, zero production change). Extended the proven 138 inproc helper to the x2 rejects tests (14 spawns -> in-process main(argv), 14/14 byte-identical rc+stdout vs subprocess). One real finding: md-amend/append parse --stdin BEFORE validating the path, so the helper gained a stdin= feed (fed identically to spawn input=); pytest's DontReadFromInput caught the first cut, fixed and green. All assertions byte-identical. BEFORE/AFTER: rejects 0.65s+0.56s -> <0.005s each; file 25 passed 1.37s -> 0.15s. unittest: Ran 25 OK. Remaining file cost is the stdin-plumbing + relay tests that must stay real-spawn.
|