Repository navigation
Conversation
Add opt-in recovery with source validation, pack availability checks, manifest identity and audit checks, and governed artifact reuse. Include the recovery suite in the PowerShell CI gate. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 23:08 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38541Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38541" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 23:09 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 23:10 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 23:15 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 23:16 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 23:16 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A critical pipeline-routing guard and a prerelease manifest-identity fix remain unresolved.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds an opt-in manifestSourceBuildId flow to recover MAUI workload-manifest releases from retained pipeline artifacts.
Changes:
- Adds source, artifact, manifest identity, and hash validation.
- Adds recovery pipeline stages and shared publishing logic.
- Expands tests, documentation, and CI coverage.
Unresolved findings:
- Critical (1 vote): Add a zero-ID guard to normal workload publishing stages in
ci-official-release.yml. - Moderate (1 vote): Allow prerelease manifest versions in
nuget_release_packages.ps1.
File summaries
| File | Description |
|---|---|
eng/scripts/prepare_manifest_recovery.Tests.ps1 |
Tests recovery validation and failure cases. |
eng/scripts/prepare_manifest_recovery.ps1 |
Validates source runs, artifacts, packs, and recovery audits. |
eng/scripts/nuget_release_packages.Tests.ps1 |
Tests manifest validation and audit integrity. |
eng/scripts/nuget_release_packages.ps1 |
Adds manifest identity and audit-hash validation. |
eng/pipelines/common/workload-manifest-recovery.yml |
Defines recovery preparation, approval, and publishing stages. |
eng/pipelines/common/publish-workload-manifests-steps.yml |
Shares manifest filtering, publishing, and verification steps. |
eng/pipelines/ci-official-release.yml |
Adds recovery routing and release parameters. |
eng/pipelines/ci-official-release.Tests.ps1 |
Verifies pipeline expansion and recovery safeguards. |
docs/ReleaseProcess.md |
Documents recovery inputs and procedures. |
.github/workflows/powershell-script-tests.yml |
Runs recovery tests and tracks related files. |
Review details
Suppressed comments (1)
eng/scripts/nuget_release_packages.ps1:154
- This identity pattern rejects preview/RC/alpha MAUI manifest packages.
DotNetMauiManifestVersionBandis derived fromDotNetVersionBand, which appends-preview.N,-rc.N, or-alpha.Nfor prerelease builds (eng/Versions.props:208-211), so a real package such asMicrosoft.NET.Sdk.Maui.Manifest-11.0.100-preview.6fails before the recovery audit can be produced. Allow the prerelease suffix and add a test for it.
if ($package.id -notmatch '^Microsoft\.NET\.Sdk\.Maui\.Manifest-[0-9]+\.[0-9]+\.[0-9]+(?:\.Msi\.(?:arm64|x64|x86))?$' -or
$package.fileName -ine "$($package.id).$($package.normalizedVersion).nupkg") {
- Files reviewed: 10/10 changed files
- Comments generated: 1
- Review effort level: Lite
Comment on lines
+115
to
+116
| - ${{ if and(ne(parameters.manifestSourceBuildId, 0), ne(parameters.commitHash, 'skip')) }}: | ||
| - template: /eng/pipelines/common/workload-manifest-recovery.yml@self |
This was referenced Sep 15, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Add an opt-in
manifestSourceBuildIdparameter to recover an interrupted MAUI workload-manifest release using artifacts retained by an earlier release-pipeline run. Its default is0, preserving the normal release path.Root cause: a new release run does not inherit prepared artifacts from an earlier run. Skipping preparation leaves the manifest-publishing job without its input. Gathering the whole BAR drop again can also fail after pack publishing has changed the recorded package locations.
The recovery path:
pushPackages: falseto prepare the recovery audit without an approval or publishing stage.commitHash: skipremains a no-op.The existing manifest-publishing steps are shared between normal and recovery paths. Documentation covers the required inputs and procedure. The existing PowerShell CI workflow now includes the new recovery suite and triggers for all related helper/template files.
Recovery constraints
This mode supports
dotnet/mauionly and requirespushWorkloadSet: false,pushNugetOrg: true, andnugetAlreadyAttemptedPackFilters: skip. Manifest packages themselves are NuGets; this prevents republishing workload/library packs, not publishing the missing manifests.Do not skip preparation in a new normal run expecting old artifacts to be inherited, regather an already-released drop for this recovery, or repackage old manifests as newly produced artifacts.
Validation
pushPackages: falserecovery run succeeded from exact commit69ec1e801bon an isolated internal test branch. It verified all 57 original packs on NuGet.org and validated all four retained manifests, with successful source provenance and preparation checks..nupkgfiles.464d9376c2in the CI-scan reconciler tests; downloaded CI results confirm there are no additional failed tests.No production approval or NuGet.org publishing was performed. The production publishing path was previewed, not executed; the successful hosted run exercised recovery preparation and audit generation only.
Issues Fixed
No linked GitHub issue. Addresses recovery of workload manifests after the corresponding packs have already been published.