[release/10.0.4xx] Restrict CI package publishing to Windows Release - #10501
Merged
Merged
Conversation
Adapt main commit 44cea09, including Debug suppression missing from this release branch. Preserve build and test coverage, signing, and per-leg diagnostic artifacts. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
nagilson
approved these changes
Sep 22, 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 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.
Problem
Backport of #10496 to release/10.0.4xx. Multiple OS/configuration legs can publish the same packages to shared PackageArtifacts/BlobArtifacts containers.
Solution
Semantically adapt the publishing restriction to this release branch rather than blindly cherry-picking main:
CI wrappers enable publishing before caller arguments; the trailing Publish=false override suppresses package publishing without changing legacy DotNetPublishUsingPipelines settings.
Checks:
YAML-only change. Reused the existing release validator, scoped exclusively to release/10.0.4xx: 96 local scenarios and 388 build legs passed, covering public/internal, PR/non-PR, pipeline names, source branches, and Release/Debug/Checked configurations (including Debug-only). Exactly one publisher, Windows Release, remains when a Release leg exists; Debug-only parameterized scenarios have none. The validator confirmed identical build-leg coverage and non-publishing YAML structure, plus caller-property ordering in both CI wrappers/build scripts. Independent YAML parsing and structural comparison confirmed only the intended publishing overrides changed. Scoped git diff --check passed.
Refreshed origin/release/10.0.4xx and confirmed the existing backport commit remains based on its current head. Validation is a local expression-subset evaluation, not Azure server expansion; external templates were not expanded. No dependency installs, full builds, live CI runs, or CI retries were performed.