From d55fafd13008d750061116ccd03701020a2f0c6b Mon Sep 17 00:00:00 2001 From: "clawsweeper[bot]" <274271284+clawsweeper[bot]@users.noreply.github.com> Date: Wed, 29 Apr 2026 23:16:10 -0700 Subject: [PATCH] fix(ci): disable install smoke Docker build cache Co-authored-by: openclaw-clawsweeper[bot] <280122609+openclaw-clawsweeper[bot]@users.noreply.github.com> --- .github/workflows/install-smoke.yml | 6 ------ test/scripts/test-install-sh-docker.test.ts | 5 +++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/install-smoke.yml b/.github/workflows/install-smoke.yml index a9427ef0a3e..f8ef9ba6ff0 100644 --- a/.github/workflows/install-smoke.yml +++ b/.github/workflows/install-smoke.yml @@ -54,7 +54,6 @@ jobs: run_bun_global_install_smoke: ${{ steps.manifest.outputs.run_bun_global_install_smoke }} target_sha: ${{ steps.manifest.outputs.target_sha }} dockerfile_image: ${{ steps.manifest.outputs.dockerfile_image }} - dockerfile_cache_scope: ${{ steps.manifest.outputs.dockerfile_cache_scope }} steps: - name: Checkout uses: actions/checkout@v6 @@ -81,7 +80,6 @@ jobs: target_sha="$(git rev-parse HEAD)" owner="$(printf '%s' "${GITHUB_REPOSITORY_OWNER:-openclaw}" | tr '[:upper:]' '[:lower:]')" dockerfile_image="ghcr.io/${owner}/openclaw-dockerfile-smoke:${target_sha}" - dockerfile_cache_scope="openclaw-dockerfile-smoke" if [ "$event_name" = "schedule" ]; then run_bun_global_install_smoke=true elif [ "$event_name" = "workflow_dispatch" ] || [ "$event_name" = "workflow_call" ]; then @@ -97,7 +95,6 @@ jobs: echo "run_bun_global_install_smoke=$run_bun_global_install_smoke" echo "target_sha=$target_sha" echo "dockerfile_image=$dockerfile_image" - echo "dockerfile_cache_scope=$dockerfile_cache_scope" } >> "$GITHUB_OUTPUT" install-smoke-fast: @@ -254,14 +251,11 @@ jobs: - name: Build and push root Dockerfile smoke image if: steps.existing.outputs.exists != 'true' env: - CACHE_SCOPE: ${{ needs.preflight.outputs.dockerfile_cache_scope }} IMAGE_REF: ${{ needs.preflight.outputs.dockerfile_image }} run: | timeout 45m docker buildx build \ --progress=plain \ --push \ - --cache-from "type=gha,scope=${CACHE_SCOPE}" \ - --cache-to "type=gha,scope=${CACHE_SCOPE},mode=max" \ --build-arg OPENCLAW_EXTENSIONS=matrix \ -t "$IMAGE_REF" \ -f ./Dockerfile \ diff --git a/test/scripts/test-install-sh-docker.test.ts b/test/scripts/test-install-sh-docker.test.ts index d5a1b28f1ee..7ccb6b21281 100644 --- a/test/scripts/test-install-sh-docker.test.ts +++ b/test/scripts/test-install-sh-docker.test.ts @@ -211,8 +211,9 @@ describe("bun global install smoke", () => { expect(workflow).toContain("timeout 45m docker buildx build"); expect(workflow).toContain("--progress=plain"); expect(workflow).toContain("--load"); - expect(workflow).not.toContain("cache-from: type=gha,scope=openclaw-dockerfile-smoke"); - expect(workflow).not.toContain("cache-to: type=gha,scope=openclaw-dockerfile-smoke"); + expect(workflow).not.toContain("--cache-from"); + expect(workflow).not.toContain("--cache-to"); + expect(workflow).not.toContain("type=gha"); expect(workflow).toContain('OPENCLAW_INSTALL_SMOKE_SKIP_NPM_GLOBAL: "1"'); expect(releaseChecks).toContain("install_smoke_release_checks:"); expect(releaseChecks).toContain("uses: ./.github/workflows/install-smoke.yml");