Skip to content

ci(test): enable pytest-xdist for cuopt Python tests#1486

Draft
ramakrishnap-nv wants to merge 1 commit into
mainfrom
feat/pytest-xdist-python-tests
Draft

ci(test): enable pytest-xdist for cuopt Python tests#1486
ramakrishnap-nv wants to merge 1 commit into
mainfrom
feat/pytest-xdist-python-tests

Conversation

@ramakrishnap-nv

Copy link
Copy Markdown
Collaborator

Summary

  • Add pytest-xdist to test_python_common dependencies (propagated to conda envs and pyproject.toml files via dependency file generator)
  • Pass -n auto to the non-nightly cuopt pytest invocation in ci/run_cuopt_pytests.sh
  • Server tests (run_cuopt_server_pytests.sh) are unchanged — they bind a fixed port (localhost:18900) that would conflict across parallel workers

The script already cds into python/cuopt/cuopt where xdist + coverage is known to work (noted in the existing comment on line 7).

Test plan

  • CI conda-python-tests job shows parallel test workers in the log
  • Test results and coverage report are complete (no missing tests)
  • conda-python-tests wall time is reduced compared to baseline
  • Server tests are unaffected

🤖 Generated with Claude Code

Add pytest-xdist to test_python_common dependencies and pass -n auto
to the non-nightly cuopt pytest invocation to parallelize tests across
available CPUs. Server tests are excluded due to fixed-port binding
(localhost:18900). The run_cuopt_pytests.sh script already cd-s into
python/cuopt/cuopt where xdist+coverage is known to work.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Ramakrishna Prabhu <ramakrishnap@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

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