Skip to content

Use cache-compatible Spotless formatter provisioning - #13712

Draft
bric3 wants to merge 1 commit into
masterfrom
bdu/configuration-cache-spotless
Draft

bric3 wants to merge 1 commit into
masterfrom
bdu/configuration-cache-spotless

Conversation

@bric3

@bric3 bric3 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What Does This Do

Works around a Spotless 8.11.0 bug by using its standard dependency provisioning when the Gradle configuration cache is active. Ordinary builds continue to predeclare formatter dependencies at the root.

Motivation

Gradle serializes the subproject's GrEclipse formatter step while storing the task graph. In spotlessPredeclare mode, that step can only use P2 dependencies already provisioned by the root project. The root predeclaration has yet to provision them, so storing the graph fails with P2 dependencies not predeclared.

Additional Notes

The underlying fix belongs in Spotless. Its root predeclaration needs to initialise the GrEclipse dependency state before Gradle serializes the subproject steps. We can remove the workaround once a Spotless release can store and reuse the task graph with predeclaration enabled.

The Netty 3.8 Groovy formatting task passed with cache store, cache reuse and the cache disabled. #13708 addresses the settings blocker for repository-level cache runs.

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 Nov 26, 2026
@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 61.24% (-0.03%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 09f0fa6 | Docs | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Nov 26, 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.10 s 14.13 s [-1.0%; +0.5%] (no difference)
startup:insecure-bank:tracing:Agent 13.05 s 13.09 s [-0.9%; +0.4%] (no difference)
startup:petclinic:appsec:Agent 17.89 s 17.77 s [-0.2%; +1.6%] (no difference)
startup:petclinic:iast:Agent 17.57 s 17.81 s [-2.3%; -0.5%] (maybe better)
startup:petclinic:profiling:Agent 17.62 s 17.29 s [+0.7%; +3.0%] (maybe worse)
startup:petclinic:sca:Agent 17.90 s 17.65 s [+0.4%; +2.5%] (maybe worse)
startup:petclinic:tracing:Agent 16.89 s 17.03 s [-1.8%; +0.1%] (no difference)

Commit: 09f0fa66 · 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 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Let's wait on diffplug/spotless#3211 rather than hack around

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.

1 participant