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 @@ -74,3 +74,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 @@ -77,6 +77,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 breaks re-runs and delayed approval of release jobs

The python-package-distributions artifact is downloaded by two jobs in the same run: publish-to-pypi, which is gated on the pypi environment, and github-release. With retention-days: 1, two things break once 24 hours have passed. First, re-running a failed github-release (for example after a gh release error) fails at download-artifact because the artifact has expired. Second, a pypi approval that waits more than a day hits the same failure. Recovering with "re-run all jobs" rebuilds the dists, but the PyPI upload then fails because that version already exists, so the release is stuck halfway. A few days of retention still saves most of the storage and leaves time to recover.

Keep release dists long enough to re-run failed jobs or approve a delayed deployment:

retention-days: 7

Was this helpful? React with 👍 / 👎


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