Running tests in parallel #524
Description
When running the RLS test suite in the rust-lang/rust submodule for rls
(./x.py test src/tools/rls
), tests are run in parallel by default. However, failures almost always occur with recent RLS commits (e.g. 96d7461).
The failures happen in either test_bin_lib_project
or test_bin_lib_project_no_cfg_test
(it changes across test runs). Sometimes one of the tests lags until it times out, and other times the wrong configuration is set up in the environment for test_data/bin_lib
(messages sent out of order, or the wrong message).
I'm unable to reproduce the failures by running cargo test
specifically for the RLS; it's only when testing the submodule in rustc
. I can make the tests pass, though, if I run ./x.py test src/tools/rls -j 1
(only one test at a time), which indicates even more that this is a issue with separate threads using the same test data directory.