Skip to content

Conditionally run GME QA monitoring tests

Nikola Milojevic requested to merge nmilojevic1-qa-test-gme into master

What does this MR do and why?

We have a QA spec that tests this server integration: https://gitlab.com/gitlab-org/gitlab/-/blob/7359d23f4e078479969c872924150219c6f1665f/qa/qa/specs/features/api/8_monitor/metrics_spec.rb. However, that would currently still test against the old exporter in CI because GITLAB_GOLANG_METRICS_SERVER is not set.

This MR allow us to conditionally set env variable GITLAB_GOLANG_METRICS_SERVER = "true" by setting label pipeline:run-gitlab-metrics-exporter to the MR.

This way, until GME is not fully deployed, developers can choose which exporter they would like to test in CI.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 Nikola Milojevic

Merge request reports