Skip to content

sanity: honor disabled Snap builds in native Linux tests - #345665

Merged
Martin Aeschlimann (aeschli) merged 1 commit into
mainfrom
agents/sanity-respect-snap-build-flag
Nov 2, 2026
Merged

Martin Aeschlimann (aeschli) merged 1 commit into
mainfrom
agents/sanity-respect-snap-build-flag

Conversation

@aeschli

Copy link
Copy Markdown
Contributor

Summary

Exclude desktop-linux-snap-x64 from the product pipeline's native Linux sanity job when VSCODE_BUILD_LINUX_SNAP=false. Keep the job and all its other sanity coverage enabled. When Snap building is enabled, preserve the existing unfiltered selection.

Add a regression test covering both flag values and document the selection behavior.

Why

Validation build 491899 disabled Snap building but enabled Linux x64. The native Linux sanity job still tried to download linux-snap-x64 for that commit and failed with a 404 because no Snap artifact was built or published.

Found while validating #342405. This is a separate fix based on main; it does not include that PR's WSL changes.

Validation

  • Regression test against the unchanged pipeline: failed as expected because Snap remained selected with Snap building disabled.
  • node --test build/lib/test/sanityTestSelection.test.ts build/lib/test/testCheckpointTemplates.test.ts: passed, 15 tests.
  • pnpm run eslint build/lib/test/sanityTestSelection.test.ts: passed.
  • pnpm exec tsc --noEmit --target ES2024 --module NodeNext --strict --skipLibCheck --types node build/lib/test/sanityTestSelection.test.ts: passed.
  • git diff --check and git diff --cached --check: passed.
  • Commit hygiene hook: passed.
  • Azure pipeline 111 preview expansion at commit 9849d742ac1, with VSCODE_BUILD_LINUX=true and each value of VSCODE_BUILD_LINUX_SNAP: passed. Verified that the native Linux job remains present in both expansions, the disabled-Snap command adds only the exclusion filter, and the enabled-Snap command remains unfiltered. These were preview-only requests; no product builds, publication, or releases were triggered.

A full product-build/end-to-end sanity rerun was not performed for this follow-up.

Keep native Linux sanity coverage while avoiding requests for an unbuilt Snap artifact. Add selection regression coverage for both Snap build settings.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 21:38
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Ladislau Szomoru (@lszomoru)

Matched files:

  • build/azure-pipelines/product-build.yml

Dmitriy Vasyura (@dmitrivMS)

Matched files:

  • test/sanity/README.md

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.

🟢 Approval recommended

No active review issues are recorded for the conditional Linux Snap sanity-test selection change.

No open issues 🎉

What changed in this PR

Updates the product pipeline’s native Linux sanity job to avoid requesting an unpublished Snap artifact when Snap builds are disabled, while preserving all other sanity coverage.

Changes:

  • Excludes desktop-linux-snap-x64 only when VSCODE_BUILD_LINUX_SNAP=false; leaves selection unfiltered otherwise.
  • Adds a regression test covering both flag values and preservation of non-Snap tests.
  • Documents the conditional selection behavior.
File Description
test/​sanity/​README.md Documents when the native Linux job excludes Snap tests.
build/​lib/​test/​sanityTestSelection.test.ts Verifies test selection with Snap builds enabled and disabled.
build/​azure-pipelines/​product-build.yml Adds the conditional Snap exclusion filter.

Review effort: Balanced

@aeschli
Martin Aeschlimann (aeschli) merged commit 6a707d6 into main Nov 2, 2026
56 checks passed
@aeschli
Martin Aeschlimann (aeschli) deleted the agents/sanity-respect-snap-build-flag branch November 2, 2026 22:03
@vs-code-engineering vs-code-engineering Bot added this to the 1.146.0 milestone Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants