bazelisk should retry when it fails to download bazel
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!
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 peerIf 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!
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.
Same here.