From ad191da85e78ae1469485ad00725307e35750238 Mon Sep 17 00:00:00 2001 From: Mike Shriver Date: Fri, 19 Feb 2021 10:59:29 -0500 Subject: [PATCH] Remove xdist from collect-only in GHA Due to randomization of parameter values in robottelo, xdist collection comparison sometimes fails. This is causing GHA workflow failures on PRs that should otherwise pass, causing maintainers to have to re-run workflows frequently --- .github/workflows/merge_to_master.yml | 6 +++--- .github/workflows/pull_request.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/merge_to_master.yml b/.github/workflows/merge_to_master.yml index 59ffebc0185..ffc8c1185fa 100644 --- a/.github/workflows/merge_to_master.yml +++ b/.github/workflows/merge_to_master.yml @@ -48,9 +48,9 @@ jobs: - name: Collect Tests run: | - pytest -n 8 --setup-plan --disable-pytest-warnings tests/foreman/ tests/robottelo/ - pytest -n 8 --setup-plan --disable-pytest-warnings -m pre_upgrade tests/upgrades/ - pytest -n 8 --setup-plan --disable-pytest-warnings -m post_upgrade tests/upgrades/ + pytest --collect-only --disable-pytest-warnings tests/foreman/ tests/robottelo/ + pytest --collect-only --disable-pytest-warnings -m pre_upgrade tests/upgrades/ + pytest --collect-only --disable-pytest-warnings -m post_upgrade tests/upgrades/ - name: Test Robottelo Coverage run: pytest --cov --cov-config=.coveragerc --cov-report=xml tests/robottelo diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d917b01d6a2..274a308b68d 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -46,9 +46,9 @@ jobs: - name: Collect Tests run: | - pytest -n 8 --setup-plan --disable-pytest-warnings tests/foreman/ tests/robottelo/ - pytest -n 8 --setup-plan --disable-pytest-warnings -m pre_upgrade tests/upgrades/ - pytest -n 8 --setup-plan --disable-pytest-warnings -m post_upgrade tests/upgrades/ + pytest --collect-only --disable-pytest-warnings tests/foreman/ tests/robottelo/ + pytest --collect-only --disable-pytest-warnings -m pre_upgrade tests/upgrades/ + pytest --collect-only --disable-pytest-warnings -m post_upgrade tests/upgrades/ - name: Test Robottelo Coverage run: pytest --cov --cov-config=.coveragerc --cov-report=xml tests/robottelo