Skip to content

ci: end the Windows PR Agent Host E2E arguments with --tfs like product builds - #345957

Merged
Bryan Chen (bryanchen-d) merged 2 commits into
mainfrom
copilot/vscode/pr-ci-agent-host-tfs-last
Nov 4, 2026
Merged

Bryan Chen (bryanchen-d) merged 2 commits into
mainfrom
copilot/vscode/pr-ci-agent-host-tfs-last

Conversation

@bryanchen-d

@bryanchen-d Bryan Chen (bryanchen-d) commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Makes the Windows PR CI call to scripts\test-agent-host-e2e.bat forward --tfs last, the same way product builds call it. The arguments are the same, only the order changes. The runner consumes --shard and --runList itself, so --tfs goes right before --runList and is still the last argument forwarded to test-integration.bat. The paired node.js integration step takes the same order, which build/lib/test/agentHostTestSelection.test.ts requires.

Why: the runner appends the suite label and profile to the --tfs value. In product builds --tfs is last, so test-integration.bat receives a last argument like Integration Tests Copilot (1/2) full. PR CI passed --rerun-failed-files 2 after --tfs, so its last argument was 2. #345871 broke test-integration.bat only when the last argument contained a ). It was green in PR CI and failed every Windows x64 Agent Host E2E run in product builds (main CI 492607 and the 23:00 insider 492626) until #345947 fixed it. With this change, PR CI would have caught it.

Validation: I ran test-integration.bat locally through the runner's child.ps1 launch path, with test.bat and node stubbed, using the arguments this PR CI call now produces (--run … --testShard 1/2 --rerun-failed-files 2 --tfs "Integration Tests Copilot (1/2) full"):

node --test lib/test/agentHostTestSelection.test.ts passes 11/11. This PR's own Windows Agent-Host-E2E jobs run the new order.

Authored with Copilot

Copilot AI balanced review requested due to automatic review settings November 4, 2026 00:54

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 are recorded for the Windows E2E argument-ordering change.

No open issues 🎉

What changed in this PR

Aligns Windows PR Agent Host E2E argument ordering with product builds so PR CI exercises the trailing suite-label argument that exposed the earlier batch-script regression.

Changes:

  • Moves --tfs "Integration Tests" to the end of the invocation.
  • Preserves all argument values, including conditional sharding and test selection.
File Description
.github/​workflows/​pr-win32-test.yml Reorders the Windows Agent Host E2E command to place --tfs last.

Review effort: Balanced

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 are reported for the Windows PR CI argument-ordering change.

No open issues 🎉

Review effort: Balanced

…ct builds

Product builds pass --tfs last, so the --tfs value, with the suite label the
runner appends, is the last argument that reaches test-integration.bat. PR CI
passed --rerun-failed-files 2 after it, so the #345871 break in that script,
which depended on the last argument, passed PR CI and failed product builds.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The Agent Host E2E runner consumes --runList and --shard, so --tfs before
--runList still makes the --tfs value the last forwarded argument. The paired
node.js integration step takes the same order, as agentHostTestSelection.test.ts
requires.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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 CI argument-ordering change.

No open issues 🎉

Review effort: Balanced

@bryanchen-d
Bryan Chen (bryanchen-d) merged commit 8fce712 into main Nov 4, 2026
60 checks passed
@bryanchen-d
Bryan Chen (bryanchen-d) deleted the copilot/vscode/pr-ci-agent-host-tfs-last branch November 4, 2026 20:57
@vs-code-engineering vs-code-engineering Bot added this to the 1.146.0 milestone Nov 4, 2026
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.

3 participants