GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add nightly test-metrics workflow by bobymicroby · Pull Request #4689 · redis/jedis

Conversation

@bobymicroby

@bobymicroby bobymicroby commented Aug 18, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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
All reactions
  • 👍 1 reaction
@bobymicroby
Add nightly test-metrics workflow
bf2b3c5
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.
cursor[bot]
cursor Bot reviewed Aug 18, 2026
View reviewed changes
Comment thread .github/workflows/nightly-metrics.yaml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@bobymicroby
Tolerate a missing report dir when collecting JUnit XML
000fb8c
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.
cursor[bot]
cursor Bot reviewed Aug 18, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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.

Fix All in Cursor

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.

All reactions
Comment thread .github/workflows/nightly-metrics.yaml

- name: Report test metrics
# Report even when tests fail, but not when the run was cancelled.
if: ${{ !cancelled() && steps.gate.outputs.run == 'true' }}

@cursor cursor Bot Aug 18, 2026

Copy link
Copy Markdown

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.

Fix in Cursor Fix in Web

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
All reactions
  • 👎 1 reaction

@bobymicroby bobymicroby Aug 18, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions
ggivo
ggivo approved these changes Aug 20, 2026
View reviewed changes
@ggivo
ggivo merged commit 3b81dfe into redis:master Aug 20, 2026
13 of 15 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ggivo ggivo added testing churn Chore: Formatting and comment cleanup (non-functional change) labels Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ggivo ggivo ggivo approved these changes
+1 more reviewer
@cursor cursor[bot] cursor[bot] left review comments
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

Projects

None yet

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.

2 participants

@bobymicroby @ggivo
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.