-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Shuffle tests for a single worker #17149
Conversation
Even when tests are not run in parallel, shuffling can help discover tests that unintentionally depend on other tests being run before them.
I think the change makes sense overall. But I know for sure that the tests of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
But I know for sure that the tests of ext/pgsql are order dependent.
This would already be an issue, right? It's not a new flag.
Right, but this is "prevented" by the use of the |
That should be fixed. :) |
I do agree, but how it is actually setup currently, makes sense. |
Looks like this was not merged yet but had an approval. I've merged this into master along with a NEWS entry. |
@cmb69 I interpreted "That should be fixed." as that it was already fixed. |
See one of my prior comments :)
Basically |
Ah okay, I can see this logic in the test runner indeed that it puts the conflicts at the end on a single worker. |
Hi,
I'm using run-tests.php for testing in extension development. For my use case, I require the tests to be run one at a time and therefore cannot make use of the
-j<workers>
flag.After a bit of investigation, I found that the
--shuffle
flag is hidden behind parallelization.By moving shuffling to happen earlier in
run_all_tests
rather thanrun_all_tests_parallel
, I was able to find some issues with my tests being order dependent.Would this contribution be something of interest to the community?