Skip to content

Switch release flow to draft-then-publish for immutable releases - #18068

Merged
Jose Perez Rodriguez (joperezr) merged 8 commits into
mainfrom
joperezr/immutable-gh-releases
Aug 18, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 8 commits into
mainfrom
joperezr/immutable-gh-releases

Conversation

@joperezr

Copy link
Copy Markdown
Member

Why

We want to enable GitHub's immutable releases setting on microsoft/aspire for supply-chain integrity. Immutability locks assets and the tag as soon as a release is published. Today our release flow assumes the opposite — we publish first and then mutate:

  1. eng/pipelines/release-publish-nuget.yml (PublishReleaseAssetsJob) uploads CLI binaries via gh release upload --clobber against the already-published release.
  2. release-notes-generate.md is an agentic workflow that triggers on release: [published] and rewrites the placeholder body via gh-aw's update-release safe output.
  3. HomebrewValidateJob in the same pipeline runs brew audit/install against the public download URL of the just-published release.

All three would break (or be denied) once immutability is on. This PR moves every mutation to happen while the release is still a draft, and adds a manual "publish the draft" step at the end of the release process.

What changes

File Change
.github/workflows/release-github-tasks.yml gh release create --draft. Placeholder body and job summary updated to tell the release manager they need to publish the draft after review.
.github/workflows/release-notes-generate.md Trigger flipped to release: [created], guard inverted to draft == true. Step 1 now early-exits when the release is already published (since the body can no longer be safely overwritten). Added a fallback note about GET /releases/tags/{tag} returning 404 for drafts in some auth contexts.
.github/workflows/release-notes-generate.lock.yml Recompiled with gh-aw v0.77.5.
eng/pipelines/release-publish-nuget.yml Removed HomebrewValidateJob and the SkipHomebrewValidation parameter. Stage-3 comments updated to reflect 2 jobs instead of 3.
.github/workflows/homebrew-validate-release.yml NEW. Triggers on release: [released] and workflow_dispatch. Regenerates the cask from the now-public asset URL via eng/homebrew/generate-cask.sh and runs the full validation in LiveRelease mode.
docs/release-process.md Adds a "Draft-then-publish release flow" section, the 5-component list, and renumbers the post-release steps into Step 4: Verify, Step 5: Publish the draft, Step 6: Post-release communication. Architecture diagram updated.

New end-to-end flow

AzDO release-publish-nuget pipeline
 └─ Stage 3: GitHubTasks
     ├─ DispatchGitHubTasksJob  → gh release create --draft (tag + draft release)
     │                              └─ fires release: [created]
     │                                  └─ release-notes-generate (gh-aw) edits the draft body
     └─ PublishReleaseAssetsJob → gh release upload --clobber (attaches assets to the draft)

[Human]: reviews the draft in the Releases UI, clicks "Publish release"
 └─ fires release: [published] / [released]
     ├─ release-update-support-mdx → opens PR on aspire.dev
     └─ homebrew-validate-release  → brew audit + install (new workflow)

Notes-generation and asset-upload run in parallel and touch different fields of the release (body vs. assets), so they don't conflict. Step 2's idempotency check in the agentic workflow (looks for the placeholder phrase in body) still protects against accidental double-edit if a human publishes mid-flight.

Reviewer asks

  • Ankit Jain (@radical) — the homebrew validation move is the biggest functional change. You wrote the original HomebrewValidateJob pipeline integration; the new homebrew-validate-release.yml does the same generate-cask.sh + validate-cask-artifact.sh --validation-mode LiveRelease but runs after publish. Please flag anything I missed (auth, caching, where the cask artifact ends up, etc.).

Follow-ups (NOT in this PR)

  • Backport #17869 (GH_ALLOWED_BOTS) to release/13.4 — needed because release-notes-generate.lock.yml on that branch is built with an older gh-aw that doesn't handle the bot permission correctly. Surfaced by the failing 13.4.3 run.
  • Enable the repository's Immutable releases setting once this lands and we've validated one release with the new flow.

Today the release pipeline creates a GitHub release as published and
then mutates it (CLI assets, agentic notes rewrite, homebrew validation
against the public download URL). All of those operations are blocked
by GitHub's immutable-releases setting.

This change moves every mutation to occur while the release is still a
draft, then a human publishes the draft as the final step:

- release-github-tasks.yml: gh release create now passes --draft;
  placeholder body and job summary tell the release manager they need
  to publish the draft after review.
- release-notes-generate.md: trigger flipped to release: [created],
  draft guard inverted so the agentic notes update runs against the
  draft. Step 1 makes draft == false the early-exit case. lock.yml
  recompiled with gh-aw v0.77.5.
- release-publish-nuget.yml: removed HomebrewValidateJob (and the
  SkipHomebrewValidation parameter). Homebrew validation needs the
  public download URL, which is only available after publish.
- homebrew-validate-release.yml: NEW. Runs on release: [released] +
  workflow_dispatch, regenerates the cask via eng/homebrew/generate-cask.sh
  against the now-public release URL and runs the full validation in
  LiveRelease mode. Comment asks reviewers to ping @radical.
- docs/release-process.md: adds the draft-then-publish section, lists
  the five components, and renumbers post-release steps into
  4 verify / 5 publish / 6 comms with the architecture diagram updated.

Post-merge steps tracked separately:
- Backport PR #17869 (GH_ALLOWED_BOTS) to release/13.4.
- Enable the repository's 'Immutable releases' setting.

Co-authored-by: Copilot <[email protected]>
@github-actions

github-actions Bot commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 18068

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 18068"

- extension-release.yml: drop SkipHomebrewValidation from the extension-only
  release parameter table. The parameter was removed from
  release-publish-nuget.yml in the previous commit, so any release manager
  copy-pasting from the generated PR body would have hit a hard
  'parameter not defined' AzDO error.
- eng/homebrew/README.md: rewrite the CI Pipeline section and LiveRelease
  row to point at homebrew-validate-release.yml instead of the removed
  HomebrewValidateJob. Add a Note documenting the trade-off introduced by
  regenerating the cask from scratch (generate-cask.sh becomes the de-facto
  source of truth) so future contributors understand the hidden coupling.
- release-notes-generate.md: remove the misleading 'fall back to listing
  releases' paragraph. The agent never executes the lookup; gh-aw's
  compiled update_release.cjs does, and it has no list fallback. The
  GitHub App token sees drafts via getReleaseByTag, so the fallback was
  never going to fire.
- release-github-tasks.yml: replace the dead 'untagged-<version>' draft
  link in the run summary with the Releases page (GitHub assigns drafts
  a random hex identifier, not the version). Explain inline why there is
  no stable deep link until publish.
- homebrew-validate-release.yml: SHA-pin actions/checkout to v6.0.2 to
  match the rest of the workflows (zizmor scan requires this). Add an
  inline note tagging @radical to flag the cask-regeneration trade-off
  for review.
- Stale comment cleanup in prepare-homebrew-cask.yml, prepare-cask-artifact.sh,
  validate-cask-artifact.sh, and ReleasePublishNugetPipelineTests.cs to
  remove references to the removed HomebrewValidateJob.

Tested: ReleasePublishNugetPipelineTests still pass (17/17).

Co-authored-by: Copilot <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

❓ CLI E2E Tests unknown — 113 passed, 0 failed, 2 unknown (commit 0db401c)

