Skip to content

Commit

Permalink
Set up remote caching in CI (cherry-pick of #19144) (#19162)
Browse files Browse the repository at this point in the history
Runs a sidecar [bazel-remote](https://github.com/buchgr/bazel-remote/)
server in a docker container. This server uses S3 as its storage
backend, specifically a new cache.pantsbuild.org bucket.

Read/write access requires our AWS secret key, which is not accessible
to PRs across forks. So to write to this cache, a PR must be from a
branch in the pantsbuild/pants repo.

We can establish protocols by which a set of trusted contributors can
push to feature branches in pantsbuild/pants and submit PRs from them,
rather than from forks, to get the best CI speedups.

PRs across forks can still read from the cache, via restricted creds.
  • Loading branch information
benjyw authored May 26, 2023
1 parent 170f792 commit 956c8aa
Show file tree
Hide file tree
Showing 3 changed files with 519 additions and 4 deletions.
Loading

0 comments on commit 956c8aa

Please sign in to comment.