Skip to content

Update Gradle to 9.7.1 - #12323

Open
AlexeyKuznetsov-DD wants to merge 1 commit into
masterfrom
alexeyk/upgrade-gradle-9.7.1
Open

Update Gradle to 9.7.1#12323
AlexeyKuznetsov-DD wants to merge 1 commit into
masterfrom
alexeyk/upgrade-gradle-9.7.1

Conversation

@AlexeyKuznetsov-DD

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

  • Updates the Gradle wrapper from 9.7.0 to 9.7.1 using the official binary distribution checksum.
  • Aligns the GitLab Gradle cache version and Gradle smoke-test version fixtures with 9.7.1.
  • Retains the SofaRPC Netty alignment constraint and updates its comment to document why Gradle 9.7's enhanced graph ordering is not enabled globally yet.

Motivation

Adopt the Gradle 9.7.1 patch release while keeping every Gradle version pin synchronized.

Gradle fixed the dependency traversal issue tracked in gradle/gradle#38057 behind the ENHANCED_GRAPH_ORDERING feature preview. Enabling that preview globally is not safe for this build yet because several tests intentionally use fat JARs alongside newer modular dependencies.

Additional Notes

Validation of the feature preview exposed deterministic classpath collisions outside SofaRPC. One representative failure was:

java.lang.NoSuchMethodError:
  org.junit.platform.commons.util.CollectionUtils.forEachInReverseOrder(...)

MockServer's no-dependencies fat JAR contains an older JUnit Platform class which shadowed JUnit Platform 1.14.1 under enhanced ordering. OpenAI latest-dependency tests independently loaded incompatible OkHttp classes for the same reason. The preview was therefore removed, while the existing SofaRPC-local Netty alignment remains in place. Adopting enhanced graph ordering should be handled separately with a repository-wide fat-JAR collision audit before Gradle 10 makes it the default.

The Gradle 9.7.1 wrapper JAR is unchanged from 9.7.0 and still matches Gradle's published wrapper JAR checksum. The binary distribution checksum was updated to the official 9.7.1 value.

Validation:

  • ./gradlew help
  • ./gradlew spotlessCheck
  • ./gradlew :components:http:http-api:test :components:http:http-api:forkedTest --rerun-tasks
  • ./gradlew :dd-java-agent:instrumentation:openai-java:openai-java-3.0:latestDepTest -PtestJvm=17 --rerun-tasks (95 tests passed)
  • ./gradlew :dd-java-agent:instrumentation:sofarpc:sofarpc-5.0:test :dd-java-agent:instrumentation:sofarpc:sofarpc-5.0:forkedTest :dd-java-agent:instrumentation:sofarpc:sofarpc-5.0:latestDepTest -PtestJvm=17 --rerun-tasks (7 tests passed, including the forked gRPC regression test)

Precedent: #12162

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD added tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: refactoring comp: tooling Build & Tooling labels Aug 27, 2026
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD self-assigned this Aug 27, 2026
@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Aug 27, 2026

Copy link
Copy Markdown

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 58.80% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 1f8a303 | Docs | View more details | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Aug 27, 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.80 s 14.64 s [+0.4%; +1.8%] (maybe worse)
startup:insecure-bank:tracing:Agent 13.56 s 13.66 s [-1.5%; +0.1%] (no difference)
startup:petclinic:appsec:Agent 17.47 s 17.32 s [-0.1%; +1.8%] (no difference)
startup:petclinic:iast:Agent 17.45 s 17.57 s [-1.4%; +0.1%] (no difference)
startup:petclinic:profiling:Agent 17.51 s 17.44 s [-0.7%; +1.6%] (no difference)
startup:petclinic:sca:Agent 17.51 s 16.73 s [+0.3%; +9.0%] (maybe worse)
startup:petclinic:tracing:Agent 16.76 s 16.66 s [-0.5%; +1.7%] (no difference)

Commit: 1f8a3033 · 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.

@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD force-pushed the alexeyk/upgrade-gradle-9.7.1 branch from d3e6403 to 1f8a303 Compare August 27, 2026 18:31
@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD marked this pull request as ready for review August 27, 2026 18:35
@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD requested review from a team as code owners August 27, 2026 18:35
@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD requested review from randomanderson and removed request for a team August 27, 2026 18:35

@datadog-datadog-us1-prod datadog-datadog-us1-prod 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.

Datadog Autotest: PASS

More details

The wrapper URL and checksum match Gradle 9.7.1. The GitLab cache and smoke-test version pins also use 9.7.1.

Was this helpful? React 👍 or 👎

Open Bits AI session

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

@AlexeyKuznetsov-DD

Copy link
Copy Markdown
Contributor Author

/code blockers

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Aug 27, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-08-27 20:30:35 UTC ℹ️ Start processing command /code blockers


2026-08-27 20:30:36 UTC ℹ️ Devflow:

Checking merge blockers for #12323...


2026-08-27 20:30:42 UTC ℹ️ Devflow: /code blockers

Detected 1 merge blocker(s) to address:

🟠 Pending

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: refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants