Skip to content

Build dotnetup variants together with V4 publishing - #56864

Merged
mmitche merged 9 commits into
dotnet:release/dnupfrom
mmitche:users/mmitche/dotnetup-build-variants
Nov 9, 2026
Merged

mmitche merged 9 commits into
dotnet:release/dnupfrom
mmitche:users/mmitche/dotnetup-build-variants

Conversation

@mmitche

@mmitche mmitche commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Each existing RID job invokes the ordinary build command three times: preview, placeholder GA, then daily. Preview and GA use isolated artifact roots; daily retains the normal root.
  • The final daily invocation signs all three variants together and stages all candidates. All eight RID jobs upload their three candidates with source-build/commit manifests; only daily payloads and checksums enter BAR.
  • Use Arcade V4 publishing for this non-VMR dotnetup build, with no V3 compatibility selector in the shared build-job matrices. Ordinary SDK official publication already uses V4 through the VMR; this is not a migration of that publication path.
  • Preserve ordinary SDK jobs' single unbranded invocation and the existing Maestro default-channel behavior. The dev branch has no default-channel mappings and does not automatically publish daily bits to users.

The V4 changes are combined into this PR, rather than a separate stacked PR.

V4 publishing changes

File Change
.vsts-dnup-ci.yml Select V4 manifest collection/BAR registration and remove the legacy MSBuild publishing flag.
eng/pipelines/templates/jobs/sdk-build.yml Enable V4 pipeline-artifact output unconditionally, without a V3 fallback.
eng/Publishing.props Select V4 for the repository's non-VMR publishing path too.
.vsts-ci.yml Align the existing assetless BAR job's template parameter with V4; it remains assetless.
documentation/general/dotnetup/releasing.md Document V4 artifact discovery while preserving the release candidate contract.

Each <job-name>_Artifacts artifact contains the V4 manifests and daily assets; AssetManifests contains the merged manifest. Candidate artifacts use Build_<job-name> (for example, Build_Dotnetup_windows_x64) to avoid duplicating Dotnetup in their names. Their payload layout is unchanged; #56865 updates the matching release downloads and validation. No hand-edits to eng/common.

Review follow-up

  • Replaced the custom multi-variant MSBuild graph and plural switch with three ordinary build invocations.
  • Preview and GA restore/build/pack only; final daily performs signing/staging/publication.
  • Preserve each variant's diagnostics with Build-preview.binlog, Build-ga.binlog, and Build-daily.binlog. Ordinary SDK commands retain their default log names.
  • Rename candidate artifacts to Build_<job-name> and keep the release consumer, fixtures, and documentation consistent.
  • Updated the build/release guide and removed the unrelated telemetry correlation variable as requested.

Validation

  • Official V4 build 3126346 / 20261104.2 succeeded at 79bd4c07d6a: five stages, all 14 jobs, all eight RID builds, and all 24 branded commands. BAR build: 339869.
  • Downloaded and verified all eight candidate artifacts / 24 manifests: exact source/build provenance, daily/preview/GA versions, GA placeholder flags, expected payload sets, SHA-512 checksums, distinct branded binaries, and identical bootstrap scripts.
  • Downloaded all eight V4 artifacts and the merged manifest. Every manifest declares PublishingVersion="4"; all 20 daily publication files match the signed daily candidates byte-for-byte. Preview and GA are absent from publication.
  • All six Windows executables and three PowerShell copies have valid Authenticode signatures. Executable product versions match their branding.
  • Compared BAR assets after promotion with passing V3 baseline 3125595, BAR 339692: identical 21 normalized identities, versions, and shipping classifications—20 daily product files plus standard non-shipping merged-manifest metadata. Only date/build identifiers differ.
  • Current head 8bead4fe525 additionally includes the per-variant logging fix and candidate artifact-prefix rename. Actual 1ES expansions at the updated build/release heads confirm all eight Build_Dotnetup_* producer names exactly match their downloads and all 24 variant commands remain present. All 16 focused ReleasePlannerTests pass 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.
  • Internal test promotion 3126408 completed: V4 manifest download and publication succeeded. The overall result is partiallySucceeded because the two expected V3 fallback downloads cannot find legacy BlobArtifacts / PdbArtifacts; these are the only non-passing tasks. The 1ES pre-job tasks also emitted agent-image warnings but succeeded.
  • Verified all 21 blobs were published to https://ci.dot.net/dev-internal and four aka.ms links were created under dotnet/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.

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

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@mmitche

mmitche commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

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.

@mmitche

mmitche commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

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.

@mmitche

mmitche commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

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.

Comment thread eng/DotnetupVariants.props Resolved
Comment thread .vsts-dnup-ci.yml Resolved
Comment thread .vsts-dnup-ci.yml Resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6

@mmitche mmitche left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .vsts-dnup-ci.yml Resolved
mmitche and others added 2 commits November 3, 2026 15:09
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
@mmitche

mmitche commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

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.

@mmitche
mmitche marked this pull request as ready for review November 3, 2026 23:56
@mmitche
mmitche requested a review from a team as a code owner November 3, 2026 23:56
Copilot AI balanced review requested due to automatic review settings November 3, 2026 23:57
@mmitche

mmitche commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

@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.

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.

🟡 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

@mmitche

mmitche commented Nov 4, 2026 •

Copy link
Copy Markdown
Member Author

Official validation succeeded: 3125595 / 20261103.1, from PR commit fdcbd2211e219dd9f62a699887d64ab7f7d48e37, with real signing, PME Signed, and BAR registration 339692.

Variant Version Publication
daily 0.3.0-daily.26553.1 Pipeline artifacts and BAR
preview 0.3.0-preview.1.26553.1 Pipeline artifacts only
GA placeholder 0.3.0 Pipeline artifacts only

Verified the downloaded outputs, not just task success:

  • All eight RID artifacts / 24 candidate manifests have the exact source-build/commit, correct version and placeholder flag, expected payload files, valid SHA-512 checksums, and distinct binaries for each branding. Bootstrap scripts are identical across variants.
  • Both Windows architectures' six binaries and all three PowerShell bootstrap copies have valid Authenticode signatures. Compiled Windows product versions match their branding and source commit. The successful macOS ARM64 retry explicitly signed, notarized, and validated all three binaries before generating their checksums.
  • All eight publication manifests contain exactly 20 daily product blobs, with no preview/GA assets or packages. The merged BAR manifest adds only the standard non-shipping manifest metadata. All 20 published payload/checksum files are byte-identical to their final daily candidates.
  • All 24 branded build commands and all five stages (build, tests, style/SDL, source SDL, BAR) succeeded. The dev branch has no default-channel mappings; Darc promotion was a no-op, so no user-facing daily/CDN/aka.ms publication occurred.

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
@mmitche mmitche changed the title Build daily and preview dotnetup variants together (with placeholder GA) Build dotnetup variants together with V4 publishing Nov 4, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6
@mmitche
mmitche enabled auto-merge (squash) November 6, 2026 14:13
@mmitche
mmitche requested a review from JoeRobich November 6, 2026 14:13
@mmitche
mmitche merged commit 8ee0186 into dotnet:release/dnup Nov 9, 2026
33 checks passed
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