question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed restore should fail step

See original GitHub issue

Currently 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
bigdogwillfeedcommented, Apr 13, 2020

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 is true. 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)

2020-04-13T19:58:00.5904633Z ##[group]Run actions/cache@v1.1.2 2020-04-13T19:58:00.5904828Z with: 2020-04-13T19:58:00.5904952Z path: . 2020-04-13T19:58:00.5905237Z key: some-key 2020-04-13T19:58:00.5905368Z ##[endgroup] 2020-04-13T19:58:32.4250633Z [warning]connect ETIMEDOUT 13.107.42.16:443

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

1reaction
dhadkacommented, Apr 7, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found