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

fix: use --retry-connrefused in curl invocations of bootstrap download #110245

Closed
wants to merge 1 commit into from

Conversation

kayagokalp
Copy link

@kayagokalp kayagokalp commented Apr 12, 2023

helps with #110178.

@rustbot
Copy link
Collaborator

rustbot commented Apr 12, 2023

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ozkanonur (or someone else) soon.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Apr 12, 2023
@kayagokalp kayagokalp changed the title fix: change curl args from --retry to --retry-all-errors fix: use --retry-all-errors instead of --retry in curl invocations of bootstrap download Apr 12, 2023
@kayagokalp kayagokalp marked this pull request as ready for review April 12, 2023 17:29
Copy link
Member

@onur-ozkan onur-ozkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

--retry-all-errors should be an extra argument with keeping --retry as it is. Otherwise curl will hang the downloading processes until the timeout.

e.g:
2023-04-12_21-52

@onur-ozkan
Copy link
Member

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 12, 2023
@kayagokalp
Copy link
Author

@rustbot label -S-waiting-on-author +S-waiting-on-review

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 12, 2023
@onur-ozkan
Copy link
Member

this lgtm, once you squash your commits, we can merge the PR

@onur-ozkan
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 12, 2023

📌 Commit b065eef has been approved by ozkanonur

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 12, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Apr 13, 2023
…kanonur

fix: use `--retry-all-errors` instead of `--retry` in curl invocations of bootstrap download

closes rust-lang#110178.
@matthiaskrgr
Copy link
Member

@bors r-
failed in a rollup
#110271

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 13, 2023
@klensy
Copy link
Contributor

klensy commented Apr 13, 2023

Looks like --retry-all-errors supported from curl 7.71.0 and some runners older than that?

ubuntu 20.04 image uses curl 7.68 https://packages.ubuntu.com/focal/curl

@onur-ozkan
Copy link
Member

Looks like --retry-all-errors supported from curl 7.71.0 and some runners older than that?

ubuntu 20.04 image uses curl 7.68 https://packages.ubuntu.com/focal/curl

Yeah seems like --retry-all-errors flag shipped very recently.

@kayagokalp Can you replace the --retry-all-errors flag with --retry-connrefused and update commit message/PR description? --retry-connrefused added since v7.52.0, which should work on any CI/local machine.

@kayagokalp kayagokalp changed the title fix: use --retry-all-errors instead of --retry in curl invocations of bootstrap download fix: use --retry-connrefused in curl invocations of bootstrap download Apr 13, 2023
@kayagokalp
Copy link
Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 13, 2023
@onur-ozkan
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 13, 2023

📌 Commit fa28d22 has been approved by ozkanonur

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 13, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Apr 14, 2023
…kanonur

fix: use `--retry-connrefused` in curl invocations of bootstrap download

helps with rust-lang#110178.
@matthiaskrgr
Copy link
Member

@bors r- rollup=iffy still failing

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 14, 2023
@klensy
Copy link
Contributor

klensy commented Apr 14, 2023

centos 7 image have curl 7.29 :-(. It's easier to download our own version and install/build it.

@onur-ozkan
Copy link
Member

centos 7 image have curl 7.29 :-(.

7.52 released in 2016, I was pretty sure that we have more recent version...

"curl version 7.29. 0 was released on February 6 2013." :(

It's easier to download our own version and install/build it.

Doing custom build or installation just for couple new arguments, it doesn't really seem worth to me.

cc @jyn514

@onur-ozkan
Copy link
Member

@rustbot blocked

@rustbot rustbot added S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 14, 2023
@jyn514
Copy link
Member

jyn514 commented Apr 14, 2023

Doing custom build or installation just for couple new arguments, it doesn't really seem worth to me.

i agree. instead we can put the retry logic in Rust (and make sure not to retry if it's a 404).

@jyn514 jyn514 added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. labels Apr 15, 2023
@kayagokalp
Copy link
Author

Going to close this for now, and re ignite once I got some time again if no one beats mo to it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants