Open onehr opened 5 years ago
What does ulimit -n
return? The Linux default of 1024 open FDs per process is likely too low when running the Noria tests on ten threads in parallel (Rust default).
Workarounds: either increase the FD limit, or run with RUST_TEST_THREADS=1
set, so that only one test runs at a time.
Seems this is the solution, FD limit is too small for many threads. Thanks.
@jonhoo Can we somehow set a default RUST_TEST_THREADS=1
for cargo
to pick up? I seem to remember that it's possible to set workspace-specific environment variables for cargo
. It'd be good if cargo test
worked out of the box on other vanilla Linux machines.
@ms705 Would it be better to make some parts serial (which causes the fails) and keep others parallel? For performance.
@ms705 there sadly isn't really a way to do this in a good way. Maybe the closest approximation is using serial_test
. There's https://github.com/rust-lang/rust/issues/43155, but I don't know that anything has come of that.
System Information
description
Command:
cargo test
Test Message (Ignored the un-related part before):
Got several FAILED tests, and the test seems just stunned.