-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[master] Report failures and error information from tuned module #65720
Conversation
@leeclemens This has pre-commit and linter failuers. |
@leeclemens Also looks like there are some tuned test failures now, At least on windows, the others have not finished yet. |
I'm working on porting the unit tests to pytest |
d73b8a4
to
48cc58f
Compare
I overlooked some changes with the pytest port (running now), but I'm not sure about tuned on Windows? |
What does this PR do?
Replace stdout in cases of success with known value for state to evaluate.
Update response handling in states.
Returns cmd results from module for better processing and error handling.
Update to use pytests
What issues does this PR fix or reference?
Fixes: #60500
Previous Behavior
Errors were ignored and cmd output was ignored, specifically from the state. State was reported as successful/changed in some failed executions.
New Behavior
The module returns the full output from the cmd and modifies it when useful (success with the new expected profile being returned in stdout). Report failed execution as failure back to state.
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.