Repository navigation
Conversation
uuzzrm
force-pushed
the
uuzzrm/issue-5427-local-xdist
branch
from
August 15, 2026 19:32
3cd1865 to
4206ec8
Compare
Author
|
Rebuilt the branch on top of the current main - the previous head had picked up some unrelated commits from the fork's history, so I re-applied just the two-file change (bin/test.sh + pyproject.toml) onto latest main and force-pushed. Same diff as before, just a clean history now. |
|
👋 This PR has been automatically marked as stale because it hasn't had activity for 45 days. To keep this PR open:
This will be automatically closed in 14 days if no further activity occurs. Thanks for contributing to browser-use! 🤖 |
|
🔒 This PR was automatically closed because it was stale for 14 days with no activity. Don't worry! If you'd like to continue this work:
Thanks for contributing to browser-use! 🤖 |
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 #5427
Summary
pyproject.tomlconfigured--dist=loadscopeglobally, but pytest-xdist was not enabled by the default test command. That made the option a silent no-op for normal pytest runs while suggesting that tests were being distributed across workers.This change:
--dist=loadscopeflag from the global pytestaddopts;--numprocesses auto --dist=loadscopeinbin/test.sh, where the project's local test entry point already enables xdist;This keeps the existing fixture-aware scheduling for the local suite without implicitly enabling xdist for every invocation or CI runner.
Validation
uv run pytest tests/ci/test_variable_substitution.py -q— 9 passeduv run pytest tests/ci/test_variable_substitution.py -n 2 --dist=loadscope -q— 9 passed with 2 workers and LoadScopeSchedulingbrowser_use/logging_config.pyos.mkfifo/os.O_NONBLOCKerrors)git diff --checkAI assistance was used for the implementation and validation. I reviewed the final diff and am responsible for the changes.
Summary by cubic
Scopes
pytest-xdistto the local test runner to avoid a misleading global flag. Previouslypyproject.tomlset--dist=loadscopewithout enablingpytest-xdist, which had no effect; now only the local test script enables distribution and defaultpytestruns stay single-process.--dist=loadscopefrompyproject.tomladdopts.pytestwith--numprocesses auto --dist=loadscopeinbin/test.sh; CI continues single-process per file.Written for commit 4206ec8. Summary will update on new commits.