Skip to content

Exclude release owners and requester from ESRP approvers - #40084

Merged
kubaflo merged 10 commits into
mainfrom
mattleibow-nuget-publishing-diagnostics
Nov 9, 2026
Merged

kubaflo merged 10 commits into
mainfrom
mattleibow-nuget-publishing-diagnostics

Conversation

@mattleibow

@mattleibow mattleibow commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

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!

Target Branch

This PR is for Initial base
New features, API changes, or .NET 12 work (including .NET 12 fixes) main
.NET 11 servicing fixes net11, for review
Older servicing, release integration, infrastructure, or documentation The branch designated for that work

For .NET 11 fixes, only a maintainer retargets the approved PR to the active
inflight lane and merges it after CI validates that final base. Do not merge
individual fixes directly into net11; agents must not retarget or merge.

Description of Change

Follow up on #40083 to allow members of the default ESRP approver list to queue releases without failing owner/approver overlap validation.

  • Add maleib@microsoft.com and jopepper@microsoft.com to the default approver list, preserving existing approvers.
  • Before submission, exclude all release owners and the person who queued the run from the approver list. The requester is excluded even when the owner parameter is overridden.
  • Log exclusions, deduplicate remaining approvers, and fail if no independent approver remains.
  • Pass normalized owners and the resolved approver list to EsrpRelease@14.

Addresses the validation failure in internal run 3130791, where the requester was both the default owner and a configured approver.

Validation: local execution of the YAML-embedded PowerShell confirmed case-insensitive requester/owner exclusion, requester exclusion with overridden owners, preservation of other approvers, normalized task inputs, and rejection when no independent approver remains. YAML parsing and git diff --check passed. No new release was triggered; end-to-end ESRP publication remains unverified.

Issues Fixed

No linked GitHub issue. Fixes ESRP owner/approver overlap during release submission and updates the default approver list.

mattleibow and others added 7 commits November 5, 2026 00:48
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 9, 2026 19:41
@github-actions

github-actions Bot commented Nov 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/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40084

Or

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

@azure-pipelines

This comment has been minimized.

@github-actions github-actions Bot added the area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions label Nov 9, 2026

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.

🟢 Approval recommended

No active review issues remain for the ESRP release-approver update.

No open issues 🎉

What changed in this PR

Adds jopepper@microsoft.com to the default ESRP release approvers for .NET MAUI’s official release pipeline, following the ESRP publishing integration in #40083.

Changes:

  • Appends the new approver while preserving all existing approvers.
File Description
eng/​pipelines/​ci-official-release.yml Updates the default esrpApprovers list.

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 9, 2026 20:01
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@mattleibow mattleibow changed the title Add jopepper to ESRP release approvers Exclude release owners and requester from ESRP approvers Nov 9, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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 title, description, and validation notes do not cover broader approval-policy changes that can alter approver sets or reject previously valid release runs.

1 open issue

Review effort: Balanced

Comment on lines +31 to +33
$approvers = @($approvers | Where-Object { $_ -notin $ineligibleApprovers } | Select-Object -Unique)
if ($approvers.Count -eq 0) {
throw 'Set esrpApprovers to include at least one individual who is neither a release owner nor the requester.'
Copilot AI balanced review requested due to automatic review settings November 9, 2026 20:07
@kubaflo
kubaflo merged commit 83ac90a into main Nov 9, 2026
5 of 16 checks passed
@kubaflo
kubaflo deleted the mattleibow-nuget-publishing-diagnostics branch November 9, 2026 20:09

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.

🔵 Needs a closer look

Production ESRP approval changes require release-maintainer confirmation of the expanded approver roster and end-to-end validation of resolved identities and independent-approver handling, which remain unverified.

1 open issue

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants