Repository navigation
test(rpc): 7098 route-to-predecessor waits for agent_end before the follow-up prompt (#7388) - #7390
Open
code-yeongyu wants to merge 1 commit into
Open
code-yeongyu wants to merge 1 commit into
code-yeongyu wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Refs #7388 (one of its two failing families; the other is still being traced and stays open on the issue).
Failure
CI run 45075332026,
Test (coding-agent 5/10):test/suite/regressions/7098-route-to-predecessor.test.ts> "routes a detached turn, then keeps the handle after predecessor park" failed at line 140: the follow-upprompt("running on successor") answeredsuccess: false.Cause (test side)
In the
parktransition the test releases the held model, waits only for the client'smessage_end, and then sends the nextprompt.message_endarrives while the turn is still settling; apromptwithoutstreamingBehaviorduring a streaming turn is refused (docs/rpc.md, "During streaming"). The test raced the end of the turn, not the product.Fix
Wait for the turn's end (
agent_endfor the session) before sending the next prompt.JsonlPeer.waitForalso matches records already received, so the signal cannot be missed. No retry, longer timeout or skip.Evidence
Summary by cubic
Fixes a test race in
7098-route-to-predecessor.test.tswhere the follow-up prompt could be refused as streaming.agent_endinstead ofmessage_endbefore sending the next prompt, sincemessage_endarrives while the turn is still settling.JsonlPeer.waitFormatches already-received records, so the turn-end signal cannot be missed.Written for commit 5c35d4e. Summary will update on new commits.