Skip to content
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

tox.ini contains reference to nonexistent mpicov test environment in its envlist #603

Closed
joshuavictorchen opened this issue Mar 18, 2022 · 1 comment · Fixed by #604
Closed
Assignees
Labels
cleanup Code/comment cleanup: Low Priority

Comments

@joshuavictorchen
Copy link
Member

mpicov is provided as an argument to envlist in tox.ini, but is not defined as a test environment. This results in an extraneous run of the default [testenv] commands at the end of the call stack if an empty tox command is executed.

armi/tox.ini

Line 2 in ba08a30

envlist = py38,lint,cov,mpicov

I believe this is an artifact from #521. The mpicov argument was first introduced along with a corresponding [testenv:mpicov] environment definition here:

2c4cc12#diff-ef2cef9f88b4fe09ca3082140e67f5ad34fb65fb6e228f119d3812261ae51449

But it was not updated when that environment definition was changed to [testenv:mpitest] here:

6c35012#diff-ef2cef9f88b4fe09ca3082140e67f5ad34fb65fb6e228f119d3812261ae51449

envlist's mpicov argument should be updated to mpitest to reflect this change, or removed altogether. I suggest the latter, since the mpitest environment only works on POSIX/BASH Linux and would cause the empty tox command to fail for Windows users, if included.

@joshuavictorchen joshuavictorchen self-assigned this Mar 18, 2022
@joshuavictorchen joshuavictorchen added the cleanup Code/comment cleanup: Low Priority label Mar 18, 2022
@joshuavictorchen joshuavictorchen linked a pull request Mar 18, 2022 that will close this issue
5 tasks
@john-science
Copy link
Member

Just to note: mpitest IS used on GitHub:

run: tox -e py,mpitest

It is an important test line that we need to preserve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code/comment cleanup: Low Priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants