Skip to content

Apache DataFusion SQL Query Engine

ARROW-10757: [Rust] [CI] Fix CI failures

Neville Dipaledbf7b7094b6a
diff --git a/.env b/.env
index 56cd767825..603f3ca017 100644
--- a/.env
+++ b/.env
@@ -28,7 +28,7 @@ FEDORA=33
PYTHON=3.6
LLVM=11
CLANG_TOOLS=8
-RUST=nightly-2020-11-19
+RUST=nightly-2020-11-24
GO=1.12
NODE=14
MAVEN=3.5.4
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index bcdb561a05..adbdae6e1d 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -50,7 +50,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- rust: [nightly-2020-11-19]
+ rust: [nightly-2020-11-24]
env:
RUST: ${{ matrix.rust }}
steps:
@@ -96,7 +96,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- rust: [nightly-2020-11-19]
+ rust: [nightly-2020-11-24]
steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
@@ -134,7 +134,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- rust: [nightly-2020-11-19]
+ rust: [nightly-2020-11-24]
steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
diff --git a/.github/workflows/rust_cron.yml b/.github/workflows/rust_cron.yml
index c374865b9e..fed6a99654 100644
--- a/.github/workflows/rust_cron.yml
+++ b/.github/workflows/rust_cron.yml
@@ -35,7 +35,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- rust: [nightly-2020-11-19]
+ rust: [nightly-2020-11-24]
env:
RUST: ${{ matrix.rust }}
steps:
diff --git a/ci/docker/debian-10-rust.dockerfile b/ci/docker/debian-10-rust.dockerfile
index 2c74772bdf..39df235ac8 100644
--- a/ci/docker/debian-10-rust.dockerfile
+++ b/ci/docker/debian-10-rust.dockerfile
@@ -33,11 +33,12 @@ RUN wget -q -O - https://github.com/google/flatbuffers/archive/v${flatbuffers}.t
cd / && \
rm -rf flatbuffers-${flatbuffers}
-ARG rust=nightly-2020-11-19
+ARG rust=nightly-2020-11-24
# freeze the version for deterministic builds
RUN rustup default ${rust} && \
- rustup component add rustfmt --toolchain ${rust}-x86_64-unknown-linux-gnu
+ rustup component add rustfmt --toolchain ${rust}-x86_64-unknown-linux-gnu && \
+ rustup toolchain add stable-x86_64-unknown-linux-gnu
# Compile a dummy program, so that the dependencies are compiled and cached on a layer
# see https://stackoverflow.com/a/58474618/931303 for details
diff --git a/ci/scripts/rust_test.sh b/ci/scripts/rust_test.sh
index 254ea43d29..881cdfb36c 100755
--- a/ci/scripts/rust_test.sh
+++ b/ci/scripts/rust_test.sh
@@ -27,25 +27,29 @@ export PARQUET_TEST_DATA=${arrow_dir}/cpp/submodules/parquet-testing/data
pushd ${source_dir}
-# run unit tests
-cargo test
+# run unit tests excluding arrow, which is run separately
+cargo test --workspace --exclude arrow
+
+# test datafusion examples
+pushd datafusion
+cargo run --example csv_sql
+cargo run --example parquet_sql
+popd
+
+# ARROW-10757 clean artefacts to reclaim space
+cargo clean
+
# run unit tests with SIMD on
pushd arrow
cargo test --features "simd"
-popd
+# run unit tests with stable Rust
+cargo +stable test
# test arrow examples
-pushd arrow
cargo run --example builders
cargo run --example dynamic_types
cargo run --example read_csv
cargo run --example read_csv_infer_schema
popd
-# test datafusion examples
-pushd datafusion
-cargo run --example csv_sql
-cargo run --example parquet_sql
-popd
-
popd
diff --git a/rust/rust-toolchain b/rust/rust-toolchain
index 340dfaafaa..ed4dad9a38 100644
--- a/rust/rust-toolchain
+++ b/rust/rust-toolchain
@@ -1 +1 @@
-nightly-2020-11-19
+nightly-2020-11-24