Repository navigation
Pass publishing version through promotion and skip V3 downloads for V4 builds - #17771
Conversation
Co-authored-by: Copilot App <[email protected]>
Requires darc with publishing infrastructure V4 support before rollout. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🔵 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
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
|
/backport to release/11.0 |
|
Started backporting to |
|
/backport to release/10.0 |
|
Started backporting to |
|
@akoeplinger backporting to 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 |
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: