Skip to content

Decouple production PyPI publishing from TestPyPI - #15

Merged
MrGeislinger merged 1 commit into
AI-Hypercomputer:mainfrom
chiajunglien:emma/decouple-testpypi
Nov 25, 2026
Merged

MrGeislinger merged 1 commit into
AI-Hypercomputer:mainfrom
chiajunglien:emma/decouple-testpypi

Conversation

@chiajunglien

@chiajunglien chiajunglien commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Description

publish-pypi currently waits for publish-testpypi, but a Trusted Publisher can't be added on test.pypi.org/project/tpu-info yet. That means a tpu-info-v* tag release could never reach OSS Exit Gate. This PR removes that dependency.

Changes

  • release.yml
    • publish-pypi now only needs test-and-build, so tag releases go straight from test-and-build to OSS Exit Gate.
    • publish-testpypi is skipped unless the repository variable ENABLE_TESTPYPI_PUBLISH is true. Once TestPyPI ownership is reclaimed and a Trusted Publisher is added, it can be re-enabled without a code change.
    • Manual workflow_dispatch runs are now dry runs: test-and-build runs and uploads the tpu-info-dist wheel and sdist as workflow artifacts. Nothing is published.
  • ci.yml: also triggers on changes under .github/workflows/**, so workflow-only PRs run CI.

Job behavior

Event test-and-build publish-testpypi publish-pypi
workflow_dispatch on main runs skipped skipped
tpu-info-v* tag push runs skipped runs (OSS Exit Gate)

Testing

  • actionlint and zizmor report no issues.
  • CI passes on Python 3.10–3.12.
  • Dry run before merge: I ran this branch's release.yml via workflow_dispatch (run):
    • test-and-build passed: unit tests, build, twine check, wheel smoke test, and Cloud TPU runtime check.
    • publish-testpypi and publish-pypi were skipped as expected.
    • The tpu-info-dist artifact (wheel and sdist) was uploaded.
  • After merge, I'll re-run it on main to confirm the merged result.

- publish-pypi now only needs test-and-build, so tpu-info-v* tag releases
  go straight from test-and-build to OSS Exit Gate.
- publish-testpypi is skipped unless the repository variable
  ENABLE_TESTPYPI_PUBLISH is "true", until a TestPyPI Trusted Publisher can
  be added for tpu-info.
- Manual workflow_dispatch runs are now dry runs: test-and-build runs and
  uploads the tpu-info-dist artifacts; nothing is published.
- ci.yml also runs on changes under .github/workflows/, so workflow-only
  PRs run CI.
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@MrGeislinger MrGeislinger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm!

@MrGeislinger
MrGeislinger merged commit fa1a8e2 into AI-Hypercomputer:main Nov 25, 2026
12 checks passed
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