tox fails to detect extras installation failure and proceed running tests #1427
Labels
bug:normal
affects many people or has quite an impact
bug:upstream
something does not behave as it should, but can't or shouldn't be fixed in tox, but in a dependency
Uh oh!
There was an error while loading. Please reload this page.
In certain conditions
tox 3.14.0
seems to ignore failure to install extras and proceeds running the test commands. Even worse, on subsequent executions it believes that all extras were correctly installed and goes directly to running tests.This can easily be reproduce on a machine that does not nave python headers (so it cannot compile some reqs).
That environment lists most of extras from https://github.com/ansible/molecule/blob/master/setup.cfg#L97-L138 and in my case installing
lxc
extra failed due to being unable to compile lxc-python2. At a result none of the requirements fromtest
extras was installed, not even on extra runs.I tried commenting the custom install_command but the same behavior remained.
tox should never assume that an environment is setup correctly if it failed to install requirements initially. I am not sure how it works internally but this could easily be obtained by using a placeholder that is added only on success execution, so when run again, it will know if it could bypass it or not.
The text was updated successfully, but these errors were encountered: