Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ jobs:
with:
name: dist
path: dist/*
retention-days: 7
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
with:
name: python-package-distributions
path: dist/
retention-days: 1

@gitar-bot gitar-bot Bot Nov 24, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Edge Case: 1-day retention can break delayed PyPI publishes and re-runs of failed jobs

publish-to-pypi runs in the pypi environment. If that environment requires a reviewer, the job waits for approval, and GitHub lets that wait last up to 30 days. If someone approves more than 24 hours after gate, or re-runs only the failed publish-to-pypi/github-release job a day later (for example after a PyPI outage or a failed gh release upload), download-artifact fails because the artifact has expired. The only way out is to re-run every job, which rebuilds the dist. A few days of retention (e.g. 3–7) still saves most of the storage and covers these recovery cases.

Keep the release artifact long enough to cover approval delays and re-runs of single jobs:

retention-days: 7

Was this helpful? React with 👍 / 👎


publish-to-pypi:
name: Publish distribution to PyPI
Expand Down
Loading