[TT-1140] Cl node test log scanner
@anirudhwarrier do we want to fail only of zapcore.PanicLevel? Or should it be zapcore.ErrorLevel? In k8s we use the first one, but idk if it would have caught that error logs spam in Keepers that you mentioned, since it wasn't a panic. So maybe we should set it to ErrorLevel? But that might give us a lot of failures...
@iljapavlovs this should do what you want:
logProcessor, processFn, err := logstream.GetRegexMatchingProcessor(env.LogStream, "BalanceMonitor: signalling balance worker")
require.NoError(t, err, "Error getting regex matching processor")
count, err := logProcessor.ProcessContainerLogs(env.ClCluster.Nodes[1].ContainerName, processFn)
require.NoError(t, err, "Error scanning container logs for matches")
@anirudhwarrier do we want to fail only of
zapcore.PanicLevel? Or should it bezapcore.ErrorLevel? In k8s we use the first one, but idk if it would have caught that error logs spam in Keepers that you mentioned, since it wasn't a panic. So maybe we should set it toErrorLevel? But that might give us a lot of failures...
I think it should be PanicLevel common to all tests. If any tests needs to override that, then those tests can do that.
Quality Gate passed
Issues
0 New issues
0 Fixed issues
1 Accepted issue
Measures
0 Security Hotspots
No data about Coverage
3.9% Duplication on New Code