-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-38766: [R] Add timeout option to try_download #38767
Conversation
|
r/tools/nixlibs.R
Outdated
# We download some fairly large files, so ensure the timeout is set appropriately | ||
opts <- options(timeout = max(300, getOption("timeout"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How big are our binaries? We could back of the envelope math for downloading that in worst-case speed. You might have already done this calculation, if so, would be nice to add that to the comment so we know
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently one the windows one is 70 MB. I added a note!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's wonderful. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! I have experienced intermittent slower download speeds from the artifactory before. With the option users can set a longer timeout if they have a slower connection so 100 sec seems reasonable.
@github-actions crossbow submit r-binary-packages (I don't think any of the PR CI jobs exercise this code path, I will merge after) |
Revision: 49e2a0b Submitted crossbow builds: ursacomputing/crossbow @ actions-4430486f55
|
The failure is unrelated (seems to be a fluke in r-lib setup-r-dependencies during pak install on 4.2, hasn't happened in the nightlies so 🤷 ) |
After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit c6682f1. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 2 possible false positives for unstable benchmarks that are known to sometimes produce them. |
|
### Rationale for this change The download of static libraries during installation might be causing an install failure: https://www.r-project.org/nosvn/R.check/r-devel-windows-x86_64/arrow-00install.html ### What changes are included in this PR? The timeout value is temporarily increased according to guidance in the help for `download.file()` ### Are these changes tested? Yes, this code runs during install for at least some CI jobs (also used to download cmake) ### Are there any user-facing changes? No * Closes: apache#38766 Lead-authored-by: Dewey Dunnington <dewey@fishandwhistle.net> Co-authored-by: Dewey Dunnington <dewey@voltrondata.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
### Rationale for this change The download of static libraries during installation might be causing an install failure: https://www.r-project.org/nosvn/R.check/r-devel-windows-x86_64/arrow-00install.html ### What changes are included in this PR? The timeout value is temporarily increased according to guidance in the help for `download.file()` ### Are these changes tested? Yes, this code runs during install for at least some CI jobs (also used to download cmake) ### Are there any user-facing changes? No * Closes: apache#38766 Lead-authored-by: Dewey Dunnington <dewey@fishandwhistle.net> Co-authored-by: Dewey Dunnington <dewey@voltrondata.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
### Rationale for this change The download of static libraries during installation might be causing an install failure: https://www.r-project.org/nosvn/R.check/r-devel-windows-x86_64/arrow-00install.html ### What changes are included in this PR? The timeout value is temporarily increased according to guidance in the help for `download.file()` ### Are these changes tested? Yes, this code runs during install for at least some CI jobs (also used to download cmake) ### Are there any user-facing changes? No * Closes: #38766 Lead-authored-by: Dewey Dunnington <dewey@fishandwhistle.net> Co-authored-by: Dewey Dunnington <dewey@voltrondata.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
### Rationale for this change The download of static libraries during installation might be causing an install failure: https://www.r-project.org/nosvn/R.check/r-devel-windows-x86_64/arrow-00install.html ### What changes are included in this PR? The timeout value is temporarily increased according to guidance in the help for `download.file()` ### Are these changes tested? Yes, this code runs during install for at least some CI jobs (also used to download cmake) ### Are there any user-facing changes? No * Closes: apache#38766 Lead-authored-by: Dewey Dunnington <dewey@fishandwhistle.net> Co-authored-by: Dewey Dunnington <dewey@voltrondata.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
### Rationale for this change The download of static libraries during installation might be causing an install failure: https://www.r-project.org/nosvn/R.check/r-devel-windows-x86_64/arrow-00install.html ### What changes are included in this PR? The timeout value is temporarily increased according to guidance in the help for `download.file()` ### Are these changes tested? Yes, this code runs during install for at least some CI jobs (also used to download cmake) ### Are there any user-facing changes? No * Closes: apache#38766 Lead-authored-by: Dewey Dunnington <dewey@fishandwhistle.net> Co-authored-by: Dewey Dunnington <dewey@voltrondata.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
Rationale for this change
The download of static libraries during installation might be causing an install failure: https://www.r-project.org/nosvn/R.check/r-devel-windows-x86_64/arrow-00install.html
What changes are included in this PR?
The timeout value is temporarily increased according to guidance in the help for
download.file()
Are these changes tested?
Yes, this code runs during install for at least some CI jobs (also used to download cmake)
Are there any user-facing changes?
No