Skip to content

Add custom warning processing to e2e tests

Andrejs Cunskis requested to merge acunskis-warning-processing into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Our tests generate warning here and there which can be an indication of some technical debt just waiting to happen. The problem is, that with verbose test output, it's rather hard to see the warning. Our custom colour coded logger however allows to highlight warn and error level messages quite clearly. This change will simply channel all warnings through our logger warn level message which should highlight issues better.

Configuration also allows to raise errors on warnings to force fixing any warning that appears.

Example of such warning: https://gitlab.com/gitlab-org/gitlab/-/jobs/2886142937#L784

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Andrejs Cunskis

Merge request reports