Repository navigation
Add nightly test-metrics workflow - #4689
Conversation
Once a day, run the full test suite (unit and integration) against the newest unstable client-libs-test image and report every test's duration to Grafana via redis-developer/cae-otel-ci-visibility@v4, labeled server-version=unstable, for performance-regression tracking. The workflow is self-contained: it no-ops with a warning until the OTEL_CI_VISIBILITY_TOKEN repository secret is set, needs only contents:read permissions, and changes no existing CI. To roll back, delete the workflow file.
When mvn stops before failsafe runs (unit-test or build failure), target/failsafe-reports does not exist and the unexpanded glob made cp fail the collect step under bash -e. nullglob skips absent suites so the step only reports what actually ran.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 000fb8c. Configure here.
|
|
||
| - name: Report test metrics | ||
| # Report even when tests fail, but not when the run was cancelled. | ||
| if: ${{ !cancelled() && steps.gate.outputs.run == 'true' }} |
There was a problem hiding this comment.
Metrics run after setup failure
Medium Severity
Collect JUnit XML and Report test metrics use !cancelled(), which correctly runs after a failed mvn verify, but also runs when earlier setup steps fail and the test step is skipped. That can upload empty or misleading metrics for a night when no tests executed, despite the comment targeting test failures only.
Reviewed by Cursor Bugbot for commit 000fb8c. Configure here.
There was a problem hiding this comment.
Verified this empirically rather than by reading: with an empty junit-reports/ (the setup-failure case) the action early-returns with a ::warning: No test suites found and exports nothing at all — zero requests leave the runner, confirmed against a local OTLP sink — so no empty or misleading metrics can ship, and the job is already red from the failed setup step; the guard lives inside the action rather than the workflow.


Once a day, run the full test suite (unit and integration) against the newest unstable client-libs-test image and report every test's duration to PAWS via redis-developer/cae-otel-ci-visibility@v4, labeled server-version=unstable, for performance-regression tracking.
The workflow is self-contained: it no-ops with a warning until the OTEL_CI_VISIBILITY_TOKEN repository secret is set, needs only contents:read permissions, and changes no existing CI. To roll back, delete the workflow file.
Note
Low Risk
Adds an isolated workflow with contents:read only; it does not alter existing CI or application code, and skips entirely without the metrics secret.
Overview
Adds a new scheduled GitHub Actions workflow (
.github/workflows/nightly-metrics.yaml) that runs once daily (and onworkflow_dispatch) to measure test performance against the latest unstableredislabs/client-libs-testimage.The job no-ops with a warning unless
OTEL_CI_VISIBILITY_TOKENis set (a gate step works around secrets not being usable inif:). When enabled, it resolves the newestunstable-*tag from Docker Hub, boots the usualmake startDocker test env, runsmvn clean verify(unit + integration in one pass, unlike the PR matrix), merges Surefire/Failsafe JUnit XML into a single folder withunit-/it-prefixes, and pushes per-test durations to Grafana viaredis-developer/cae-otel-ci-visibility@v4withserver-version: unstable. Teardown runs onalways(); metrics are reported even on test failure but not on cancel.Reviewed by Cursor Bugbot for commit 000fb8c. Bugbot is set up for automated code reviews on this repo. Configure here.