Repository navigation
test: fix Windows Agent Host E2E shard startup - #345951
Closed
Aaron Munger (amunger) wants to merge 1 commit into
Closed
Aaron Munger (amunger) wants to merge 1 commit into
Aaron Munger (amunger) wants to merge 1 commit into
Conversation
Use shard-unique suite IDs in report names to avoid Windows batch parsing errors from parenthesized display labels. Add regression coverage through the Windows integration launcher. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the Windows E2E startup fix, although the packaged Electron/provider rerun is still outstanding.
No open issues 🎉
What changed in this PR
Fixes Windows Agent Host E2E startup failures introduced by split-suite report names. The runner now uses shard-unique suite IDs instead of labels containing parentheses, while preserving readable console output.
Changes:
- Uses batch-safe suite IDs in test report names.
- Adds a Windows regression test covering argument forwarding for all ten workers under full and PR/storage profiles.
No actionable findings remain. The packaged Electron/provider E2E rerun is still outstanding.
| File | Description |
|---|---|
test/integration/agentHost/runner.ts |
Uses suite IDs to avoid parentheses in report names. |
build/lib/testAgentHostE2EStartup.test.ts |
Tests report names, test files, and shard arguments through the actual Windows launcher. |
Review effort: Balanced
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 Windows Agent Host E2E workers failing before test startup after #345871.
Report names such as
Integration Tests Copilot (1/2) fullcause the Windows batch launcher to exit withfull was unexpected at this time.Use the existing shard-unique suite IDs instead, producingIntegration Tests copilot-1 full. Console output keeps the readable shard labels.The regression test runs the actual Windows integration launcher with a recording stand-in for the downstream test runner. It verifies all eight split workers and both unsplit workers forward the expected test files, shard selections, and unique report names for the full and PR/storage profiles.
Windows validation:
node --test build\lib\testAgentHostE2EStartup.test.tspassed all four tests. Running the new regression against the old report-name expression reproduced the exact shell error and exit code 255.The packaged Electron/provider E2E rerun has not been performed.