-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simulated Pytests: Freezes when running in parallel #2619
Comments
When we remove the
This is due to Bazel running the tests in a different sandbox environment where the entire filesystem but the files in the sandbox are readonly to allow for tests to be ran in parallel. There's a bit more detail here: https://bazel.build/docs/sandboxing#:~:text=That%20is%2C%20it%20makes%20the%20entire%20filesystem%20read-only%20except%20for%20the%20sandbox%20directory%2C%20so%20the%20action%20cannot%20accidentally%20modify%20anything%20on%20the%20host%20filesystem.%20This%20prevents%20situations%20like%20a%20buggy%20test%20accidentally%20rm%20-rf'ing%20your%20%24HOME%20directory Furthermore, qt-material attempts to create a couple of icons during runtime and write it to a path outside of the sandbox (in my case To have Bazel allow qt-material to write to this directory, we can pass the following argument to our bazel command cc: @Mr-Anyone |
I looked further into a permanent solution, and it doesn't seem like there is a way of referencing the home directory within the An alternative solution is to create a folder named
The
|
Description of the task
The simulated test fixture has a fixed runtime directory. When running multiple tests in parallel, they conflict and make no progress because they are using the same ports.
Also, a gamecontroller with a fixed port is spawned for every test, and if tests are running in parallel, one of them will fail to start.
As a stop gap we can do
tags = ['exclusive']
to run the pytests in series, but we should fix this bug so that when we have more pytests we can run in parallelAcceptance criteria
bazel test //software/ai/...
would work, run it once, then changeball_placement_test.py
andgoalie_tactic_test.py
to make them fire at once)Blocked By
#3160
The text was updated successfully, but these errors were encountered: