Files
box/fleet/tasks/done/153-boxdev-test-speedup.md.muse--runtime--roles
T

14 lines
1.5 KiB
Plaintext

# 153-boxdev-test-speedup: Boxdev test speedup
Goal: trim waits in box_dev tests_run tests
Steps:
1. Read 147 result notes in done/147-slowest-resweep.md.* for the box_dev tests_run x2 target (~1.9s each). 2. On a feature branch: reduce sleeps/timeouts 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-08T21:59:56Z via box tasks done:
DONE on branch builder/boxdev-test-speedup (uncommitted, test-only, zero production change). ROOT CAUSE: the x2 tests each nest a full tests-run of tests.test_box_read_https (1.65s of box-ctl respawns); no sleeps. FIX: _box_ctl_inproc (real main(argv), stdio captured) applied to dry-run/read-only calls in BOTH files -- nested qv (4 calls) + 2 dm-log success paths, outer git/tests-run/ack qv (12 calls). Equivalence: 17/17 byte-identical subprocess-vs-inproc (an 18th probe case was vacuous -- compared identical failure paths -- caught by the real test, fixed to argv[2:]). All assertions byte-identical; rejects + live tests-run (incl. safepath env propagation) stay on real subprocess. BEFORE/AFTER: nested 16 passed 1.65s->1.07s; outer file 33 passed 5.97s->3.91s (single_module_live 1.76->1.22s, safepath 1.68->1.23s). unittest: Ran 49 OK. Remainder is live dm-log.jsonl parses (~0.3s x2, production read cost, out of scope).