Repository navigation
test: run the API integration tests alone in parallel integration runs - #345922
Merged
Merged
Conversation
Since the extension host and remote integration suites run in 2 parallel lanes, API tests (folder) failed in 3 of 5 Linux runs: its tests wait a fixed time for the browser and terminal tools to register and for browser pages to respond, and the other lane's VS Code instance delays them past that time. Run the API group first, with no other suite at the same time, and the other suites in the lanes afterwards. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change that isolates API suites before the remaining parallel test lanes.
No open issues 🎉
What changed in this PR
This PR addresses timing-sensitive API integration test failures introduced by parallel execution. It runs API suites alone before starting the remaining parallel lanes, reducing CPU contention while preserving parallelism for other suites.
Changes:
- Adds
run_group_aloneto schedule selected groups before parallel lanes start. - Marks API suites for isolated execution in both local and remote integration runners.
- Documents the scheduling behavior; sequential execution and per-suite failure reporting remain unchanged.
No actionable findings remain.
| File | Description |
|---|---|
scripts/test-remote-integration.sh |
Marks remote API suites to run alone. |
scripts/test-integration.sh |
Marks extension host API suites to run alone. |
scripts/integration-test-suites.sh |
Adds isolated-group scheduling before parallel lanes. |
.github/skills/integration-tests/SKILL.md |
Documents API suite isolation and its rationale. |
Review effort: Balanced
Justin Chen (justschen)
approved these changes
Nov 3, 2026
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.
Fixes a regression from #345867. Since it merged, the extension host and remote integration suites on Linux and macOS run in 2 parallel lanes, and
API tests (folder)fails in many Linux runs:Linux / Electron (extension host)failed in 3 of the first 5 runs (#345871, #345914, #345916), andLinux / Remote (integration)failed in 1 of 6. Every failure is in that suite:chat - browser tools:open_browser_page tool should be registered,Tool open_browser_page was not contributedbasic browser tool interactions:The code has not finished executing yetchat - run_in_terminal:run_in_terminal tool should be registeredThese tests wait a fixed time (10s) for the browser and terminal tools to register, and for browser pages to respond. With another VS Code instance running in the other lane, the API suite is slow enough to miss those deadlines. With 4 lanes, #345867's first CI run already showed this: the suite took 2 minutes instead of 30s. It passed with 2 lanes in that PR's run, but not reliably.
Change
scripts/integration-test-suites.shgetsrun_group_alone <group>. In a parallel run, the suites of such a group run first, with no other suite at the same time. The other groups then run in the lanes, longest first, as before. Failures are still reported per suite, and the run still fails at the end.scripts/test-integration.shandscripts/test-remote-integration.shmark theapigroup with it. Sequential runs (noINTEGRATION_TEST_PARALLEL) are unchanged..github/skills/integration-tests/SKILL.mdis updated.The other suites keep their lanes. On Linux, the extension host step should take about 45–50s for the API tests plus about half of the other ~165s, so roughly 135s instead of 212s before #345867.
How to test
run_group_alone api, both API suites finish before any other suite starts, and the others then run 2 at a time.run_group_alone, and in sequential mode, the order is as before.bash -non the three scripts: OKRunning 2 suites alone, then … suites in 2 parallel lanes.