Repository navigation
test(vscode): add test-cli lifecycle baseline - #9592
Open
Brian Lam (lambrianmsft) wants to merge 336 commits into
Open
Brian Lam (lambrianmsft) wants to merge 336 commits into
Brian Lam (lambrianmsft) wants to merge 336 commits into
Conversation
Contributor
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
❌ Risk Level
✅ What & Why
✅ Impact of Change
✅ Test Plan
✅ Contributors
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | None |
| Commit Type | ✅ | None |
| Risk Level | ❌ | Change body to Medium and label to risk:medium |
| What & Why | ✅ | None |
| Impact of Change | ✅ | None |
| Test Plan | ✅ | None |
| Contributors | ✅ | None |
| Screenshots/Videos | Not required (no UI change) |
This PR is blocked only by the Risk Level mismatch: the declared High does not match the advised Medium. Re-select Medium in the body and set risk:medium, and this PR will pass.
Powered by: Copilot CLI (claude-opus-4.8) | Last updated: Wed, 04 Nov 2026 19:41:54 GMT
Contributor
There was a problem hiding this comment.
Note
Copilot was unable to run its full agentic suite in this review.
Pull request overview
Adds a latest-stable @vscode/test-cli E2E baseline for the VS Code Logic Apps extension, enabling Create Workspace and select lifecycle tests to run independently of ExTester while improving CI visibility.
Changes:
- Added root and app-level
pnpmscripts plus Node wrappers to run label-based CLI E2E and multi-host lifecycle flows. - Introduced new CLI E2E test utilities (dialog guard, CDP helpers, screenshots) and expanded smoke / Create Workspace coverage.
- Updated CI (
vscode-e2e.yml) to run a Create Workspace CLI matrix with structured results + aggregate reporting.
Reviewed changes
Copilot reviewed 33 out of 44 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Adds root-level forwarding scripts for new CLI E2E entry points. |
| libs/vscode-extension/src/graphify-out/GRAPH_REPORT.md | Updates generated graph report snapshot metadata/content. |
| libs/data-mapper-v2/src/graphify-out/GRAPH_REPORT.md | Updates generated graph report snapshot metadata/content. |
| libs/chatbot/src/graphify-out/GRAPH_REPORT.md | Updates generated graph report snapshot metadata/content. |
| libs/a2a-core/src/graphify-out/GRAPH_REPORT.md | Updates generated graph report snapshot metadata/content. |
| apps/vs-code-designer/src/test/e2e/workspaceArtifacts.ts | Adds helpers/assertions for generated workspace artifacts (tasks/launch/settings/csproj). |
| apps/vs-code-designer/src/test/e2e/webviewTabs.ts | Adds helpers to find/wait/close webview tabs in VS Code. |
| apps/vs-code-designer/src/test/e2e/visibleDelay.ts | Adds optional “keep host visible” delay for local debug runs. |
| apps/vs-code-designer/src/test/e2e/testUtils.ts | Adds small string/path helper utilities for tests. |
| apps/vs-code-designer/src/test/e2e/screenshot.ts | Adds screenshot capture utilities (Windows screen + CDP). |
| apps/vs-code-designer/src/test/e2e/extension.test.ts | Expands activation smoke to assert dist loading, dependencies, empty startup, and dialog suppression. |
| apps/vs-code-designer/src/test/e2e/dialogGuard.ts | Adds dialog interception/allowlist to fail tests on unexpected prompts. |
| apps/vs-code-designer/src/test/e2e/createWorkspaceTypes.ts | Adds typed models for Create Workspace test cases. |
| apps/vs-code-designer/src/test/e2e/createWorkspaceParityMap.md | Documents ExTester↔CLI parity mapping for Create Workspace + lifecycle coverage. |
| apps/vs-code-designer/src/test/e2e/createWorkspaceCases.ts | Adds curated Create Workspace case generators and label filtering. |
| apps/vs-code-designer/src/test/e2e/commands.test.ts | Replaces generic command listing with explicit Logic Apps command/config assertions + dialog guard. |
| apps/vs-code-designer/src/test/e2e/cdpFormHelpers.ts | Adds CDP-based Create Workspace webview interaction helpers (fields, dropdowns, radios). |
| apps/vs-code-designer/src/test/e2e/cdpClient.ts | Adds a lightweight CDP client to connect to VS Code’s remote debugging targets. |
| apps/vs-code-designer/src/test/e2e/azureAuthWarmup.test.ts | Adds Azure auth warm-up test for durable local profiles. |
| apps/vs-code-designer/src/test/e2e/README.md | Major documentation expansion for running CLI E2E locally and in CI. |
| apps/vs-code-designer/src/main.ts | Adds env-gated minimal activation and env-gated workspace ensure skip for CLI test runs. |
| apps/vs-code-designer/src/app/utils/codeless/getAuthorizationToken.ts | Adds test-gated env token fallback for silent auth; fixes return type to allow undefined. |
| apps/vs-code-designer/src/app/utils/codeless/test/getAuthorizationToken.test.ts | Adds unit coverage for the new test-gated Azure CLI token fallback behavior. |
| apps/vs-code-designer/scripts/summarize-e2e-cli-results.js | Adds Mocha log parsing + JSON/JUnit/summary generation and aggregate reporting. |
| apps/vs-code-designer/scripts/run-e2e-cli.js | Adds wrapper to run labels/lifecycle flows, filter noise, enforce “no dialogs”, and clean temp workspaces. |
| apps/vs-code-designer/scripts/open-e2e-cli-vscode.js | Adds helper to open latest-stable VS Code with an isolated profile for interactive verification/auth. |
| apps/vs-code-designer/package.json | Replaces direct vscode-test call with wrapper scripts for CLI E2E and lifecycle flows. |
| apps/vs-code-designer/.vscode-test.mjs | Expands @vscode/test-cli config to multiple labels, env forwarding, and per-run user-data settings. |
| .squad/knowledge/vscode-e2e-testing.md | Documents learnings/patterns for CLI Create Workspace CI structured results and parity scripts. |
| .github/workflows/vscode-e2e.yml | Adds Create Workspace CLI matrix job + aggregate report job and wires into overall summary. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Brian Lam (lambrianmsft)
force-pushed
the
lambrian-microsoft-vs-code-test-cli-baseline
branch
from
September 1, 2026 22:27
ef950fb to
097593f
Compare
Brian Lam (lambrianmsft)
deployed
to
standalone-ephemeral
September 15, 2026 19:04 — with
GitHub Actions
Active
Brian Lam (lambrianmsft)
force-pushed
the
lambrian-microsoft-vs-code-test-cli-baseline
branch
2 times, most recently
from
October 2, 2026 00:34
c683e04 to
262e1da
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Expose truthful original-process closure markers and require retained-original identity proof for acceptance. Permit explicit isolated parent-owned diagnostic execution without deleting fixture/history evidence or promoting GUI/exit-zero observations to cleanup approval. Preserve the exact three phases and blocked retained-identity gate. Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> # Conflicts: # apps/vs-code-designer/package.json # apps/vs-code-designer/scripts/e2e-cli-batch.js # apps/vs-code-designer/scripts/run-e2e-cli.js
Report originalProcessClosureVerified=false and original-identities-unverified in custom direct/archive receipts until a genuine retained-original-identities observer is integrated. Do not promote ordinary exits, removed directories, post-exit ancestry or caller/model flags to acceptance proof. Add controls and preserve diagnostic GUI/phase evidence without framework or pipeline changes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Brian Lam (lambrianmsft)
force-pushed
the
lambrian-microsoft-vs-code-test-cli-baseline
branch
from
November 24, 2026 19:12
631d140 to
2feee1a
Compare
| cdp.evaluate<Point | null>( | ||
| context, | ||
| `(() => { ${workbenchVisibleScript} | ||
| const found=Array.from(document.querySelectorAll(${JSON.stringify(selector)})).filter(visible) |
| context, | ||
| `(() => { ${workbenchVisibleScript} | ||
| const found=Array.from(document.querySelectorAll(${JSON.stringify(selector)})).filter(visible) | ||
| .filter(e => ${exact ? 'normalized(text(e))===' : 'normalized(text(e)).includes('}normalized(${JSON.stringify(label)})${exact ? '' : ')'} && |
| cdp.evaluate<{ point: Point | null }>( | ||
| context, | ||
| `(() => { ${workbenchVisibleScript} | ||
| const all=Array.from(document.querySelectorAll(${JSON.stringify(selector)})); |
| const hit=document.elementFromPoint(p.x,p.y); | ||
| return {text:text(e),ariaLabel:e.getAttribute('aria-label'),title:e.getAttribute('title'), | ||
| visible:visible(e),enabled:!e.disabled && e.getAttribute('aria-disabled')!=='true', | ||
| matches:${exact ? 'normalized(text(e))===' : 'normalized(text(e)).includes('}normalized(${JSON.stringify(label)})${exact ? '' : ')'}, |
| enabled: !e.disabled && !e.closest('[aria-disabled="true"], .disabled'), | ||
| point: point(e), | ||
| })); | ||
| const matches=candidates.filter(entry => normalized(entry.text)===normalized(${JSON.stringify(label.replace(/…/g, '...'))}) && entry.enabled && entry.point); |
| '.explorer-viewlet .monaco-list-row, .explorer-folders-view .monaco-list-row' | ||
| )).filter(visible).filter(row => { | ||
| const classes = row.className || ''; | ||
| return text(row).includes(${JSON.stringify(fileName)}) && |
| hitTestable:!!point(row)}; | ||
| }; | ||
| const candidates=rows.map(read); | ||
| const expected=${JSON.stringify(expected)}; |
| `(() => { ${visibleScript} | ||
| const rows=Array.from(document.querySelectorAll('.explorer-folders-view .monaco-list-row[aria-level="1"]')).filter(visible); | ||
| const roots=rows.map(e=>text(e.querySelector('.label-name') || e)); | ||
| const matches=rows.filter(e=>text(e.querySelector('.label-name') || e)===${JSON.stringify(label)}); |
| undefined, | ||
| `(() => { ${visibleScript} | ||
| const ownerPresent = Array.from(document.querySelectorAll('iframe')).some(e => { | ||
| try { return new URL(e.src).hostname === ${JSON.stringify(owner)}; } catch { return false; } |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reacquire the live Add Action target once after a pre-input browser hit-test failure, while preserving the original center-point route and preventing retries after trusted input begins. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use the designer's trusted Fit view control before resolving the last Add Action target so lower workflow handles are browser-visible on Windows. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Set the managed Guardian ESLint runtime independently from the Node 22 E2E jobs, and record the tracked jschardet engine-strict mitigation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Accept exact semantic operation-card replacements during trusted input and zoom out once after Fit so append handles remain browser-visible in short Windows viewports. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use a run-owned identity marker so Windows rename-and-recreate controls cannot pass when NTFS immediately reuses directory metadata. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use compact manifest-driven evidence paths and publish a script-free evidence.html with verified screenshots embedded for one-file offline review. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch was successfully deployed
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.
Commit Type
Risk Level
What & Why
Consolidates the VS Code
@vscode/test-clilifecycle baseline, source-bound Linux/Windows E2E orchestration, authentication, diagnostics, evidence, and pipeline controls into one PR and one shared branch history. ExTester remains available for existing deep-webview coverage; this is not a wholesale replacement.The final scope preserves real UI interaction and production behavior while making the ADO baseline and its artifacts deterministic and easier to review:
.vscodefiles,.NET 10regeneration settings, codeful workflow-type translation, extension-pack readiness, and exact monitoring/panel ownership.e/NNN.{png,json}andd/x-<hash>.{png,json}paths while preserving semantic checkpoint identity in the manifest.evidence.html, a script-free offline report with verified screenshots embedded as data URIs, so reviewers can download one file instead of the Markdown plus image tree. Markdown and JSON remain compatibility/machine contracts; oversized or unavailable image embedding degrades without changing the lane verdict.Final head is
8fd75e7c13d3dc306d3af499da9aaf48bab6295f. The fork branchlambrian-microsoft-vs-code-test-cli-baselineand Azure ADO branchlambrian/test-cli-baseline-changespoint to this exact commit with identical history.Impact of Change
Test Plan
Completed validation:
npx biome check --write <changed-files>— passed.node --test apps/vs-code-designer/scripts/vscode-e2e-evidence-report.unit.test.js— 19/19 passed.node apps/vs-code-designer/scripts/pipeline-contract.unit.test.js— passed.pnpm --dir apps/vs-code-designer run test:e2e-cli:build— passed after the final changes.16147694at exact SHA8fd75e7c13d3dc306d3af499da9aaf48bab6295f— all 11 Linux suites, all 12 Windows suites, managed Guardian SDL analysis, and the protected both-OS full rollup passed on attempt 1.evidence.htmlwas 4.63 MiB with embedded images;e/contained 72 compact files,d/contained 16 compact files, and no legacyscreenshots/folder was published.Contributors
Brian Lam (@lambrianmsft)
Screenshots/Videos
Not applicable — this PR changes test infrastructure, lifecycle controls, evidence, and pipeline configuration rather than product UI.