Skip to content

Add daily pipeline to register unregistered azure-mgmt-* package names#45485

Open
msyyc wants to merge 10 commits intomainfrom
register-package-name-pipeline
Open

Add daily pipeline to register unregistered azure-mgmt-* package names#45485
msyyc wants to merge 10 commits intomainfrom
register-package-name-pipeline

Conversation

@msyyc
Copy link
Member

@msyyc msyyc commented Mar 3, 2026

What

Adds a new scheduled pipeline eng/pipelines/register-package-name.yml that runs daily to automatically register unregistered azure-mgmt-* package names on PyPI.

How it works

  1. Scan: Finds all sdk/*/azure-mgmt-*/**/_version.py files where VERSION = "1.0.0b1" (new, unreleased packages)
  2. Check PyPI: Queries PyPI for each candidate - skips packages already registered
  3. Trigger: Calls pipeline 8013 (name reservation) via REST API with NameForReservation parameter for each unregistered package

Details

  • Scheduled daily at 8:00 AM UTC
  • No PR or push triggers
  • Continues on error and reports all failures at the end
  • Uses `` for pipeline-to-pipeline authentication

Test

https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5950914&view=results, it found the unregistered package then trigger the namespace reserve pipeline automatically : https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5950943&view=results

msyyc and others added 6 commits March 3, 2026 11:18
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PowerShell does not support ** in -Path; use -Recurse -Filter instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@msyyc msyyc marked this pull request as ready for review March 10, 2026 02:44
@msyyc msyyc requested a review from scbedd as a code owner March 10, 2026 02:44
Copilot AI review requested due to automatic review settings March 10, 2026 02:44
@msyyc msyyc requested review from benbp and weshaggard as code owners March 10, 2026 02:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new scheduled Azure DevOps pipeline to automatically detect newly introduced azure-mgmt-* packages that haven’t been registered on PyPI yet and trigger the existing name-reservation pipeline to reserve those package names.

Changes:

  • Introduces a daily scheduled pipeline with no PR/push triggers.
  • Scans sdk/*/azure-mgmt-*/**/_version.py for VERSION = "1.0.0b1" candidates.
  • Checks PyPI registration status and queues pipeline 8013 for unregistered names.

msyyc and others added 3 commits March 10, 2026 10:52
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

pool:
name: azsdk-pool
image: ubuntu-24.04
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use our 1ES hosted pool

@@ -0,0 +1,135 @@
trigger: none
pr: none
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what you're going for here, but I think this is overly complex.

  1. You can update the existing build to do the grep of the version files if there is no value for the package name for reservation. (make default value auto for the package name, which should trigger an additional grep for package name step). Doing it this way means you don't need to worry about access token to queue another build or anything like that. You can just add a schedule to the reserve-namespace-build as it is.
  2. This issue covers the proper solution to this. I reached out to Mariana when this came up before. I KNOW we trigger a couple pipelines for this. That is the true solution to the issue that this PR is solving.

I'll approve a stop gap that just adds a scheduled run to the existing build.

Copy link
Member

@scbedd scbedd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The single comment. I'm fine with just working this as a scheduled part of the existing namereserve build.

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.

4 participants