Skip to content

Preserve published Python release assets on retries - #4010

Merged
LauraGPT merged 1 commit into
mainfrom
codex/preserve-python-release-assets
Dec 2, 2026
Merged

LauraGPT merged 1 commit into
mainfrom
codex/preserve-python-release-assets

Conversation

@LauraGPT

@LauraGPT LauraGPT commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

The root release-on-tag job previously passed --clobber for both Python distributions, even if one of the names already held different bytes. Preflight the whole pair by SHA-256 before any upload, skip identical assets, upload only missing files without replacement, and check the resulting inventory. The runtime path, tag triggers and releases already published are unchanged.

Validation: 49 related Shanghai tests passed, including building the sdist and wheel, rendering its reader links and exercising first upload, no-op retry, partial state and absent/mismatching digests. Ran the old and new workflow shell commands offline with real local package files and a recording gh substitute: the old command overwrote a conflicting fixture and exited successfully; the new one performed zero writes and returned nonzero. No actual release, tag, PyPI upload or credentials were used by the fixture.

Signed-off-by: zhifu gao <zhifu.gzf@alibaba-inc.com>
@LauraGPT
LauraGPT merged commit 49ff21a into main Dec 2, 2026
1 check 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.

1 participant