bazel-buildfarm icon indicating copy to clipboard operation
bazel-buildfarm copied to clipboard

Example of supporting multiple `remote_instance_name`s?

Open SinOverCos opened this issue 1 year ago • 3 comments

I'd like to have different logical remote execution services, to separate local vs. CI.

It seems like this should be achievable through --remote_instance_name=local and --remote_instance_name=ci

However, if I do:

  • bazel build --remote_instance_name=local //...
  • and then do bazel build --remote_instance_name=ci //...

The second build (with --remote_instance_name=ci) shows all remote cache hits, which suggests that the remote instances aren't actually separated?

There's this issue talking about something similar from 6 years ago, but I don't see where in the buildfarm docs instance_name is configurable anymore.

SinOverCos avatar Feb 15 '24 18:02 SinOverCos

This has been silently pared down to ineffectiveness, and being considered for revival.

What behavior do you want for different instances? Complete isolation? Segmented storage? execution? caching? hierarchy?

Some expectation for a use case here might make this clearer.

werkt avatar Mar 25 '24 13:03 werkt

Hey @werkt! Thanks for taking a look.

I'm looking for complete isolation to comply with some security requirements. I've been doing this by provisioning two separate clusters separately from each other, one for local and one for CI, but it's been kind of unwieldy.

SinOverCos avatar Mar 29 '24 20:03 SinOverCos