Repository navigation
test: run Agent Host E2E as its own test unit in GitHub Actions and ADO - #342346
Merged
Alexandru Dima (alexdima) merged 4 commits intoOct 18, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The failure fallback needs cancellation guards across all three platforms so superseded integration runs stop promptly.
1 open issue
What changed in this PR
Separates Agent Host E2E tests from other Electron integration tests to give each phase its own timeout and clearer failure reporting.
Changes:
- Adds dedicated E2E steps across Linux, macOS, and Windows.
- Preserves test selection and profiles while allowing remaining suites to run after E2E failures.
- Updates workflow assertions, documentation, and skip messages.
| File | Description |
|---|---|
src/vs/platform/agentHost/test/node/e2e/README.md |
Documents the split CI steps. |
scripts/test-integration.sh |
Clarifies the skip message. |
scripts/test-integration.bat |
Clarifies the Windows skip message. |
build/lib/test/agentHostTestSelection.test.ts |
Checks the split workflow contract. |
.github/workflows/pr-win32-test.yml |
Separates E2E with a 30-minute timeout. |
.github/workflows/pr-linux-test.yml |
Separates E2E with a 15-minute timeout. |
.github/workflows/pr-darwin-test.yml |
Separates E2E with a 15-minute timeout. |
Review effort: Balanced
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved findings remain; the focused split preserves selection and cancellation behavior, with contract tests and reported successful cross-platform CI.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
Alexandru Dima (alexdima)
marked this pull request as ready for review
October 18, 2026 01:12
Alexandru Dima (alexdima)
enabled auto-merge (squash)
October 18, 2026 01:12
Alexandru Dima (alexdima)
marked this pull request as draft
October 18, 2026 08:36
auto-merge was automatically disabled
October 18, 2026 08:36
Pull request was converted to draft
The Agent Host E2E suites ran inside scripts/test-integration.{sh,bat}, so
they shared one step, one timeout and one ADO checkpoint with every other
integration suite. On Windows that step took 23 min at p50 and up to 29.8 min
against a 30 minute timeout, and healthy runs timed out in whichever suite
happened to be running.
- Add scripts/test-agent-host-e2e.{sh,bat}, which run the parallel Agent
Host E2E runner and own the VSCODE_SKIP_AGENT_HOST_E2E skip.
- scripts/test-integration.{sh,bat} no longer run Agent Host E2E. They keep
excluding its entrypoints from the serial node.js run, and --run still
accepts a single E2E file.
- GitHub Actions: a "Run Agent Host E2E tests (Electron)" step runs before
"Run integration tests (Electron)", on the same runner, with its own
timeout. The integration tests still run after an E2E failure, but not
after cancellation.
- ADO: a new integration-agent-host-e2e test ID runs in the same jobs as,
and before, integration-electron. It has its own checkpoint, so a rerun
skips whichever unit already passed.
- Change detection treats the new scripts as infrastructure. Tests pin the
workflow wiring and the ADO test ID inventory, and the docs are updated.
Co-authored-by: Copilot <[email protected]>
Alexandru Dima (alexdima)
force-pushed
the
agents/split-agent-host-e2e-ci-step
branch
from
October 18, 2026 09:00
41f2ae9 to
9278152
Compare
Co-authored-by: Copilot <[email protected]>
The flaky-detection pipelines call scripts/test-integration.{sh,bat} in each
iteration, so moving Agent Host E2E out of that script silently dropped it
from their repeated runs on all three platforms.
- Add an Agent Host E2E step before the integration step in each iteration
of product-smoke-flaky-{linux,darwin,win32}.yml. It has the same
packaged-product environment, continueOnError and, on Windows, the same
iteration shard.
- Add a test that every CI step running the integration tests, in GitHub
Actions or Azure DevOps, has an Agent Host E2E step in the same file with
the same command and environment. It fails for the three flaky pipelines
without this change.
- Drop a comment from the ADO E2E steps so the two steps differ only in the
script they call.
Co-authored-by: Copilot <[email protected]>
…ation scripts exclude
test-integration.{sh,bat} exclude the Agent Host E2E entrypoints by glob and
scripts/test-agent-host-e2e runs them from the runner's own list. Assert that
the two sets match, and that both scripts use the same glob, so a new E2E
entrypoint cannot silently stop running.
Co-authored-by: Copilot <[email protected]>
Alexandru Dima (alexdima)
marked this pull request as ready for review
October 18, 2026 13:38
Alexandru Dima (alexdima)
enabled auto-merge (squash)
October 18, 2026 13:38
Ladislau Szomoru (lszomoru)
approved these changes
Oct 18, 2026
Alexandru Dima (alexdima)
deleted the
agents/split-agent-host-e2e-ci-step
branch
October 18, 2026 14: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.

Summary
Agent Host E2E moves out of
scripts/test-integration.{sh,bat}and becomes its own test unit, with its own script, CI step, timeout and Azure DevOps test ID. It is wired the same way in GitHub Actions and Azure DevOps.scripts/test-integration.{sh,bat}scripts/test-agent-host-e2e.{sh,bat}🧪 Run integration tests (Electron)🧪 Run Agent Host E2E tests (Electron)integration-electronintegration-agent-host-e2eNote
For now, Agent Host E2E still runs on the same machine, as its own step right before
🧪 Run integration tests (Electron). This PR does not move it to a separate job or VM. It is the groundwork that makes that a small follow-up, so E2E can run in parallel with the other integration tests and be retried on its own.Why
Agent Host E2E is the slowest and the flakiest part of the Electron integration tests. Bundling it with every other integration suite made both problems worse.
It is the long pole
Successful
Windows / Electronintegration steps inpr.yml, Oct 10–17 (n = 317). Agent Host E2E is skipped when a PR can't affect it, so the runs split cleanly:🧪 Run integration tests (Electron)Agent Host E2E adds about 16 minutes at the median, more than all other integration suites combined. With it, 13% of healthy runs took 28 minutes or more of a 30-minute budget.
The split steps in this PR's own CI show the same:
It is where the flakes are
All 6 of 6 flaky failures of the Electron integration step from Oct 10–17 trace back to Agent Host E2E. "Flaky" means the job failed, then passed when the same SHA was re-run.
target is busy, held by an orphaned Codex sandbox). #342277 mitigates this; it counted 13 such failures in 10 days, about 1 in 217 PR runs.Bundling makes it worse
integration-electronunit, including about 6–9 minutes of other suites that had already passed.What this PR gives today
🧪 Run Agent Host E2E tests (Electron)or🧪 Run integration tests (Electron).succeeded()condition, so it is skipped and the job fails, as before.What it enables next (not in this PR)
Changes
scripts/test-agent-host-e2e.{sh,bat}. Runs the parallel Agent Host E2E runner (test/integration/agentHost/runner.ts), forwards its options (--jobs,--grep,--build,--tfs), and handles theVSCODE_SKIP_AGENT_HOST_E2Eskip.npm run test-agent-host-e2estill works.scripts/test-integration.{sh,bat}no longer run Agent Host E2E. They still exclude its entrypoints from their serial node.js run.--run <one E2E file>still works; the runner uses it for each suite.pr-{linux,darwin,win32}-test.yml).🧪 Run Agent Host E2E tests (Electron)step, with the existing change detection and test profile, runs before🧪 Run integration tests (Electron).integration-agent-host-e2etest ID runs beforeintegration-electroninproduct-build-{linux,darwin,win32}-test.yml. It is registered intestCheckpoint.tsandpublish-test-checkpoint.yml, and added next tointegration-electronin all 15 job lists.product-smoke-flaky-{linux,darwin,win32}.ymlruns an Agent Host E2E step before the integration step.detect.tstreats the new scripts as test infrastructure, which forces the full test profile.build/lib/test/..shand.batscripts must use the same exclusion pattern.test-integrationmust have an Agent Host E2E step in the same file, with the same command and environment. It covers all 9 such files.integration-testsandagent-host-e2e-testsskills are updated.Safety: no tests dropped, and failures still fail CI
The same tests run, checked three ways.
main, the only behavioral change intest-integration.{sh,bat}is the removed runner call. The extension-host sections are byte-identical.mainbuild 485709 (old flow, same base commit) and 485718 (new flow) have identical result files and per-suite test counts: 3226 tests on macOS, 3222 on Linux, 3879 on Windows.Failures still fail CI, checked by adding failing tests in draft #342386 (do not merge):
exited with code '1'exited with code '1'continueOnError, as intended)On Windows, this covers both
.batscripts under GitHub'spwshand Azure DevOps'sexec { }.Validation
cd build && node --test lib/test/agentHostTestSelection.test.ts lib/test/testCheckpoint.test.ts lib/test/testCheckpointTemplates.test.ts lib/testAgentHostE2EStartup.test.ts: passed (41/41)*AgentHostE2E.integrationTest.tsfile is added.integration-agent-host-e2eis removed from one job list../scripts/test-agent-host-e2e.sh --grep "provider session config schema is exposed through AHP": all 6 suites pass, exit 0.VSCODE_SKIP_AGENT_HOST_E2E=1, the script prints the skip message and exits 0.--jobs 0, it exits 1.npm run eslinton the changed TypeScript,bash -non the.shscripts, and parsing of every changed YAML file: passed.build/tests.VSCODE_BUILD_TYPE=CI, no publishing): succeeded on Windows, Linux and macOS. Both units recorded their own checkpoints.Agents Window (SSH Dev Container AgentHost)timed out waiting for a response.