Allow CI jobs to signal warnings exist

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

Allow warnings to appear in the job and pipeline statuses (pipelines are probably fixed once jobs and #35078 (closed) are done).

Intended users

Personas are described at https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/

User experience goal

Jobs should be able to signal that warnings exist and this should appear in job and pipeline statuses.

Proposal

Add a new job/pipeline status and allow jobs to signal it (probably similar to how coverage numbers are extracted).

Further details

This is useful for compiled software where warnings are output by the compiler during compilation. Currently we can only detect warnings and outright fail the build (even though a single dev cycle fixing the tests and warnings in one go would save developer and CI time).

Permissions and Security

Nothing special.

Documentation

The gitlab-ci.yml docs should mention how to do this. Should be very similar to coverage docs.

Edited by 🤖 GitLab Bot 🤖