Skip to content

test: cover native policy ingestion in desktop smoke tests - #335107

Merged
Ross Wollman (rwoll) merged 3 commits into
mainfrom
policy-plumbing-smoke-pr
Sep 8, 2026
Merged

Ross Wollman (rwoll) merged 3 commits into
mainfrom
policy-plumbing-smoke-pr

Conversation

@rwoll

@rwoll Ross Wollman (rwoll) commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

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=1 so we avoid accidentally overwriting real policies during local dev.

Both cases start with extensions.autoUpdate set to on in a fresh user-data directory. The no-policy case checks that the setting remains editable and unmanaged. The policy case sets ExtensionsAutoUpdate="off" and checks the effective value, disabled control, and Managed by organization indicator.

npm run smoketest-no-compile -- --tracing -g "Policy Plumbing"

Relates #334560.

Ross Wollman (rwoll) and others added 2 commits September 4, 2026 18:20
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
Copilot AI balanced review requested due to automatic review settings September 8, 2026 16:51

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.

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants