Skip to content

Fix jfr-events tests#2818

Merged
jaydeluca merged 1 commit intoopen-telemetry:mainfrom
jaydeluca:fix-jfr-events-tests
May 5, 2026
Merged

Fix jfr-events tests#2818
jaydeluca merged 1 commit intoopen-telemetry:mainfrom
jaydeluca:fix-jfr-events-tests

Conversation

@jaydeluca
Copy link
Copy Markdown
Member

While reviewing #2739 i was trying to run the tests locally and they were not working due to a bug in the gradle config beacuse Kotlin DSL requires the is-prefixed form for boolean properties.

Once the tests were fixed to run, they were failing, so i updated the assertions accordingly

Copilot AI review requested due to automatic review settings May 5, 2026 14:33
@jaydeluca jaydeluca requested a review from a team as a code owner May 5, 2026 14:33
@github-actions github-actions Bot requested a review from sfriberg May 5, 2026 14:34
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

Note

Copilot was unable to run its full agentic suite in this review.

This PR fixes the jfr-events test setup so the module's tests can run under Kotlin DSL Gradle configuration, and updates JFR span test assertions to match the actual extracted collection values.

Changes:

  • Update the Jacoco Kotlin DSL configuration to use the correct boolean property setter form.
  • Adjust JfrSpanProcessorTest assertions from scalar equality checks to collection-aware assertions.
  • Refine the scoped span test expectations for multi-event output.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
jfr-events/src/test/java/io/opentelemetry/contrib/jfrevent/JfrSpanProcessorTest.java Updates test assertions to match AssertJ extraction behavior over event collections.
jfr-events/build.gradle.kts Fixes Gradle Kotlin DSL Jacoco configuration so tests can execute correctly.

@jaydeluca jaydeluca enabled auto-merge May 5, 2026 14:53
@jaydeluca jaydeluca added this pull request to the merge queue May 5, 2026
Merged via the queue into open-telemetry:main with commit 27ac47b May 5, 2026
23 of 24 checks passed
@jaydeluca jaydeluca deleted the fix-jfr-events-tests branch May 5, 2026 16:08
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.

3 participants