You need to sign in or sign up before continuing.
Add utility methods for metrics export table creation in clickhouse
What does this MR do and why?
- Add utility method to metrics exporter module to create clickhouse table with correct schema for test metrics export
- Refactor clickhouse client to support basic querying and make client instances isolated and not store auth and endpoint data as class variables (allows correctly creating multiple clients with different endpoints and auth)
- Add additional
hash
field to have a better unique identifier for a test based on it's actual location and full name - Normalize all paths and remove leading
./
as these are just unnecessary data - Add feature_category by default (initial idea was to keep it as custom configurable field, but because we need it in primary index, adding it by default even though it's not very generic and mostly GitLab specific but could still be used to categorize specs)
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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by andrey