bazelisk icon indicating copy to clipboard operation
bazelisk copied to clipboard

bazelisk should retry when it fails to download bazel

Open rjogrady opened this issue 1 year ago • 3 comments

We just switched to bazelisk in our CI builds to manage our bazel versions, and are seeing flakes.

2024/12/16 10:38:20 Downloading [https://releases.bazel.build/8.0.0/release/bazel-8.0.0-linux-x86_64.](https://www.google.com/url?q=https://releases.bazel.build/8.0.0/release/bazel-8.0.0-linux-x86_64.&sa=D)..
2024/12/16 10:38:24 could not download Bazel: failed to download bazel: failed to download bazel: could not copy from [https://releases.bazel.build/8.0.0/release/bazel-8.0.0-linux-x86_64](https://www.google.com/url?q=https://releases.bazel.build/8.0.0/release/bazel-8.0.0-linux-x86_64&sa=D) to /root/.cache/bazelisk/downloads/_tmp/download83244553: stream error: stream ID 1; INTERNAL_ERROR; received from peer

If I manually retry, it succeeds, so I guess bazelisk could handle this internally. It seems to already have retries for some types of errors, but apparently not this one.

Thanks!

rjogrady avatar Dec 16 '24 18:12 rjogrady

We just switched to bazelisk in our CI builds to manage our bazel versions, and are seeing flakes.

2024/12/16 10:38:20 Downloading [https://releases.bazel.build/8.0.0/release/bazel-8.0.0-linux-x86_64.](https://www.google.com/url?q=https://releases.bazel.build/8.0.0/release/bazel-8.0.0-linux-x86_64.&sa=D)..
2024/12/16 10:38:24 could not download Bazel: failed to download bazel: failed to download bazel: could not copy from [https://releases.bazel.build/8.0.0/release/bazel-8.0.0-linux-x86_64](https://www.google.com/url?q=https://releases.bazel.build/8.0.0/release/bazel-8.0.0-linux-x86_64&sa=D) to /root/.cache/bazelisk/downloads/_tmp/download83244553: stream error: stream ID 1; INTERNAL_ERROR; received from peer

If I manually retry, it succeeds, so I guess bazelisk could handle this internally. It seems to already have retries for some types of errors, but apparently not this one.

Thanks!

TUMFILLAF17 avatar Jan 31 '25 15:01 TUMFILLAF17

This is also impacting our CI:

2025/02/14 07:25:22 could not download Bazel: failed to download bazel: failed to download bazel: could not copy from https://releases.bazel.build/7.2.0/release/bazel-7.2.0-linux-x86_64 to /home/user/.cache/bazelisk/downloads/_tmp/download102852592: stream error: stream ID 1; INTERNAL_ERROR; received from peer

A retry would be great.

ismell avatar Feb 14 '25 16:02 ismell

Same here.

Grreg avatar Aug 20 '25 07:08 Grreg