-
Notifications
You must be signed in to change notification settings - Fork 106
Description
Describe the bug
The test launch never finishes.
We have encountered a deadlock inside the finish_suites() function.
For some reason, in the _build_item_paths() method, it appears the condition elif leaf['type'] != LeafType.ROOT: was changed to if leaf["type"] != LeafType.ROOT:.
This leads to two additional elements being added to the tree that will never be executed.
Steps to Reproduce
1.Set up the following test structure:
python_file -> python_class -> python_tests(for example 4 tests)
2.Run tests using pytest-xdist and pytest-reportportal. For example:
pytest --dist load --tx N*popen --reportportal
Expected behavior
Tests finish executing.
The Pytest run completes successfully.
The ReportPortal launch is marked as completed.
PyTestService._tree_path should contain 4 elements (matching the number of actual tests).
Actual behavior
Tests appear to finish executing.
The Pytest run hangs and does not complete.
The ReportPortal launch remains in progress indefinitely.
PyTestService._tree_path contains 6 elements (2 more than the actual number of tests).
Package versions
reportportal-client==5.6.2
pytest-reportportal==5.5.0
pytest-xdist==3.3.1
pytest==7.4.4
Additional context
We use pytest-xdist, although this problem might not be directly related to it.