actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.39k stars 1.17k forks source link

Cache action fails to match successfully uploaded key #1198

Open infogulch opened 1 year ago

infogulch commented 1 year ago

First build

During the first build there was no match, so everything was built from scratch and at the end the job, the cache was successfully uploaded with the expected key:

https://github.com/infogulch/scryer-prolog/actions/runs/5352326258/jobs/9707117537

image

Second build

In a subsequent build one hour later, the key matched exactly, it still did not find a match and rebuilt from scratch again:

https://github.com/infogulch/scryer-prolog/actions/runs/5352743821/jobs/9707964066

image

Why did it not restore from the cache? It's clearly present: https://github.com/infogulch/scryer-prolog/actions/caches

ubuntu-20.04_rustc-2023053190c5_cargo-85a461c9dd680796bb3bea6e727ef52f589ac820d7d491c10aec6516477bb45c
pcfreak30 commented 1 year ago

Having this issue as well.

deemp commented 1 year ago

Related https://github.com/actions/toolkit/pull/1378

artemgavrilov commented 11 months ago

I have the same issue, moreover now I see that I have two caches with the same key but created in different branches. Screenshot 2023-08-30 at 20 04 35

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.

pcfreak30 commented 4 months ago

bump.