-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-400] Event module should handle "warn on error" behavior. #4914
Comments
This is eerily similar to (but indeed separate from) our |
Realized that #5424 was another instance of this tech debt (and an actual bug, since it's not working correctly today) |
Having looked through the event types in events/types.py and where they are emitted, I believe the only events with identical error/warning variants are as follows:
Additionally, it would seem that our events are defined as whatever level they are (i.e. test, debug, info, warn, error) via inheritance, so emitting one event as both warn and error would require a refactor of how our events are defined. Given this information, I'm not sure it makes sense to have the I will close this for now in favor of #5424. Please feel free to reopen should my assessment be incorrect. |
There are some places in the code that conditionally fire otherwise identical warning events and error events. For example see these lines in the printer task. Because the logged message is identical in both of these events, they should not be two separate events.
The proposed solution:
--warn-error
within the event modulefire_event
for adhoc error-on-warn behavior. (i.e. -error_on_warn=False
)The text was updated successfully, but these errors were encountered: