Artifact retention prune utility for recorded retention-days #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
retention-daysis recorded in metadata but never enforced by the action. Operators using local storage or buckets without lifecycle rules need a first-party pruning tool.Verified
README.mdsays retention-days is recorded but not enforced.src/lib/upload-impl.jswritesretentionDaysmetadata only.Build
Already implemented on
main: the retention prune utility shipped in7276057(PR #2, mergingc9529da).src/prune.jsreads each artifact's recordedretentionDays, prunes only entries whose window has elapsed, supports--dry-runand a--force/--max-agefallback for records without a retention window, skips entries with missing/unusable metadata, and preserves fresh runs, with tests. Closing as done; the issue was just never closed at merge time.