-
Notifications
You must be signed in to change notification settings - Fork 58
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
Brew tests on mac failing #1033
Comments
@Ch3LL are these test macs logged in as a user, and which OS version are they running? |
we are seeing the failures on: sierra, high sierra, and el capitan We login as root as you can see below:
and here is the /etc/profile that we source:
|
I can replicate this issue
which we can fix by doing a But I'm still trying to reproduce this bit
|
okay got a step further. I was able to get the script i wrote above to now fail with "brew command not found" instead of "Running Homebrew as root is exteremely dangerous" by changing the PATHS in the environment.
mostly just updating here so I can start off where i ended today. will look into how to fix for tests |
also just tested hardcoding that PATH in salt/modules/cmdmod.py and getting the "brew command not found" expected error when running tests. will look at cleaning up the paths tomorrow and figuring out why this is occurring. |
k its the fake su we add to our integration test:
|
Oh, that’s interesting. Nice find. |
I suppose this could be fixed by changing the cmdmod.py to use to |
@weswhet just closed we ended up just removing the su path in the integration tests |
The following brew tests are failing on mac:
Here is the stack trace:
If i run
pkg.install
outside of the test runner I see this:If i run it in our test runner we get the "homebrew can't be run by root" error.
I wrote a quick python script to quickly replicate the issue as well:
which returns:
I bisected this issue to this change: saltstack/salt#47212
If i revert this PR tests pass
ping @weswhet
The text was updated successfully, but these errors were encountered: