Skip to content

Action should pretend a "cache miss" on networking issues #518

@foxylion

Description

@foxylion

Description:
Underlying infrastructure issue for GitHub artifacts cause a lot of issues for workflows depending directly or indirectly on actions that use the caching infrastructure from actions/toolkit. See actions/cache#820 for details.

I would highly suggest that this action should be more resilient regarding service outages in the backing caching infrastructure.

The issues of today would most probably not be visible if the cache action would do "nothing" (like a cache miss) when the caching backend can't be reached or the server responds with an incorrect answer.

The @actions/cache action does show how a resilient implementation can look like: https://github.com/actions/cache/blob/main/src/restore.ts#L55

Currently there is now exception catching done in the @actions/setup-node action: https://github.com/actions/setup-node/blob/main/src/cache-restore.ts#L44

Justification:
It is unacceptable that problems with GitHub caching/artifact infrastructure will effectively make most workflows unusable.

Metadata

Metadata

Assignees

Labels

feature requestNew feature or request to improve the current logic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions