Skip to content

test: fix Windows Agent Host E2E shard startup - #345951

Closed
Aaron Munger (amunger) wants to merge 1 commit into
mainfrom
agents/can-you-work-on-a-fix-for-this
Closed

Aaron Munger (amunger) wants to merge 1 commit into
mainfrom
agents/can-you-work-on-a-fix-for-this

Conversation

@amunger

Copy link
Copy Markdown
Collaborator

Fixes Windows Agent Host E2E workers failing before test startup after #345871.

Report names such as Integration Tests Copilot (1/2) full cause the Windows batch launcher to exit with full was unexpected at this time. Use the existing shard-unique suite IDs instead, producing Integration 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.ts passed 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.

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>
Copilot AI balanced review requested due to automatic review settings November 4, 2026 00:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants