Skip to content

Migrate dd-trace-core groovy files to java part 14 - #12332

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 9 commits into
masterfrom
jpbempel/g2j-core-pt14
Sep 4, 2026
Merged

Migrate dd-trace-core groovy files to java part 14#12332
gh-worker-dd-mergequeue-cf854d[bot] merged 9 commits into
masterfrom
jpbempel/g2j-core-pt14

Conversation

@jpbempel

Copy link
Copy Markdown
Member

What Does This Do

we migrate 3 tests from traceAgentTest module

Motivation

this is part of the effort to migrate groovy tests to Java/JUnit
part1: #11053
part2: #11062
part3: #11085
part4: #11146
part5: #11217
part6: #11362
part7: #11374
part8: #11437
part9: #11488
part10: #11543
part11: #11566
part12: #11619
part13: #12253

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@jpbempel
jpbempel requested review from a team as code owners August 28, 2026 12:38
@jpbempel
jpbempel requested review from AlexeyKuznetsov-DD and mcculls and removed request for a team August 28, 2026 12:38
@dd-octo-sts

dd-octo-sts Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Hi! 👋 Thanks for your pull request! 🎉

To help us review it, please make sure to:

  • Add at least one type, and one component or instrumentation label to the pull request

If you need help, please check our contributing guidelines.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 41dae6b7d8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread dd-trace-core/src/traceAgentTest/java/DDApiIntegrationTest.java Outdated
Comment thread dd-trace-core/src/traceAgentTest/java/DataStreamsIntegrationTest.java Outdated

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Datadog Autotest: FAIL

After DDApiIntegrationTest runs locally, JUnit does not run the parent container cleanup. The Docker agent stays active.

Open Bits AI session

🤖 Datadog Autotest · Commit 41dae6b · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

Comment thread dd-trace-core/src/traceAgentTest/java/DDApiIntegrationTest.java Outdated
@datadog-datadog-prod-us1

This comment has been minimized.

@dd-octo-sts

dd-octo-sts Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.03 s 14.01 s [-0.6%; +0.9%] (no difference)
startup:insecure-bank:tracing:Agent 12.91 s 13.03 s [-1.7%; -0.2%] (maybe better)
startup:petclinic:appsec:Agent 16.92 s 16.78 s [-0.3%; +1.9%] (no difference)
startup:petclinic:iast:Agent 16.82 s 16.89 s [-1.1%; +0.2%] (no difference)
startup:petclinic:profiling:Agent 16.43 s 16.31 s [-5.0%; +6.4%] (unstable)
startup:petclinic:sca:Agent 16.18 s 16.57 s [-6.7%; +2.0%] (no difference)
startup:petclinic:tracing:Agent 16.13 s 15.60 s [-1.0%; +7.7%] (no difference)

Commit: 2e6ce66a · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@jpbempel jpbempel added comp: testing Testing type: refactoring tag: no release notes Changes to exclude from release notes labels Aug 28, 2026
@jpbempel
jpbempel enabled auto-merge August 31, 2026 08:42

@bric3 bric3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I spot a few things.

Comment thread dd-trace-core/src/traceAgentTest/java/DataStreamsIntegrationTest.java Outdated
Comment thread dd-trace-core/src/traceAgentTest/java/DataStreamsIntegrationTest.java Outdated
Comment thread dd-trace-core/src/traceAgentTest/java/TraceMapperRealAgentTest.java Outdated
Comment thread dd-trace-core/src/traceAgentTest/java/TraceMapperRealAgentTest.java
Comment thread dd-trace-core/src/traceAgentTest/java/DDApiIntegrationTest.java Outdated
Comment thread dd-trace-core/src/traceAgentTest/java/DDApiIntegrationTest.java Outdated
Comment thread dd-trace-core/src/traceAgentTest/java/DDApiIntegrationTest.java Outdated
Comment thread dd-trace-core/src/traceAgentTest/java/DDApiIntegrationTest.java Outdated
Comment thread dd-trace-core/src/traceAgentTest/java/DataStreamsIntegrationTest.java Outdated
@jpbempel
jpbempel force-pushed the jpbempel/g2j-core-pt14 branch from 9837eba to 50b2e96 Compare September 1, 2026 13:36
@jpbempel
jpbempel requested a review from a team as a code owner September 1, 2026 15:14

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Datadog Autotest: PASS

More details

The Java tests keep the same setup, input cases, checks, and helper behavior as the removed Groovy tests. The support changes only make report() available to tests and set the required format order.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Datadog Autotest · Commit c9a1572 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

@bric3 bric3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure about the tabletest/google format change. But let's approve and we can revert that change specifically if there's an issue.

I'm OK with spotless off as well.

@gh-worker-ownership-write-b05516
gh-worker-ownership-write-b05516 Bot removed the request for review from a team September 1, 2026 18:07
@jpbempel
jpbempel disabled auto-merge September 2, 2026 04:33
@jpbempel
jpbempel enabled auto-merge September 2, 2026 04:33
@jpbempel

jpbempel commented Sep 2, 2026

Copy link
Copy Markdown
Member Author

/code blockers

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Sep 2, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-09-02 17:30:24 UTC ℹ️ Start processing command /merge -c

@jpbempel
jpbempel added this pull request to the merge queue Sep 2, 2026
@dd-octo-sts

dd-octo-sts Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Sep 2, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-09-02 20:21:24 UTC ℹ️ Start processing command /merge


2026-09-02 20:21:29 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-09-02 20:36:42 UTCMergeQueue: The build pipeline contains failing jobs for this merge request

Build pipeline has failing jobs for 0916ea3:

⚠️ Do NOT retry failed jobs directly (why?).

What to do next?

  • Investigate the failures and when ready, re-add your pull request to the queue!
  • If your PR checks are green, try to rebase/merge. It might be because the CI run is a bit old.
  • Any question, go check the FAQ.
Details

Since those jobs are not marked as being allowed to fail, the pipeline will most likely fail.
Therefore, and to allow other builds to be processed, this merge request has been rejected and the pipeline got canceled.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 2, 2026
@jpbempel
jpbempel force-pushed the jpbempel/g2j-core-pt14 branch 2 times, most recently from 0f793f8 to 57151a7 Compare September 3, 2026 15:45
@jpbempel
jpbempel added this pull request to the merge queue Sep 3, 2026
@dd-octo-sts

dd-octo-sts Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Sep 3, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-09-03 19:24:24 UTC ℹ️ Start processing command /merge


2026-09-03 19:24:29 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-09-03 19:32:10 UTCMergeQueue: The build pipeline contains failing jobs for this merge request

Build pipeline has failing jobs for f905b1f:

⚠️ Do NOT retry failed jobs directly (why?).

What to do next?

  • Investigate the failures and when ready, re-add your pull request to the queue!
  • If your PR checks are green, try to rebase/merge. It might be because the CI run is a bit old.
  • Any question, go check the FAQ.
Details

Since those jobs are not marked as being allowed to fail, the pipeline will most likely fail.
Therefore, and to allow other builds to be processed, this merge request has been rejected and the pipeline got canceled.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 3, 2026
@jpbempel
jpbempel force-pushed the jpbempel/g2j-core-pt14 branch from 57151a7 to 2e6ce66 Compare September 4, 2026 04:46
@jpbempel
jpbempel enabled auto-merge September 4, 2026 05:28
@jpbempel
jpbempel added this pull request to the merge queue Sep 4, 2026
@dd-octo-sts

dd-octo-sts Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Sep 4, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-09-04 05:37:03 UTC ℹ️ Start processing command /merge


2026-09-04 05:37:09 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-09-04 06:50:10 UTC ℹ️ MergeQueue: This merge request was merged

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 4, 2026
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 2f3ce44 into master Sep 4, 2026
601 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the jpbempel/g2j-core-pt14 branch September 4, 2026 06:50
@github-actions github-actions Bot added this to the 1.66.0 milestone Sep 4, 2026
dougqh added a commit that referenced this pull request Sep 4, 2026
…nerator

master migrated dd-trace-core/src/traceAgentTest/groovy/TraceGenerator.groovy
to Java (#12332) after this branch changed the same file's Metadata
constructor call. Take master's migrated TraceGenerator.java and port the
httpStatusCode null -> 0 change onto it, matching the same edit already
applied to the sibling test/java/.../writer/TraceGenerator.java and
DDSpanContext.java in this branch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: testing Testing tag: no release notes Changes to exclude from release notes type: refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants