14 lines
1.1 KiB
Plaintext
14 lines
1.1 KiB
Plaintext
# 126-toolcall-test-speedup: Toolcall test speedup
|
|
|
|
Goal: trim waits in second-slowest test file
|
|
|
|
Steps:
|
|
1. Read 118 result notes in done/118-slowest-tests.md.* for the #2 target (test_tool_calls EnvelopeRoundTrip, ~4s). 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-08T17:27:48Z via box tasks done:
|
|
38 passed. Before: 4.3s (spike 11.6s); after: 0.16-0.18s stable. Root cause was not sleeps but live network I/O: env.wrap() calls kpi.get_live_advisory_block() (usage API + route probes). Fix in tests/test_tool_calls.py only: EnvelopeRoundTrip.setUp/tearDown stubs sys.modules['kpi'] (advisory=''), include_kpi=True path still exercised, all assertions byte-identical. No prod code touched (bin/prompt_envelope.py has peer in-flight edits). Stayed on builder/dedup-test-collection, edit uncommitted (shared tree; no HEAD move).
|