-
Notifications
You must be signed in to change notification settings - Fork 242
Retain input ordering in loadscope
(Rebase code for #1098)
#1217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
3d9a763
bea28fb
88f431a
a5bd9b6
bd056b2
2e7f715
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
With `--no-loadscope-reorder`, retain input ordering in loadscope for tests where relative ordering matters. i.e. guarantee that, given [input_1, input_2],input_2 never runs before input_1. On any given worker, either input_1 has ran before input_2, or input_1 has never and will never run on this worker. This only applies when using `loadscope`. | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,6 +127,17 @@ def pytest_addoption(parser: pytest.Parser) -> None: | |
"(default) no: Run tests inprocess, don't distribute." | ||
), | ||
) | ||
group.addoption( | ||
"--no-loadscope-reorder", | ||
|
||
action="store_true", | ||
dest="noloadscopenoreorder", | ||
default=False, | ||
help=( | ||
"Reorders tests when used in conjunction with loadscope.\n" | ||
"Will order tests by number of tests per scope as a best-effort" | ||
" attempt to evenly distribute scopes across all workers." | ||
), | ||
) | ||
group.addoption( | ||
"--tx", | ||
dest="tx", | ||
|
Uh oh!
There was an error while loading. Please reload this page.