Conversation
66567c4 to
4ae5b92
Compare
Codecov Report
@@ Coverage Diff @@
## master #9398 +/- ##
============================================
+ Coverage 63.40% 69.69% +6.29%
- Complexity 4762 4787 +25
============================================
Files 1832 1885 +53
Lines 98146 100411 +2265
Branches 15020 15279 +259
============================================
+ Hits 62231 69985 +7754
+ Misses 31321 25462 -5859
- Partials 4594 4964 +370
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
| <PatternLayout> | ||
| <pattern>%d{HH:mm:ss.SSS} %c{1} - %m%n</pattern> | ||
| </PatternLayout> | ||
| <PatternLayout pattern="%d{HH:mm:ss.SSS} %p [%c{1}] [%t] %m%n"/> |
There was a problem hiding this comment.
Do we have any kind of job that parses from the log outputs? (e.g. compatibility test) Since this is backward incompatible, it may have an impact if we ever parse the output logs from the tests.
I think that changing the pattern for test logs should be fine as long as we don't read anywhere in our testing jobs on Github action. But, we should be careful if we want to change the production log pattern (this PR seems to be touching test only).
There was a problem hiding this comment.
I didn't change the production log pattern, but only the test log pattern to match the integration test setting, which gives some useful debugging info such as log level and thread.
|
We don't "parse" the logs (in the sense that we don't have programs that run through the logs). I must admit that when I see failures, INFO logs helped much more than warning logs (that happen much later, many times hiding the root cause). We used it a lot while debugging (and reproducing) helix issues. Ideally, if we can find a way to get all logs for a test, and discard them if the test passes, that will be best. Maybe this can be a newbie task? Until then, I am tempted to say keep the logs. |
|
@mcvsubbu I created this PR because in the current integration test suite, we logged way too many lines and get truncated logs in CI. I even get browser crashed several times trying to download the raw log to see which test failed. IMO we should make the log proper size so that we can easily scroll to the end and find the failed tests. In most of the cases, the failure message is good enough to indicate what is going wrong. If we can log everything for the failed test, that will be ideal, but I'm not sure how to achieve that, and we should also put a limit for the total lines of logs allowed. |
|
@mcvsubbu @Jackie-Jiang Let's run this model (filtered logs) for a while and see if this makes our process more painful or not. I also faced the issue where I was not easily scrolling down to check the actual error due to too many logs and the browser slowed down. |
Reduce the amount of log in tests:
Do not use async logger for tests because it can cause confusion when debugging
Turn off the logger for
KafkaConfluentSchemaRegistryAvroMessageDecoderbecause we intentionally inject tombstones inKafkaConfluentSchemaRegistryAvroMessageDecoderRealtimeClusterIntegrationTestwhich can flood the log