-
Notifications
You must be signed in to change notification settings - Fork 660
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
Adopt use of module invocation method for tools #1897
Conversation
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.
I assume this suggests using things outside of tox-managed env which is wrong.
But I thought we'd already gone down that path with https://tox.readthedocs.io/en/latest/config.html#conf-sitepackages and this is only reducing warnings because of this (I don't make any comment whether this is "right" but it makes sense based on the existing tox configuration). And it wasn't removed in #1895? See https://github.com/ansible/molecule/pull/1895/files#diff-b91f3d5bd63fcd17221b267e851608e8R59. Oh wait, that selinux bug ... |
@decentral1se that's just to facilitate selinux but I think that relying on something outside of tox envs (except for POSIX binaries like |
We need to check whether we can inject something like |
@webknjaz We cannot inject force reinstall and even if we could I would be against as I do not want to reinstall deps on each execution. The lack of dependency refresh on tox is a well known issue which is not limited to use of system site packages. Lucky for us the current maintainer started to work on a solution but it will take many months before we would be able to consuime it (it is a very complex issue related to tox design). For the moment I see no real reason for not merging this as the only side effect it has is to avoid some really annoying warnings. |
@ssbarnea solve this with |
@webknjaz I used the Still, To summarize, I will use module calling whenever is possible. |
@ssbarnea local folder lookup is kinda expected and I use it all the time. You can even use Oh, and |
8ac8a17
to
13d273a
Compare
tox.ini
Outdated
@@ -123,9 +125,6 @@ commands = | |||
--pull --rm \ | |||
{posargs:-t ansible/molecule:$TAG} .\ | |||
' | |||
whitelist_externals = | |||
sh |
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.
Why did you do this?
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.
Only this env needs sh
so there's no need to move it to the global one.
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.
To simplify setup. What is the great feature of keeping these in several places? ... unless we do take a special pleasure in having more complex tox.ini files. Clearly is not related to security or so, in the end any code change would need to be reviewed.
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.
This is related to envs being obvious and avoiding a godobject antipattern.
When you look at the env you shouldn't have to look up all the other envs to guess what else may influence it. Explicit is better than implicit.
Also, dumping everything into one env makes it unreadable/unmaintainable as I've explained somewhere else already.
Avoid annoying warnigns raised by tox about externals when sitepackages is enabled, mainly because these tools where already found installed as system packages. Also simplifies the whitelist_externals usage as there is no real need to have more than one place to define them. Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Hey, I've changed my mind (again, sorry) about There's been some refactoring by @themr0c where I explained why it should move in this direction. |
Avoid annoying warnigns raised by tox about externals when sitepackages
is enabled, mainly because these tools where already found installed
as system packages.
PR Type