Skip to content

test(jev): absorb CI scheduler stalls in supervision test budget - #3672

Merged
jujn merged 1 commit into
agentscope-ai:mainfrom
xzxiaoshan:fix/jev-supervision-test-budget
Oct 20, 2026
Merged

jujn merged 1 commit into
agentscope-ai:mainfrom
xzxiaoshan:fix/jev-supervision-test-budget

Conversation

@xzxiaoshan

Copy link
Copy Markdown
Collaborator

Problem

The ubuntu-latest build failed in JevSupervisionMiddlewareTest.concurrentCallsKeepScopesEvidenceAndCountersSeparate with expected: <{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 -T1C contention 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-time thenAwait 2s -> 7s so the probe still crosses the budget (zero real time).
  • JevSupervisionMiddlewareTest: outer block/blockLast/completion.get deadlines 3s -> 8s, staying above the budget so a stalled assessment fails the budget, not the block.
  • AGENTS.md: document -T1C as 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 green
  • mvn -B -T1C -pl agentscope-examples/jev spotless:check - clean

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
jujn merged commit 316075e into agentscope-ai:main Oct 20, 2026
4 checks passed
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.
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.

2 participants