Repository navigation
Build dotnetup variants together with V4 publishing - #56864
Conversation
Isolate variant builds and sign all candidates, but register only daily payloads and checksums in BAR. Upload per-RID promotion artifacts with provenance. Restrict immediate daily publishing to explicit product branches so development runs cannot update user links. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6
|
Azure Pipelines: Successfully started running 3 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
Official dev-branch validation: https://dev.azure.com/dnceng/internal/_build/results?buildId=3122299 (20261030.2). Expanded YAML was checked before queueing: candidate artifact uploads are present and the explicit Publish Using Darc step is absent on this dev branch. |
|
Additional local end-to-end publishing check passed: generated the real Arcade V4 manifest with PushToLocalStorage=true. It contains exactly six daily blobs (win-x64 executable, two bootstrap scripts, and their checksums), no preview/GA assets and no unrelated FSharp packages. Each staged candidate's final-byte checksums were verified. This check made no remote publication writes. |
|
Official dev-branch build 20261030.2 succeeded for all eight RIDs, including real signing, repository tests and style checks. All eight candidate pipeline artifacts contain daily, preview and placeholder GA variants. Inspected the actual eight BAR manifests: exactly 20 daily blobs, no preview/GA assets; registered as BAR build 339170. Verified the dev build has no Publish Using Darc step. Also downloaded the official macOS x64 and Windows x64 artifacts and checked all final payload/bootstrap-script SHA-512 values and source provenance. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6
mmitche
left a comment
There was a problem hiding this comment.
I think this got overcomplicated. I don't think it's necessary to build all 3 variants in a single build. The build is fast enough (10s of seconds) that we should just invoke the build command 3 times with a different branding parameter.
Replace the multi-variant MSBuild graph with preview, GA, and daily build commands. Sign and stage the resulting candidates in the final daily invocation, retaining daily-only BAR publication. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6
Keep candidate metadata evaluation outside target batching so each branding stages from its own output root. Remove the unrelated telemetry addition as requested in review. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6
|
Addressed review 5760676593 in df15c3d and fdcbd22. Each RID job now runs the ordinary build command three times with explicit preview/GA/daily branding; the custom MSBuild graph and plural switch are gone. Preview/GA use isolated output roots, and the final daily invocation signs/stages all three but only publishes daily to BAR. Ordinary SDK jobs keep their existing single command. Updated the guide and PR description to match. Verified all three Windows x64 NativeAOT outputs, local signing/staging/publication (signing dry-run; six daily-only blobs), and actual official/ordinary SDK template expansion. |
|
@dsplaisted I think this reasonable. The build system isn't really built to build a bunch of variants and then only care about some, but it's fine. |
There was a problem hiding this comment.
🟡 Changes recommended
The variant builds reuse the default binary log name in both platform branches, causing later builds to overwrite earlier logs and lose diagnostics for two release candidates.
1 open issue
What changed in this PR
This PR extends the dotnetup build pipeline to produce daily, preview, and placeholder GA candidates together, while preserving ordinary SDK builds and publishing only daily assets to BAR.
Changes:
- Build preview, GA, then daily in each of the eight RID jobs, with isolated candidate outputs.
- Sign all variants during the final daily invocation and stage binaries, checksums, and release manifests for pipeline upload.
- Update the release guide to describe variant branding and the artifact handoff.
| File | Description |
|---|---|
src/Installer/dotnetup/dotnetup.csproj |
Exposes release asset paths and variant metadata. |
src/Installer/Directory.Build.props |
Sets daily and placeholder GA branding. |
eng/Signing.props |
Includes preview and GA binaries for signing without publication. |
eng/Publishing.props |
Stages candidates and release manifests; excludes unrelated package publication. |
eng/pipelines/templates/jobs/sdk-job-matrix.yml |
Adds the build-variant parameter. |
eng/pipelines/templates/jobs/sdk-build.yml |
Runs variant builds and uploads staged candidates. |
documentation/general/dotnetup/releasing.md |
Documents variant builds, artifact layout, and release handoff. |
.vsts-dnup-ci.yml |
Enables the three-variant sequence for all eight RID jobs. |
Review effort: Balanced
|
Official validation succeeded: 3125595 / 20261103.1, from PR commit
Verified the downloaded outputs, not just task success:
The initial macOS ARM64 attempt hit the job timeout while signing/notarizing. Only that failed/canceled job was retried in this same run; it succeeded without code changes. The other seven successful RID jobs were retained. |
Keep ordinary SDK jobs on their existing publishing configuration and preserve the release candidate artifact contract. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6
Use V4 publishing unconditionally in the shared build jobs and align SDK MSBuild and BAR configuration. Remove redundant per-matrix overrides. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6
Give preview, GA, and daily invocations separate binary log names on both Windows and Unix. Preserve the default log name for ordinary SDK builds. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6

Summary
The V4 changes are combined into this PR, rather than a separate stacked PR.
V4 publishing changes
.vsts-dnup-ci.ymleng/pipelines/templates/jobs/sdk-build.ymleng/Publishing.props.vsts-ci.ymldocumentation/general/dotnetup/releasing.mdEach
<job-name>_Artifactsartifact contains the V4 manifests and daily assets;AssetManifestscontains the merged manifest. Candidate artifacts useBuild_<job-name>(for example,Build_Dotnetup_windows_x64) to avoid duplicatingDotnetupin their names. Their payload layout is unchanged; #56865 updates the matching release downloads and validation. No hand-edits toeng/common.Review follow-up
Build-preview.binlog,Build-ga.binlog, andBuild-daily.binlog. Ordinary SDK commands retain their default log names.Build_<job-name>and keep the release consumer, fixtures, and documentation consistent.Validation
79bd4c07d6a: five stages, all 14 jobs, all eight RID builds, and all 24 branded commands. BAR build: 339869.PublishingVersion="4"; all 20 daily publication files match the signed daily candidates byte-for-byte. Preview and GA are absent from publication.8bead4fe525additionally includes the per-variant logging fix and candidate artifact-prefix rename. Actual 1ES expansions at the updated build/release heads confirm all eightBuild_Dotnetup_*producer names exactly match their downloads and all 24 variant commands remain present. All 16 focusedReleasePlannerTestspass with renamed fixtures. Earlier SDK PR/assetless expansions verified default SDK log names and behavior. The successful official run above predates these logging/artifact-naming follow-ups; payload contents, signing, and BAR publication are unchanged.partiallySucceededbecause the two expected V3 fallback downloads cannot find legacyBlobArtifacts/PdbArtifacts; these are the only non-passing tasks. The 1ES pre-job tasks also emitted agent-image warnings but succeeded.https://ci.dot.net/dev-internaland four aka.ms links were created underdotnet/generaltestinginternal/daily/. BAR 339869 is assigned only to General Testing Internal (1647). No dotnetup daily, preview, or stable production channel was selected.Separate draft #56865 adds the C# dry-run preview/GA release pipeline consuming these candidate artifacts. Its production CDN/aka.ms writes remain dry-run.