Loading
Add logging field validator CI job for Workhorse
What does this MR do and why?
Adds a new CI job to validate logging fields using LabKit's field validator tool. This helps ensure logging field consistency across the workhorse codebase.
References
gitlab-org/quality/quality-engineering/team-tasks#4110 (closed)
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- Check out the branch
malvarez-add-logging-field-validator. - Go to the Workhorse directory
cd workhorse. - Run
go get gitlab.com/gitlab-org/labkit/v2/cmd/validate-log-fields. - Run
go run gitlab.com/gitlab-org/labkit/v2/cmd/validate-log-fields .. - Observe
Found 9 deprecated logging field offense(s) — all tracked in .labkit_logging_todo.yml. No action required..
In the MR
- Check the related job
workhorse:logging-field-validatorand verify it's successful.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Matias Alvarez