Skip to content

Stabilize shared rollout budget test - #31587

Merged
jif-oai merged 2 commits into
mainfrom
jif/stabilize-shared-rollout-budget-test
Jul 8, 2026
Merged

Stabilize shared rollout budget test#31587
jif-oai merged 2 commits into
mainfrom
jif/stabilize-shared-rollout-budget-test

Conversation

@jif-oai

@jif-oai jif-oai commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Why

subagent_usage_draws_from_the_shared_budget intermittently fails even when the shared-budget behavior is correct. ResponseMock records a request before the custom Wiremock predicate is checked, so the follow-up mock can also contain unrelated requests. In a recent Windows ARM64 run, single_request() saw all seven requests from the scenario.

What changed

Select the request containing the follow-up user prompt before making assertions. The test still requires exactly one matching follow-up request and still checks that the root sees 50 tokens remaining after the child uses its share.

This is test-only. Shared-budget behavior and the common response-mock helper are unchanged.

@jif-oai
jif-oai requested a review from a team as a code owner July 8, 2026 14:53
@jif-oai
jif-oai merged commit 0bbea86 into main Jul 8, 2026
33 checks passed
@jif-oai
jif-oai deleted the jif/stabilize-shared-rollout-budget-test branch July 8, 2026 15:10
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant