-
Notifications
You must be signed in to change notification settings - Fork 169
fix tomcat integration test #1991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix tomcat integration test #1991
Conversation
|
Note: This is PRing into the renovate branch in #1983. |
|
🔧 The result from spotlessApply was committed to the PR branch. |
|
Those integration tests test the yaml definitions that are part of the jmx-scraper for the "legacy" definitions (the ones that are close to jmx-gatherer), and we need to preserve that for a bit of time to avoid regressions, even if those definitions are quite unlikely to change. By default, the This already already happened when the JVM metrics were added in instrumentation, and the fix was to set Instead of modifying tomcat tests to test the instrumentation definitions (which are already tested in instrumentation), I would suggest to do the following:
With that, it should ensure that we don't get test failures for the next instrumentation dependency upgrades. I don't think it is necessary to test the inheritance from instrumentation as this should be covered with |
|
Thanks @SylvainJuge for the detailed explanation. I'll roll those test changes back and see how it looks with |
07dad29 to
bd26277
Compare
SylvainJuge
left a comment
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.
LGTM, I'll open another pr to implement a more generic approach later.
Thanks, I probably pushed prematurely. I am already building the "legacy" into |
92c279c
into
open-telemetry:renovate/otelinstrumentationversion
Tomcat integration test breaks when updating to the new instrumentation. This fixes it. Would love to have a look from @SylvainJuge and @robsunday. Thanks!