Skip to content

docs: clarify pytest parallel execution - #6282

Open
Aafimalek wants to merge 2 commits into
browser-use:mainfrom
Aafimalek:fix/pytest-distribution
Open

Aafimalek wants to merge 2 commits into
browser-use:mainfrom
Aafimalek:fix/pytest-distribution

Conversation

@Aafimalek

@Aafimalek Aafimalek commented Nov 1, 2026 •

Copy link
Copy Markdown

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

  • Windows, Python 3.12: 40 tests passed using pytest tests/ci/test_variable_substitution.py tests/ci/test_variable_detection.py -q.
  • The same 40 tests passed with -n 2, with two workers using LoadScopeScheduling.
  • Pre-commit checks passed for the changed file.

The full test suite was not run.


Summary by cubic

Clarifies in the contributor guide that uv run pytest tests/ci runs tests serially, since --dist=loadscope only affects grouping once workers are enabled.

Documents uv run pytest -n auto tests/ci and ./bin/test.sh as 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.

View guided diff

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@mintlify

mintlify Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 244e563.

Approve preview

@Aafimalek

Copy link
Copy Markdown
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

No deployments
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