Repository navigation
fix: deflake injection test under -T1C contention - #3617
Merged
xzxiaoshan merged 1 commit intoOct 17, 2026
Merged
Conversation
injectionDoesNotStartExecutionAndSurvivesRestart awaited a single streamed reply with a hard 15s block. The follow-up CI run of agentscope-ai#3616 showed that turn taking 16.5s under -T1C contention (submit to run/end), missing the ceiling by 1.5s while completing normally. AgentSession.await polls the task every 100ms and completes as soon as it settles, so raising the ceiling to 60s only moves the failure deadline and adds no time to the happy path; it matches the 60s budgets already used for the same scenario elsewhere in this class.
jujn
approved these changes
Oct 16, 2026
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.
Follow-up to #3616. In its post-merge CI run,
ChatSessionsTest.injectionDoesNotStartExecutionAndSurvivesRestarttimed out onsession.await(task).block(Duration.ofSeconds(15)): the turn completed normally but needed 16.5s under -T1C contention (submit to run/end), missing the hard ceiling by 1.5s. All four fixes from #3616 passed in that same run; this is the next wait site in the same class, previously left alone because it had a nominal ~1.2s load and no failure record.AgentSession.awaitpolls the task every 100ms and completes as soon as it settles, so the ceiling only bounds the failure deadline — the block returns immediately on completion. Raising it to 60s adds no time to the happy path (measured ~4.5s locally, ~7-19s across CI runs) and matches the 60s budgets already used for the same scenario in this test class. No assertions change.