Skip to content

Apache DataFusion SQL Query Engine

ARROW-7862: [R] Linux installation should run quieter by default

Neal Richardsondef22cc3c947
diff --git a/.github/workflows/r.yml b/.github/workflows/r.yml
index fda436759d..6102267f30 100644
--- a/.github/workflows/r.yml
+++ b/.github/workflows/r.yml
@@ -61,6 +61,9 @@ jobs:
- name: Docker Run
shell: bash
run: docker-compose run ubuntu-r
+ - name: Dump install logs on failure
+ if: failure()
+ run: cat r/check/arrow.Rcheck/00install.out
- name: Docker Push
if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
continue-on-error: true
@@ -96,6 +99,9 @@ jobs:
- name: Docker Run
shell: bash
run: docker-compose run r
+ - name: Dump install logs on failure
+ if: failure()
+ run: cat r/check/arrow.Rcheck/00install.out
- name: Docker Push
if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
continue-on-error: true
diff --git a/ci/scripts/r_test.sh b/ci/scripts/r_test.sh
index 5798bca59e..62be0b6fb6 100755
--- a/ci/scripts/r_test.sh
+++ b/ci/scripts/r_test.sh
@@ -24,16 +24,27 @@ source_dir=${1}/r
pushd ${source_dir}
-export LD_LIBRARY_PATH=${ARROW_HOME}/lib:${LD_LIBRARY_PATH}
-export R_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
-export ARROW_R_CXXFLAGS='-Werror'
+if [ "$ARROW_USE_PKG_CONFIG" != "false" ]; then
+ export LD_LIBRARY_PATH=${ARROW_HOME}/lib:${LD_LIBRARY_PATH}
+ export R_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
+fi
+if [ "$ARROW_R_CXXFLAGS" != "" ]; then
+ export _R_CHECK_COMPILATION_FLAGS_=FALSE
+fi
export TEST_R_WITH_ARROW=TRUE
export _R_CHECK_TESTS_NLINES_=0
export _R_CHECK_CRAN_INCOMING_REMOTE_=FALSE
export _R_CHECK_LIMIT_CORES_=FALSE
-export _R_CHECK_COMPILATION_FLAGS_=FALSE
export VERSION=$(grep ^Version DESCRIPTION | sed s/Version:\ //)
+# Make sure we aren't writing to the home dir (CRAN _hates_ this but there is no official check)
+BEFORE=$(ls -alh ~/)
+
${R_BIN} -e "rcmdcheck::rcmdcheck(build_args = '--no-build-vignettes', args = c('--no-manual', '--as-cran', '--ignore-vignettes', '--run-donttest'), error_on = 'warning', check_dir = 'check')"
+AFTER=$(ls -alh ~/)
+if [ "$BEFORE" != "$AFTER" ]; then
+ ls -alh ~/.cmake/packages
+ exit 1
+fi
popd
diff --git a/docker-compose.yml b/docker-compose.yml
index 258408c2f1..67b66716c2 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -733,6 +733,8 @@ services:
shm_size: *shm-size
environment:
<<: *ccache
+ ARROW_R_CXXFLAGS: '-Werror'
+ LIBARROW_BUILD: 'false'
volumes: *ubuntu-volumes
command: >
/bin/bash -c "
@@ -756,17 +758,15 @@ services:
base: ${R_ORG}/${R_IMAGE}:${R_TAG}
shm_size: *shm-size
environment:
- TEST_R_WITH_ARROW: "true"
NOT_CRAN: "true"
LIBARROW_DOWNLOAD: "false"
+ ARROW_HOME: "/arrow"
+ ARROW_USE_PKG_CONFIG: "false"
volumes:
- .:/arrow:delegated
command: >
/bin/bash -c "
- cd /arrow/r &&
- R CMD INSTALL . &&
- cd tests &&
- R --no-save --no-restore -e 'library(testthat); library(arrow); library(tibble); test_check(\"arrow\", reporter = \"summary\", stop_on_warning = TRUE)'"
+ /arrow/ci/scripts/r_test.sh /arrow"
ubuntu-r-sanitizer:
# Only 18.04 and amd64 supported