Skip to content

fix: deflake injection test under -T1C contention - #3617

Merged
xzxiaoshan merged 1 commit into
agentscope-ai:mainfrom
xzxiaoshan:fix/chat-injection-block-timeout
Oct 17, 2026
Merged

xzxiaoshan merged 1 commit into
agentscope-ai:mainfrom
xzxiaoshan:fix/chat-injection-block-timeout

Conversation

@xzxiaoshan

Copy link
Copy Markdown
Collaborator

Follow-up to #3616. In its post-merge CI run, ChatSessionsTest.injectionDoesNotStartExecutionAndSurvivesRestart timed out on session.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.await polls 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.

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.
@xzxiaoshan
xzxiaoshan merged commit 035487e into agentscope-ai:main Oct 17, 2026
5 checks passed
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