Repository navigation
ci: run only the integration tests a change can affect on macOS and Windows - #344146
Merged
Alexandru Dima (alexdima) merged 5 commits intoOct 25, 2026
Merged
Conversation
The plan is about to cover the integration tests too. Renames the artifact and its folder (.build/unit-test-plan to .build/test-plan) and the input of the macOS and Windows test workflows (unit_test_selection to test_selection). No behavior change. Co-authored-by: Copilot <[email protected]>
`ripple plan` now also selects the integration test files a change can affect: plan.json has an `integration` object (`select`, `reason`, `files`), and `--out-dir` writes the selected files to integration.txt, like unit.txt. The job summary gets an "Integration test plan" section. A new configuration group, `runEveryIntegrationTest`, lists the files outside the module graph that only the integration tests depend on: changing one runs every integration test, but no unit test. As for `runEverything`, the scripts its scripts load through relative imports and the npm packages they load count too (`runEverything` scripts first, so a script both groups load runs everything). vscode.jsonc lists the integration test scripts and the Agent Host E2E runner. `runEverything` keeps running every test, unit and integration. `affected` and `blame` honor the new group, and `replay` reports `runAllIntegration` and `declIntegrationTestFiles` per commit. Co-authored-by: Copilot <[email protected]>
The Agent Host E2E runner takes `--runList <file>`, like the unit test runners: it runs only the suites whose files the list names, one per line, and exits before preparing the test runtime when it names none. It passes the list on to its storage passes and does not forward it to the suites, which it runs with `--run`. scripts/test-integration.sh and .bat document `--runList`, which they already forwarded to the node.js test runner, and treat it as a filter like `--run` and `--runGlob`: the extension host suites, which no list names, do not run. Co-authored-by: Copilot <[email protected]>
The macOS and Windows Electron jobs, and the Windows Agent Host E2E job, now download the test plan and pass its integration.txt with `--runList` to scripts/test-integration.sh (the node.js integration tests) and to the Agent Host E2E runner. Linux keeps running every integration test. `Check ripple` tells the Agent Host E2E suites (AGENT_HOST_E2E, kept in sync with the runner by agentHostTestSelection.test.ts) from the other integration tests that the plan selects, and Detect Changes outputs `selected-node-integration-tests` and `selected-agent-host-e2e`. The node.js integration test step is skipped when the plan selects none of its files (new input `node_integration_tests`), and Agent Host E2E (the macOS step, the Windows job) when it selects no suite and as before when the affected-file check does not select it. A failed, missing or run-everything plan runs every integration test, and so does a change to the integration test scripts (`runEveryIntegrationTest`). When planning fails, the job summary also says that every integration test runs. On the last 300 first-parent commits of main (Oct 21 to 25), the plan selects no integration test for 72% of them, some (29 of 68 files on average) for 20%, and every test for 8%. With the path-based checks alone, the macOS and Windows node.js integration tests ran for 99.7% of them and Agent Host E2E for 42%; with the plan, for 28% and 25%, and never where they did not run before. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The coverage-reducing skip paths need representative macOS and Windows CI validation because this PR itself forces full test execution.
No open issues 🎉
What changed in this PR
Extends ripple’s existing unit-test selection to node.js integration tests and Agent Host E2E suites on macOS and Windows, reducing CI work while preserving Linux coverage and existing extension host runs.
Changes:
- Adds integration plans, output lists, summaries, and integration-only fallback triggers to ripple.
- Adds Agent Host suite filtering through
--runListand updates integration launcher behavior. - Wires selection into CI, renames the artifact to
test-plan, and updates configuration tests and documentation.
No actionable defects were identified. The new selective paths remain unexercised by this PR’s own CI because its changes trigger full test execution.
| File | Description |
|---|---|
test/unit/README.md |
Documents integration use of test lists. |
test/integration/agentHost/runner.ts |
Filters suites and sizes workers to the selection. |
src/vs/platform/agentHost/test/node/e2e/README.md |
Explains platform-specific suite selection. |
scripts/test-integration.sh |
Treats --runList as a node.js test filter. |
scripts/test-integration.bat |
Adds equivalent Windows filter handling. |
scripts/test-agent-host-e2e.sh |
Documents suite-list filtering. |
scripts/test-agent-host-e2e.bat |
Documents Windows suite-list filtering. |
build/ripple/vscode.jsonc |
Defines integration-only fallback triggers. |
build/ripple/src/main.rs |
Emits integration plans and updates reporting commands. |
build/ripple/src/engine.rs |
Tracks scoped launcher dependencies and selection reasons. |
build/ripple/src/deps.rs |
Handles integration-only package dependencies. |
build/ripple/src/config.rs |
Parses integration trigger groups and scope precedence. |
build/ripple/README.md |
Documents planning behavior, fallbacks, and limitations. |
build/lib/test/detectChanges.test.ts |
Checks selection outputs and workflow wiring. |
build/lib/test/agentHostTestSelection.test.ts |
Checks runner arguments and suite classification. |
.github/workflows/pr.yml |
Publishes plans and controls integration skips. |
.github/workflows/pr-win32-test.yml |
Consumes test plans in Windows runners. |
.github/workflows/pr-darwin-test.yml |
Consumes test plans in macOS runners. |
Review effort: Balanced
- Changes to src/bootstrap-*.ts run every integration test (a new `runEveryIntegrationTest` group).
Integration tests fork src/bootstrap-fork.ts through `FileAccess.asFileUri('bootstrap-fork')`,
which ripple cannot resolve, so these changes selected no integration test, and macOS and
Windows skipped them, including Agent Host E2E, which the affected-file check runs for any
src/bootstrap* change. They touched 20 of 17,789 first-parent commits of main in 12 months.
- Restore the ripple README's description of the Browser unit test skip of #344108, which the
rebase onto it dropped.
- Test that the Agent Host E2E runner runs only the suites that a `--runList` file lists, also with
Windows line endings and separators, and that it prepares nothing when the list names none.
- The Ripple job says that ripple plans the tests, not the unit tests.
Co-authored-by: Copilot <[email protected]>
Alexandru Dima (alexdima)
marked this pull request as ready for review
October 25, 2026 17:51
Alexandru Dima (alexdima)
enabled auto-merge (squash)
October 25, 2026 17:51
Ladislau Szomoru (lszomoru)
approved these changes
Oct 25, 2026
Alexandru Dima (alexdima)
deleted the
agents/ripple-testing-strategies-expansion
branch
October 25, 2026 17:55
This was referenced Oct 25, 2026
Alexandru Dima (alexdima)
added a commit
that referenced
this pull request
Oct 25, 2026
…mization-flaky-tests Resolves the conflicts with #344146 and #344148: a pull request that only disables tests also forces the new selected-node-integration-tests and selected-agent-host-e2e outputs to false, so that the Windows Agent Host E2E job skips too, and ripple's new COMMANDS list includes disables. Co-authored-by: Copilot <[email protected]>
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.
Follow-up to #342907 and #344108: ripple now also plans the integration tests, and the macOS and Windows Electron jobs run only the node.js integration tests and Agent Host E2E suites that a change can affect. Linux keeps running every integration test, as it does every unit test.
On the last 300 first-parent commits of
main(Oct 21 to 25), with the change detection of.github/actionsand this PR's ripple:Neither runs where it does not run today. The plan selects no integration test for 72% of these commits, some for 20% (29 of 68 files on average), and every test for 8%. In a recent run, the node.js integration tests took 5.5 minutes on macOS and 8.5 on Windows, and Agent Host E2E 4.6 minutes on macOS and a 14-minute job on Windows: about 13 machine-minutes per push on average.
Changes
unit-test-planartifact totest-plan, and theunit_test_selectioninput of the macOS and Windows test workflows totest_selection. No behavior change.plan.jsongets anintegrationobject (select,reason,files),--out-dirwritesintegration.txtnext tounit.txt, and the job summary gets an "Integration test plan" section. A new configuration group,runEveryIntegrationTest, lists the files outside the module graph that only integration tests depend on (scripts/test-integration.*,scripts/test-agent-host-e2e.*,test/integration/agentHost/**): changing one runs every integration test but no unit test. It also listssrc/bootstrap-*.ts: integration tests forksrc/bootstrap-fork.tsthroughFileAccess.asFileUri('bootstrap-fork'), which ripple cannot resolve, so a change to these files would otherwise select none of them.runEverythingstill runs everything, also when one of its scripts loads a file of the new group.affected,blameandreplayknow the new group.--runListfor the integration test scripts. The Agent Host E2E runner runs only the listed suites, and exits before preparing the test runtime when the list names none.scripts/test-integration.shand.batalready forwarded--runListto the node.js runner; they now document it and treat it as a filter, so the extension host suites do not run with it.build/lib/testAgentHostE2EStartup.test.tschecks that the runner runs only the listed suites (also with Windows line endings and separators) and prepares nothing when the list names none.Check ripplesplits the planned integration test files into Agent Host E2E suites (AGENT_HOST_E2E, which a test keeps in sync with the runner's suite list) and the others, and Detect Changes outputsselected-node-integration-testsandselected-agent-host-e2e. When the plan selects none of their files, the macOS Electron job skips either step, the Windows Electron job its node.js integration tests, and the Windows Agent Host E2E job is skipped. Otherwise they passintegration.txtwith--runList.Unchanged: Linux; the extension host suites, which the Electron jobs still run; the browser, remote and smoke tests; and the Agent Host test profile. A failed or missing plan, or a change to a file that every test or every integration test depends on, runs every integration test. When planning fails, the job summary now says so for both plans.
Notes for reviewers
pr.ymland ripple, so its own CI runs every test. The new skip paths are first exercised by later pull requests.src/bootstrap-*.tsrun every integration test, because ripple cannot resolveFileAccess.asFileUri('bootstrap-fork'), which two integration tests use to forksrc/bootstrap-fork.ts. Abootstrap-path alias would select exactly the tests that reach it, butsrc/bootstrap-meta.tsreadspackage.json, so everypackage.jsonchange would then select them too. These files changed in 20 of 17,789 first-parent commits ofmainin the last 12 months, and in none of the 300 behind the numbers above.--runListtest, and the wording of theRipplejob.How to test
cd build/ripple && cargo test --release --locked: passed (75 tests).cargo fmt --check: clean.cargo clippy --release --locked: 25 warnings, the same as onmain.cd build && node --test lib/test/detectChanges.test.ts lib/test/agentHostTestSelection.test.ts lib/test/detectMissingCaches.test.ts lib/testAgentHostE2EStartup.test.ts: passed (27 tests). The new--runListtest fails when the runner ignores the list, stops normalizing backslashes, or prepares the runtime before checking the list.cd build && npm run typecheck: passed.npm run eslint -- build/lib/test/detectChanges.test.ts build/lib/test/agentHostTestSelection.test.ts build/lib/testAgentHostE2EStartup.test.ts test/integration/agentHost/runner.ts: passed.actionlint -shellcheck= .github/workflows/pr.yml .github/workflows/pr-darwin-test.yml .github/workflows/pr-win32-test.yml(1.7.12): the same 6 self-hosted runner label findings as onmain.Check ripplescript, extracted frompr.ymland run onripple planoutput for synthetic changes: a plan with both kinds of integration tests runs both steps; one with only node.js integration tests or only Agent Host E2E suites skips the other; one with none skips both. ArunEveryIntegrationTestchange (scripts/test-integration.sh) or arunEverythingchange (test/unit/electron/renderer.js) runs both, and so does a failed plan or build, whose job summary lists both plans. The browser unit test outputs of ci: skip macOS and Windows Browser unit jobs without browser tests, and report a failed ripple plan #344108 are unchanged in all of these.ripple planfor a change tosrc/bootstrap-fork.ts,src/bootstrap-esm.tsorsrc/bootstrap-cli.tsruns every integration test and selects the same unit tests as before (0, 3 and 0 files); a change toagentHostServerMain.tsstill selects the 6 Agent Host E2E suites and 22 node.js integration tests, and withRIPPLE_DEBUG, the new group adds no npm package whose update would run every integration test.VSCODE_SKIP_PRELAUNCH=1 ./scripts/test-agent-host-e2e.sh --runList=<file> --jobs 1with a list naming 2 of the 6 suites (CRLF line endings, backslashes, and a unit test besides): starts only Conformance and Claude. With a list naming none: prints "None of the 6 Agent Host E2E suites is listed in …" and exits 0 without preparing the runtime. (Without a local build, the two suites then fail to load: this checks which suites start.)ripple affectedwith this PR's binary on each of the last 300 first-parent commits ofmain, then thedetect.tsfunctions of.github/actionson each commit's changed files. Unit test selection does not change:ripple replayon 303 commits selects the same unit test files for each commit asmain's ripple.