Skip to content

ci: trigger azure-sdk-for-python regeneration after http-client-python publish#10443

Closed
iscai-msft wants to merge 1 commit intomicrosoft:mainfrom
iscai-msft:python/publish-dispatch
Closed

ci: trigger azure-sdk-for-python regeneration after http-client-python publish#10443
iscai-msft wants to merge 1 commit intomicrosoft:mainfrom
iscai-msft:python/publish-dispatch

Conversation

@iscai-msft
Copy link
Copy Markdown
Member

After http-client-python is published to npm, dispatch a typespec-python-regenerate event to Azure/azure-sdk-for-python to trigger test regeneration.

Uses the existing login-to-github.yml template to mint a GitHub App token via Azure Key Vault (no PAT needed).

Changes:

  • eng/emitters/pipelines/templates/stages/emitter-stages.yml: Add dispatch step after publish, gated to python language only

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - internal ✏️

Add repository_dispatch to publish pipeline to trigger azure-sdk-for-python regeneration

@iscai-msft iscai-msft force-pushed the python/publish-dispatch branch from 812849c to fdb7689 Compare April 21, 2026 20:59
@iscai-msft iscai-msft enabled auto-merge April 21, 2026 21:00
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Apr 21, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 21, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-python@10443

commit: de7d0e4

…n publish

Add a Python_Notify stage to the http-client-python publish pipeline
that dispatches a typespec-python-regenerate event to
Azure/azure-sdk-for-python after successful publish. Uses
login-to-github.yml to mint a GitHub App token via Azure Key Vault.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@iscai-msft iscai-msft force-pushed the python/publish-dispatch branch from fdb7689 to de7d0e4 Compare April 21, 2026 21:01
@azure-sdk
Copy link
Copy Markdown
Collaborator

azure-sdk commented Apr 21, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Copy link
Copy Markdown

@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.

This seems reasonable to me! The action over in github can be both manually or automatically triggered based on this event. Only authorized users can push this event, so that should be fine.

@iscai-msft
Copy link
Copy Markdown
Member Author

No longer needed - switching to push-based trigger on eng/emitter-package.json instead of repository_dispatch.

@iscai-msft iscai-msft closed this Apr 23, 2026
auto-merge was automatically disabled April 23, 2026 14:17

Pull request was closed

@iscai-msft iscai-msft deleted the python/publish-dispatch branch April 23, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python eng

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants