buildbuddy-io / buildbuddy

BuildBuddy is an open source Bazel build event viewer, result store, remote cache, and remote build execution platform.

Home Page:https://buildbuddy.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloud I use external cas storage with buildbuddy, like bazel-remote

bytearth opened this issue · comments

Some of the Remote Execution Service support external cas storage, such as buildfarm and buildbarn.
I can't find the same usage in buildbuddy's docs.
Could you tell me whether buildbuddy support or will support this feature.

Thanks a lot !

Hey @bytearth - we support using an external grpc cache with the BuildBuddy UI, but we don't currently support using an external cache for remote execution.

Hey @siggisim Thanks for reply. Is there any doc about how to config to use an external grpc cache with the BuildBuddy UI?

Hey @bytearth - you'd just need to set --remote_cache=grpc(s)://YOUR_CACHE and --bes_backend=YOUR_BUILDBUDDY_URL. The one thing to make sure of is that the BuildBuddy server is able to make network requests to your grpc cache (i.e. no firewall / ingress / permissions issues that could cause the requests to grpc requests fail).

Execuse me, maybe I cannot understand it.
--remote_cache=grpc(s)://MY_CACHE is the param used for bazel, how can BUILDBUDDY_SERVER fetch data from it.

I have tried which your suggestion, and in the invocation webview, some of the TAB works well, except for the TIMING TAB, like this:
image

And If I point the remote_cache address to the buildbuddy server, the TIMING TAB also works well. So in my opinion, I should use the BUILDBUDDY as my remote-cache, or some features may not work.

Some features will only using BuildBuddy are your remote cache (like cache stats), so we definitely recommend using it for both.

It should be able to fetch the timing profile from your other cache though - are you sure that the BuildBuddy server is able to make a network request to the other server?