Commit Graph
1 Commits
Author SHA1 Message Date
Davanum Srinivas 2624fecd31 chore(hack): add a cleanup script for the binaries and images pushed to GitHub (#1731)
* chore(hack): add a cleanup script for the binaries and images pushed to GitHub

Dry run by default; on --apply it deletes release assets and records, the GHCR packages, Actions artifacts and caches, in that order. Tags and source stay.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

* fix(hack): apply --keep before --only, keep releases with excluded assets, test tags singly

Review of #1731: exclusions now win on either name, a release stays when a filter excludes one of its assets, every tag of a version is tested on its own, untagged versions skip the name test, a fully selected package is deleted as a package, listings dedupe, rate limits throttle, and --apply checks the token scopes.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

* fix(hack): wait a minute on a secondary rate limit, keep a failed scope probe non-fatal

CodeRabbit on #1731: GitHub asks for at least sixty seconds after a secondary rate limit, and a failed header probe should not abort the run before the first DELETE reports the real permission error.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

---------

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
2026-10-17 12:31:13 -04:00