Failed restore should fail step
See original GitHub issueCurrently broken restore is not failing step, just sending a warning.
Example output
Run actions/cache@v1
[warning]connect ETIMEDOUT 13.107.42.16:443
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:17 (6 by maintainers)
Top Results From Across the Web
Fix System Restore Failed and Did Not Complete Successfully ...
According to some users, running System Restore from Safe Mode is a possible way to bypass the 'System Restore did not complete successfully' ......
Read more >If you see error 9, 4005, 4013, or 4014 when you restore your ...
On step 4, choose Restore instead of Update. After the restore completes, you need to set up your device from a backup. If...
Read more >8 Ways to Fix the “System Restore Did Not Complete ...
8 Ways to Fix the “System Restore Did Not Complete Successfully” Error on Windows · 1. Pick a Different Restore Point · 2....
Read more >[Error Solved] SQL Database Restore failed, database in use
Summary: This blog will describe solutions to fix the 'SQL database restore failed, database in use' error.
Read more >Error "Running step CheckBackupCompatibility failed" After ...
Issue. When restoring a backup to a new environment, the following error might occur: ERROR com.tableausoftware.tabadmin.webapp.asyncjobs.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The readme on this action mentions skipping steps based on cache hits: https://github.com/actions/cache#Skipping-steps-based-on-cache-hit
But when the cache restore fails with the timeout mentioned by the OP,
output.cache_hit
istrue
. We had a recent failure, and the workflow continued expecting a successful cache hit (rather than recreating the cached content as it would with a cache miss)I agree that failing the step isn’t necessarily the best choice for this action, but it would be really helpful if the output was accurate so that workflows could recreate the content that didn’t come back from the cache
@ppalaga Thank you for bringing this to our attention. We are aware of flakiness caused by network issues between the Actions runner and the cloud storage provider used by the cache, and are looking at ways to improve reliability.
Please note, however, that the cache action is “best effort” and assumes that if it fails, the subsequent steps can recreate the cached content. For this reason, a failure to restore the cache does not fail the job. This works well for project dependencies, which can just be downloaded from their package manager (maven, npm, etc.) if the cache action fails to restore (either by a cache miss or other error). Caches are also subject to eviction, so they can disappear potentially at any time.
Looking at the workflow file used by the project, it looks like it is storing the build artifacts in the cache, and restoring them for use by each of the test runs. For this kind of workflow, it likely makes sense to use workflow artifacts instead. Workflow artifacts are persistent longer and are designed to be more reliable than a cache.