Skip to content

test: run the API integration tests alone in parallel integration runs - #345922

Merged
Justin Chen (justschen) merged 1 commit into
mainfrom
test/integration-api-suites-alone
Nov 3, 2026
Merged

Justin Chen (justschen) merged 1 commit into
mainfrom
test/integration-api-suites-alone

Conversation

@lramos15

Copy link
Copy Markdown
Member

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), and Linux / 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 contributed
  • basic browser tool interactions: The code has not finished executing yet
  • chat - run_in_terminal: run_in_terminal tool should be registered

These 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.sh gets run_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.sh and scripts/test-remote-integration.sh mark the api group with it. Sequential runs (no INTEGRATION_TEST_PARALLEL) are unchanged.
  • .github/skills/integration-tests/SKILL.md is 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

  • A harness of fake suites under the macOS default bash 3.2, recording when each suite starts and ends:
    • With run_group_alone api, both API suites finish before any other suite starts, and the others then run 2 at a time.
    • A failing API suite is reported as itself, the other suites still run, and the run exits 1.
    • Without run_group_alone, and in sequential mode, the order is as before.
  • bash -n on the three scripts: OK
  • CI: this PR changes the scripts, so the Linux and macOS extension host and remote integration steps run. Their logs start with Running 2 suites alone, then … suites in 2 parallel lanes.

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>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 21:10

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 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_alone to 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

@justschen
Justin Chen (justschen) enabled auto-merge (squash) November 3, 2026 22:02
@justschen
Justin Chen (justschen) merged commit 25e405b into main Nov 3, 2026
60 checks passed
@justschen
Justin Chen (justschen) deleted the test/integration-api-suites-alone branch November 3, 2026 22:03
@vs-code-engineering vs-code-engineering Bot added this to the 1.146.0 milestone Nov 3, 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