Repository navigation
sanity: honor disabled Snap builds in native Linux tests - #345665
Merged
Martin Aeschlimann (aeschli) merged 1 commit intoNov 2, 2026
Merged
Conversation
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]>
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Ladislau Szomoru (@lszomoru)Matched files:
Dmitriy Vasyura (@dmitrivMS)Matched files:
|
Contributor
There was a problem hiding this comment.
🟢 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-x64only whenVSCODE_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
Ross Wollman (rwoll)
approved these changes
Nov 2, 2026
Martin Aeschlimann (aeschli)
deleted the
agents/sanity-respect-snap-build-flag
branch
November 2, 2026 22:03
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.
Summary
Exclude
desktop-linux-snap-x64from the product pipeline's native Linux sanity job whenVSCODE_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-x64for 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
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 --checkandgit diff --cached --check: passed.9849d742ac1, withVSCODE_BUILD_LINUX=trueand each value ofVSCODE_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.