Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkg/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func compilerIdentity(compiler string) (string, error) {
arg, timeout := "--version", time.Minute
if bazel {
// Bazel episodically fails with 1 min timeout.
arg, timeout = "", 10*time.Minute
timeout = 10 * time.Minute
}
output, err := osutil.RunCmd(timeout, "", compiler, arg)
if err != nil {
Expand All @@ -210,6 +210,9 @@ func compilerIdentity(compiler string) (string, error) {
if strings.HasPrefix(line, "WARNING: ") {
continue
}
if strings.Contains(line, "Downloading https://releases.bazel") {
continue
}
}

return strings.TrimSpace(line), nil
Expand Down
9 changes: 6 additions & 3 deletions tools/docker/syzbot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ RUN apt-get install -y -q --no-install-recommends clang-15
# Not really GRTE, but it's enough to run some scripts that hardcode the path.
RUN mkdir -p /usr/grte/v5/bin && ln -s /usr/bin/python3 /usr/grte/v5/bin/python2.7

# Install bazel
# Download the official bazel binary. The APT repository isn't used because there is not packages for arm64.
RUN sh -c 'curl -o /usr/local/bin/bazel https://releases.bazel.build/7.1.2/release/bazel-7.1.2-linux-$(uname -m | sed s/aarch64/arm64/) && chmod ugo+x /usr/local/bin/bazel'
# Install bazelisk
RUN curl -s https://api.github.com/repos/bazelbuild/bazelisk/releases/latest \
| sed -n '/browser_download_url/s/[^:]*:[^"]*\("[^"]*"\).*/url = \1/p' \
| grep bazelisk-linux-$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
| curl -L -o /usr/local/bin/bazel -K - \
&& chmod +x /usr/local/bin/bazel

# Install qemu from the backports.
# The currently stable version (7.2) cannot properly run arm64-MTE kernels.
Expand Down
Loading