-
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-39697: [R] Source build should check if offline #39699
Conversation
|
Macbuilder with just these changes: https://mac.r-project.org/macbuilder/results/1705635740-c74d4358db0b3bdb/ ✅ grabs the binary and uses that
Macbuilder with download.file <- stop() and a release number: https://mac.r-project.org/macbuilder/results/1705638062-f8f78931da423e55/ Macbuilder with download.file <- stop() and a release number and with setting LIBARROW_MINIMAL=TRUE if !download_ok: https://mac.r-project.org/macbuilder/results/1705638501-71bdade97614401d/ ✅ Enables a minimal build:
I'm slightly surprised |
Hmm the download.file as stop didn't seem to turn off features. |
The "and a release number" is needed because Lines 915 to 916 in 55afcf0
But also I think we need to add |
And running this locally (with a malignant Build log
|
Ok, #39699 (comment) is updated |
r/tools/nixlibs.R
Outdated
|
||
if (!download_ok) { | ||
lg("Download is not ok, so reverting to a minimal build.") | ||
Sys.setenv(LIBARROW_MINIMAL = "true") |
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.
If the logic is correct, we shouldn't need this because of
Lines 585 to 599 in 4937649
thirdparty_deps_unavailable <- !download_ok && | |
!dir.exists(thirdparty_dependency_dir) && | |
!env_is("ARROW_DEPENDENCY_SOURCE", "system") | |
do_minimal_build <- env_is("LIBARROW_MINIMAL", "true") | |
if (do_minimal_build) { | |
env_var_list <- turn_off_all_optional_features(env_var_list) | |
} else if (thirdparty_deps_unavailable) { | |
cat(paste0( | |
"*** Building C++ library from source, but downloading thirdparty dependencies\n", | |
" is not possible, so this build will turn off all thirdparty features.\n", | |
" See installation guide for details:\n", | |
" https://arrow.apache.org/docs/r/articles/install.html\n" | |
)) | |
env_var_list <- turn_off_all_optional_features(env_var_list) |
build_libarrow()
4937649
to
ab0598e
Compare
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.
Thanks for this
@github-actions crossbow submit r-binary-packages |
Revision: 01eb6ee Submitted crossbow builds: ursacomputing/crossbow @ actions-7e0d11b7c4
|
CRAN. See the commit messages Existing CI should pass and not be affected. We should confirm that source builds get all features enabled. We should test on macbuilder with this package and with one where we've inserted `download.file <- function(...) stop()` at the top of nixlibs.R to simulate offline behavior. I hope there is only one user affected. * Closes: #39697 Authored-by: Neal Richardson <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]>
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 05b8f36. There was 1 benchmark result with an error:
There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 4 possible false positives for unstable benchmarks that are known to sometimes produce them. |
### Rationale for this change CRAN. ### What changes are included in this PR? See the commit messages ### Are these changes tested? Existing CI should pass and not be affected. We should confirm that source builds get all features enabled. We should test on macbuilder with this package and with one where we've inserted `download.file <- function(...) stop()` at the top of nixlibs.R to simulate offline behavior. ### Are there any user-facing changes? I hope there is only one user affected. * Closes: apache#39697 Authored-by: Neal Richardson <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]>
### Rationale for this change CRAN. ### What changes are included in this PR? See the commit messages ### Are these changes tested? Existing CI should pass and not be affected. We should confirm that source builds get all features enabled. We should test on macbuilder with this package and with one where we've inserted `download.file <- function(...) stop()` at the top of nixlibs.R to simulate offline behavior. ### Are there any user-facing changes? I hope there is only one user affected. * Closes: apache#39697 Authored-by: Neal Richardson <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]>
### Rationale for this change CRAN. ### What changes are included in this PR? See the commit messages ### Are these changes tested? Existing CI should pass and not be affected. We should confirm that source builds get all features enabled. We should test on macbuilder with this package and with one where we've inserted `download.file <- function(...) stop()` at the top of nixlibs.R to simulate offline behavior. ### Are there any user-facing changes? I hope there is only one user affected. * Closes: #39697 Authored-by: Neal Richardson <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]>
### Rationale for this change CRAN. ### What changes are included in this PR? See the commit messages ### Are these changes tested? Existing CI should pass and not be affected. We should confirm that source builds get all features enabled. We should test on macbuilder with this package and with one where we've inserted `download.file <- function(...) stop()` at the top of nixlibs.R to simulate offline behavior. ### Are there any user-facing changes? I hope there is only one user affected. * Closes: apache#39697 Authored-by: Neal Richardson <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]>
Rationale for this change
CRAN.
What changes are included in this PR?
See the commit messages
Are these changes tested?
Existing CI should pass and not be affected. We should confirm that source builds get all features enabled. We should test on macbuilder with this package and with one where we've inserted
download.file <- function(...) stop()
at the top of nixlibs.R to simulate offline behavior.Are there any user-facing changes?
I hope there is only one user affected.