bazelbuild / continuous-integration

Bazel's Continuous Integration Setup
https://buildkite.com
Apache License 2.0
258 stars 135 forks source link

macos arm64 machines are flaky #2025

Closed meteorcloudy closed 5 days ago

meteorcloudy commented 3 weeks ago

https://buildkite.com/bazel/google-bazel-presubmit/builds/82766#01917a0a-d9d1-4aac-adbc-0e2c4b5aa63c

kolvin commented 1 week ago

For a short-term workaround, we are using bazelisk to install arm64 support to an ubuntu base

FROM ubuntu:22.04 AS builder

WORKDIR /app

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y openssl git apt-transport-https curl gnupg vim file wget apt-utils
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y openjdk-17-jdk-headless ca-certificates-java

#  ARM64 Bazel Install
RUN wget https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/bazelisk-linux-arm64
RUN chmod +x bazelisk-linux-arm64
RUN mv bazelisk-linux-arm64 /usr/local/bin/bazel

...

Not ideal but works for now, following this issue for updates 🙏🏻

meteorcloudy commented 5 days ago

This seems to be fixed already.