Skip to content

Change metric SQL queries calls to be deterministic

Piotr Skorupa requested to merge psk-make-usage-data-queries-deterministic into master

What does this MR do and why?

Related to #347545 (closed).

This changes the Gitlab::Usage::ServicePingReport calls for metric SQL queries return the same results between calls (barring timestamps) to make future iterations on #347545 (closed) easier.

Previously, some metric values would differ between calls (for example, raw Proc objects with different stringified object ids).

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

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 Piotr Skorupa

Merge request reports