Fix LINUX_BINARY_PLATFORM for downstream pipeline (#2287)
Fixes
https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4656
Also made it work with linux arm64 platforms.
diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py
index 866fed5..965889e 100755
--- a/buildkite/bazelci.py
+++ b/buildkite/bazelci.py
@@ -474,7 +474,7 @@
# In order to test that "the one Linux binary" that we build for our official releases actually
# works on all Linux distributions that we test on, we use the Linux binary built on our official
# release platform for all Linux downstream tests.
-LINUX_BINARY_PLATFORM = "centos7"
+LINUX_BINARY_PLATFORM = "rockylinux8_arm64" if platform_module.machine() == "arm64" else "rockylinux8"
XCODE_VERSION_REGEX = re.compile(r"^\d+\.\d+(\.\d+)?$")
XCODE_VERSION_OVERRIDES = {"10.2.1": "10.3", "11.2": "11.2.1", "11.3": "11.3.1"}
@@ -4205,8 +4205,7 @@
try:
bazel_binary_path = download_bazel_binary(tmpdir, platform_name)
# One platform that we build on can generate binaries for multiple platforms, e.g.
- # the centos7 platform generates binaries for the "centos7" platform, but also
- # for the generic "linux" platform.
+ # the rockylinux8 platform generates binaries for all the "linux" platform.
for target_platform_name in platform["publish_binary"]:
execute_command(
[