Repository navigation
agentHost: make artifact removal tests deterministic - #344938
Merged
Benjamin Christopher Simmonds (benibenj) merged 1 commit intoOct 29, 2026
Merged
Benjamin Christopher Simmonds (benibenj) merged 1 commit into
Benjamin Christopher Simmonds (benibenj) merged 1 commit into
Conversation
Drain debounced catalog writes before flushing and reading session-state mirrors. Explicitly cover summary flushes during removal and after queued mutations, including rejected removals, without relying on the debounce timer. Fixes #341003. Co-authored-by: Copilot <[email protected]>
Benjamin Christopher Simmonds (benibenj)
enabled auto-merge (squash)
October 29, 2026 10:15
Copilot started reviewing on behalf of
Benjamin Christopher Simmonds (benibenj)
October 29, 2026 10:15
Christof Marti (chrmarti)
approved these changes
Oct 29, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in the artifact-removal test changes.
No open issues 🎉
What changed in this PR
Makes the Agent Host artifact-removal tests deterministic to address #341003, without changing production behavior.
Changes:
- Drain catalog reconciliation before flushing mirrors and capturing persisted-state snapshots.
- Cover summary flushes during blocked removals and after mutations, including rejected removals with concurrent additions.
- Replace summary-debounce timer waits with explicit flushes.
| File | Description |
|---|---|
src/vs/platform/agentHost/test/node/sessionArtifactRemoval.test.ts |
Stabilizes fixture synchronization and persistence assertions, and expands summary-flush timing coverage. |
Review effort: Balanced
Benjamin Christopher Simmonds (benibenj)
merged commit Oct 29, 2026
ff3d136
into
main
56 checks passed
Benjamin Christopher Simmonds (benibenj)
deleted the
benibenj/agents/fix-flaky-issue-341003-vscode
branch
October 29, 2026 10:29
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.
Fixes #341003.
Summary
The artifact-removal fixture waited for session-state mirrors, but an unflushed summary notification or an in-flight catalog write could still enqueue another mirror write after that wait. Persistence assertions could therefore observe different stages of the same mutation.
This changes only tests: no production behavior, sleeps, retries, or weakened assertions.
Validation
npm run transpile-client- passed.npm run eslint -- src\vs\platform\agentHost\test\node\sessionArtifactRemoval.test.ts- passed.node build\lib\formatter.ts --verify src\vs\platform\agentHost\test\node\sessionArtifactRemoval.test.ts- passed.git diff --check- passed.npm run build-fast -- --client-only- blocked by the checkout's existing dependency mismatch: declared Copilot runtime1.0.103-unstable.r40031404408.gba6c003, installed SDK runtime1.0.102. Client transpilation was run separately and passed.npm run typecheck-client- blocked by an unrelated existing dependency declaration error insrc/vs/platform/terminal/node/terminalProcess.ts:603:IPty.setParentWindowis missing. No diagnostics in the changed test.Tests used the existing local Electron binary, with
ELECTRON_RUN_AS_NODEunset: