Skip to content

Add golden e2e tests for ibm-mq-metrics#2119

Open
atoulme wants to merge 3 commits intoopen-telemetry:mainfrom
atoulme:add_golden
Open

Add golden e2e tests for ibm-mq-metrics#2119
atoulme wants to merge 3 commits intoopen-telemetry:mainfrom
atoulme:add_golden

Conversation

@atoulme
Copy link
Copy Markdown
Contributor

@atoulme atoulme commented Aug 15, 2025

Description:

Test changes to add an e2e test for the ibm-mq-metrics component.

Existing Issue(s):

Fixes #2112

@github-actions github-actions bot requested a review from breedx-splk August 15, 2025 20:10
@atoulme atoulme force-pushed the add_golden branch 4 times, most recently from 2b66a8f to 60da846 Compare August 15, 2025 21:29
@atoulme atoulme force-pushed the add_golden branch 4 times, most recently from d974838 to c4e8ef8 Compare October 9, 2025 06:05
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 7, 2026

This PR has been labeled as stale due to lack of activity. It will be automatically closed if there is no further activity over the next 14 days.

@github-actions github-actions bot added the stale label Jan 7, 2026
@atoulme atoulme marked this pull request as ready for review January 15, 2026 00:48
@atoulme atoulme requested a review from a team as a code owner January 15, 2026 00:48
@breedx-splk
Copy link
Copy Markdown
Contributor

@atoulme are you chasing that failure?

Copilot AI review requested due to automatic review settings March 6, 2026 16:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a “golden” end-to-end (e2e) test setup for the ibm-mq-metrics component to validate emitted OTLP metrics against an expected snapshot, helping prevent regressions (Fixes #2112).

Changes:

  • Adds a docker-compose-based golden test harness (MQ + Collector + Golden) and expected metrics snapshot.
  • Adds a Gradle task to copy the IBM MQ client JAR for use by the golden test runner script.
  • Updates channel metrics collection to honor the ibm.mq.manager.active.channels enablement flag.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
ibm-mq-metrics/src/main/java/io/opentelemetry/ibm/mq/metricscollector/ChannelMetricsCollector.java Gates activeChannelsGauge emission behind metrics config.
ibm-mq-metrics/build.gradle.kts Adds copyIbmClientJar task to place MQ client JAR in build/libs.
ibm-mq-metrics/golden/run.sh Runs the built shadow JAR against the golden config.
ibm-mq-metrics/golden/otelconf.yaml Collector config for receiving OTLP and exporting to the golden verifier.
ibm-mq-metrics/golden/docker-compose.yaml Brings up MQ, collector, and golden verifier containers.
ibm-mq-metrics/golden/data/expected.yaml Golden expected metrics snapshot.
ibm-mq-metrics/golden/config.yml IBM MQ metrics app config used for the golden run.
.github/workflows/e2e.yml GitHub Actions workflow to run the golden e2e test on changes.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ibm-mq] Add golden files testing

3 participants