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

ci: use hash of master branch for Bazel cache key #2480

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

brandonroberts
Copy link
Member

@brandonroberts brandonroberts commented Apr 8, 2020

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[x] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Closes #

What is the new behavior?

Each PR pulls the bazel cache based on the latest SHA from the master branch on this repo. This should reduce the time for Bazel to build packages in CI that haven't changed, as it will reuse that cache. Each time a PR is merged, a new immutable cache is built based on that SHA.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@brandonroberts brandonroberts merged commit 4b0856a into master Apr 8, 2020
@brandonroberts brandonroberts deleted the ci-hash-master branch April 8, 2020 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant