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

Set up remote caching in CI (cherry-pick of #19144) #19163

Merged
merged 1 commit into from
May 26, 2023

Conversation

benjyw
Copy link
Contributor

@benjyw benjyw commented May 25, 2023

Runs a sidecar 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.

Runs a sidecar 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.
@benjyw benjyw added the category:internal CI, fixes for not-yet-released features, etc. label May 25, 2023
@benjyw benjyw merged commit cd0c9f0 into pantsbuild:2.16.x May 26, 2023
@benjyw benjyw deleted the cherrypick_remote_cache_to_2.16.x branch May 26, 2023 04:49
@stuhood stuhood mentioned this pull request Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants