Skip to content

ci: clear the build cache before retrying a bake - #7666

Merged
viceice merged 1 commit into
mainfrom
viceice/ci/bake-retry-prune
Oct 8, 2026
Merged

viceice merged 1 commit into
mainfrom
viceice/ci/bake-retry-prune

Conversation

@viceice

@viceice viceice commented Oct 8, 2026

Copy link
Copy Markdown
Member

Changes

The bake action now runs docker buildx prune --force before each retry. An aborted build can leave a broken snapshot in the builder cache, and every retry then fails with failed to commit … snapshot … does not exist: not found instead of retrying the actual build (seen in the node test of #7662, where the first attempt failed on a transient download error). Errors from the prune only show up as warnings, so it can't make a retry fail.

Context

Please select one of the following:

  • This closes an existing Issue, Closes: #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Written by Claude Opus 5.5 in Claude Code.

Use of AI in replying to PR comments

Who answers review comments:

  • @viceice will read and reply directly. Name the account.
  • An agent will draft replies and @username will read them before they are posted. Name the account.
  • An agent will draft replies and reply autonomously. This is heavily discouraged, and we prefer that there are humans in the loop
  • Nobody has explicitly committed to replying.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified tests

actionlint and zizmor pass. The retry path only runs after a failed build, so CI here doesn't exercise it.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <michael.kriese+claude-code@mend.io>
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: containerbase/coderabbit/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1c8b44b5-aa63-4b10-aecd-567535e5eed9
📥 Commits

Reviewing files that changed from the base of the PR and between 92ac6eb and 812ac6b.

📒 Files selected for processing (1)
  • .github/actions/bake/action.yml
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@viceice
viceice enabled auto-merge October 8, 2026 14:30
@jamietanna

Copy link
Copy Markdown
Contributor

/agentic_review

@viceice
viceice added this pull request to the merge queue Oct 8, 2026
@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Qodo Logo

Merged via the queue into main with commit 68816ad Oct 8, 2026
61 checks passed
@viceice
viceice deleted the viceice/ci/bake-retry-prune branch October 8, 2026 15:16
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