Skip to content

bazelisk should retry when it fails to download bazel #648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rjogrady opened this issue Dec 16, 2024 · 2 comments
Open

bazelisk should retry when it fails to download bazel #648

rjogrady opened this issue Dec 16, 2024 · 2 comments
Labels
help wanted Needs help from external contributors P2 We'll consider working on this in future. (Assignee optional)

Comments

@rjogrady
Copy link

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!

@meteorcloudy meteorcloudy added help wanted Needs help from external contributors P2 We'll consider working on this in future. (Assignee optional) labels Jan 21, 2025
@TUMFILLAF17
Copy link

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!

@ismell
Copy link

ismell commented Feb 14, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Needs help from external contributors P2 We'll consider working on this in future. (Assignee optional)
Projects
None yet
Development

No branches or pull requests

4 participants