View all recordings
- Test Detail
✅ AddPackageInteractiveWhileAppHostRunningDetached Recording · Job · CLI logs
✅ AddPackageWhileAppHostRunningDetached Recording · Job · CLI logs
✅ AgentCommands_AllHelpOutputs_AreCorrect Recording · Job · CLI logs
✅ AgentInitCommand_DefaultSelection_InstallsDefaultSkills Recording · Job · CLI logs
✅ AgentInitCommand_MigratesDeprecatedConfig Recording · Job · CLI logs
✅ AgentInit_NonInteractive_BundleOnlySkillsNotInCatalog Recording · Job · CLI logs
✅ AgentMcpListStructuredLogsReturnsLogsFromStarterApp Recording · Job · CLI logs
✅ AgentMcpListStructuredLogsReturnsLogsFromStarterApp_DevLocalhost Recording · Job · CLI logs
✅ AgentMcpListStructuredLogsReturnsLogsFromStarterApp_Isolated Recording · Job · CLI logs
✅ AllPublishMethodsBuildDockerImages Recording · Job · CLI logs
✅ AspireAddAndStartWorkAgainstLegacyAppHostTs Recording · Job · CLI logs
✅ AspireAddPackageVersionToDirectoryPackagesProps Recording · Job · CLI logs
✅ AspireInitSingleFileAppHostRunsViaDotnetRunAppHost Recording · Job · CLI logs
✅ AspireInit_ExistingAppHostDir_RecreatesNuGetConfigKeepsFiles Recording · Job · CLI logs
❔ AspireInit_SolutionFile_BuildsAgainstChannelHive Recording · Job · CLI logs
✅ AspireStartUpdatesStaleTypeScriptAppHostPath Recording · Job · CLI logs
✅ AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps Recording · Job · CLI logs
✅ AspireUpdateRemovesOrphanAppHostPackageVersionWhenSdkAlreadyCurrent Recording · Job · CLI logs
✅ Banner_DisplayedOnFirstRun Recording · Job · CLI logs
✅ Banner_DisplayedWithExplicitFlag Recording · Job · CLI logs
✅ Banner_NotDisplayedWithNoLogoFlag Recording · Job · CLI logs
✅ CertificatesClean_RemovesCertificates Recording · Job · CLI logs
✅ CertificatesTrust_WithNoCert_CreatesAndTrustsCertificate Recording · Job · CLI logs
✅ CertificatesTrust_WithUntrustedCert_TrustsCertificate Recording · Job · CLI logs
✅ ConfigSetGet_CreatesNestedJsonFormat Recording · Job · CLI logs
✅ CreateAndRunAspireStarterProject Recording · Job · CLI logs
✅ CreateAndRunAspireStarterProjectWithBundle Recording · Job · CLI logs
✅ CreateAndRunEmptyAppHostProject Recording · Job · CLI logs
✅ CreateAndRunJavaEmptyAppHostProject Recording · Job · CLI logs
✅ CreateAndRunJsReactProject Recording · Job · CLI logs
✅ CreateAndRunPolyglotAppHostWithDevLocalhostUrls Recording · Job · CLI logs
✅ CreateAndRunPythonReactProject Recording · Job · CLI logs
✅ CreateAndRunTypeScriptEmptyAppHostProject Recording · Job · CLI logs
✅ CreateAndRunTypeScriptStarterProject Recording · Job · CLI logs
✅ CreateJavaAppHostWithViteApp Recording · Job · CLI logs
✅ CreateTypeScriptAppHostWithViteApp_UsesConfiguredToolchain Recording · Job · CLI logs
✅ DashboardRunWithAgentMcpListTracesReturnsNoTraces Recording · Job · CLI logs
✅ DashboardRunWithAgentMcpListTracesReturnsNoTraces_DevLocalhost Recording · Job · CLI logs
✅ DashboardRunWithOtelTracesReturnsNoTraces Recording · Job · CLI logs
✅ DashboardRunWithOtelTracesReturnsNoTraces_DevLocalhost Recording · Job · CLI logs
✅ DeployK8sBasicApiService Recording · Job · CLI logs
✅ DeployK8sWithExternalHelmChart Recording · Job · CLI logs
✅ DeployK8sWithGarnet Recording · Job · CLI logs
✅ DeployK8sWithMongoDB Recording · Job · CLI logs
✅ DeployK8sWithMySql Recording · Job · CLI logs
✅ DeployK8sWithPostgres Recording · Job · CLI logs
✅ DeployK8sWithRabbitMQ Recording · Job · CLI logs
✅ DeployK8sWithRedis Recording · Job · CLI logs
✅ DeployK8sWithSqlServer Recording · Job · CLI logs
✅ DeployK8sWithValkey Recording · Job · CLI logs
✅ DeployTypeScriptAppToKubernetes Recording · Job · CLI logs
✅ DescribeCommandResolvesReplicaNames Recording · Job · CLI logs
✅ DescribeCommandShowsRunningResources Recording · Job · CLI logs
✅ DetachFormatJsonProducesValidJson Recording · Job · CLI logs
✅ DetachFormatJsonProducesValidJsonWhenRestartingExistingInstance Recording · Job · CLI logs
✅ DoPublishAndDeployListStepsWork Recording · Job · CLI logs
✅ DocsCommand_RendersInteractiveMarkdownFromLocalSource Recording · Job · CLI logs
✅ DoctorCommand_DetectsDeprecatedAgentConfig Recording · Job · CLI logs
✅ DoctorCommand_TypeScriptAppHostReportsMissingConfiguredToolchain Recording · Job · CLI logs
✅ DoctorCommand_WithSslCertDir_ShowsTrusted Recording · Job · CLI logs
✅ DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted Recording · Job · CLI logs
✅ DotNetRunFileBasedAppHostUsesAspireCliBundle Recording · Job · CLI logs
✅ DotNetRunProjectAppHostUsesAspireCliBundle Recording · Job · CLI logs
✅ GatewayWithoutExternalEndpoint_FailsPublishWithGuidance Recording · Job · CLI logs
✅ GeneratedAspireDevScript_StartsWatchMode_WithConfiguredToolchain Recording · Job · CLI logs
✅ GlobalMigration_HandlesCommentsAndTrailingCommas Recording · Job · CLI logs
✅ GlobalMigration_HandlesMalformedLegacyJson Recording · Job · CLI logs
✅ GlobalMigration_PreservesAllValueTypes Recording · Job · CLI logs
✅ GlobalMigration_SkipsWhenNewConfigExists Recording · Job · CLI logs
✅ GlobalSettings_MigratedFromLegacyFormat Recording · Job · CLI logs
✅ IngressWithoutExternalEndpoint_FailsPublishWithGuidance Recording · Job · CLI logs
✅ InitTypeScriptAppHost_AugmentsExistingViteRepoInWorkspaceSubdirectory Recording · Job · CLI logs
✅ InteractiveCSharpInitCreatesExpectedFiles Recording · Job · CLI logs
✅ InvalidAppHostPathWithComments_IsHealedOnRun Recording · Job · CLI logs
✅ JavaScriptHostingApisRunFromTypeScriptAppHost Recording · Job · CLI logs
✅ LatestCliCanStartStableChannelAppHost Recording · Job · CLI logs
✅ LatestCliCanStartStableChannelTypeScriptAppHost Recording · Job · CLI logs
✅ LegacySettingsMigration_AdjustsRelativeAppHostPath Recording · Job · CLI logs
✅ LogsCommandShowsResourceLogs Recording · Job · CLI logs
✅ OtelLogsReturnsStructuredLogsFromStarterApp Recording · Job · CLI logs
✅ OtelLogsReturnsStructuredLogsFromStarterAppIsolated Recording · Job · CLI logs
✅ ProcessCommandCallbackReceivesCliArguments Recording · Job · CLI logs
✅ PsCommandListsRunningAppHost Recording · Job · CLI logs
✅ PsFormatJsonOutputsOnlyJsonToStdout Recording · Job · CLI logs
✅ PublishJavaScriptPatternsGeneratesExpectedDockerComposeArtifacts Recording · Job · CLI logs
✅ PublishWithConfigureEnvFileUpdatesEnvOutput Recording · Job · CLI logs
✅ PublishWithDockerComposeServiceCallbackSucceeds Recording · Job · CLI logs
✅ PublishWithoutOutputPathUsesAppHostDirectoryDefault Recording · Job · CLI logs
✅ ResourceCommand_FailedExec_ShowsLogPathAndLogHasEntries Recording · Job · CLI logs
✅ ResourceCommand_SetAndDeleteParameterUpdatesDescribeOutput Recording · Job · CLI logs
✅ RestoreGeneratesSdkFiles Recording · Job · CLI logs
✅ RestoreGeneratesSdkFiles_WithConfiguredToolchain Recording · Job · CLI logs
✅ RestoreRefreshesGeneratedSdkAfterAddingIntegration Recording · Job · CLI logs
✅ RestoreSupportsConfigOnlyHelperPackageAndCrossPackageTypes Recording · Job · CLI logs
✅ RunFromParentDirectory_UsesExistingConfigNearAppHost Recording · Job · CLI logs
✅ RunReportsSyntaxErrorsForDotNetAppHost Recording · Job · CLI logs
✅ RunReportsSyntaxErrorsForTypeScriptAppHost Recording · Job · CLI logs
✅ SecretCrudOnDotNetAppHost Recording · Job · CLI logs
✅ SecretCrudOnTypeScriptAppHost Recording · Job · CLI logs
✅ StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels Recording · Job · CLI logs
✅ StartAndWaitForTypeScriptSqlServerAppHostWithNativeAssets Recording · Job · CLI logs
✅ StartReportsSyntaxErrorsForDotNetAppHost Recording · Job · CLI logs
✅ StartReportsSyntaxErrorsForTypeScriptAppHost Recording · Job · CLI logs
✅ StopAllAppHostsFromAppHostDirectory Recording · Job · CLI logs
✅ StopJavaPolyglotAppHostUsingApphostDirectory Recording · Job · CLI logs
✅ StopNonInteractiveSingleAppHost Recording · Job · CLI logs
✅ StopTypeScriptPolyglotAppHostUsingApphostDirectory Recording · Job · CLI logs
✅ StopWithNoRunningAppHostExitsSuccessfully Recording · Job · CLI logs
✅ TypeScriptAppHostRunDoesNotDeadlockWhenLazyOptionsInvokeAsyncCallback Recording · Job · CLI logs
✅ TypeScriptAppHostWithVite_AllowsDifferentGuestPkgManager Recording · Job · CLI logs
✅ UnAwaitedChainsCompileWithAutoResolvePromises Recording · Job · CLI logs
❔ UpdateToStable_CSharpEmptyAppHost_KeepsConfigChannel Recording · Job · CLI logs
✅ UpdateToStable_CSharpSingleFileInit_KeepsConfigChannel Recording · Job · CLI logs
✅ UpdateToStable_TypeScriptSingleFileInit_KeepsConfigChannel Recording · Job · CLI logs
✅ UpdateToStable_TypeScript_PreviewsStablePkgsAndKeepsChannel Recording · Job · CLI logs

📹 Recordings uploaded automatically from CI run #27243506136

Resolves conflicts from 527 commits of main drift. Key resolutions:
- release-publish-nuget.yml: keep main's UpdateNixPackageJob, drop the
  in-pipeline HomebrewValidateJob (moved to the post-publish
  homebrew-validate-release.yml workflow); merge Stage-3 narrative +
  stage condition; drop SkipHomebrewValidation param.
- docs/release-process.md: merge draft-then-publish narrative with main's
  Nix flake flow; adopt main's Marketplace service-connection wording.
- ReleasePublishNugetPipelineTests.cs: expected-jobs list now
  {PublishReleaseAssetsJob, UpdateNixPackageJob}; drop stale
  SkipHomebrewValidation assertion.
- release-notes-generate.lock.yml: recompiled with gh-aw v0.86.2 from the
  merged .md (trigger release:[created], guard draft==true).
- eng/homebrew/README.md: point at homebrew-validate-release.yml.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 053d9b6f-21e9-404b-9174-c610ae3a3741
The Nix manifest updater previously read each aspire-cli-*.tar.gz.sha512 asset
from the published GitHub release. Under immutable releases the release is a
draft while the pipeline runs, and a draft's assets aren't served from the
public releases/download/... URL, so that read would 404.

Add an opt-in offline mode to update-versions.sh (--sha512 <rid>=<hex>, all
four platforms required) and have UpdateNixPackageJob download the .sha512
sidecars from the source build's BlobArtifacts (already verified and uploaded
by PublishReleaseAssetsJob) and forward the digests to update-nix-cli-flake.yml
as workflow inputs. The url fields written to versions.json remain the public
versioned release download URLs; only the checksum source changed. Manual runs
against a published release omit the inputs and fall back to reading the release
assets.

