summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-06-26 15:19:58 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-06-26 15:19:58 +0000
commit10fb90c33912e25667b1be0a0a35c1873b49adab (patch)
tree3838c112e868a9ed9a693a164132677aa6c0edc9 /ui
parentaa923b94ad5fc556c914fafcab6662c03c2a2254 (diff)
parent67ad434ffc795ac0a3a3be3882c224b385813572 (diff)
Merge "Ignore USE_RBE when on glinux laptops"
Diffstat (limited to 'ui')
-rw-r--r--ui/build/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/build/config.go b/ui/build/config.go
index 0259009b3..e6427723d 100644
--- a/ui/build/config.go
+++ b/ui/build/config.go
@@ -1375,6 +1375,12 @@ func (c *configImpl) StartGoma() bool {
}
func (c *configImpl) UseRBE() bool {
+ authType, _ := c.rbeAuth()
+ // Do not use RBE with prod credentials in scenarios when stubby doesn't exist, since
+ // its unlikely that we will be able to obtain necessary creds without stubby.
+ if !c.StubbyExists() && strings.Contains(authType, "use_google_prod_creds"){
+ return false
+ }
if v, ok := c.Environment().Get("USE_RBE"); ok {
v = strings.TrimSpace(v)
if v != "" && v != "false" {