Skip to content

Pass publishing version through promotion and skip V3 downloads for V4 builds - #17771

Merged
akoeplinger merged 3 commits into
dotnet:mainfrom
akoeplinger:akoeplinger-promotion-v4-manifest-skip-v3-download
Nov 9, 2026
Merged

akoeplinger merged 3 commits into
dotnet:mainfrom
akoeplinger:akoeplinger-promotion-v4-manifest-skip-v3-download

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Forward the configured publishing version to darc and allow the promotion pipeline to accept version 4, skipping the V3 manifest and PDB downloads. Keep both manifest downloads for version 3 because legacy callers also use it for V4 builds.

Requires darc support from dotnet/arcade-services#6867 before deploying the caller-template changes. Darc support and promotion-pipeline support can land in either order; both must be available before callers start sending version 4.

To double check:

akoeplinger and others added 3 commits November 4, 2026 18:28
Requires darc with publishing infrastructure V4 support before rollout.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 6, 2026 11:50

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.

🔵 Needs a closer look

The rollout requires maintainer validation of deployment ordering and end-to-end V4 promotion because prerequisite arcade-services PR #6867 remains open and no live promotion was validated.

No open issues 🎉

What changed in this PR

Passes the configured publishing version through Arcade’s promotion flow so explicit V4 builds skip unnecessary V3 downloads while preserving legacy behavior for callers passing version 3.

Changes:

  • Allows promotion version 4 and skips V3 manifest and PDB downloads for that version.
  • Forwards configured publishing versions from both caller templates to darc.
  • Documents how repository and pipeline publishing versions should align.

Deployment requires promotion-pipeline support first, followed by the linked darc support before deploying caller-template changes.

File Description
eng/​publishing/​v3/​publish.yml Adds a version parameter and conditional V3 downloads.
eng/​promote-build.yml Accepts version 4 and forwards it to publishing.
eng/​common/​core-templates/​post-build/​post-build.yml Passes the configured infrastructure version to darc.
eng/​common/​core-templates/​job/​publish-build-assets.yml Passes the configured publishing version to darc.
Documentation/​Publishing.md Explains alignment of repository and pipeline version settings.

Review effort: Balanced

premun pushed a commit to dotnet/arcade-services that referenced this pull request Nov 6, 2026
Allow `darc add-build-to-channel --publishing-infra-version 4` so V4
builds can identify their publishing version to the promotion pipeline.
Keep the default at 3 for existing callers.

No tests added, as requested.

Fixes #6868

Related Arcade change: dotnet/arcade#17771
@akoeplinger
akoeplinger merged commit c510e63 into dotnet:main Nov 9, 2026
12 checks passed
@akoeplinger

Copy link
Copy Markdown
Member Author

/backport to release/11.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0 (link to workflow run)

@akoeplinger
akoeplinger deleted the akoeplinger-promotion-v4-manifest-skip-v3-download branch November 10, 2026 16:42
@akoeplinger

Copy link
Copy Markdown
Member Author

/backport to release/10.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0 (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

@akoeplinger backporting to release/10.0 failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git cherry-pick c510e6320d2d5457102dce2ca300a005a965173d

Auto-merging Documentation/CorePackages/Publishing.md
Auto-merging eng/common/core-templates/job/publish-build-assets.yml
Auto-merging eng/common/core-templates/post-build/post-build.yml
Auto-merging eng/promote-build.yml
CONFLICT (modify/delete): eng/publishing/v3/publish.yml deleted in HEAD and modified in c510e6320 (Pass publishing version through promotion and skip V3 downloads for V4 builds (#17771)).  Version c510e6320 (Pass publishing version through promotion and skip V3 downloads for V4 builds (#17771)) of eng/publishing/v3/publish.yml left in tree.
error: could not apply c510e6320... Pass publishing version through promotion and skip V3 downloads for V4 builds (#17771)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"


$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Support V4 promotion downloads without breaking legacy callers
Using index info to reconstruct a base tree...
M	eng/promote-build.yml
A	eng/publishing/v3/publish.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/promote-build.yml
CONFLICT (modify/delete): eng/publishing/v3/publish.yml deleted in HEAD and modified in Support V4 promotion downloads without breaking legacy callers.  Version Support V4 promotion downloads without breaking legacy callers of eng/publishing/v3/publish.yml left in tree.
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Support V4 promotion downloads without breaking legacy callers
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

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