You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Warning: Cache not found" on first run in branch #1552
Warning: Cache not found for keys: my-cache-Linux-e13c8d95e393dfdbfc3046a36b72e0d02da8e564e776fb3f7d5b53be6b568bc5
Cache not found for input keys: my-cache-Linux-e13c8d95e393dfdbfc3046a36b72e0d02da8e564e776fb3f7d5b53be6b568bc5
when a GitHub Actions workflow contains:
uses: actions/cache@v4
and the workflow is running for the first time in a branch.
This is a regression compared to how it used to work.
Expected behavior
No warning should be issued when a workflow runs for the first time in a branch.
Caches are linked to branches and if a workflow runs for the first time in a branch, then it is an expected condition that there is no cache available.
Warnings should only be issued if some corrective action is necessary. In this situation no user corrective action is necessary. After the workflow has run once, a cache will be established and any subsequent runs will use the cache. The situation is self-correcting.
Run actions/cache@v4
with:
path: ~/.cache/Cypress
node_modules
key: my-cache-Linux-e13c8d95e393dfdbfc3046a36b72e0d02da8e564e776fb3f7d5b53be6b568bc5
enableCrossOsArchive: false
fail-on-cache-miss: false
lookup-only: false
save-always: false
Warning: Cache not found for keys: my-cache-Linux-e13c8d95e393dfdbfc3046a36b72e0d02da8e564e776fb3f7d5b53be6b568bc5
Cache not found for input keys: my-cache-Linux-e13c8d95e393dfdbfc3046a36b72e0d02da8e564e776fb3f7d5b53be6b568bc5
@MikeMcC399 thanks for posting this bug. I started working on a new workflow using actions/cache and never saw this behavior previously and thought I was going crazy
STAY OUT OF MY DAM EMAIL ACCTS U MORONS
On Tuesday, February 18, 2025 at 03:58:31 PM EST, Mike McCready ***@***.***> wrote:
@robherley
Thanks very much for fixing and letting me know! 👍🏻
I ran through my repro steps and there is no more warning.
First run
Cache not found for input keys: my-cache-Linux-fb8af90643217d0fa75ca969caf93d2318f6b85c6703a3e20c24eb9463eec00e
Second run
Cache hit for: my-cache-Linux-fb8af90643217d0fa75ca969caf93d2318f6b85c6703a3e20c24eb9463eec00e
Received 134217728 of 203875842 (65.8%), [12](https://github.com/MikeMcC399/github-action/actions/runs/13399852547/job/37427882952#step:3:13)7.4 MBs/sec
Received 203875842 of 203875842 (100.0%), 156.9 MBs/sec
Cache Size: ~194 MB (203875842 B)
/usr/bin/tar -xf /home/runner/work/_temp/170b7c9f-7f87-4ce6-bce2-[14](https://github.com/MikeMcC399/github-action/actions/runs/13399852547/job/37427882952#step:3:15)cdd89929a1/cache.tzst -P -C /home/runner/work/github-action/github-action --use-compress-program unzstd
Cache restored successfully
Cache restored from key: my-cache-Linux-fb8af90643217d0fa75ca969caf93d2318f6b85c6703a3e20c24eb9463eec00e
Closing as resolved!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
MikeMcC399 left a comment (actions/cache#1552)
@robherley
Thanks very much for fixing and letting me know! 👍🏻
I ran through my repro steps and there is no more warning.
First run
Cache not found for input keys: my-cache-Linux-fb8af90643217d0fa75ca969caf93d2318f6b85c6703a3e20c24eb9463eec00e
Second run
Cache hit for: my-cache-Linux-fb8af90643217d0fa75ca969caf93d2318f6b85c6703a3e20c24eb9463eec00e
Received 134217728 of 203875842 (65.8%), [12](https://github.com/MikeMcC399/github-action/actions/runs/13399852547/job/37427882952#step:3:13)7.4 MBs/sec
Received 203875842 of 203875842 (100.0%), 156.9 MBs/sec
Cache Size: ~194 MB (203875842 B)
/usr/bin/tar -xf /home/runner/work/_temp/170b7c9f-7f87-4ce6-bce2-[14](https://github.com/MikeMcC399/github-action/actions/runs/13399852547/job/37427882952#step:3:15)cdd89929a1/cache.tzst -P -C /home/runner/work/github-action/github-action --use-compress-program unzstd
Cache restored successfully
Cache restored from key: my-cache-Linux-fb8af90643217d0fa75ca969caf93d2318f6b85c6703a3e20c24eb9463eec00e
Closing as resolved!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Activity
MikeMcC399 commentedon Feb 12, 2025
Example workflow
https://github.com/cypress-io/github-action/actions/workflows/example-install-only.yml
Renovate creates a new branch
https://github.com/cypress-io/github-action/tree/refs/heads/renovate/node-22.x
MikeMcC399 commentedon Feb 13, 2025
Debug logs
MikeMcC399 commentedon Feb 13, 2025
I'm trying to reproduce this in a simpler example and I'm not getting the warning, so I guess there is something subtle going on. I'll keep looking.
joshmgross commentedon Feb 13, 2025
This is something we plan to fix - a cache miss is expected behavior and should not be a warning.
MikeMcC399 commentedon Feb 13, 2025
@joshmgross
I am relieved to hear that! I was scratching my head a little as I was having difficulty reproducing it in all situations.
vinmassaro commentedon Feb 13, 2025
@MikeMcC399 thanks for posting this bug. I started working on a new workflow using actions/cache and never saw this behavior previously and thought I was going crazy
MikeMcC399 commentedon Feb 18, 2025
@robherley
I saw that there is a new release actions/cache@4.2.1
Will the
v4tag also be updated?v4 is currently 1bd1e32
equivalent to
https://github.com/actions/cache/tree/v4.2.0
Edit: I see this is queued up in https://github.com/actions/cache/actions/runs/13396823681 so no need to answer!
robherley commentedon Feb 18, 2025
@MikeMcC399 the major tags (v4 and v3) should now be updated to fix this behavior, thanks again for reporting!
MikeMcC399 commentedon Feb 18, 2025
@robherley
Thanks very much for fixing and letting me know! 👍🏻
I ran through my repro steps and there is no more warning.
First run
Second run
Closing as resolved!
xzpix commentedon Nov 7, 2025