Skip to content

Run the test suite in parallel and skip the git-only test outside git - #161

Open
raorjun wants to merge 1 commit into
mainfrom
ci/parallel-tests
Open

raorjun wants to merge 1 commit into
mainfrom
ci/parallel-tests

Conversation

@raorjun

@raorjun raorjun commented Oct 27, 2026

Copy link
Copy Markdown
Member

What

make test ran the 1100 tests one at a time. It took about 6 minutes locally and 5 to 9 minutes in CI. This PR adds pytest-xdist and runs the suite with -n auto.

test_bobsim_sources_do_not_reference_legacy_boblib_generation_layout calls git ls-files. Git does not work in a container that mounts a git worktree, so the test failed there. It now skips with the git error.

How to check

  • make test in the BobSim image: 1061 passed and 40 skipped in 2:14. On main it was 1061 passed and 1 failed in 5:59.
  • The serial and parallel runs give the same results.
  • Compare the Tests job time on this PR with recent main runs.

Notes

A local venv needs pip install -r requirements.txt once to get pytest-xdist.

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

Successfully merging this pull request may close these issues.

1 participant