Repository navigation
test(jev): absorb CI scheduler stalls in supervision test budget - #3672
Merged
jujn merged 1 commit intoOct 20, 2026
Merged
Conversation
The 1s supervision budget can expire before the judge is entered when a loaded -T1C runner stalls the assessment thread (GC pause, CPU steal) mid-chain; the swallowed TIMEOUT then leaves the asserted map empty. Raise the budget to 6s, keep the virtual-time timeout probe above it, and keep outer block deadlines above the budget. Happy paths and suite wall time are unchanged. Also document -T1C as the default build parallelism in AGENTS.md.
jujn
approved these changes
Oct 20, 2026
xzxiaoshan
added a commit
that referenced
this pull request
Nov 23, 2026
…et (#4346) `JevEvidenceProcessorTest.filterFailureIsWithheldButRankFailureFollowsScoredEvidence` failed on a loaded ubuntu runner (seen on PR #4343) with `expected: <[scored, unranked]> but was: <[]>`: the class's 2s supervision budget expired before any assessment completed, so the timeout fallback reported every passage as UNSCREENED and delivered nothing. The mocks reply instantly, so the budget is never the property under test. Raise the class budget from 2s to 6s and advance the two virtual-time TIMEOUT assertions past it (7s), matching the supervision-test fix in #3672. Virtual-clock awaits cost no real time and instant-mock tests are unaffected, so total test time is unchanged.
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.
Problem
The ubuntu-latest build failed in
JevSupervisionMiddlewareTest.concurrentCallsKeepScopesEvidenceAndCountersSeparatewithexpected: <{Task a=diff-a, Task b=diff-b}> but was: <{}>.Root cause: the shared 1s supervision budget starts once the terminal assessment is subscribed on
boundedElastic. Under-T1Ccontention a runner stall (GC pause, CPU steal) can exceed 1s before the judge lambda is even entered; the swallowed TIMEOUT decision means the judge never writes the asserted map while the flux still completes normally.Fix
JevSupervisionTest.options: supervision budget 1s -> 6s; absorbs multi-second stalls, sub-millisecond happy path unchanged.evidenceTimeoutAndCancellationShareExecutionBudget: virtual-timethenAwait2s -> 7s so the probe still crosses the budget (zero real time).JevSupervisionMiddlewareTest: outerblock/blockLast/completion.getdeadlines 3s -> 8s, staying above the budget so a stalled assessment fails the budget, not the block.AGENTS.md: document-T1Cas the default build parallelism.No assertion is weakened, no production code changes, and the suite adds no wall time; only upper-bound deadlines changed.
Test plan
mvn -B -T1C -pl agentscope-examples/jev -am test- 185 tests greenmvn -B -T1C -pl agentscope-examples/jev spotless:check- clean