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

[github-actions] Handle cache miss in each job #10365

Merged
merged 1 commit into from
May 27, 2022

Conversation

djaglowski
Copy link
Member

Resolves #9280

The cache upload failure described in 9280 does not appear to have a direct solution. Therefore, a reactive solution may be best.

The general pattern in our workflows is:

  1. setup-environment caches some artifacts
  2. Subsequent jobs expect the cache to be restorable

This PR proposes that all subsequent jobs should handle the situation where the cache failed to be retrieved, by conditionally running the same setup steps that setup-environment used to generate the cached artifacts.

@djaglowski djaglowski added the Skip Changelog PRs that do not require a CHANGELOG.md entry label May 26, 2022
@djaglowski djaglowski marked this pull request as ready for review May 26, 2022 18:04
@djaglowski djaglowski requested review from a team and pmm-sumo May 26, 2022 18:04
@djaglowski djaglowski merged commit 182fa5b into open-telemetry:main May 27, 2022
@djaglowski djaglowski deleted the gha-cache-miss-handling branch May 27, 2022 15:13
kentquirk pushed a commit to McSick/opentelemetry-collector-contrib that referenced this pull request Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[github-actions] Tools unavailable due to cache failure
3 participants