Adds NixCliPackageTests coverage for the offline path and the partial-override
error, and updates release-process.md, eng/nix/README.md, and
docs/ci/native-cli-packaging.md to match.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 053d9b6f-21e9-404b-9174-c610ae3a3741
Copilot AI balanced review requested due to automatic review settings August 17, 2026 21:20
@github-actions

This comment has been minimized.

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.

Pull request overview

Moves release mutations before publication to support immutable GitHub releases.

Changes:

  • Creates draft releases and generates notes/assets before manual publication.
  • Moves Homebrew validation post-publication.
  • Supplies Nix checksums directly from build artifacts.
Show a summary per file
File Description
tests/Infrastructure.Tests/Pipelines/ReleasePublishNugetPipelineTests.cs Updates removed Homebrew-job expectations.
tests/Infrastructure.Tests/Pipelines/NixCliPackageTests.cs Tests offline checksum overrides.
eng/pipelines/templates/prepare-homebrew-cask.yml Updates validation-flow comments.
eng/pipelines/release-publish-nuget.yml Removes Homebrew validation and forwards Nix checksums.
eng/nix/update-versions.sh Adds offline checksum inputs.
eng/nix/README.md Documents draft-compatible Nix updates.
eng/homebrew/validate-cask-artifact.sh References the new workflow.
eng/homebrew/README.md Documents post-release validation.
eng/homebrew/prepare-cask-artifact.sh Updates validation-flow comments.
docs/release-process.md Documents draft review and publication.
docs/ci/native-cli-packaging.md Documents build-sourced checksums.
.github/workflows/update-nix-cli-flake.yml Accepts platform checksum inputs.
.github/workflows/release-notes-generate.md Changes notes generation to draft creation.
.github/workflows/release-notes-generate.lock.yml Recompiles the agentic workflow.
.github/workflows/release-github-tasks.yml Creates draft releases and adds instructions.
.github/workflows/homebrew-validate-release.yml Adds post-publication Homebrew validation.
.github/workflows/extension-release.yml Removes the obsolete skip parameter.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Suppressed comments (1)

docs/release-process.md:213

  • This duplicates the preceding baseline-version PR bullet, so the release checklist lists the same item twice.
   - Baseline version PR: updates `PackageValidationBaselineVersion`.
  • Files reviewed: 17/17 changed files
  • Comments generated: 3
  • Review effort level: Balanced

Comment thread docs/release-process.md Resolved
Collapse the extra blank lines before the "Installer channels" heading that
markdownlint flagged (MD012/no-multiple-blanks) at docs/release-process.md:58-59.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 053d9b6f-21e9-404b-9174-c610ae3a3741
Copilot AI review requested due to automatic review settings August 17, 2026 22:07
@joperezr
Jose Perez Rodriguez (joperezr) marked this pull request as ready for review August 17, 2026 22:09
@joperezr

Jose Perez Rodriguez (joperezr) commented Aug 17, 2026 •

Copy link
Copy Markdown
Member Author

David Fowler (@davidfowl) tagging you since you added the Nix package. Immutable releases mean the release is a draft while the pipeline runs, and update-versions.sh was reading the .sha512 files off the published releases/download/... URL, which 404s on a draft.

So the checksums now come from the source build's BlobArtifacts (the signed sidecars we already download) and get passed into update-nix-cli-flake.yml as inputs. Two things worth confirming:

  • versions.json url fields are unchanged, still the public release URLs. Only the hash source moved.
  • Manual runs against a published release still work the old way (read from the release).

Mind giving it a look?

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.

Review details

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

.github/workflows/release-notes-generate.md:143

  • The PR description says draft lookup should fall back when GET /releases/tags/{tag} returns 404, but this still assumes that endpoint returns the draft and later treats “release can't be found” as a successful no-op. In an auth context where the tag endpoint hides drafts, notes generation will silently leave the placeholder. Add the documented fallback by listing releases and selecting the matching draft before declaring it missing.
`prerelease`. The workflow runs with a GitHub App token that can see
drafts in `microsoft/aspire`, so this call returns the draft record
when the release-create step has just fired `release: [created]`.
  • Files reviewed: 17/17 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread eng/nix/update-versions.sh Resolved
@github-actions

This comment has been minimized.

…ase event

Draft releases do not fire the `release: [created]` event in GitHub
Actions, so under the draft-then-publish (immutable releases) flow the
release-notes-generate agentic workflow never ran and the draft kept its
placeholder body permanently.

Replace the implicit `release: [created]` trigger with an explicit
workflow_dispatch: release-github-tasks.yml now dispatches
release-notes-generate (via the aspire-repo-bot App token) right after it
creates the draft release, passing the tag_name input, gated so it only
fires when a real non-dry-run draft was actually created. Remove the dead
`release` trigger and its unreachable draft-only `if:` branch from
release-notes-generate.md, recompile the gh-aw lock, and correct the
comments that incorrectly claimed draft creation fires `release: created`.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 053d9b6f-21e9-404b-9174-c610ae3a3741
Copilot AI review requested due to automatic review settings August 17, 2026 22:25
@github-actions

This comment has been minimized.

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.

Review details

Suppressed comments (4)

Previously missed (2) — in code that hasn't changed since the last review.

.github/workflows/homebrew-validate-release.yml:64

  • For workflow_dispatch, checkout otherwise uses the selected/default branch rather than the tag named by release_version. A retry for an older release can therefore generate and validate a cask using current main scripts/template instead of the released source. Check out the matching release tag explicitly.
      - name: Checkout repo
        uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
        with:
          fetch-depth: 1

docs/release-process.md:211

  • This duplicates the immediately preceding baseline-version bullet.
   - Baseline version PR: updates `PackageValidationBaselineVersion`.

docs/release-process.md:429

  • The architecture diagram still says release-note generation is triggered by release: created, contradicting the explicit dispatch implemented in release-github-tasks.yml.
GitHub release-notes-generate.lock.yml (triggered on `release: created`)

docs/release-process.md:235

  • A failed Homebrew install/signing audit can mean the newly immutable assets are unusable, so the release is not necessarily “fine,” and rerunning cannot repair those assets. The runbook should distinguish the support-page workflow from asset-validation failures and direct managers to assess impact and cut a corrected release when necessary.
If either downstream workflow fails, the release itself is fine — the release is published and immutable. Investigate the failure on the workflow run, fix the underlying issue, and rerun via `workflow_dispatch` against the published tag.
  • Files reviewed: 17/17 changed files
  • Comments generated: 4
  • Review effort level: Balanced

Comment thread docs/release-process.md Resolved
Comment thread docs/release-process.md Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

… reruns, docs ordering

