Skip to content

Fix JUnit dependency alignment - #12735

Open
bric3 wants to merge 3 commits into
masterfrom
bdu/fix-junit-maven-local
Open

bric3 wants to merge 3 commits into
masterfrom
bdu/fix-junit-maven-local

Conversation

@bric3

@bric3 bric3 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

What Does This Do

Import JUnit's BOM explicitly in test suites. Gradle's launcher dependency receives a version even when JUnit resolves through Maven Local without Gradle module metadata.

Motivation

POM-and-JAR-only Maven cache entries can break IntelliJ sync among other things with Could not find org.junit.platform:junit-platform-launcher:. because they do not bring in JUnit's automatic BOM dependency. This can be a problem on a flaky Internet connection, e.g. you're on the move, and only partial artefacts have been downloaded.

The explicit BOM dependency is recommended by JUnit as it aligns all JUnit modules using the existing catalog version.

Additional Notes

Contributor Checklist

@bric3 bric3 added type: bug fix Bug fix tag: no release notes Changes to exclude from release notes comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM labels Oct 2, 2026
@datadog-datadog-prod-us1

This comment has been minimized.

@dd-octo-sts

dd-octo-sts Bot commented Oct 2, 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 13.95 s 13.98 s [-0.9%; +0.6%] (no difference)
startup:insecure-bank:tracing:Agent 12.92 s 13.07 s [-2.0%; -0.3%] (maybe better)
startup:petclinic:appsec:Agent 17.16 s 17.05 s [-0.3%; +1.6%] (no difference)
startup:petclinic:iast:Agent 16.93 s 17.10 s [-1.6%; -0.3%] (maybe better)
startup:petclinic:profiling:Agent 16.52 s 16.86 s [-3.0%; -1.0%] (significantly better)
startup:petclinic:sca:Agent 16.62 s 17.00 s [-6.5%; +2.1%] (no difference)
startup:petclinic:tracing:Agent 16.12 s 16.19 s [-1.4%; +0.6%] (no difference)

Commit: 6e29fb5f · 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.

@bric3
bric3 force-pushed the bdu/fix-junit-maven-local branch from 1b7e8d6 to 6e29fb5 Compare October 2, 2026 16:26
@bric3
bric3 marked this pull request as ready for review October 2, 2026 16:33
@bric3
bric3 requested a review from a team as a code owner October 2, 2026 16:33
@bric3
bric3 requested review from sarahchen6 and removed request for a team October 2, 2026 16:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T16:36:42.960188Z 6e29fb5 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-02T16:37:51.985099Z 6e29fb5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@bric3 bric3 changed the title Fix JUnit dependency alignment with Maven Local Fix JUnit dependency alignment Oct 2, 2026

@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.

Bits Code Review: PASS

More details

Explicit BOM imports supply JUnit Platform 1.14.1 to versionless launcher dependencies across the affected test suites, and targeted dependency resolution succeeded.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 6e29fb5 · @DataDog review to ask questions

@sarahchen6 sarahchen6 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.

LGTM

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: bug fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants