Repository navigation
test: cover native policy ingestion in desktop smoke tests - #335107
Merged
Merged
Conversation
Exercise ExtensionsAutoUpdate with and without native OS policy on Linux, Windows, and macOS. Opt in from desktop CI and leave production policy selection unchanged. Refs #334560. Co-authored-by: Copilot <[email protected]> Copilot-Session: cea11743-4d3d-48b7-9b6d-8028b722593d
Co-authored-by: Copilot <[email protected]> Copilot-Session: cea11743-4d3d-48b7-9b6d-8028b722593d
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Cross-platform native policy mutation requires final validation from the disposable-runner CI results.
Review tier: Balanced
Findings: None
What changed in this PR
Adds opt-in desktop smoke coverage for native policy ingestion across Linux, Windows, and macOS.
Changes:
- Adds policy fixtures and parameterized Settings UI tests.
- Safely provisions and cleans OS-level policy state.
- Enables coverage in GitHub Actions and Azure Pipelines.
| File | Description |
|---|---|
test/smoke/src/main.ts |
Registers the opt-in policy suite. |
test/smoke/src/areas/policy/README.md |
Documents safety and execution requirements. |
test/smoke/src/areas/policy/policy.test.ts |
Tests managed and unmanaged settings behavior. |
test/smoke/src/areas/policy/nativePolicy.ts |
Implements platform-specific fixtures. |
build/azure-pipelines/win32/steps/product-build-win32-test.yml |
Enables Windows Azure coverage. |
build/azure-pipelines/linux/steps/product-build-linux-test.yml |
Adds Linux provisioning, coverage, and cleanup. |
build/azure-pipelines/darwin/steps/product-build-darwin-test.yml |
Enables macOS Azure coverage. |
.github/workflows/pr-win32-test.yml |
Enables Windows PR coverage. |
.github/workflows/pr-linux-test.yml |
Adds Linux PR provisioning and cleanup. |
.github/workflows/pr-darwin-test.yml |
Enables macOS PR coverage. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Ross Wollman (rwoll)
marked this pull request as ready for review
September 8, 2026 17:08
Ross Wollman (rwoll)
enabled auto-merge
September 8, 2026 17:27
Martin Aeschlimann (aeschli)
approved these changes
Sep 8, 2026
Anthony Kim (anthonykim1)
approved these changes
Sep 8, 2026
Paul (pwang347)
approved these changes
Sep 8, 2026
Raymond Zhao (rzhao271)
approved these changes
Sep 8, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Policies had not previously been covered by Smoketests, but they are a critical feature. Adds an initial smoketest to start building off of.
Ran the pipeline on the following 10x to ensure no flakiness: Windows, macOS, Linux.
Since these tests mutate real policy paths, must be opted in via
VSCODE_SMOKE_TEST_POLICY=1so we avoid accidentally overwriting real policies during local dev.Both cases start with
extensions.autoUpdateset toonin a fresh user-data directory. The no-policy case checks that the setting remains editable and unmanaged. The policy case setsExtensionsAutoUpdate="off"and checks the effective value, disabled control, and Managed by organization indicator.npm run smoketest-no-compile -- --tracing -g "Policy Plumbing"Relates #334560.