Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
No issues found across 1 file
Heads up: you’re close to your flex budget. Increase your flex budget so reviews don’t pause.
View guided diff | Re-trigger cubic
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
Author
|
Following up on this clarification of the serial and parallel pytest commands. Is there anything else needed for review? |
This branch has not been deployed
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.
Related to #5427.
Problem
The pytest configuration sets
--dist=loadscope, but that option alone does not start workers. The usual local test command therefore runs serially, which can be surprising to contributors.Change
Explain how to enable parallel workers and point to the existing test script. Keep the current configuration so that existing
pytest -n ...commands continue to use loadscope grouping.This addresses the documentation aspect of the issue without changing the default test scheduling. Previous related work: #5433 and #5480, both closed as stale.
Verification
pytest tests/ci/test_variable_substitution.py tests/ci/test_variable_detection.py -q.-n 2, with two workers usingLoadScopeScheduling.The full test suite was not run.
Summary by cubic
Clarifies in the contributor guide that
uv run pytest tests/ciruns tests serially, since--dist=loadscopeonly affects grouping once workers are enabled.Documents
uv run pytest -n auto tests/ciand./bin/test.shas the ways to run the CI test suite in parallel. No test configuration is changed.Written for commit 244e563. Summary will update on new commits.