-
-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make testing improvements #3242
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fixes error when running tests using pytest -n >1 this fixes the with of the test time progress bars to avoid some failures in tests.
Tests from a loadgroup are all run sequentially on a single worker.
seems to miss marks in the conftest.py file itself though.
limit setup/teardown of visdom servers using a session scoped fixture. Add visdom tests to an xdist group to run them serially to avoid issues with server connection. add timeout to the tests explicitly requesting the server to further limit any future issues.
vfdev-5
reviewed
Apr 27, 2024
Do not clean up visdom_server fixture. Session scoped fixtures are not guaranteed to be executed just once when using xdist and trying to cleanup twice can cause hangs. Timeout all visdom tests to avoid future issues with a hanging/dead server
vfdev-5
approved these changes
Apr 29, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks John!
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Uses xdist loadgroups to improve performance of tests when running them on multiple workers. Setting
--dist=loadgroups
when calling pytest should now send all tests with the "distributed" mark to the same worker. This helps to avoids some of the errors where tests are trying to use the resources made available by the distributed fixture. A similar solution is now implemented for tests using the visdom_server fixture.Also avoids the warnings for unregistered pytest marks and fixes some stray mypy failures.