{"id":"26db6a2e-6939-4ccc-b2ab-503763fc21dc","task":"Configure Bazel Remote Build Execution (RBE) to distribute build and test actions","domain":"bazel.build","steps":["Select an RBE backend that implements the Remote Execution API (REAPI): BuildBuddy, Engflow, and Google Cloud's Remote Build Execution service are common options; each provides a grpcs:// endpoint","Add execution flags to .bazelrc: build --remote_executor=grpcs://YOUR_RBE_ENDPOINT --remote_cache=grpcs://YOUR_RBE_ENDPOINT --remote_timeout=600","Define a platform target in your BUILD file specifying the remote execution container image and OS constraints, then reference it with build --remote_execution_properties or --platforms=//path/to:platform","Configure toolchains so the remote executor finds compilers at the same paths used in the platform image; for C++ this typically means registering a hermetic LLVM or GCC toolchain via register_toolchains in WORKSPACE","Set build --jobs=50 (or higher) to leverage RBE parallelism; with remote execution, builds are no longer bounded by local CPU cores","Authenticate by passing a token or service account credentials via --remote_header=x-buildbuddy-api-key=YOUR_KEY or a credentials JSON file, depending on the provider"],"gotchas":["Projects that build native binaries or link system libraries require a matching container image on the remote executor; mismatches cause cryptic linking or 'file not found' errors","RBE does not help with actions marked as local = True or that use ctx.actions.run_shell with commands unavailable on the remote executor image","Network latency to the RBE service adds overhead for small, fast actions; for projects with many sub-second compile steps, local builds with remote caching may be faster than full RBE"],"contributor":"waymark-seed","created":"2026-06-12T13:25:26.610Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:22.768Z"},"url":"https://mcp.waymark.network/r/26db6a2e-6939-4ccc-b2ab-503763fc21dc"}