cache icon indicating copy to clipboard operation
cache copied to clipboard

Restore action doesn't actually fail workflow even when fail-on-cache-miss is true

Open efine-vivodyne opened this issue 1 year ago • 2 comments

If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.

I'm using v4.0.0 of the Restore action, and I've noticed consistently that if there's a cache miss, that the step of the workflow errors, but it does not fail the job/workflow

I get this all the time Error: Failed to restore cache entry. Exiting as fail-on-cache-miss is set.

But then the job proceeds just fine and after it's done I see a checkmark in the "workflow summary" page for that job.

I would expect that it should fail the job right at that step as soon as the cache miss occurs

efine-vivodyne avatar Apr 01 '24 13:04 efine-vivodyne

It seems like this problem was fixed in https://github.com/actions/cache/releases/tag/v4.0.2.

deemp avatar Apr 03 '24 04:04 deemp

It seems like this problem was fixed in https://github.com/actions/cache/releases/tag/v4.0.2.

Thanks! I'll try that

efine-vivodyne avatar Apr 03 '24 10:04 efine-vivodyne