Repository navigation
build(ci): optimize BuildBuddy RBE caching and inject CI build metadata - #4313
Merged
rickeylev merged 1 commit intoOct 22, 2026
Merged
Conversation
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 bazel-contrib#4289, bazel-contrib#4300, bazel-contrib#4304.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.