From 805209145b04f5560832d0e8578a889fd1543a50 Mon Sep 17 00:00:00 2001 From: Mukunda Rao Katta Date: Sun, 26 Apr 2026 13:39:11 -0700 Subject: [PATCH] fix(cache): disable setup-bun cache to avoid 5-retry HTML-error burn The upstream oven-sh/setup-bun action saves with a deterministic key (Bun version) that isn't ref-aware. On every second-and-subsequent run against the same PR ref, the GitHub cache API rejects the duplicate key+ref with a 409 (HTML body), and @actions/cache treats the unparsable response as transient and burns ~20-30s on 5 retries before warning. The 35 MB Bun binary downloads in 2-3s, so disabling the cache is a net wallclock win and removes the noisy warning that fires on every PR push after the first. Closes #1252 --- action.yml | 8 ++++++++ base-action/action.yml | 2 ++ 2 files changed, 10 insertions(+) diff --git a/action.yml b/action.yml index b6d0f05b9..64ec1036f 100644 --- a/action.yml +++ b/action.yml @@ -177,6 +177,14 @@ runs: with: bun-version: 1.3.6 token: ${{ inputs.github_token || github.token }} + # Disable setup-bun's cache. The upstream save step uses a deterministic + # key (Bun version) and isn't ref-aware: on every second-and-subsequent + # run against the same PR ref the GitHub cache API rejects the duplicate + # key+ref with a 409 (HTML body), and @actions/cache treats the unparsable + # response as transient and burns ~20-30s on 5 retries before warning. + # The 35 MB Bun binary downloads in 2-3s, so disabling the cache is a net + # wallclock win and removes the noisy warning. See issue #1252. + no-cache: true - name: Setup Custom Bun Path if: inputs.path_to_bun_executable != '' diff --git a/base-action/action.yml b/base-action/action.yml index 5cc504ff1..069f35b25 100644 --- a/base-action/action.yml +++ b/base-action/action.yml @@ -100,6 +100,8 @@ runs: uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # https://github.com/oven-sh/setup-bun/releases/tag/v2.2.0 with: bun-version: 1.3.6 + # Disable setup-bun's cache. See action.yml for details and issue #1252. + no-cache: true - name: Setup Custom Bun Path if: inputs.path_to_bun_executable != ''