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

[master] Report failures and error information from tuned module #65720

Merged
merged 6 commits into from
Dec 28, 2023

Conversation

leeclemens
Copy link
Contributor

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.

@leeclemens leeclemens requested a review from a team as a code owner December 17, 2023 05:30
@leeclemens leeclemens requested review from dwoz and removed request for a team December 17, 2023 05:30
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Report failures and error information from tuned module [master] Report failures and error information from tuned module Dec 17, 2023
dwoz
dwoz previously approved these changes Dec 18, 2023
@dwoz
Copy link
Contributor

dwoz commented Dec 18, 2023

@leeclemens This has pre-commit and linter failuers.

@dwoz
Copy link
Contributor

dwoz commented Dec 18, 2023

@leeclemens Also looks like there are some tuned test failures now, At least on windows, the others have not finished yet.

@leeclemens
Copy link
Contributor Author

I'm working on porting the unit tests to pytest

@leeclemens
Copy link
Contributor Author

@leeclemens Also looks like there are some tuned test failures now, At least on windows, the others have not finished yet.

I overlooked some changes with the pytest port (running now), but I'm not sure about tuned on Windows?

@dwoz dwoz merged commit a4309cd into saltstack:master Dec 28, 2023
531 checks passed
@leeclemens leeclemens deleted the 60500/tuned branch December 30, 2023 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] tuned state does not report error
2 participants