Repository navigation
Conversation
2 tasks done
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This PR only adjusts an ignored integration-test harness and test timing to eliminate a queue-promotion race; it does not affect production behavior, product defaults, or static-analysis configuration. Notes:
You can add or adjust custom eligibility rules. Learn more. |
Contributor
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.
Problem
SteeringCompletion.integration.test.ts› "queues a plain send behind the stopped queue and releases its hold" can fail with queued texts['sent']instead of['queued', 'sent'](item 7 of #22324).During
worker.drain(), the fake provider'sinterruptTurnreturns immediately, so the stop settles and the stopped run becomesinterrupted. A detached reactor onrun.updated(Orchestrator.tshandleRunUpdate) then promotes the unheldqueuedrun tostartingon its own fiber, outsidedrain. The test reads the projection right afterdrain, so whichever fiber runs first decides the result. It reproduces on upstreammain: making the test wait for that promotion before its read produces the CI failure exactly (queuedisstarting,started.lengthis still 1).Change
Test-only. The harness's fake
interruptTurnnow takes an optional effect, which defaults toEffect.void, so the other tests are unchanged. This test passes one that signals aDeferredwhen the provider is asked to stop and then waits to be released. The test forksdrain, waits for that signal, and checks the queue while the provider is still stopping. It then releases the stop, joinsdrain, and checks that nothing was steered.Scope and approval
Item 7 of #22324. @juliusmarminge invited picking up the remaining #22324 flakes in #22511 (comment). One test, no product code.
Verification
expected [ 'sent' ] to deeply equal [ 'queued', 'sent' ], the CI failure.vp test run apps/server/src/orchestration-v2/SteeringCompletion.integration.test.ts: 17/17 pass.Investigated and written by Claude Opus 5.5 in Claude Code (T3 Code), reviewed by GPT-6.1-Sol in Codex.