Skip to content

Fix failing GPG spec related to Prometheus

Heinrich Lee Yu requested to merge 286874-fix-gpg-prometheus-spec into master

What does this MR do?

Gitlab::Gpg memoizes the Prometheus counters at the class-level. We need to clear these because they may be stale if they were memoized by a previous spec then another spec resets the Prometheus registry.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #286874 (closed)

Edited by Heinrich Lee Yu

Merge request reports

Loading