add restore cache error handling by panticmilos · Pull Request #434 · actions/setup-python

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@panticmilos

Copy link

Contributor

Description:
This PR provides error handling for cache restore functionality.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@panticmilos panticmilos requested a review from a team

June 14, 2022 10:15
restoreKey
);
try {
const matchedKey = await cache.restoreCache(
Copy link

Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we push this fix into restoreCache from actions/cache? That way everything that uses caching will handle 503s correctly.

Copy link

Contributor

@brcrista brcrista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should push the fix into the actions/cache package so everything gets fixed and is future-proofed

@brcrista

Copy link

Contributor

#448 will fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

4 more reviewers

@brcrista brcrista brcrista requested changes

@vsafonkin vsafonkin vsafonkin approved these changes

@dmitry-shibanov dmitry-shibanov dmitry-shibanov approved these changes

@marko-zivic-93 marko-zivic-93 marko-zivic-93 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@panticmilos @brcrista @vsafonkin @dmitry-shibanov @marko-zivic-93