generator icon indicating copy to clipboard operation
generator copied to clipboard

How to configure health options of the warnings-ng plugin?

Open rhaschke opened this issue 4 years ago • 3 comments

The warnings-ng plugin provides several options to monitor the health status of a job. However, it is unclear how to configure those in recipes. Particularly, I would like to configure the following settings:

  • healthy/text()
  • unhealthy/text()
  • minimumSeverity/name/text()
  • qualityGates (the only way to yield a FAILED or UNSTABLE on too many issues)

rhaschke avatar Sep 11 '21 09:09 rhaschke

@scymtym, did you made some progress on this already?

rhaschke avatar Nov 03 '21 10:11 rhaschke

I made a branch which looks like it could work. You can try the binary from https://github.com/RDTK/generator/actions/runs/1416420320 (the other pipelines seem to be broken due to either end-of-life of the runner configuration or the recent libSSL woes).

build-generator version -c 1 has a brief description.

scymtym avatar Nov 03 '21 11:11 scymtym

Thanks for preparing this branch, @scymtym. Sorry, that I only found time to test this now. Here are my observations:

  • [x] Defining the healthy-threshold, unhealthy-threshold, and health-minimum-severity works as expected.
  • [ ] I couldn't figure out, how to define a quality gate. The doc doesn't mention this.
  • [ ] One quality gate is created by default, although the list of gates should be empty I think.
  • [ ] This created quality gate has a threshold of zero, which is forbidden.
  • [ ] The cmake warnings parser isn't registered anymore. Maybe, because the name changed from Cmake to CMake?

rhaschke avatar Mar 02 '22 00:03 rhaschke