pytest-xdist icon indicating copy to clipboard operation
pytest-xdist copied to clipboard

Running multiple cases through xdist gets stuck around 95% of the time

Open gova-i267 opened this issue 1 year ago • 4 comments

Hi, Ask for help~

2024-01-16 17:58:26.653 [gw6] [ 85%] FAILED test/xxxxxx/case 2024-01-16 17:58:27.014 test/xxxxxx/case 2024-01-16 17:59:35.797 [gw5] [ 86%] PASSED test/xxxxxx/case 2024-01-16 17:59:36.126 test/xxxxxx/case 2024-01-16 18:00:28.257 [gw0] [ 88%] FAILED test/xxxxxx/case 2024-01-16 18:00:28.268 test/xxxxxx/case 2024-01-16 18:02:36.356 [gw1] [ 90%] FAILED test/xxxxxx/case 2024-01-16 18:02:45.082 [gw6] [ 91%] FAILED test/xxxxxx/case 2024-01-16 18:04:27.782 [gw0] [ 93%] PASSED test/xxxxxx/case 2024-01-16 18:04:27.795 test/xxxxxx/case 2024-01-16 18:08:26.971 [gw0] [ 95%] PASSED test/xxxxxx/case 2024-01-16 18:08:26.987 test/xxxxxx/case 2024-01-16 18:08:26.989 [gw0] [ 96%] SKIPPED test/xxxxxx/case 2024-01-16 18:08:26.991 test/xxxxxx/case

What information do I need to provide?

pytest-xdist==3.5.0

gova-i267 avatar Jan 16 '24 12:01 gova-i267

execnet==1.7.1

gova-i267 avatar Jan 16 '24 12:01 gova-i267

What do you mean, 'gets stuck'? the pytest process/commandline just hangs, and never completes? What if you downgrade to 3.4.0 of pytest-xdist?

james-certn avatar Jan 25 '24 21:01 james-certn

What do you mean, 'gets stuck'? the pytest process/commandline just hangs, and never completes? What if you downgrade to 3.4.0 of pytest-xdist?

Yes, it hangs, and never completes. The probability of this problem is very high.

gova-i267 avatar Jan 30 '24 04:01 gova-i267

Again: What if you downgrade to 3.4.0 of pytest-xdist? With what ptest-xdist version does the problem not surface/manifest? Keep dropping the version until the problem doesn't happen. If it happens on any version, it's unlikely to be specific to pytest-xdist.

You could also try changing the distribution method using --dist to see if there is any difference.

james-certn avatar Jan 30 '24 19:01 james-certn