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

Log errors for commands promises with exit codes not matching any _returncodes #5599

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

vpodzime
Copy link
Contributor

@vpodzime vpodzime commented Aug 9, 2024

They are marked as failed with the following message:

Command related to promiser '...' returned code '1' not defined as promise kept, not kept or repaired; setting to failed

Failed promises should log errors not just info
messages. Otherwise running without --info or more detailed logging fails silently.

Ticket: CFE-4429
Ticket: ENT-12103
Changelog: commands promises with exit codes not matching any
_returncodes attributes from classes body now log and
error message not just an info message

…turncodes

They are marked as failed with the following message:

  Command related to promiser '...' returned code '1' not defined as promise kept, not kept or repaired; setting to failed

Failed promises should log errors not just info
messages. Otherwise running without `--info` or more detailed
logging fails silently.

Ticket: CFE-4429
Ticket: ENT-12103
Changelog: commands promises with exit codes not matching any
           _returncodes attributes from classes body now log and
           error message not just an info message
@vpodzime vpodzime changed the title Log errors for commands promises with exit codes not matching any _re… Log errors for commands promises with exit codes not matching any _returncodes Aug 9, 2024
@vpodzime
Copy link
Contributor Author

vpodzime commented Aug 9, 2024

smoke test: Build Status

Copy link
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This absolutely makes sense. Now the cases where PROMISE_RESULT_FAIL are the result either in case of a classes attribute or not act the same.

👍

@vpodzime vpodzime merged commit 9b59491 into cfengine:master Aug 9, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants