fix: clean up main branch container images - #1339
Conversation
Signed-off-by: valdo766hi <rivaldosilalahi13@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughGitHub Actions workflow now named "Cleanup Container Images"; reformats ChangesContainer Image Cleanup Workflow
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/cleanup-untagged-images.yml:
- Line 117: Replace the mutable tag usage "dataaxiom/ghcr-cleanup-action@v1.2.1"
with an immutable 40-character commit SHA for the same action (e.g.,
"dataaxiom/ghcr-cleanup-action@<full-commit-sha>"); find the correct commit SHA
in the dataaxiom/ghcr-cleanup-action repository (the commit corresponding to
v1.2.1 or the desired release) and update the uses line so the workflow
references that exact SHA instead of the version tag.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 66fc5d07-a25f-447a-9701-ec209549213d
📒 Files selected for processing (1)
.github/workflows/cleanup-untagged-images.yml
Signed-off-by: valdo766hi <rivaldosilalahi13@gmail.com>
Signed-off-by: valdo766hi <rivaldosilalahi13@gmail.com>
|
please take a look sir @KaivalyaMDabhadkar |
|
Thanks for the PR @valdo766hi ! This PR changes scheduled runs from dry-run to real deletion, because schedule events now resolve This step is still using Can you please:
|
Signed-off-by: valdo766hi <rivaldosilalahi13@gmail.com>
|
Thanks for the review @KaivalyaMDabhadkar. I updated the existing untagged cleanup to use For the dry-run output, running this from my fork would not be useful because the job is guarded with Could a maintainer/vetter trigger or approve a manual |
|
@valdo766hi this PR has been inactive for 14 days. Do you need help finishing it, or should we close it for now? Feel free to reopen anytime. |
|
@KaivalyaMDabhadkar , can you please help here? |
|
Hi @valdo766hi, apologies for the long silence here, this fell off my radar. I re-reviewed the latest changes and the On the dry run: you're right, I'll push this branch to a temporary branch in No further action currently needed from your side, thanks for the contribution and for your patience! |
|
Hi @valdo766hi, About the The I’m going to request that this exact SHA be added to the Actions allowlist: After reviewing the alternatives, I prefer keeping the purpose-built action rather than replacing it with an inline No change is currently needed from your side for the One change is still needed: - nvsentinel/slinky-drainerEverything else reviewed clean. Thanks for the contribution and your patience! |
|
Hi @valdo766hi, closing the loop on the Round 1, allowlisted, ran as-is: the policy gate cleared, but the run failed on all 23 of the current-generation Round 2, throttled with So two asks, and apologies for moving the goalposts after saying no change was needed on this step: 1. Could you replace the
I've already validated exactly this logic across the full matrix at full parallelism (run 30342041763): 41/42 green, 10,548 stale 2. The slinky fix from my last comment still applies: One optional extra if you're up for it: the same step can also clean up orphaned attestation referrers (versions whose only tags are Once you've pushed both changes, I'll re-run the dry run against your branch, post the log here, and approve. Thanks so much for your patience, this PR ended up being even more valuable than it first looked, since the snok bump also fixes our nightly cleanup, which has been silently failing. |
Closes #171.
Summary
This completes the cleanup work started in #598.
The existing workflow only removes untagged GHCR images. Images published from
mainare tagged asmain-<shortsha>, so they were not covered by the untagged cleanup policy.Changes
main-*tagged imagesmain-*Validation
Summary by CodeRabbit