Skip to content

feat: add cache-mode input to image build workflows#536

Closed
simonrosenberg wants to merge 2 commits intomainfrom
feat/buildkit-cache-mode-input
Closed

feat: add cache-mode input to image build workflows#536
simonrosenberg wants to merge 2 commits intomainfrom
feat/buildkit-cache-mode-input

Conversation

@simonrosenberg
Copy link
Collaborator

Summary

  • Add cache-mode workflow_dispatch input to all 8 build-*-images.yml workflows
  • Pass it as OPENHANDS_BUILDKIT_CACHE_MODE env var to build steps
  • Defaults to max (preserving existing behavior), accepts max, min, or off

This wires up the SDK's new OPENHANDS_BUILDKIT_CACHE_MODE env var (merged in software-agent-sdk#2479) so callers can disable or reduce cache exports when triggering batch image builds via workflow_dispatch.

Test plan

  • Trigger a build workflow with cache-mode: off and verify no --cache-to args in build logs
  • Trigger with default (max) and verify existing behavior is unchanged

🤖 Generated with Claude Code

Wire up OPENHANDS_BUILDKIT_CACHE_MODE env var (from SDK PR #2479) as a
workflow_dispatch input so callers can control BuildKit cache export
behavior (max/min/off) when triggering image builds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Collaborator

@all-hands-bot all-hands-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Good taste - Clean, mechanical change that solves a real problem without over-engineering. The passthrough design preserves backward compatibility and adds exactly the control needed for batch builds. One minor process note about testing evidence below.

@@ -266,6 +271,7 @@ jobs:
DOCKER_BUILDKIT: 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Acceptable: Correctly includes the cache-mode in both build steps (runtime images at line 209 and eval env images here at line 267), consistent with how other env vars like BUILDKIT_RESET_ON_FAILURE are handled. Good attention to completeness.

…he-mode testing

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@simonrosenberg
Copy link
Collaborator Author

Closing this PR. At this point we only wish to set non default cache-mode values to swtbench, which is done in this PR #541

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