Repository navigation
VS Code smoke test: set its own desktop display, not rely on an earlier step - #124
Merged
Merged
Conversation
…er step The smoke test drives the Inspector as on a desktop, so windows-integration set a 1920×1080 display with animations on in a step before it. That step had the default `if: success()`, while the smoke test runs `if: !cancelled()`: whenever the Browser smoke test (or the build) failed, the display stayed at the runner's 1024×768, VS Code's editor was narrower than the Inspector's two-panel layout, its Details toggle moved into More, and the test timed out waiting for the evidence of @demo/auth. Every such timeout came after a failed step, none after the display was set. run.mjs now sets the display and animations itself on a GitHub-hosted Windows runner, as it starts, so the result depends only on the smoke test. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The CLI browser-test script still contains a temporary forced failure, causing every Windows integration run to fail its browser smoke-test step without executing the suite.
1 open issue
What changed in this PR
This PR makes the VS Code smoke test establish its own desktop prerequisites, avoiding Inspector failures when an earlier CI failure skips display setup.
Changes:
- Sets a 1920×1080 display and enables animations before launching VS Code on GitHub-hosted Windows runners only.
- Documents the smoke test’s display setup.
- Changes the CLI browser-test command to a forced failure for verification.
| File | Description |
|---|---|
packages/integrations/vscode/test/smoke/run.mjs |
Configures display resolution and animations at smoke-test startup. |
packages/cli/package.json |
Replaces the Playwright browser-test command with exit 1. |
docs/maintainers/vscode-extension.md |
Documents automatic desktop setup on hosted Windows runners. |
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
agorischek
added a commit
that referenced
this pull request
Nov 21, 2026
…test now does itself (#130) #124 moved the 1920×1080 display and animations into the smoke test's runner, which sets them as it starts on a hosted Windows runner. The step before it was skipped whenever an earlier step failed, which is what timed the test out; it now only repeats what the test does. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

The flake
windows-integration→ VS Code extension smoke test failed with(
test/smoke/workflows/inspector.cjs:62) and passed on rerun.The race
It isn't a race in the extension or the webview: it's an ordering problem between CI steps.
The smoke test drives the Inspector as on a desktop, so
windows-integrationsets a 1920×1080 display with animations on in the step A desktop-sized display, with animations, just before it. That step has the defaultif: success(); the smoke test hasif: ${{ !cancelled() }}. Whenever an earlier step failed (in practice the Browser smoke test's CLIscreenshot --page, "The browser did not open its DevTools endpoint", the cold-start flake #93 fixed), the display step was skipped and the smoke test ran on the runner's 1024×768 display:overflowlevel and the Show details panel toggle moves into More actions.inspector.cjsclicksbutton[aria-label="Show details panel"]only if it's in the bar, so the Details panel (closed by default) never opens..ph-evidence button, .phv-evidence-link) is rendered only in that panel, so it never appears. The failure's own diagnostics say so:"details":[]means no element whose label ends in "details panel" exists, neither the toggle nor the open panel's Close details panel.Waiting longer couldn't help: the evidence wasn't late, it was never going to be shown. The rerun passed because the browser step passed and the display step ran.
The fix
test/smoke/run.mjsnow sets the display and animations itself (the sameSet-DisplayResolutionandSPI_SETCLIENTAREAANIMATIONcalls) on a GitHub-hosted Windows runner (RUNNER_ENVIRONMENT=github-hosted), as it starts and before it launches VS Code. The smoke test's precondition no longer depends on any earlier step's outcome, which also keeps it correct under the workflow restructure in progress. A local run, or a self-hosted runner, never changes the display.The
ci.ymlstep is now redundant. I didn't touchci.ymlbecause a parallel change is restructuring it; that change can drop the step (or give itif: ${{ !cancelled() }}).Evidence
The last 200
Projectionsruns (2026-11-20 05:35Z–21:08Z), every attempt ofwindows-integration:main(job 136523352834) and #90'sfix-windows-mcp-writeSet-DisplayResolutionis absent from every log)agorischek/column-gap,hosted-artifact-trust-contract,agorischek/edge-source-dot), each with the browser step passing on the rerun; the rest were cancelled or supersededSince #93 made the browser launch wait within the caller's budget, the step that skipped the display rarely fails; but any failure before the smoke test (a browser install, a build error, a harness test) would still have produced this second, misleading failure.
Verification in CI
windows-integrationon the final commit: 3 / 3 passed (attempt 1, attempt 2, attempt 3).tools check --fastpasses locally. Per the machine rules I didn't run the VS Code test host here.