-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
[ADD] oca_checklog_odoo: configurable failure on WARNING log messages #77
Conversation
I've had a brief look, and the PR looks great. Regarding the python 3.5 test, well... I wonder if OCA should not simply stop supporting Odoo 11. |
bin/oca_checklog_odoo
Outdated
if [ -n "${OCA_ENABLE_CHECKLOG_ODOO}" ]; then | ||
checklog-odoo | ||
else | ||
checklog-odoo -i ".*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I proposed this approach, but I wonder if we could use a simple unix command instead such as cat
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, specifically for the case when we don't want to check logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that would probably make more sense. Changed it just now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor remark about typo
…st_database and oca_run_tests
50fa884
to
8dbb91e
Compare
Apparently it's been almost a decade since 3.5 was released, so yeah it might be time to let it go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll try to find a moment to test this soon. Main thing I want to check is if the colors are preserved in the logs. @PabloEForgeFlow would you also do the PR on oca/oca-addons-repo-template to add the copier question to enable this (enabled by default on Odoo >= 18)? |
Sure, I'm a bit busy at the moment, but I'll do that as soon as I can. |
What do you think about reusing the Edit: Just realized I did not take the Travis configuration into account, perhaps it is worth having a dedicated variable. |
Don't worry about Travis. We don't use it anymore (and I think we can remove it from the template). About |
Ok, lets merge it to test. |
Thanks a lot for doing this @PabloEForgeFlow |
This PR implements #10 by doing the following:
bin/oca_checklog_odoo
, which fails on stdinWARNING
log messages whenOCA_ENABLE_CHECKLOG_ODOO
is setoca_init_test_database
andoca_run_tests
tooca_checklog_odoo
tests/test_checklog.py