-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Different output between --parallel and -p #1192
Comments
Quick thoughts...
|
Interesting. I first reused the venv shown by The behavior was very consistent between all of three venvs I have
When I used the For now I am unblocked but I think it likely to surprise others so maybe fix or update documentation? I am rather unwell ATM but if I feel up to I can try digging in too. |
This bug is kind of neat. Here is what is a happening When passing This is why When tox is run in parallel mode it spawns “sub-tox”s to do the work and then gathers the results. When it calls a sub-tox it uses the same arguments the parent tox received with some modifications. One of these is it removes the first ‘—parallel’ flag it finds. I assume this is to to prevent infinite recursion. As part of running a “sub-tox” an environment variable is set The bug is that when removing ‘—parallel’ tox doesn’t not remove the value it is being set too. The When using the There is another bug. When multiple ‘—parallel’ flags are given the duplicates are not removed before calling the sub-toxs, even when using the The environment variable is actually the only thing preventing infinite recursion. I have submitted two PRs.
If you like please only merge one and close the other. I have looked the unit tests (for the second PR) and tried to write one but frankly I finding it hard to figure out how to test a condition in a test command that is run in a sub-tox. If you have an example of such a test I would be happy to add tests. |
Parallel tests are here https://github.com/tox-dev/tox/blob/master/tests/unit/session/test_parallel.py#L6
|
I would say let's go with the no removal and that probably also has the benefit of not requiring tests 😁 |
I have run into a odd bug with the --parallel flag. When I use
-p auto
it works as expected but when I use the full form of the flag,--parallel auto
I get test failures. Theauto
is passed as an argument to my pytest command. I would expect both of these flags to return the same results.Below I have output showing:
tox.ini
tox --version
outputpip list
showing versions of all the packages installed-p auto
working--parallel auto
failingMy OS in Mac OS Mojave
Thanks for submitting an issue!
If submitting a BUG please provide:
pip list
outputif submitting an ENHANCEMENT issue:
The text was updated successfully, but these errors were encountered: