Skip to content

bazel: Always save bazel repository cache#16926

Merged
euroelessar merged 3 commits into
mainfrom
ruslan/bazel-always-save-cache
Apr 6, 2026
Merged

bazel: Always save bazel repository cache#16926
euroelessar merged 3 commits into
mainfrom
ruslan/bazel-always-save-cache

Conversation

@euroelessar

Copy link
Copy Markdown
Collaborator

This should improve the cache hit ratio for external deps and such

Comment thread .github/workflows/bazel.yml Outdated
# never fails the overall job. Only save when key wasn't hit.
- name: Save bazel repository cache
if: always() && !cancelled() && steps.cache_bazel_repository_restore.outputs.cache-hit != 'true'
if: always()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

probably can snip this line fully

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

then it will be skipped if prior step failed a test?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

probably should return !cancelled() back, hm

@euroelessar euroelessar merged commit 0225479 into main Apr 6, 2026
22 checks passed
@euroelessar euroelessar deleted the ruslan/bazel-always-save-cache branch April 6, 2026 19:07
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants