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

Update bazelrc with some bazel 5.0 cache flags #2038

Merged
merged 1 commit into from
May 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ build:cache-dev --bes_results_url=https://app.buildbuddy.dev/invocation/
build:cache-dev --bes_backend=grpcs://remote.buildbuddy.dev
build:cache-dev --remote_cache=grpcs://remote.buildbuddy.dev
build:cache-dev --remote_upload_local_results
build:cache-dev --experimental_remote_cache_compression

# Build with --config=cache to send build logs to the production server with cache
build:cache --bes_results_url=https://app.buildbuddy.io/invocation/
build:cache --bes_backend=grpcs://remote.buildbuddy.io
build:cache --remote_cache=grpcs://remote.buildbuddy.io
build:cache --remote_upload_local_results
build:cache --experimental_remote_cache_compression

# Flags shared across remote configs
build:remote-shared --remote_upload_local_results
Expand All @@ -34,16 +36,12 @@ build:remote-shared --verbose_failures

# Build with --config=remote to use BuildBuddy RBE.
build:remote --config=remote-shared
build:remote --bes_results_url=https://app.buildbuddy.io/invocation/
build:remote --bes_backend=grpcs://remote.buildbuddy.io
build:remote --remote_cache=grpcs://remote.buildbuddy.io
build:remote --config=cache
build:remote --remote_executor=grpcs://remote.buildbuddy.io

# Build with --config=remote-dev to use BuildBuddy RBE.
build:remote-dev --config=remote-shared
build:remote-dev --bes_results_url=https://app.buildbuddy.dev/invocation/
build:remote-dev --bes_backend=grpcs://remote.buildbuddy.dev
build:remote-dev --remote_cache=grpcs://remote.buildbuddy.dev
build:remote-dev --config=cache-dev
build:remote-dev --remote_executor=grpcs://remote.buildbuddy.dev

# Configuration used for GitHub actions-based CI
Expand Down Expand Up @@ -111,6 +109,10 @@ build --noremote_upload_local_results # Uploads logs & artifacts without writing
# Populate workspace info like commit sha and repo name to your invocation.
build --workspace_status_command=$(pwd)/workspace_status.sh

# Misc remote cache optimizations
build --incompatible_remote_build_event_upload_respect_no_cache
build --experimental_remote_cache_async

# Use a static PATH variable to prevent unnecessary rebuilds of dependencies like protobuf.
build --incompatible_strict_action_env

Expand Down