Migrate dd-trace-ot tests to JUnit 5#11483
Conversation
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
This comment has been minimized.
This comment has been minimized.
bric3
left a comment
There was a problem hiding this comment.
Left a few conversion-fidelity notes. These are about preserving the old Spock assertions, not expanding the test scope.
AlexeyKuznetsov-DD
left a comment
There was a problem hiding this comment.
Left minor nit comments
fd00951 to
89d950f
Compare
AlexeyKuznetsov-DD
left a comment
There was a problem hiding this comment.
LGTM
left minor comments
| ListWriter writer = new ListWriter(); | ||
| Tracer tracer = DDTracer.builder().writer(writer).build(); |
There was a problem hiding this comment.
nit: private final?
| @SuppressWarnings("unchecked") | ||
| private static <T> T getField(Object obj, String fieldName) throws Exception { | ||
| Class<?> cls = obj.getClass(); | ||
| while (cls != null) { | ||
| try { | ||
| Field field = cls.getDeclaredField(fieldName); | ||
| field.setAccessible(true); | ||
| return (T) field.get(obj); | ||
| } catch (NoSuchFieldException ignored) { | ||
| cls = cls.getSuperclass(); | ||
| } | ||
| } | ||
| throw new NoSuchFieldException("Field " + fieldName + " not found on " + obj.getClass()); | ||
| } |
There was a problem hiding this comment.
optional: Probably looks like a good candidate to be in base class?
|
@amarziali once all tests of the module are migrated you need to add the module to this file: https://github.com/DataDog/dd-trace-java/pull/10787/changes#diff-3bcd5c5c739a45cfe3a5281b82797f6b8e36073cab801c6609f6e8a6508b858f |
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings. Use
The expected merge time in Use ⏳ Processing |
72a7093 to
ddef681
Compare
|
/merge |
|
View all feedbacks in Devflow UI.
PR already in the queue with status waiting |
What Does This Do
Migrates groovy tests in dd-trace-ot to Junit5
Motivation
Additional Notes
Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issue/merge. You can also:/merge --commit-message "..."/merge -c/merge -f --reason "reason"; please use this judiciously, as some checks do not run at the PR-levelJira ticket: [PROJ-IDENT]