Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI:TOOLING] Increase obsolete image flagging and pruning #370

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

cevich
Copy link
Member

@cevich cevich commented Jul 5, 2024

Increase obsolete image flagging and pruning

It was observed in the Cirrus-CI cron logs, that only the total
number of images scanned is reported. Fix this by giving more
useful info., like the number of candidates for obsolete/pruning.

Related, the original restriction of 10 obsolete/prune images
was originally put in place when only a few repos utilized Cirrus-CI
VMs and image building was substantially more infrequent. The
reason it exists is to prevent potential catastrophe should the meta
time stamp updating tasks have a bug or some other related failure occur.
Increase the limit to 50 so deletions may proceed much more rapidly.

Note: "Obsolete" images still live w/in a 30-day window where they can
be recovered if need be. It's simply that any attempted use by CI will
fail, putting someone on notice that image recovery may be necessary.

The `uuidgen` tool has long-since been removed from the tooling images.
For whatever reason one call to it still existed.  Remove it.

Signed-off-by: Chris Evich <cevich@redhat.com>
@cevich cevich marked this pull request as draft July 5, 2024 16:24
@cevich
Copy link
Member Author

cevich commented Jul 5, 2024

@edsantiago PTAL when you get a chance, this isn't super urgent. Note: I'm aware the commits & messages are wonky (I thought the 500+ in the logs showed candidates not totals). I'll fix up the commits after you are able to take a look.

@edsantiago
Copy link
Member

LGTM

@cevich cevich marked this pull request as ready for review July 8, 2024 13:51
It was observed in the Cirrus-CI cron logs, that only the total
number of images scanned is reported.  Fix this by giving more
useful info., like the number of candidates for obsolete/pruning.

Related, the original restriction of `10` obsolete/prune images
was originally put in place when only a few repos utilized Cirrus-CI
VMs and image building was substantially more infrequent.  The
reason it exists is to prevent potential catastrophe should the `meta`
time stamp updating tasks have a bug or some other related failure occur.
Increase the limit to `50` so deletions may proceed much more rapidly.

*Note:* "Obsolete" images still live w/in a 30-day window where they can
be recovered if need be.  It's simply that any attempted use by CI will
fail, putting someone on notice that image recovery may be necessary.

Signed-off-by: Chris Evich <cevich@redhat.com>
@cevich
Copy link
Member Author

cevich commented Jul 8, 2024

Force-push: No code changes, just commit/message cleanup.

@edsantiago
Copy link
Member

LGTM again, merge at will

@cevich cevich merged commit e166288 into containers:main Jul 8, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants