From 3710c5e076876b5e45832cc568301f66b32c6881 Mon Sep 17 00:00:00 2001 From: Florian Weikert Date: Tue, 14 Nov 2023 14:49:54 +0100 Subject: [PATCH] Explicitly set remote cache protocol for Mac VMs --- buildkite/bazelci.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py index 4362f6db6a..bfd6ae7147 100755 --- a/buildkite/bazelci.py +++ b/buildkite/bazelci.py @@ -1843,9 +1843,10 @@ def remote_caching_flags(platform, accept_cached=True): flags = ["--remote_cache=http://100.107.73.147"] else: # Use RBE for caching builds running on GCE. + protocol = "grpcs://" if is_mac() else "" flags = [ "--google_default_credentials", - "--remote_cache=remotebuildexecution.googleapis.com", + "--remote_cache={}remotebuildexecution.googleapis.com".format(protocol), "--remote_instance_name=projects/{}/instances/default_instance".format(CLOUD_PROJECT), # Enable BES / Build Results reporting. "--bes_backend=buildeventservice.googleapis.com",