Skip to content

[CI] Automate Platform API client upgrade PRs - #164

Merged
michaelshin merged 3 commits into
mainfrom
michaelshin/automate-sdk-client-updates
Nov 25, 2026
Merged

michaelshin merged 3 commits into
mainfrom
michaelshin/automate-sdk-client-updates

Conversation

@michaelshin

@michaelshin michaelshin commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Published Platform API clients currently require a manual SDK dependency update. Add a workflow that accepts a publication event or a manual version input, updates the dependency pin and README compatibility note, and opens an upgrade PR that runs the existing SDK/CLI checks.

The workflow validates stable versions, skips versions at or below the current pin, and verifies availability on PyPI for Python 3.10. Different version inputs use separate concurrency groups so a delayed event cannot displace another version's pending run.

Retries leave existing PRs and their commits unchanged, including handwritten compatibility fixes. If branch creation succeeded but PR creation failed, a retry opens the PR from the existing branch without rewriting it. New branches use ordinary Git pushes so a concurrently created branch cannot be overwritten. Closed PRs are left alone.

Validation: actionlint v1.7.12 and git diff --check passed. The embedded version updater passed 12 isolated scenarios. The PR creation shell step passed seven integration scenarios using local Git repositories and a stubbed GitHub CLI: new PR, duplicate event preserving human commits, closed PR, recovery after PR creation failure, API lookup failure, Git lookup failure, and concurrent branch creation. The live GitHub dispatch-to-PR flow has not been exercised.

Enablement after merge: configure SDK_UPDATE_TOKEN in both repositories and add the documented post-publish trigger in the generated-client repository. SDK releases remain separate.


- uses: actions/setup-python@v6
with:
python-version: "3.10"

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.

can we bump this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

@michaelshin
michaelshin merged commit 7cfd52f into main Nov 25, 2026
6 checks passed
@michaelshin
michaelshin deleted the michaelshin/automate-sdk-client-updates branch November 25, 2026 16:41
@atokayev atokayev mentioned this pull request Nov 25, 2026
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.

2 participants