[HotFix] Fix R8 failures due to missing SourceLines annotation in 3.12.0#3642
Merged
Merged
Conversation
…ations" This reverts commit d361e7e.
In CI, we monitor tests and our build via dd-trace-java. The issue is that for java compile tasks, they inject a javac plugin that adds in a SourceLines and SourcePath annotation. The issue is that this injected annotation is not in our runtime dependencies, so R8 will fail due to the missing annotation
ambushwork
approved these changes
Jul 15, 2026
0xnm
approved these changes
Jul 15, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/3.12.0 #3642 +/- ##
==================================================
- Coverage 73.45% 73.33% -0.12%
==================================================
Files 995 995
Lines 36258 36293 +35
Branches 6125 6126 +1
==================================================
- Hits 26631 26614 -17
- Misses 7949 7968 +19
- Partials 1678 1711 +33 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Same as #3641, but targeting the release branch
What does this PR do?
In CI, we monitor tests and our build via dd-trace-java. The issue is that for java compile tasks, they inject a javac plugin that adds in a SourceLines and SourcePath annotation. The issue is that this injected annotation is not in our runtime dependencies, so R8 will fail due to the missing annotation
Ramification for us is that our tests in the Test Optimization product may have their line numbers not as accurate due to the standard method line number table only tracks executable lines, so it won't include comments or method declaration in the UI.
Verification
Ran locally with
org.gradle.jvmargs=-Xmx4096m -javaagent:/tmp/dd-tracer-repro/dd-java-agent.jar=dd.env=ci,dd.trace.enabled=false,dd.jmx.fetch.enabled=false,dd.trace.debug=true,dd.trace.startup.logs=trueWith proposed fix locally:
org.gradle.jvmargs=-Xmx4096m -javaagent:/tmp/dd-tracer-repro/dd-java-agent.jar=dd.env=ci,dd.trace.enabled=false,dd.jmx.fetch.enabled=false,dd.civisibility.compiler.plugin.auto.configuration.enabled=falseMotivation
Fixes #3639
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)