GeezerVison is showing github.com — Add nightly test-metrics workflow by bobymicroby · Pull Request #4689 · redis/jedis
Conversation
bobymicroby
commented
Aug 18, 2026
•
edited by cursor
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
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 on workflow_dispatch) to measure test performance against the latest unstable redislabs/client-libs-test image.
The job no-ops with a warning unless OTEL_CI_VISIBILITY_TOKEN is set (a gate step works around secrets not being usable in if:). When enabled, it resolves the newest unstable-* tag from Docker Hub, boots the usual make start Docker test env, runs mvn clean verify (unit + integration in one pass, unlike the PR matrix), merges Surefire/Failsafe JUnit XML into a single folder with unit- / it- prefixes, and pushes per-test durations to Grafana via redis-developer/cae-otel-ci-visibility@v4 with server-version: unstable. Teardown runs on always(); 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Reviewed by Cursor Bugbot for commit 000fb8c. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
|
|
|
- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
bobymicroby reacted with thumbs down emoji
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
ggivo
ggivo approved these changes
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
churn
Chore: Formatting and comment cleanup (non-functional change)
testing
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|