Skip to content

Add a dry-run dotnetup preview/GA release pipeline in C# - #56865

Open
mmitche wants to merge 9 commits into
dotnet:release/dnupfrom
mmitche:users/mmitche/dotnetup-release
Open

mmitche wants to merge 9 commits into
dotnet:release/dnupfrom
mmitche:users/mmitche/dotnetup-release

Conversation

@mmitche

@mmitche mmitche commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add a manual, formal 1ES releaseJob consuming a selected dotnet-dnup-official-ci run. No source checkout, SDK bootstrap, compilation, or Azure DevOps build-lookup/token dependency in the release job.
  • Build an unsigned self-contained win-x64 release-tool/runtime bundle in the official source pipeline and publish it as DotnetupReleaseTools, separate from BAR assets. The release job declares this bundle and all eight candidate artifacts as 1ES inputs.
  • Trust the selected input build; retain local checks for all eight RID candidates, manifest identity/layout/version/placeholder consistency, and final SHA-512 checksums.
  • Invoke explicit UploadBlob and UpdateAkaLink dry-run stubs after validation, with all uploads before any link updates; the TODOs mark the future authenticated API implementations. Print versioned uploads to both CDN storage accounts and conditional aka.ms PUT/POST payloads. GA uses stable shortlinks and remains explicitly a placeholder. No external writes, write credentials, or live-publishing switch exist.
  • Attach release-plan.json to execution task logs: formal 1ES release jobs do not permit pipeline artifact outputs.

Dependency and artifact contract

Requires #56864 and a new official build containing both PRs. StageDotnetupReleaseCandidates in that PR's eng/Publishing.props writes each <variant>/<version>/release.json after signing and final checksums; the release guide now documents the producer and manifest fields. Older source builds without the new tooling artifact cannot run this revised pipeline unchanged.

Created pipeline

dotnetup-release (definition 1710), using .vsts-dotnetup-release.yml on this branch. The PR remains a draft.

Validation

  • Expanded the actual 1ES templates: formal release-job classification, injected checkout: none, nine declared pipeline-artifact inputs, and execution of the downloaded tool without source or SDK bootstrapping.
  • Published the self-contained directory bundle and ran preview and GA plans outside the repository with no SDK/runtime lookup or token. Each plan contains 40 CDN uploads and 20 conditional aka.ms operations; invalid daily input fails without producing a plan.
  • All 16 focused planner tests pass; strict compilation/style checks pass. The scoped local signing dry-run covers 195 tool/runtime files.
  • Historical official tooling-only build 3124553 succeeded, including real signing, SDL, and publication of DotnetupReleaseTools. Downloaded the official bundle, verified its executable has a valid Microsoft .NET Authenticode signature, and executed both preview and GA plans outside the repository with no SDK/runtime lookup or token: 40 uploads and 20 links each, dryRun=true. Product build, tests/style, and BAR publication stages were skipped; no daily bits were published.
  • Earlier signed eight-RID source build 3122299 and successful preview 3122377 / GA 3122378 rehearsals validate the previous checkout-based implementation, not this revised source-free job.
  • No CDN or aka.ms write APIs were called. Ownership intentionally remains UNCONFIGURED pending approval.

Tooling signing review follow-up

Release tools are no longer signed. Removed the release-tool signing step and tool-only signing artifact registration, and disabled MicroBuild in the tooling job; dotnetup product signing is unchanged. Actual 1ES expansion confirms the unsigned self-contained tooling artifact is still produced and product signing plugins remain. Build 3124553 predates this removal and is retained above as historical validation only.

Consume selected signed build artifacts, validate candidate identities and checksums, and emit CDN uploads and conditional aka.ms update/create payloads. There is deliberately no external write implementation or live switch. Add focused planner tests and document rehearsal requirements.

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

Created the requested Azure DevOps pipeline: dotnetup-release (1710), pointing at .vsts-dotnetup-release.yml on the release dev branch. Its YAML expands successfully. It consumes source pipeline 1544 as resource candidate; CDN/aka.ms operations are printed only, with no external write implementation or service connection. Waiting for the signed variant build 3122299 before the end-to-end preview/GA rehearsals.

mmitche and others added 3 commits October 30, 2026 14:55
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
…nput cleanly

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

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

Please include stubs where uploads/aka.ms link updates will go.

Invoke the upload stubs before link-update stubs after validation, preserving the existing release plan and read-only rehearsal behavior.

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 5760767240 in 56b0841. Added explicit UploadBlob and UpdateAkaLink stubs at the release entry point, with TODOs marking where authenticated uploads and aka.ms GET/conditional PUT-or-POST calls will go. They currently only print the intended operations; all upload stubs run before any link-update stubs, after candidate validation. No live switch or network calls were added. Preview/GA smoke runs preserve the JSON plans and print 40 uploads followed by 20 conditional link operations each; invalid provenance exits before reaching either stub.

Remove the tooling-only signing step and artifact registration, disable MicroBuild for that job, and retain unsigned self-contained publication. Product signing is unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 03d6d5d0-5011-4d48-81cd-f6395dcf96c6
@mmitche

mmitche commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

@dsplaisted Looking decent here. I made some iterations on this. I think @JoeRobich is taking this over from here to finish out the stubs.

@mmitche
mmitche marked this pull request as ready for review November 4, 2026 00:01
@mmitche
mmitche requested a review from a team as a code owner November 4, 2026 00:01
Copilot AI balanced review requested due to automatic review settings November 4, 2026 00:01

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 new pipeline job lacks the required telemetry correlation variable, and the file map incorrectly describes the now-unsigned release planner as signed.

2 open issues
What changed in this PR

Adds a dry-run preview/GA release workflow for dotnetup. A source-free 1ES release job runs prebuilt tooling to validate candidates and generate CDN and aka.ms publication plans without external writes.

Changes:

  • Builds an unsigned, self-contained release-tool bundle in the official pipeline.
  • Validates eight RID candidates and plans uploads before link updates; GA remains a placeholder using stable shortlinks.
  • Adds planner tests, release documentation, and repository navigation guidance.
File Description
test/​dotnetup.Tests/​ReleasePlannerTests.cs Tests publication plans and rejection of invalid candidates.
test/​dotnetup.Tests/​dotnetup.Tests.csproj References the release-tool project for testing.
eng/​Signing.props Adds a signing mapping for the release executable, although tooling signing is disabled.
eng/​dotnetup-release/​ReleasePlanner.cs Validates manifests and checksums, then constructs publication plans.
eng/​dotnetup-release/​Program.cs Writes the plan and invokes dry-run upload and link stubs.
eng/​dotnetup-release/​dotnetup-release.csproj Defines the non-shipping release-tool executable.
documentation/​general/​dotnetup/​release-pipeline.md Documents rehearsals, artifact contracts, and future publishing safeguards.
.vsts-dotnetup-release.yml Adds the manual release job consuming tooling and candidate artifacts.
.vsts-dnup-ci.yml Builds and publishes the self-contained tooling bundle.
.github/​memory/​FILE_MAP.md Adds navigation and architectural context for release tooling.

Review effort: Balanced

Comment thread .github/memory/FILE_MAP.md Resolved
Comment thread .vsts-dnup-ci.yml Resolved
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🔍 Build Failure Analysis — incomplete (tooling outage)

Summary — The Azure DevOps build failed, but the binlog-mcp analysis tool suffered a persistent outage partway through this run, so a full root-cause determination was not possible.

What was checked

Of the 20 build legs in this failed build, binlog_errors could be queried for 7 before the tool started failing:

Leg Result
10_0_FullFramework_windows_x64 No errors
10_1_FullFramework_windows_x64 No errors
1_0_AOT_linux_arm64_azureLinuxCrossArm64 No errors
2_1_AOT_linux_x64 No errors
7_0_Build_linux_x64 No errors
8_0_Build_macOS_arm64 No errors
9_0_Build_windows_x64 No errors

What could not be checked

The remaining 13 legs could not be queried — every call to binlog-mcp (across multiple tools: binlog_errors, binlog_overview, binlog_capabilities) began timing out (context deadline exceeded after 60s) and then failed instantly with connection closed: calling "tools/call": client is closing: EOF, for over 20 minutes and dozens of retries, including re-attempts on legs that had previously succeeded. This indicates the binlog-mcp MCP gateway itself became unavailable mid-run, not an issue specific to any one binlog:

  • 2_0_AOT_linux_x64
  • 3_0_AOT_macOS_arm64
  • 3_1_AOT_macOS_arm64
  • 4_0_AOT_windows_arm64
  • 5_0_AOT_windows_x64
  • 5_1_AOT_windows_x64
  • 6_0_Build_linux_arm64
  • 7_1_Build_linux_x64
  • 7_2_Build_linux_x64
  • 8_1_Build_macOS_arm64
  • 8_2_Build_macOS_arm64
  • 9_1_Build_windows_x64
  • 9_2_Build_windows_x64

Conclusion

Because 13 of 20 legs are unverified, I cannot confirm the build compiled cleanly across the whole matrix (a failure can surface in just one leg), so this is not a reliable "non-build failure" determination — it's a genuine analysis gap caused by the tool outage. No root cause or fix is proposed here, since doing so without evidence would be speculation.

Recommended next step: a maintainer should inspect the authoritative logs directly on the originating [Azure DevOps build]((dev.azure.com/redacted), focusing first on the 13 legs listed above. The GitHub Actions run has the fetch-step diagnostics for this workflow invocation.


🤖 Generated by the Build Failure Analysis workflow · commit 7489389

🤖 Automated content by GitHub Copilot. Generated by the Build Failure Analysis workflow. · copilot · sonnet50 · 242.2 AIC · ⌖ 13.3 AIC · ⊞ 7.6K · [◷]( · ◷)

Describe the unsigned self-contained release bundle without implying a product signing guarantee.

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

This branch has not been deployed

No deployments
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.

2 participants