From c8d5f20d57dfbb6890a6593c824fc069f8431bb9 Mon Sep 17 00:00:00 2001 From: Brian Carroll Date: Sun, 7 Nov 2021 14:50:22 +0000 Subject: [PATCH] Try running test_wasm single-threaded to avoid CI build failures --- Earthfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index 763f799c98..2a2d8c344a 100644 --- a/Earthfile +++ b/Earthfile @@ -79,7 +79,10 @@ test-rust: # not pre-compiling the host can cause race conditions RUN echo "4" | cargo run --release examples/benchmarks/NQueens.roc RUN --mount=type=cache,target=$SCCACHE_DIR \ - cargo test --release --features with_sound && sccache --show-stats + cargo test --release --features with_sound --workspace --exclude test_wasm && sccache --show-stats + # test_wasm has some multithreading problems to do with the wasmer runtime. Run it single-threaded as a separate job + RUN --mount=type=cache,target=$SCCACHE_DIR \ + cargo test --release --package test_wasm -- --test-threads=1 && sccache --show-stats # run i386 (32-bit linux) cli tests RUN echo "4" | cargo run --release --features="target-x86" -- --backend=x86_32 examples/benchmarks/NQueens.roc RUN --mount=type=cache,target=$SCCACHE_DIR \