Repository navigation
test(cli,headless): stop gating ordering assertions on fixed wall-clock budgets - #2304
Merged
Merged
Conversation
Benjamin-eecs
marked this pull request as ready for review
August 6, 2026 02:49
Astro-Han
approved these changes
Aug 6, 2026
Astro-Han
left a comment
Contributor
There was a problem hiding this comment.
Nice fix — the settleSignal barrier is much stronger than the wall-clock race it replaces, and the scaled wait budget policy (local floor + CI 5s) matches how these waits actually behave. LGTM.
4 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #2221
Three pieces, matching the issue and its follow-up comment:
waitForkeeps its 250 ms budget locally but takes 5 s under CI (MAKA_TEST_WAIT_BUDGET_MSoverrides both). A passing wait returns the moment the predicate turns true, so the budget only bounds how long a failing assertion takes to report; the fixed 250 ms bought nothing on green runs and lost scheduling races on loaded runners. It also takes an optional description now, and the expiry message names the budget and what was being waited on instead offalse !== true.settleAfterMs: 1_000now expresses the ordering it always meant.runHarborCelltakes asettleSignalpromise that arms the same settlement the timer would, and the test resolves it from the backend at the point where the terminal claim is provably taken: the post-terminal drain pulls the next generator value only after the previous event was processed, so resuming afteryield completeis the barrier. The 1100 ms sleep against a 1000 ms timer is gone.runtime-bootstrap,cli-goal-continuation) now share the scaled budget as a floor-raise. The two remainingsettleAfterMsuses in harbor-cell assert the direction where the deadline should win; load only widens their margin, and both already carry guards, so they are left alone.Verification
packages/clisuite passes with the new helper signature across all 373 call sites.packages/headlessharbor-cell suite passes three consecutive runs with the rewritten test.