Repository navigation
test(vscode): add test-cli lifecycle baseline - #9592
Open
Brian Lam (lambrianmsft) wants to merge 333 commits into
Open
Brian Lam (lambrianmsft) wants to merge 333 commits into
Brian Lam (lambrianmsft) wants to merge 333 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
Do not certify post-exit ancestry as retained process exit proof. Preserve the family implementation, prevent direct/batch cleanup-green finalization, and stop native launch until case-scoped live Code/Func/task/Azurite identity coverage exists. Add PID1 reparenting, exited-parent, PID-reuse, missing-birth and inaccessible-proof diagnostic controls without an ownership framework or broad kill. Co-authored-by: Copilot <copilot@github.com>
…ontract Refresh canonical app-root terminal/cleanup paths before admission and finalize standardized lifecycle evidence only after actual native phase closure, evidence checks and owned-root removal. Include exact ordered phase completeness and missing/unexpected/duplicate/blocked arrays, diagnostics and phase proofs using existing branch wrapper helpers. Add freshness/cleanup/partial-phase controls without copying parent implementation or changing counts/native claims. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Expose originalProcessClosureVerified and processClosureProof solely from the actual observer's retainedOriginalIdentitiesVerified flag. Current legacy post-exit ancestry lacks that proof and therefore reports false/original-identities-unverified even after GUI phases and root cleanup succeed. Assert the truthful marker in existing controls without synthesizing identity proof or changing phase/history outcomes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <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>
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>
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. ExTester remains available for existing deep-webview coverage; this is not a wholesale replacement.The final scope removes temporary product-side test accommodations and restores production behavior:
Head
2feee1a1e36211c4adbb829388360c4857d8a94emerges the accepted E2E history through3b7e2fdee6cca71c60412bc070c3af5063764c57with mainb454249957be387410d5d54f85025f09f69d4836. This includes #9707 consistency-check opt-out andhost.jsonbehavior along with recent main changes.The fork branch
lambrian-microsoft-vs-code-test-cli-baselineand Azure mirror branchlambrian/test-cli-baseline-changespoint to the exact same commit and history. Risk remains High because this is a broad extension-test and pipeline consolidation; fresh CI and source-bound ADO validation are still required for the final merge SHA.Impact of Change
host.jsonbehavior is preserved.Test Plan
Completed validation:
test:e2e-cli:compilepassed.test:e2e-cli:unitpassed after the final fixes.test:e2e-cli:buildpassed, covering the extension build, VS Code React build, compilation, and full controls.16058353accepted 11 Linux suites, 12 Windows suites, and the protected rollup at accepted SHA27123d86. This is historical evidence only; it does not validate final head2feee1a1.Contributors
Brian Lam (@lambrianmsft)
Screenshots/Videos
Not applicable — this consolidated PR is primarily test infrastructure and product cleanup with no visual UI change. Existing attached diagnostic screenshots document the retained-notification issue; no additional screenshots are required.