- homebrew-validate-release.yml: subscribe to `release: [published]` instead
  of `[released]`. GitHub does not reliably fire `released` when a release is
  published from a draft, so under the draft-then-publish flow the cask
  validation would never run. The stable/non-draft/non-prerelease `if:` guard
  already covers what `released` used to imply. Comments/docs updated to match.

- release-github-tasks.yml: dispatch release-notes-generate on every eligible
  non-dry rerun instead of gating on `release_exists`. If a first run created
  the draft but died before dispatching, the old gate would permanently skip
  note generation on rerun. Re-dispatching is safe because release-notes-generate
  is idempotent (no-op unless the body is still the exact placeholder).

- docs/release-process.md: defer merging the baseline version PR until after
  the draft is published, since its eng/nix/versions.json points at release
  download URLs that 404 until publish (merging early would break the flake on
  main). Also correct the two remaining `release: created` trigger descriptions
  to reflect the explicit workflow_dispatch, drop stale `released` mentions, and
  remove a duplicated baseline-PR bullet.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 053d9b6f-21e9-404b-9174-c610ae3a3741
Copilot AI review requested due to automatic review settings August 18, 2026 04:06
@github-actions

This comment has been minimized.

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.

Review details

Suppressed comments (5)

.github/workflows/release-github-tasks.yml:699

  • This warning is emitted even for dry runs, skip_github_release: true, and failed/skipped release jobs, so the summary can tell a release manager to publish a draft that this run did not create. Gate the manual-publish section on a successful non-dry-run release path (while still allowing the existing-draft rerun case).
          ## ⚠️ Manual step required — publish the draft release

docs/release-process.md:441

  • The architecture diagram names the wrong event. homebrew-validate-release.yml listens for release: published, so this should match the workflow and the explanation earlier in this document.
GitHub homebrew-validate-release.yml (triggered on `release: released`)

eng/pipelines/release-publish-nuget.yml:2377

  • This says the workflow runs on released, but its executable trigger is published because released is unreliable for a draft-to-published transition.
      # .github/workflows/homebrew-validate-release.yml and runs on the
      # `release: [released]` event, i.e. only once the release manager
      # publishes the draft and the asset URLs become public. See that

.github/workflows/homebrew-validate-release.yml:118

  • The workflow runs on release: [published], not released; this comment contradicts the trigger and the detailed explanation at the top of the same file.
          # public, which is why this workflow runs on release: [released]
          # rather than [created]/[published-on-a-draft].

eng/homebrew/README.md:146

  • This table still names released, while the workflow intentionally subscribes to published.
| `LiveRelease` | Yes — points at a live GitHub release | `brew audit --cask --online --signing` + `brew install`/`brew uninstall` | `.github/workflows/homebrew-validate-release.yml`, on `release: [released]` after the human publishes the draft |
  • Files reviewed: 17/17 changed files
  • Comments generated: 7
  • Review effort level: Balanced

Comment thread docs/release-process.md Resolved
Comment thread eng/homebrew/README.md Resolved
Comment thread eng/pipelines/release-publish-nuget.yml Resolved
Comment thread eng/homebrew/prepare-cask-artifact.sh Resolved
The homebrew validation workflow now triggers on `release: [published]`,
but several comments and docs across the repo still described it (and the
release-notes dispatch) as firing on `release: [released]`. Sweep those
stale strings so the runbook, pipeline comments, and homebrew docs match
the executable trigger contract. Comments/docs only; no behavior change.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 053d9b6f-21e9-404b-9174-c610ae3a3741
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

Copilot AI review requested due to automatic review settings August 18, 2026 04:37

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.

Review details

Suppressed comments (2)

Previously missed (2) — in code that hasn't changed since the last review.

.github/workflows/homebrew-validate-release.yml:44

  • The automatic event uses vX.Y.Z while the documented manual input is X.Y.Z, so these produce different concurrency groups and can run simultaneously despite the stated deduplication. Normalize the manual branch to the tagged form in the group expression.
  group: homebrew-validate-${{ github.event.release.tag_name || github.event.inputs.release_version }}

.github/workflows/release-notes-generate.md:136

  • Draft releases have published_at: null, but Step 3 still requires the previous release's published_at to be earlier than this value. That condition cannot select a prior stable release, so every draft run can take the “first stable release” fallback and generate notes from only the last 30 commits. Select the latest published, non-prerelease release excluding the current tag (or compare against the draft's created_at) instead.
Fetch the full release record for `microsoft/aspire` by tag
(`GET /repos/microsoft/aspire/releases/tags/<tag>`). Capture its `id`,
`tag_name`, `name`, `body`, `published_at`, `html_url`, `draft`, and
`prerelease`. The workflow runs with a GitHub App token that can see
drafts in `microsoft/aspire`, so this call returns the draft record that
`release-github-tasks.yml` created just before dispatching this workflow.
  • Files reviewed: 17/17 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector (audit mode)

The full test matrix and all jobs still run in audit mode. The tests and jobs below are what selective CI would run under enforcement.

2 / 102 test projects · 4 jobs, from 13 changed files.

Selected test projects (2 / 102)

Aspire.Acquisition.Tests, Infrastructure.Tests

Selected jobs (4)

cli-starter, homebrew-installer, nix-package, winget-installer


How these were chosen — grouped by what changed

📄 .github/workflows/extension-release.yml (changed)
→ 1 directly: Infrastructure.Tests

📄 .github/workflows/homebrew-validate-release.yml (changed)
→ 1 directly: Infrastructure.Tests

📄 .github/workflows/release-github-tasks.yml (changed)
→ 1 directly: Infrastructure.Tests

📄 .github/workflows/release-notes-generate.lock.yml (changed)
→ 1 directly: Infrastructure.Tests

📄 .github/workflows/release-notes-generate.md (changed)
→ 1 directly: Infrastructure.Tests

📄 .github/workflows/update-nix-cli-flake.yml (changed)
→ 1 directly: Infrastructure.Tests

📄 eng/homebrew/prepare-cask-artifact.sh (changed)
→ 1 directly: Aspire.Acquisition.Tests

📄 eng/homebrew/validate-cask-artifact.sh (changed)
→ 1 directly: Aspire.Acquisition.Tests

📄 eng/nix/update-versions.sh (changed)
→ 1 directly: Infrastructure.Tests

📄 eng/pipelines/release-publish-nuget.yml (changed)
→ 1 directly: Infrastructure.Tests

📄 eng/pipelines/templates/prepare-homebrew-cask.yml (changed)
→ 1 directly: Infrastructure.Tests

🧪 tests/Infrastructure.Tests/Pipelines/NixCliPackageTests.cs (changed test)
→ 1 directly: Infrastructure.Tests

🧪 tests/Infrastructure.Tests/Pipelines/ReleasePublishNugetPipelineTests.cs (changed test)
→ 1 directly: Infrastructure.Tests

Job reasons

Job Triggered by
cli-starter selected test Aspire.Acquisition.Tests
homebrew-installer • eng/homebrew/prepare-cask-artifact.sh, eng/homebrew/validate-cask-artifact.sh
• selected test Aspire.Acquisition.Tests
nix-package .github/workflows/update-nix-cli-flake.yml, eng/nix/update-versions.sh
winget-installer selected test Aspire.Acquisition.Tests

Selection computed for commit c33713a.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@joperezr
Jose Perez Rodriguez (joperezr) merged commit 13843dd into main Aug 18, 2026
754 of 757 checks passed
@joperezr
Jose Perez Rodriguez (joperezr) deleted the joperezr/immutable-gh-releases branch August 18, 2026 18:46
@github-actions github-actions Bot added this to the 13.6 milestone Aug 18, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

Step 5 branch taken: docs_required -> true false positive (no doc-worthy content)

Triggered signals (1): pr_body_has_cli_flag_mention

Why this is a false positive: The signal matched the PR-body snippet gh release upload --clobber (evidence file <pr-body>). This is the GitHub CLI (gh) tool used internally by the release-publish-nuget.yml AzDO pipeline job to upload release assets - it is not an Aspire CLI flag, MCP tool, or any user-facing Aspire feature. No other signal fired.

Changed-file analysis: All 17 changed files are internal release-engineering/CI infrastructure in the microsoft/aspire repo: .github/workflows/*.yml (release-github-tasks, release-notes-generate, homebrew-validate-release, update-nix-cli-flake, extension-release), eng/pipelines/release-publish-nuget.yml and its templates, eng/homebrew/* and eng/nix/* scripts and READMEs, docs/release-process.md (an internal engineering process doc that lives in the source repo, not on aspire.dev), and tests/Infrastructure.Tests/Pipelines/*. None of these touch Aspire.Hosting, the CLI product surface, dashboard, integrations, or any public API - they only change how the Aspire maintainers cut and publish a release (draft-then-publish flow for GitHub immutable releases). There is nothing here for an aspire.dev end-user reader to consume.

No documentation changes were made on aspire.dev.

@github-actions github-actions Bot locked and limited conversation to collaborators Sep 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants