mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-11-20 13:07:57 +09:00
chore(pypi): prune keep-window default 60→30 days (#1082)
Ran the PyPI prune runbook today (2026-09-29): publishing was blocked (`Project size too large`). The 60-day policy would only have freed 1.08 GB (→9.64 GB), refilling within ~a week, so pruned with `--keep-days 30` instead (69 releases deleted, 0.188.5–0.207.0; newest release of each older month retained) → ~6.8 GB. Re-ran the failed publish; 0.249.0 is live on PyPI. This PR makes 30 days the default in the planner script, the monthly reminder workflow, and the runbook. Unit tests pass (13). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
385a997aba
commit
cb5ce7f162
3 files changed
+9
-7
No files matched your search
@@ -29,7 +29,7 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
PROJECT: karaoke-gen
|
||||
KEEP_DAYS: "60"
|
||||
KEEP_DAYS: "30"
|
||||
# Only nag once the project crosses this watermark — pruning holds it at
|
||||
# ~4-7 GB, and there are always old releases to consolidate, so without a
|
||||
# threshold this would open an issue every month for no real reason. 7 GB
|
||||
|
||||
@@ -27,10 +27,12 @@ human step.
|
||||
|
||||
## Retention policy
|
||||
|
||||
Keep every release from the **last 60 days**, plus the **newest release of each
|
||||
Keep every release from the **last 30 days**, plus the **newest release of each
|
||||
older calendar month**, plus the **latest release overall**. Delete the rest.
|
||||
Run recurringly, this holds steady-state around 6–7 GB — permanently under the
|
||||
cap. Deletion is irreversible and a deleted version/filename can never be
|
||||
cap. (The window was 60 days until 2026-09-29; at the current release rate a
|
||||
60-day window alone is ~9.6 GB, so a prune freed only ~1 GB and the cap refilled
|
||||
within a week.) Deletion is irreversible and a deleted version/filename can never be
|
||||
re-uploaded; that's acceptable here (nothing builds from source; PyPI is only the
|
||||
public `pip install` channel, whose users want recent versions).
|
||||
|
||||
@@ -72,8 +74,8 @@ python scripts/prune_pypi_releases.py --format console-js
|
||||
python scripts/prune_pypi_releases.py --format json
|
||||
python scripts/prune_pypi_releases.py --format markdown
|
||||
|
||||
# Tune the window (default 60 days) or target another project
|
||||
python scripts/prune_pypi_releases.py --keep-days 90 --project karaoke-gen
|
||||
# Tune the window (default 30 days) or target another project
|
||||
python scripts/prune_pypi_releases.py --keep-days 60 --project karaoke-gen
|
||||
```
|
||||
|
||||
Stdlib only — no dependencies to install.
|
||||
|
||||
@@ -278,8 +278,8 @@ def main(argv: list[str] | None = None) -> int:
|
||||
parser.add_argument(
|
||||
"--keep-days",
|
||||
type=int,
|
||||
default=60,
|
||||
help="Keep every release younger than this many days (default: 60).",
|
||||
default=30,
|
||||
help="Keep every release younger than this many days (default: 30).",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--format",
|
||||
|
||||
Reference in new issue
Block a user