-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
CI: run Python tests in random order/parallel [WIP] #9266
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
Conversation
I can reproduce the
|
d82c21f
to
f9c7b0f
Compare
This allows a temporary directory generated by pytest to be passed to GDALTest, preventing collisions when running tests in parallel.
… should not use it
f9c7b0f
to
80b76e1
Compare
I'm going to propose closing this in favor of a separate PR that includes this batch of test changes but does not enable random ordering or parallel tests for CI. With random order testing, I see occasional segfaults when loading the This seems like an environment issue, and fixing it is beyond the spirit of #4407. With regard to parallel testing, I see very rare failures such as this one, which appears to involve two tests are operating on the same files in the I've verified that tests are cleaning up after themselves, i.e. any changes to the |
+1 |
Maybe Python will eventually do copy-on-write on macOS & Linux which would make this fast and painless (though |
Closing this in favor of #9698 |
What does this PR do?
Updates the Ubuntu 20.04 CI configuration to make most Python tests run in random order and in some cases, in parallel.
I am still working through a few remaining failures, e.g. https://github.com/dbaston/gdal/actions/runs/7977513063/job/21780552676#step:16:3591 and https://github.com/dbaston/gdal/actions/runs/7978242428/job/21782935240#step:16:4345
What are related issues/pull requests?
#4407
Tasklist