Skip to content

Commit

Permalink
Remove xdist from collect-only in GHA
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mshriver committed Feb 19, 2021
1 parent e243010 commit ad191da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/merge_to_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad191da

Please sign in to comment.