Skip to content
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

Problem with xdist while running tests in parallel in windows vms #50

Open
sanosuke009 opened this issue Jun 16, 2024 · 1 comment
Open
Assignees

Comments

@sanosuke009
Copy link
Owner

sanosuke009 commented Jun 16, 2024

Facing an weird issue while running pytest tests in parallel using xdist in windows(both 11 and server 2019) vms in vagrant. I am not facing the same in linux vms.

PS D:\Project_Sudip\Automation\Vagrant\Windows Server> vagrant provision winserver --provision-with vm-run-youtube-tests
==> winserver: Running provisioner: vm-run-youtube-tests (shell)...
winserver: Running: inline PowerShell script
winserver: Running youtube-tests on browser
winserver: ============================= test session starts =============================
winserver: platform win32 -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0
winserver: rootdir: C:\vagrant\PoseidonFramework\web
winserver: configfile: pytest.ini
winserver: plugins: allure-pytest-2.13.5, base-url-2.1.0, playwright-0.5.0, rerunfailures-14.0, xdist-3.6.1
winserver: created: 4/4 workers
winserver: 4 workers [8 items]
winserver:
winserver:
winserver: =================================== ERRORS ====================================
winserver: ____________________________ ERROR collecting gw1 _____________________________
winserver: Different tests were collected between gw0 and gw1. The difference is:
winserver: --- gw0
winserver:
winserver: +++ gw1
winserver:
winserver: @@ -1,5 +1,5 @@
winserver:
winserver: +src/test/testcases/test_parabank_login.py::test_web_login
winserver: src/test/testcases/test_parabank_login.py::test_web_login_again
winserver: -src/test/testcases/test_parabank_registration.py::test_web_registration
winserver: src/test/testcases/youtube/test_youtube_hits.py::test_web_login[AamShol]
winserver: src/test/testcases/youtube/test_youtube_hits.py::test_web_login[Quail]
winserver: src/test/testcases/youtube/test_youtube_hits.py::test_web_login[gulmoharreview]
winserver: To see why this happens see Known limitations in documentation
winserver: ____________________________ ERROR collecting gw3 _____________________________
winserver: Different tests were collected between gw0 and gw3. The difference is:
winserver: --- gw0
winserver:
winserver: +++ gw3
winserver:
winserver: @@ -1,4 +1,4 @@
winserver:
winserver: -src/test/testcases/test_parabank_login.py::test_web_login_again
winserver: +src/test/testcases/test_parabank_login.py::test_web_login
winserver: src/test/testcases/test_parabank_registration.py::test_web_registration
winserver: src/test/testcases/youtube/test_youtube_hits.py::test_web_login[AamShol]
winserver: src/test/testcases/youtube/test_youtube_hits.py::test_web_login[Quail]
winserver: To see why this happens see Known limitations in documentation
winserver: ____________________________ ERROR collecting gw2 _____________________________
winserver: Different tests were collected between gw0 and gw2. The difference is:
winserver: --- gw0
winserver:
winserver: +++ gw2
winserver:
winserver: @@ -1,3 +1,4 @@
winserver:
winserver: +src/test/testcases/test_parabank_login.py::test_web_login
winserver: src/test/testcases/test_parabank_login.py::test_web_login_again
winserver: src/test/testcases/test_parabank_registration.py::test_web_registration
winserver: src/test/testcases/youtube/test_youtube_hits.py::test_web_login[AamShol]
winserver: To see why this happens see Known limitations in documentation
winserver: =========================== short test summary info ===========================
winserver: ERROR web\gw1
winserver: ERROR web\gw3
winserver: ERROR web\gw2
winserver: ============================== 3 errors in 3.34s ==============================

Image

@sanosuke009 sanosuke009 self-assigned this Jun 16, 2024
@sanosuke009
Copy link
Owner Author

This issue might be able to fix the problem. It suggests that the parameterization needs to be sorted.

pytest-dev/pytest-xdist#432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant