Files
box/fleet/tasks/done/138-mdver-test-speedup.md.muse--runtime--roles
T

14 lines
1.4 KiB
Plaintext

# 138-mdver-test-speedup: MD verbs test speedup
Goal: trim waits in fifth-slowest test file
Steps:
1. Read 118 result notes in done/118-slowest-tests.md.* for the #5 target (test_box_md_https quality_validate_md_verbs, ~2.3s). 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-08T19:26:56Z via box tasks done:
DONE on branch builder/mdver-test-speedup (uncommitted, test-only, zero production change). ROOT CAUSE: no sleeps here -- 29 quality-validate cases each spawned a fresh box-ctl.py subprocess (~80ms compile+exec of the 4763-line module with zero bytecode caching for hyphenated __main__ scripts). FIX (tests/test_box_md_https.py): _box_ctl_inproc helper calling the real main(argv) in-process with stdout captured; same argv parsing, dispatch, audit, and stdout JSON. Equivalence proven: 29/29 in-process stdouts byte-identical to pre-change subprocess baseline. All assertions byte-identical; rejects/stdin/relay tests stay on real subprocess (CLI boundary coverage intact). BEFORE/AFTER: file 25 passed 3.75s -> 1.52s; target test 2.27s -> <0.005s. unittest: Ran 25 OK.