Skip to content

Commit

Permalink
ARROW-7983: [CI][R] Nightly builds should be more verbose when they fail
Browse files Browse the repository at this point in the history
We do this on GHA but not crossbow

Closes #6509 from nealrichardson/debug-azure and squashes the following commits:

5cb2424 <Neal Richardson> More verbosity
ad307bc <Neal Richardson> Try to get azure builds to print install logs on failure

Authored-by: Neal Richardson <neal.p.richardson@gmail.com>
Signed-off-by: Neal Richardson <neal.p.richardson@gmail.com>
  • Loading branch information
nealrichardson committed Mar 2, 2020
1 parent 8466862 commit e667230
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions ci/scripts/r_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if [ "$ARROW_R_CXXFLAGS" != "" ]; then
export _R_CHECK_COMPILATION_FLAGS_=FALSE
fi
export TEST_R_WITH_ARROW=TRUE
export ARROW_R_DEV=TRUE # For log verbosity
export _R_CHECK_TESTS_NLINES_=0
export _R_CHECK_CRAN_INCOMING_REMOTE_=FALSE
export _R_CHECK_LIMIT_CORES_=FALSE
Expand Down
6 changes: 6 additions & 0 deletions dev/tasks/r/azure.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,9 @@ jobs:
R_TAG={{ r_tag }}
docker-compose run r
displayName: Docker run
- script: |
set -ex
cat arrow/r/check/arrow.Rcheck/00install.out
displayName: Dump install logs on failure
condition: failed()
9 changes: 5 additions & 4 deletions r/tests/testthat/test-Array.R
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,12 @@ test_that("support for NaN (ARROW-3615)", {
expect_equal(y$null_count, 1L)
})

int_types <- c(int8(), int16(), int32(), int64())
uint_types <- c(uint8(), uint16(), uint32(), uint64())
float_types <- c(float32(), float64()) # float16() not really supported in C++ yet

test_that("integer types casts (ARROW-3741)", {
# Defining some type groups for use here and in the following tests
int_types <- c(int8(), int16(), int32(), int64())
uint_types <- c(uint8(), uint16(), uint32(), uint64())
float_types <- c(float32(), float64()) # float16() not really supported in C++ yet

a <- Array$create(c(1:10, NA))
for (type in c(int_types, uint_types)) {
casted <- a$cast(type)
Expand Down

0 comments on commit e667230

Please sign in to comment.