Skip to content

ci(publish-python): twine upload --verbose + tag guard#43

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/twine-verbose
May 24, 2026
Merged

ci(publish-python): twine upload --verbose + tag guard#43
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/twine-verbose

Conversation

@ZhiXiao-Lin
Copy link
Copy Markdown
Contributor

Why

The v3.2.0 release (`release.yml` run #26338778339) fails on the second wheel upload to PyPI with a generic `400 Bad Request`. twine swallows the response body unless `--verbose` is set, so we currently can't see the actual reason.

Changes

  1. `twine upload` now runs with `--verbose --skip-existing`. Next retry will surface the actual PyPI error body.
  2. The three GitHub-Release-only steps (`Ensure release exists`, `Generate native wheel manifest`, `Upload manifest`) are now guarded with `if: startsWith(github.ref, 'refs/tags/')`. This way `workflow_dispatch` from `main` (used for debugging) can exercise the PyPI publish path without those steps tripping on a missing release name.

Plan

After this PR merges to main, dispatch `publish-python.yml` manually from main against the v3.2.0 wheels, capture the verbose output, then iterate on the actual root cause.

The v3.2.0 release fails on the second wheel upload to PyPI with a
generic 400 Bad Request. twine swallows the response body unless
--verbose is set; this commit adds the flag so the next retry surfaces
the actual reason from PyPI.
@ZhiXiao-Lin ZhiXiao-Lin merged commit 5e1012d into main May 24, 2026
1 check passed
@ZhiXiao-Lin ZhiXiao-Lin deleted the fix/twine-verbose branch May 24, 2026 01:18
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