Release-prep pipeline: manual runs never create the PR, and scheduled runs fail after creating it
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start with eng/pipelines/release-prep.yml and trace how CheckSchedule sets ShouldPrepareRelease for manual and scheduled runs. Then inspect eng/scripts/helpers/ReleasePrepHelpers.ps1 and the Update-GitHubIssue parameter and variable named in eng/common/scripts/Invoke-GitHubAPI.ps1. Reproduce the manual-run and strict-mode failures; done means manual runs can create the prep PR and scheduled runs complete successfully after creating it.
Written by the indexing model from the issue text.
Description
Two problems with the Azure MCP release-prep pipeline (eng/pipelines/release-prep.yml), added in #4067 and updated in #4143, found during the 4.0.0-beta.9 and 4.0.0-beta.10 releases.
1. Manual runs never create the release-prep PR
The CheckSchedule job's condition is eq(variables['Build.Reason'], 'Schedule'), so manual runs skip it. PrepareRelease depends on its schedule.ShouldPrepareRelease output. That output can't be set when queuing a run, and the pipeline has no parameter to override it. As a result, a manual run (for example, run 20261117.3) succeeds without creating a PR.
A related problem: when the post-release "Increment version after release" PR hasn't merged yet, Invoke-ReleasePrepPullRequest logs "Version X is already finalized. Waiting for the post-release version increment." The run reports success without creating a PR. This happened in run 20261117.2 while #4186 was still open. The 4.0.0-beta.9 prep PR (#4200) then had to be created by hand.
Suggested fixes
- Add a pipeline parameter (for example
ForceRunplus an optionalReleaseDate) so manual runs can skip the schedule check and runPrepareRelease. - Make the "already finalized" and no-changelog-entries skips warn or fail visibly instead of reporting success.
- Document in the release checklist that the version-bump PR must merge before the scheduled run.
2. Scheduled run fails after creating the PR ($Milestone not set)
Run 20261119.2 created #4217 and then failed:
[debug]Pull request created https://github.com/microsoft/mcp/pull/4217
##[error]Call to GitHub API failed with exception:
The variable '$Milestone' cannot be retrieved because it has not been set.
Submitting the release-preparation PR failed with exit code 1.
At eng\scripts\helpers\ReleasePrepHelpers.ps1:275
Root cause: in eng/common/scripts/Invoke-GitHubAPI.ps1, Update-GitHubIssue declares its parameter as [int]$Milestome (typo, line ~520) but reads $Milestone (line ~534). ReleasePrepHelpers.ps1 enables Set-StrictMode -Version Latest (line 190) before calling Submit-PullRequest.ps1, so reading the undefined variable throws. The PR is already created at that point, but every scheduled run is marked as failed.
Suggested fixes
- Fix the typo upstream in
Azure/azure-sdk-toolseng/common, then sync it here. - In the meantime, disable strict mode around the
Submit-PullRequest.ps1call inReleasePrepHelpers.ps1.
cc @alzimmermsft @msalaman
- Dominant language
- C#
- Stars
- 3.9k
- Forks
- 689
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 143
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/mcp
-
[BUG] speech tts synthesize rejects valid locales such as fil-PH, yue-CN and sr-Latn-RS in --languagePossibly taken @Shizoqua claimed this today. OpenAzure.Mcp.Server needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
[BUG] deploy architecture diagram generate never shows Docker settings for container appsPossibly taken @Shizoqua claimed this today. OpenAzure.Mcp.Server needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 2 days
-
[BUG] Single mode: an unknown tool name fails with "An error occurred invoking 'azure'" instead of listing the available toolsPossibly taken @Ahmed-Manai claimed this 9 days ago. Openserver-Azure.Mcp
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
[BUG] pricing get drops tierMinimumUnits, so tiered meters return same-meter prices with no thresholdPossibly taken @msalaman claimed this 29 days ago. Opencustomer-reported needs-team-triage question server-Azure.Mcp tools-Price tools-Pricing
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/mcp#4087 · 1 comment · 1 assignee ·
Maintainers usually reply within 2 days
-
[Doc Gap] README.md still shows removed "Basic" resilience usage plan tier after GA SDK updateMay be free again @anishsinghhh3-bit claimed this 32 days ago, and no pull request is open. Opencopilot documentation server-Azure.Mcp tools-ResilienceManagement
Difficulty 1/5 Under an hour Newbie friendliness 86/100
microsoft/mcp#4008 · 2 comments ·
Maintainers usually reply within 2 days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
microsoft/fluentui-blazor#5721 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Project dependencies are outdatedPossibly taken @yasmoradi claimed this today. Opendependencies
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
bitfoundation/bitplatform#15616 ·
Maintainers usually reply within 1 day
-
:watch: Not Triaged Pri3
Difficulty 1/5 Under an hour Newbie friendliness 91/100
Maintainers usually reply within 1 day
-
area-controls-shell platform/android
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
dotnet/maui#41304 · 1 reaction ·
Maintainers usually reply within 1 day