Skip to content
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

Allow retrying on non-HTTP errors #529

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Conversation

afq984
Copy link
Contributor

@afq984 afq984 commented Jan 17, 2024

787006c added support for retrying HTTP errors, this extend that to retry when an HTTP connection cannot be made.

This helps when bazelisk failes to speak HTTP:

2024/01/16 14:31:11 could not download Bazel: HTTP GET https://releases.bazel.build/7.0.0/release/bazel-7.0.0-linux-x86_64 failed: Get "https://releases.bazel.build/7.0.0/release/bazel-7.0.0-linux-x86_64": dial tcp 130.211.22.235:443: i/o timeout

Fixes: #432

@afq984
Copy link
Contributor Author

afq984 commented Jan 17, 2024

Looks like TestShouldUseExponentialBackoffIfNoRetryHeader is already flaky on master (9d3fc7d).

go test -count=100 -run TestShouldUseExponentialBackoffIfNoRetryHeader ./httputil -v gives me 8 failures out of 100

edit: this should be fixed by #530

@fweikert
Copy link
Member

Thanks! I merged #530, so you can rerun the tests here.

bazelbuild@787006c
added support for retrying HTTP errors, this extend that to
retry when an HTTP connection cannot be made.

This helps when bazelisk failes to speak HTTP:

    2024/01/16 14:31:11 could not download Bazel: HTTP GET https://releases.bazel.build/7.0.0/release/bazel-7.0.0-linux-x86_64 failed: Get "https://releases.bazel.build/7.0.0/release/bazel-7.0.0-linux-x86_64": dial tcp 130.211.22.235:443: i/o timeout

Fixes: bazelbuild#432
@fweikert fweikert merged commit 88d3724 into bazelbuild:master Jan 19, 2024
2 checks passed
ti-chi-bot bot referenced this pull request in PingCAP-QE/artifacts Jul 3, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [bazelbuild/bazelisk](https://togithub.com/bazelbuild/bazelisk) |
minor | `v1.19.0` -> `v1.20.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>bazelbuild/bazelisk (bazelbuild/bazelisk)</summary>

###
[`v1.20.0`](https://togithub.com/bazelbuild/bazelisk/releases/tag/v1.20.0)

[Compare
Source](https://togithub.com/bazelbuild/bazelisk/compare/v1.19.0...v1.20.0)

Bazelisk v1.20.0 comes with several significant changes:

### New Features

- The Go version now supports `BAZELISK_NOJDK`
([https://github.com/bazelbuild/bazelisk/pull/531](https://togithub.com/bazelbuild/bazelisk/pull/531))

### Bug Fixes & Improvements

- It's now easier to use Bazelisk programmatically
([https://github.com/bazelbuild/bazelisk/pull/500](https://togithub.com/bazelbuild/bazelisk/pull/500),
[https://github.com/bazelbuild/bazelisk/pull/526](https://togithub.com/bazelbuild/bazelisk/pull/526))
- Bazelisk will retry more connection errors
([https://github.com/bazelbuild/bazelisk/pull/529](https://togithub.com/bazelbuild/bazelisk/pull/529),
[https://github.com/bazelbuild/bazelisk/pull/530](https://togithub.com/bazelbuild/bazelisk/pull/530))
- A display bug in the download progress bar has been fixed
([https://github.com/bazelbuild/bazelisk/pull/539](https://togithub.com/bazelbuild/bazelisk/pull/539))

We’d like to thank our amazing contributors
[@&#8203;afq984](https://togithub.com/afq984),
[@&#8203;comius](https://togithub.com/comius),
[@&#8203;francine-blanc](https://togithub.com/francine-blanc),
[@&#8203;illicitonion](https://togithub.com/illicitonion),
[@&#8203;jwnimmer-tri](https://togithub.com/jwnimmer-tri),
[@&#8203;LINKIWI](https://togithub.com/LINKIWI),
[@&#8203;mmorel-35](https://togithub.com/mmorel-35) and
[@&#8203;sf-jbazuzi](https://togithub.com/sf-jbazuzi)!

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/PingCAP-QE/artifacts).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjMuNSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJoZWxwIHdhbnRlZCJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flakiness downloading bazel (on windows)
2 participants