Skip to content

Flake batch 7: slow-embedding budget test asserts the budget, not runner speed - #1057

Merged
ualtinok merged 1 commit into
mainfrom
land/flake-batch-7
Oct 27, 2026
Merged

ualtinok merged 1 commit into
mainfrom
land/flake-batch-7

Conversation

@aft-alfonso

@aft-alfonso aft-alfonso Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Test-only fix. aft_search_contract_test::slow_query_embedding_degrades_within_budget_and_next_query_retries_fresh failed on a loaded Windows runner (PR #1056's shard): the 500 ms query budget fired on time (516 ms), but the lexical fallback after it took ~495 ms and tripped the test's single 1 s wall-clock bound.

The test now asserts from its recorded phases that the deadline fired near the budget (400 ms to 2.5 s) and bounds the reply at half the fake server's hold. The hold is now 10 s and ends early when the client disconnects, so a normal run still takes about 0.6 s. Next-query retry, request count and phase order assertions are unchanged.

Build server: test passed 4 of 4 runs; Windows target check with -D warnings.


Summary by cubic

Test-only fix for the flaky slow_query_embedding_degrades_within_budget_and_next_query_retries_fresh contract test, which failed on a loaded Windows runner when the lexical fallback after the 500 ms budget took ~495 ms and tripped the single 1 s wall-clock bound.

The test now asserts from its recorded phases that the deadline fired near the budget (400 ms to 2.5 s), and bounds the total reply at half the fake server's hold. The server hold is now 10 s and ends early when the client disconnects, so a normal run still takes about 0.6 s. Next-query retry, request count, and phase order assertions are unchanged.

Written for commit a5bdd6f. Summary will update on new commits.

View guided diff Turn on auto-fix

…ses, not runner speed

The 500 ms budget fired on time on a loaded Windows runner, but the lexical
fallback after it took ~495 ms and tripped the single 1 s wall-clock bound.
The test now checks that the deadline fired near the budget and that the
reply never waited for the held response (now 10 s, released when the
client disconnects), with the wall-clock bound at half the hold.

Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
@ualtinok
ualtinok added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 4592eb4 Oct 27, 2026
92 checks passed
@ualtinok
ualtinok deleted the land/flake-batch-7 branch October 27, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant