Repository navigation
agentHost: fix Windows identity test flakes - #341581
Merged
roblourens merged 1 commit intoOct 14, 2026
Merged
Conversation
Use bounded filesystem removal retries for concurrent compute identity cleanup and wait for all test hosts before teardown. Exercise receipt hash-cache eviction in memory rather than writing hundreds of durable session records, and re-enable the affected tests. Fixes #341529 Fixes #341499 Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
No actionable defects were identified, but the Windows-specific sharing failure still needs native CI validation.
0 open findings
What changed in this PR
Addresses Windows identity-test flakes by making filesystem cleanup more resilient and reducing test persistence overhead.
Changes:
- Use bounded-retry deletion for initialization records and temporary links.
- Await all concurrent hosts before teardown.
- Simplify receipt-cache eviction coverage, close the restarted database, and re-enable six tests.
| File | Description |
|---|---|
| src/vs/platform/agentHost/test/node/sessionStorageIdentity.test.ts | Reduce durable writes while preserving eviction, restart, and revival checks. |
| src/vs/platform/agentHost/test/node/missionControlProtocolServer.test.ts | Re-enable concurrency tests and await all hosts before cleanup. |
| src/vs/platform/agentHost/node/missionControl/missionControlEnvironment.ts | Use shared retrying filesystem deletion. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
roblourens
marked this pull request as ready for review
October 14, 2026 17:11
roblourens
enabled auto-merge (squash)
October 14, 2026 17:11
Federico Brancasi (federicobrancasi)
approved these changes
Oct 14, 2026
roblourens
disabled auto-merge
October 14, 2026 17:12
roblourens
enabled auto-merge (squash)
October 14, 2026 17:12
roblourens
deleted the
roblou/agents/fix-flaky-tests-issue-341529-341499
branch
October 14, 2026 17:13
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 #341529
Fixes #341499
Changes
EPERM.Validation
On macOS:
npm run build-fast -- --client-only— passed, including after updating to the latest main../scripts/test.sh --run src/vs/platform/agentHost/test/node/missionControlProtocolServer.test.ts --run src/vs/platform/agentHost/test/node/sessionStorageIdentity.test.ts --reporter dot— 194 passed; three existing Windows-only cases skipped../scripts/test.sh --run src/vs/platform/agentHost/test/node/missionControlProtocolServer.test.ts --run src/vs/platform/agentHost/test/node/sessionStorageIdentity.test.ts --grep 'concurrent hosts converge|cold central receipt' --reporter dot— repeated 20 times successfully, 120 test passes../scripts/test.sh --run src/vs/platform/agentHost/test/node/missionControlProtocolServer.test.ts --run src/vs/platform/agentHost/test/node/sessionStorageIdentity.test.ts --run src/vs/base/test/node/pfs/pfs.test.ts --grep 'Mission Control WPS|Session storage identity compatibility|rimraf' --reporter dot— 202 passed; three existing Windows-only cases skipped.npm run eslint -- src/vs/platform/agentHost/node/missionControl/missionControlEnvironment.ts src/vs/platform/agentHost/test/node/missionControlProtocolServer.test.ts src/vs/platform/agentHost/test/node/sessionStorageIdentity.test.ts— passed.git diff --check— passed.CI on commit
362967caf51fb64565d01c47d54c17375f68bc89:No test timeout increases or test retries were added.
(Written by Copilot)