Skip to content

build: add BuildBuddy RBE and BES configurations - #4289

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:setup_buildbuddy_rbe_config
Oct 20, 2026
Merged

rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:setup_buildbuddy_rbe_config

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Enable BuildBuddy Remote Build Execution (RBE), remote caching, and
Build Event Service (BES) streaming.

Add buildbuddy.bazelrc with a shared _buildbuddy_base config and
two public variants: buildbuddy_presubmit (isolating cache writes to
the presubmit instance and disabling local result uploads for PRs)
and buildbuddy_postsubmit (enabling local result uploads for trusted
postsubmit builds).

Enable using BuildBuddy for Remote Build Execution (RBE), remote
caching, and Build Event Service (BES) streaming in CI.

Add `buildbuddy.bazelrc` (imported by `.bazelrc`) with a shared
`_buildbuddy_base` config and two public variants:
* `buildbuddy_presubmit`: isolates cache writes to the `presubmit`
  instance and disables local result uploads for untrusted PR runs.
* `buildbuddy_postsubmit`: enables local result uploads to populate the
  default cache on trusted postsubmit runs.
@rickeylev
rickeylev requested a review from aignas as a code owner October 20, 2026 03:34
@rickeylev
rickeylev enabled auto-merge October 20, 2026 03:39
@rickeylev
rickeylev merged commit 797b1bc into bazel-contrib:main Oct 20, 2026
16 of 18 checks passed
rickeylev added a commit that referenced this pull request Oct 22, 2026
…ta (#4313)

Optimize remote execution, remote caching, and diagnostic telemetry for
BuildBuddy invocations across local and CI runs.

Invocation analysis (0a836a44-4d93-4312-b6d1-1e2fffd7a4ff) highlighted
opportunities to enhance CAS throughput with compression and chunking,
prevent build failures from CAS eviction through lost-input rewinding,
and collect rich diagnostic and profiling traces for the BuildBuddy UI.
Additionally, GitHub Actions runs previously lacked build metadata to
correlate invocations with workflows and PRs, and developers needed an
automated, secret-safe method to link workspace credentials.

To address this, enable remote cache compression, experimental chunking,
lost-input rewinding, diagnostic logging (bazel-remote-grpc.log and
bazel-execution-log.binpb.zst), and detailed execution profiling in
_buildbuddy_base. In setup-bazel, inject non-secret CI build metadata
(ROLE, VISIBILITY, commit SHA, PR number, branch name, run ID, actor,
and GHA workflow run links) unconditionally on build. Replace the legacy
shell script with a standalone Python client setup script to configure
Git triangle tracking and symlink user.bazelrc cleanly.

Work towards #4289, #4300, #4304.
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