Repository navigation
ci: run Agent Host E2E tests in their own job on Windows - #342735
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Cross-platform execution and required-check reporting need live GitHub Actions confirmation before approval.
No open issues 🎉
What changed in this PR
Moves Agent Host E2E tests into parallel GitHub Actions jobs, building on #342729’s required-check reporting while preserving existing check names.
Changes:
- Centralizes E2E change detection and passes test profiles to both test jobs.
- Adds separate E2E jobs on Linux, macOS, and Windows with distinct artifacts.
- Updates workflow wiring tests and documentation.
No actionable findings remain. Live cross-platform CI confirmation is still needed.
| File | Description |
|---|---|
src/vs/platform/agentHost/test/node/e2e/README.md |
Documents parallel E2E jobs and centralized detection. |
build/lib/test/detectChanges.test.ts |
Checks detection outputs and required-check wiring. |
build/lib/test/agentHostTestSelection.test.ts |
Verifies separate jobs and profile propagation. |
.github/workflows/pr.yml |
Adds E2E jobs and combines their required-check results. |
.github/workflows/pr-win32-test.yml |
Adds E2E inputs, artifact naming, and diagnostics. |
.github/workflows/pr-linux-test.yml |
Separates E2E execution through workflow inputs. |
.github/workflows/pr-darwin-test.yml |
Separates E2E execution through workflow inputs. |
.github/skills/smoke-tests/SKILL.md |
Documents prerequisite required-check reporting changes. |
.github/skills/integration-tests/SKILL.md |
Documents independent E2E jobs. |
.github/actions/detect-changes/detect.ts |
Adds prerequisite core-test selection rules. |
.github/actions/detect-changes/action.yml |
Exposes prerequisite core-test selection outputs. |
Review effort: Balanced
28a3a5d to
8b165a6
Compare
|
Copilot's review asks for confirmed cross-platform CI results. This PR's run on the current head (39351605782,
|
Detect Agent Host E2E changes once in the Detect Changes job. On Windows, where Agent Host E2E is the slowest part of the Electron job, run the suites in a separate Windows (run) / Agent-Host-E2E job in parallel with the integration tests; required-checks reports both as Windows / Electron. Linux and macOS keep running them in the Electron job, which now runs when either its integration tests or Agent Host E2E can be affected. Co-authored-by: Copilot <[email protected]>
8b165a6 to
43410d4
Compare
…b-pr-checks-efficiency main now runs the Agent Host E2E tests in their own job on Windows (#342735): Detect Changes gained a step, and the macOS and Windows test workflows gained inputs. Both sides are kept. Detect Changes keeps the full depth-2 checkout that ripple needs, which also contains the new detection action, so its test now accepts a checkout without a sparse list. Co-authored-by: Copilot <[email protected]>
On Windows, Agent Host E2E is the slowest part of
Windows / Electron, and that job is usually the slowest check in a pull request run. #342346 moved the suites into their own script and step, and #342492 runs them as their own Azure DevOps job. This PR runs them as their own GitHub Actions job on Windows, where the split makes runs finish sooner. Linux and macOS keep them in the Electron job.Changes
Detect Changes.changesjob runsdetect-agent-host-e2e-changesonce and exposesagent-host-e2e,agent-host-test-profileandagent-host-test-profile-reason.VSCODE_SKIP_AGENT_HOST_E2Eare removed from the three test workflows.Windows (run) / Agent-Host-E2Ejob.Windows (run) / Electron.required-checks(from ci: skip core test jobs that the changes cannot affect #342729) reportsWindows / Electronfrom both jobs. A skipped Agent Host E2E job only passes when detection succeeded and reportedagent-host-e2e: false.<OS> (run) / Electron.electron-testsoutput (product-testsoragent-host-e2e), so a skipped job can't hide Agent Host E2E.full, to the Agent Host E2E job and to all Electron integration jobs.-agent-host-e2esuffix, and itsJobIdrunner label is unique because it includes the job name.integration-testsskill describe the new layout, andagentHostTestSelection.test.tschecks the wiring on every platform.Expected impact
I replayed the split over every Code OSS run since Agent Host E2E became its own step (Oct 18 22:00 UTC to Oct 20: 642 runs, 663 attempts, including PRs that weren't merged), using each
<OS> / Electronjob's real step times.Windows / Electrondrops from a median 30.7 to 18.5 minutes, and it was the slowest job in 170 of those 206 attempts (83%).node_modulescache misses). When the 1ES pool is saturated, the extra job also waits for a machine (p90 wait ~12 minutes in the same window), which reduces the gain.How to test
fullprofile everywhere: in its own job on Windows, and in the Electron job on Linux and macOS.<OS> / Electronshould pass only when everything it covers passed.node --test lib/test/agentHostTestSelection.test.ts lib/test/detectChanges.test.tsinbuild/: 17 tests pass, including the wiring test and the integration/Agent Host E2E step pairing across the GitHub and Azure DevOps pipelines.actionlinton the four workflows: only the existing unknown self-hosted runner label findings.npm run eslintand a stricttsc --noEmiton the changed tests passed.Windows (run) / Agent-Host-E2Eas skipped, the Linux and macOS Agent Host E2E steps as skipped, and every<OS> / Electroncheck as passing.