Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to save the cache should not fail the entire run #592

Closed
thetorpedodog opened this issue Jan 19, 2023 · 4 comments
Closed

Failure to save the cache should not fail the entire run #592

thetorpedodog opened this issue Jan 19, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@thetorpedodog
Copy link

Description:

When running a workflow, there may be an issue which causes the cache not to be saved. This should not cause the entire run to be reported as a failure.

Action version:

v4.5.0

Platform:

  • Ubuntu
  • macOS

Runner type:

  • Hosted

Tools version:

Independent of Python version.

Repro steps:

  1. Include a setup-python step in a workflow with caching enabled.
  2. Have it happen to run at a time when the cache servers are acting flaky.

Example failed run: https://github.com/single-cell-data/TileDB-SOMA/actions/runs/3960808578/attempts/1

Expected behavior:

If the run finishes successfully, but the cache cannot be uploaded to the cache server, the failure to create the cache entry should be ignored.

Actual behavior:

When the cache fails to upload, the run is failed despite completing successfully in all other respects.

@thetorpedodog thetorpedodog added bug Something isn't working needs triage labels Jan 19, 2023
@e-korolevskii
Copy link
Contributor

Hello @thetorpedodog! Thank you for reporting this!
We will investigate the issue and get back to you as soon as we have updates

@thetorpedodog
Copy link
Author

For comparison, a failure to upload with the github/cache action does not fail the run: https://github.com/single-cell-data/TileDB-SOMA/actions/runs/3961705977/jobs/6787460842

Post job cleanup.
/usr/local/bin/gtar --posix -cf cache.tzst --exclude cache.tzst -P -C /Users/runner/work/TileDB-SOMA/TileDB-SOMA --files-from manifest.txt --delay-directory-restore --use-compress-program zstdmt
Warning: Failed to save: uploadChunk (start: 0, end: 33554431) failed: Cache service responded with 503
Cache saved with key: libtiledbsoma-build-dist-macos-12-3.10-79892bce4ca84bea3b28c1364692c753f17e1b0711f57db30aef7a6297fb0420

It seems like the Python setup action needs to just ignore the failure to cache (and probably report it) the same way that the github/cache action does.

Thank you for the quick response.

@e-korolevskii
Copy link
Contributor

Thanks for the clarification, I'm sure it will help.

@dmitry-shibanov
Copy link
Contributor

Hello @thetorpedodog. We released a new version of the action with changes to prevent the step from falling if there are issues with the cache services.

For now I'm going to close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants