feat(e2e): parallelize e2e tests with pytest-xdist (default -n 5)#102
Merged
johntmyers merged 3 commits intomainfrom Mar 5, 2026
Merged
feat(e2e): parallelize e2e tests with pytest-xdist (default -n 5)#102johntmyers merged 3 commits intomainfrom
johntmyers merged 3 commits intomainfrom
Conversation
Closes #101 Add pytest-xdist for parallel e2e test execution with configurable concurrency. Default to 5 workers; override via E2E_PARALLEL env var (accepts a number or 'auto' for CPU-count matching). Make session-scoped mock inference route fixtures worker-safe by incorporating the xdist worker_id into route names and routing hints.
…e2e/johntmyers # Conflicts: # tasks/test.toml
…e2e/johntmyers # Conflicts: # uv.lock
drew
pushed a commit
that referenced
this pull request
Mar 16, 2026
Closes #101 Add pytest-xdist for parallel e2e test execution with configurable concurrency. Default to 5 workers; override via E2E_PARALLEL env var (accepts a number or 'auto' for CPU-count matching). Make session-scoped mock inference route fixtures worker-safe by incorporating the xdist worker_id into route names and routing hints. Co-authored-by: John Myers <johntmyers@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #101
Summary
Add pytest-xdist for parallel e2e test execution with a configurable concurrency factor. Defaults to 5 concurrent workers; override via
E2E_PARALLELenv var (accepts a number or"auto"for CPU-count matching).Changes Made
pyproject.toml: Addedpytest-xdist>=3.0to dev dependenciese2e/python/conftest.py: Added_worker_suffixsession fixture using xdist'sworker_id; updated mock route fixtures to use worker-unique names and routing hints; changed fixtures to yieldrouting_hintinstead ofnamee2e/python/test_inference_routing.py: Updated 4 tests to use fixture-provided routing hints instead of hard-coded stringsbuild/test.toml: Updatedtest:e2e:sandboxtask to pass-n ${E2E_PARALLEL:-5}for parallel executionDeviations from Plan
None — implemented as planned.
Usage
Tests Added
Verification
tmp/network_checks.pylicense header failure)e2e/source files added, only fixture/config changes)