Skip to content

Upgrade SpotBugs to 4.10.5 and its Gradle plugin to 6.5.13 - #13670

Draft
AlexeyKuznetsov-DD wants to merge 6 commits into
masterfrom
alexeyk/upgrade-spotbugs-4.10.5
Draft

AlexeyKuznetsov-DD wants to merge 6 commits into
masterfrom
alexeyk/upgrade-spotbugs-4.10.5

Conversation

@AlexeyKuznetsov-DD

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

DO NOT MERGE, better to await for next release of Spotbugs.

What Does This Do

Upgrade the SpotBugs Gradle plugin to 6.5.13 and the analyzer and annotations to 4.10.5. Regenerate the dependency locks and address the five production analysis tasks that failed after the upgrade.

Motivation

SpotBugs 4.10.5 improves bytecode analysis and changes which singleton suppressions are needed. The initial production run surfaced four modules with findings and a fifth where the analyzer could not converge on two JCTools fill methods. SpotBugs 4.10.5 release notes · Previous SpotBugs upgrade

Additional Notes

Review by commit

  1. Upgrade and locks — Bump the plugin, analyzer, and annotations and refresh the SpotBugs dependency locks. 996cdf9948
  2. internal-api — Remove three obsolete singleton suppressions and document why each flagged cleanup visitor field is confined to a synchronous file walk. 6270190477
  3. agent-iast — Suppress the atomicity finding on the iterator index, whose traversal state is intended for serial use. 13fba31a3b
  4. testing — Make the test profiling queue length volatile so updates are visible across threads. 76e3ad9178
  5. container-utils — Remove the obsolete singleton suppression on ServerlessInfo. 2485f8c196
  6. queue-utils — Keep the module's analyzer on 4.10.4 while the upstream loop-analysis correction is pending release. 401716e876 · Upstream SpotBugs change

Validation

All five affected spotbugsMain tasks passed. The focused test run passed 50 tests covering temporary-directory cleanup, tainted-map iteration, serverless detection, and forked queue timing.

Contributor Checklist

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD added type: bug fix Bug fix tag: no release notes Changes to exclude from release notes tag: dependencies Dependencies related changes comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM tag: do not merge Do not merge changes labels Nov 24, 2026
@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

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

@pr-commenter

pr-commenter Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Debugger benchmarks

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
ci_job_date 1795701998 1795702332
end_time 2026-11-26T14:08:07 2026-11-26T14:13:40
git_branch master alexeyk/upgrade-spotbugs-4.10.5
git_commit_sha b46a30f 401716e
start_time 2026-11-26T14:06:39 2026-11-26T14:12:13
See matching parameters
Baseline Candidate
ci_job_id 2304752607 2304752607
ci_pipeline_id 156307674 156307674
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
git_commit_date 1795545967 1795545967

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 9 metrics, 6 unstable metrics.

See unchanged results
scenario Δ mean agg_http_req_duration_min Δ mean agg_http_req_duration_p50 Δ mean agg_http_req_duration_p75 Δ mean agg_http_req_duration_p99 Δ mean throughput
scenario:noprobe unstable
[-67.078µs; +28.493µs] or [-20.022%; +8.504%]
unstable
[-80.577µs; +40.414µs] or [-21.688%; +10.878%]
unstable
[-93.338µs; +48.408µs] or [-24.021%; +12.458%]
unstable
[-1652.356µs; +522.725µs] or [-94.126%; +29.777%]
same
scenario:basic same same same unstable
[-145.984µs; +64.286µs] or [-12.102%; +5.329%]
unstable
[-118.126op/s; +118.126op/s] or [-5.198%; +5.198%]
scenario:loop same same same same same
Request duration reports for reports
gantt
    title reports - request duration [CI 0.99] : candidate=None, baseline=None
    dateFormat X
    axisFormat %s
section baseline
noprobe (371.529 µs) : 298, 445
.   : milestone, 372,
basic (335.043 µs) : 327, 343
.   : milestone, 335,
loop (8.448 ms) : 8383, 8512
.   : milestone, 8448,
section candidate
noprobe (351.447 µs) : 318, 385
.   : milestone, 351,
basic (334.955 µs) : 331, 339
.   : milestone, 335,
loop (8.422 ms) : 8393, 8451
.   : milestone, 8422,
Loading
  • baseline results
Scenario Request median duration [CI 0.99]
noprobe 371.529 µs [297.612 µs, 445.445 µs]
basic 335.043 µs [327.107 µs, 342.979 µs]
loop 8.448 ms [8.383 ms, 8.512 ms]
  • candidate results
Scenario Request median duration [CI 0.99]
noprobe 351.447 µs [317.671 µs, 385.224 µs]
basic 334.955 µs [330.61 µs, 339.3 µs]
loop 8.422 ms [8.393 ms, 8.451 ms]

@dd-octo-sts

dd-octo-sts Bot commented Nov 24, 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.98 s 13.97 s [-0.7%; +0.9%] (no difference)
startup:insecure-bank:tracing:Agent 12.93 s 13.03 s [-1.3%; -0.2%] (maybe better)
startup:petclinic:appsec:Agent 17.73 s 16.93 s [+0.4%; +9.0%] (maybe worse)
startup:petclinic:iast:Agent 17.54 s 17.68 s [-1.6%; +0.0%] (no difference)
startup:petclinic:profiling:Agent 17.53 s 17.37 s [-0.4%; +2.2%] (no difference)
startup:petclinic:sca:Agent 17.80 s 17.78 s [-0.7%; +1.0%] (no difference)
startup:petclinic:tracing:Agent 16.93 s 17.01 s [-1.3%; +0.3%] (no difference)

Commit: 14b35fb4 · 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.

@pr-commenter

pr-commenter Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Kafka / consumer-benchmark

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master alexeyk/upgrade-spotbugs-4.10.5
git_commit_date 1796033018 1796063974
git_commit_sha 5331c2c 14b35fb
See matching parameters
Baseline Candidate
ci_job_date 1796066768 1796066768
ci_job_id 2312167040 2312167040
ci_pipeline_id 157051385 157051385
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
jdkVersion 11.0.31 11.0.31
jmhVersion 1.36 1.36
jvm /usr/lib/jvm/java-11-openjdk-amd64/bin/java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
jvmArgs -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=15002 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=15002 -Dhttp.nonProxyHosts=localhost *.localhost
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-bqk4wvl7 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-bqk4wvl7 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
vmName OpenJDK 64-Bit Server VM OpenJDK 64-Bit Server VM
vmVersion 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean throughput
scenario:not-instrumented/KafkaConsumerBenchmark.benchConsume same
scenario:only-tracing-dsm-disabled-benchmarks/KafkaConsumerBenchmark.benchConsume same
scenario:only-tracing-dsm-enabled-benchmarks/KafkaConsumerBenchmark.benchConsume unsure
[+266.486op/s; +6589.304op/s] or [+0.148%; +3.661%]

@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD force-pushed the alexeyk/upgrade-spotbugs-4.10.5 branch from 401716e to 14b35fb Compare November 30, 2026 19:04
@pr-commenter

pr-commenter Bot commented Nov 30, 2026

Copy link
Copy Markdown

Kafka / producer-benchmark

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master alexeyk/upgrade-spotbugs-4.10.5
git_commit_date 1796033018 1796063974
git_commit_sha 5331c2c 14b35fb
See matching parameters
Baseline Candidate
ci_job_date 1796066720 1796066720
ci_job_id 2312167037 2312167037
ci_pipeline_id 157051385 157051385
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
jdkVersion 11.0.31 11.0.31
jmhVersion 1.36 1.36
jvm /usr/lib/jvm/java-11-openjdk-amd64/bin/java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
jvmArgs -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=15002 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=15002 -Dhttp.nonProxyHosts=localhost *.localhost
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-0wsjj35y 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-0wsjj35y 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
vmName OpenJDK 64-Bit Server VM OpenJDK 64-Bit Server VM
vmVersion 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean throughput
scenario:not-instrumented/KafkaProduceBenchmark.benchProduce same
scenario:only-tracing-dsm-disabled-benchmarks/KafkaProduceBenchmark.benchProduce same
scenario:only-tracing-dsm-enabled-benchmarks/KafkaProduceBenchmark.benchProduce unsure
[-5778.926op/s; -57.992op/s] or [-4.177%; -0.042%]

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: dependencies Dependencies related changes tag: do not merge Do not merge changes 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