Configuration for BuildBuddy
1. Obtain Your BuildBuddy API Key
Sign In: Go to buildbuddy.io and sign in with your Google or GitHub account.
Quickstart: Navigate to the "Quickstart" section in your BuildBuddy dashboard.
Copy API Key: You'll see a command similar to this:
bashbuild --bes_backend=grpcs://your-instance.buildbuddy.io build --remote_header=x-buildbuddy-api-key=xxx ...- Copy the entire string after
--remote_header=. This is your API key. It will look likex-buildbuddy-api-key=xxx. - Note the address after
--bes_backend=. You only need the part aftergrpcs://, e.g.,your-instance.buildbuddy.io.
- Copy the entire string after
2. Setup Environment variables for BuildBuddy
- Setup the Variables: Add this to your
build/envsetup.shor export them manually:
bash
export RBE_service="your-instance.buildbuddy.io:443" # BuildBuddy instance address (without grpcs://, add the port 443)
export RBE_remote_headers="x-buildbuddy-api-key=xxx" # Your BuildBuddy API key
export RBE_use_rpc_credentials=false
export RBE_service_no_auth=true3. Important Notes
- Personal Cache: The shared cache is currently unavailable. You must use your own personal BuildBuddy instance/account for caching.
- Initial Build Performance: Since you are starting with a fresh personal cache, your first few builds will be slower. During this phase, the system is primarily uploading build artifacts to your remote storage.
- Subsequent Builds: Once your personal cache is populated, subsequent builds (or builds of similar branches) will become significantly faster as the system switches to downloading cached results instead of rebuilding locally.