From 51e5faf8d19626975fd8aa0572cd051de70ce28e Mon Sep 17 00:00:00 2001 From: "Igoshev, Iaroslav" Date: Fri, 6 Sep 2024 14:24:27 +0000 Subject: [PATCH] FIX-#7387: Limit the number of pytest workers for tests with Ray engine on Windows Signed-off-by: Igoshev, Iaroslav --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8fb26225613..9b0d5b49783 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -443,12 +443,28 @@ jobs: - run: python -m pytest -n 2 modin/tests/experimental/test_pipeline.py if: matrix.engine == 'python' || matrix.test_task == 'group_1' - uses: ./.github/actions/run-core-tests/group_1 + with: + # When running with Ray engine on Windows using 2 pytest workers tests are failing in CI. + # See https://github.com/modin-project/modin/issues/7387. + parallel: ${{ matrix.engine == 'ray' && matrix.os == 'windows' && '-n 1' || '-n 2' }} if: matrix.engine == 'python' || matrix.test_task == 'group_1' - uses: ./.github/actions/run-core-tests/group_2 + with: + # When running with Ray engine on Windows using 2 pytest workers tests are failing in CI. + # See https://github.com/modin-project/modin/issues/7387. + parallel: ${{ matrix.engine == 'ray' && matrix.os == 'windows' && '-n 1' || '-n 2' }} if: matrix.engine == 'python' || matrix.test_task == 'group_2' - uses: ./.github/actions/run-core-tests/group_3 + with: + # When running with Ray engine on Windows using 2 pytest workers tests are failing in CI. + # See https://github.com/modin-project/modin/issues/7387. + parallel: ${{ matrix.engine == 'ray' && matrix.os == 'windows' && '-n 1' || '-n 2' }} if: matrix.engine == 'python' || matrix.test_task == 'group_3' - uses: ./.github/actions/run-core-tests/group_4 + with: + # When running with Ray engine on Windows using 2 pytest workers tests are failing in CI. + # See https://github.com/modin-project/modin/issues/7387. + parallel: ${{ matrix.engine == 'ray' && matrix.os == 'windows' && '-n 1' || '-n 2' }} if: matrix.engine == 'python' || matrix.test_task == 'group_4' - run: python -m pytest -n 2 modin/tests/numpy if: matrix.engine == 'python' || matrix.test_task == 'group_4'