Skip to content

chore(java): address static analysis follow-ups [PROF-16537] - #958

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
mainfrom
paul.fournillon/prof-16537-java-quality-followups
Nov 10, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
mainfrom
paul.fournillon/prof-16537-java-quality-followups

Conversation

@kaahos

@kaahos kaahos commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?:
Address four pre-existing Java quality comments separately from the build repair and formatting migration. This PR is based on #957 (paul.fournillon/prof-16537-java-formatting) rather than main.

Motivation:
Mechanical formatting exposed existing patterns to review. These cleanups are independently justified, not regressions introduced by #955 or its formatting follow-up.

Additional Notes:

How to test the change?:
Set JAVA_HOME to the build JDK (21+) and JAVA_TEST_HOME to the target test JDK. Run from the repository root:

./.claude/commands/build-and-summarize :ddprof-test:testDebug -Ptests=ContendedCallTraceStorageTest -Pskip-gtest --rerun-tasks --max-workers=2 --no-build-cache
./.claude/commands/build-and-summarize :ddprof-test:testDebug -Ptests=JVMAccessTest -Pskip-gtest --rerun-tasks --max-workers=2 --no-build-cache
./.claude/commands/build-and-summarize spotlessCheck --rerun-tasks --no-build-cache --max-workers=2
  • The checksum regression exercises the actual helper with products beyond the signed-int range.
  • Keep the configured contention threshold unchanged; a passing run must still measure positive attempts.
  • -Pskip-gtest omits unrelated native unit suites, not the selected Java tests. These focused checks do not establish full profiler or sanitizer qualification.

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a security review (run the dd:platform-security-review
    skill, or file a request via the PSEC review form).
    bewaire also runs automatically on every PR.
  • This PR doesn't touch any of that.
  • JIRA: PROF-16537

Unsure? Have a question? Request a review!

@dd-octo-sts

dd-octo-sts Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Scan-Build Report

User:runner@runnervmwuk1x
Working Directory:/home/runner/work/java-profiler/java-profiler/ddprof-lib/src/test/make
Command Line:make -j4 all
Clang Version:Ubuntu clang version 21.1.8 (6ubuntu1)
Date:Tue Nov 10 17:51:17 2026

Bug Summary

Bug TypeQuantityDisplay?
All Bugs2
Logic error
Dereference of null pointer1
Unused code
Dead initialization1

Filter Results by File

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Unused codeDead initializationreferenceChains.cppapplyOomRamp4971
Logic errorDereference of null pointerperfEvents_linux.cppunregisterThread72026

@dd-octo-sts

dd-octo-sts Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

CI Test Results

Run: #43441316525 | Commit: 71267bf | Duration: 20m 14s (longest job)

❌ 1 of 108 test jobs failed

Status Overview

JDK glibc-aarch64/asan glibc-aarch64/debug glibc-aarch64/release glibc-aarch64/tsan glibc-amd64/asan glibc-amd64/debug glibc-amd64/release glibc-amd64/tsan musl-aarch64/debug musl-aarch64/release musl-amd64/debug musl-amd64/release
8 - - - - ✅ ✅ ✅ ✅ - - - -
8-ibm - - - - ✅ ✅ ✅ ✅ - - - -
8-j9 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ - - - -
8-librca - - - - - - - - ✅ ✅ ✅ ✅
8-orcl - - - - ✅ ✅ ✅ ❌ - - - -
11 - - - - ✅ ✅ ✅ ✅ - - - -
11-j9 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ - - - -
11-librca - - - - - - - - ✅ ✅ ✅ ✅
17 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ - - - -
17-graal ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ - - - -
17-j9 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ - - - -
17-librca - - - - - - - - ✅ ✅ ✅ ✅
21 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ - - - -
21-graal ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ - - - -
21-librca - - - - - - - - ✅ ✅ ✅ ✅
25 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ - - - -
25-graal ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ - - - -
25-librca - - - - - - - - ✅ ✅ ✅ ✅

Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled

Failed Jobs

Summary: Total: 108 | Passed: 107 | Failed: 1


Updated: 2026-11-13 14:58:59 UTC

@dd-octo-sts

dd-octo-sts Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

✅ All 40 integration tests passed

📊 Dashboard · 👷 Pipeline · 📦 b14aa3a2

@kaahos

kaahos commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T14:19:37.014686Z f2518f5 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 109baece5c

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@kaahos kaahos added test:release Run CI tests with release configuration test:asan Run CI tests with AddressSanitizer configuration test:tsan Run CI tests with ThreadSanitizer configuration test:fuzz test:reliability labels Nov 9, 2026
@kaahos
kaahos added this pull request to stack #966 November 10, 2026 09:15
@kaahos
kaahos force-pushed the paul.fournillon/prof-16537-java-quality-followups branch from 109baec to f2518f5 Compare November 10, 2026 13:36
@kaahos
kaahos marked this pull request as ready for review November 10, 2026 14:18
@kaahos
kaahos requested a review from a team as a code owner November 10, 2026 14:18
@dd-octo-sts

dd-octo-sts Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Reliability & Chaos Results

✅ All reliability & chaos checks passed Pipeline: https://gitlab.ddbuild.io/DataDog/java-profiler/-/pipelines/151975913

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

Bits Code Review: PASS

More details

The contention checks preserve the positive-attempt guard and existing drop-rate threshold. The reviewer independently confirmed the expected checksum after widening multiplication to long; no actionable regressions were identified.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit f2518f5

@kaahos
kaahos force-pushed the paul.fournillon/prof-16537-java-quality-followups branch from f2518f5 to 8823757 Compare November 10, 2026 15:23
@datadog-datadog-prod-us1-2

This comment has been minimized.

@kaahos

kaahos commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-10 16:50:05 UTC ℹ️ Start processing command /merge


2026-11-10 16:50:07 UTC ℹ️ MergeQueue: Stack detected — automatically merging the entire stack.


2026-11-10 16:50:15 UTC ℹ️ Devflow: Merging stacked PRs in the following order:

  1. [fix(build): register Java formatting lazily and update formatter PROF-16537 (fix(build): register Java formatting lazily and update formatter [PROF-16537] #955)](fix(build): register Java formatting lazily and update formatter [PROF-16537] #955)
  2. [style(java): apply configured Java formatting PROF-16537 (style(java): apply configured Java formatting [PROF-16537] #957)](style(java): apply configured Java formatting [PROF-16537] #957)
  3. [chore(java): address static analysis follow-ups PROF-16537 (chore(java): address static analysis follow-ups [PROF-16537] #958)](chore(java): address static analysis follow-ups [PROF-16537] #958)

Progress updates will be sent here directly.


2026-11-10 16:50:16 UTC ℹ️ Devflow: Merging [fix(build): register Java formatting lazily and update formatter PROF-16537 (#955)](#955)...


⏳ Processing

@kaahos
kaahos force-pushed the paul.fournillon/prof-16537-java-quality-followups branch from 8823757 to e6cdd70 Compare November 10, 2026 17:17

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

Bits Code Review: PASS

More details

The checksum expectation matches long multiplication and detects the previous int overflow. The contention threshold and positive-attempt assertion remain intact.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit e6cdd70

Base automatically changed from paul.fournillon/prof-16537-java-formatting to main November 10, 2026 17:49
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot force-pushed the paul.fournillon/prof-16537-java-quality-followups branch from e6cdd70 to b14aa3a Compare November 10, 2026 17:49

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

Bits Code Review: PASS

More details

The contention test preserves the positive-attempt assertion and drop-rate threshold, and the widened multiplication produces the checksum asserted by the new regression test.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit b14aa3a

@kaahos

kaahos commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-10 19:15:41 UTC ℹ️ Start processing command /merge


2026-11-10 19:15:45 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 53m (p90).


2026-11-10 19:44:54 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 71267bf into main Nov 10, 2026
561 of 576 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the paul.fournillon/prof-16537-java-quality-followups branch November 10, 2026 19:44
@github-actions github-actions Bot added this to the 1.53.0 milestone Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mergequeue-status: done no-release-notes test:asan Run CI tests with AddressSanitizer configuration test:fuzz test:release Run CI tests with release configuration test:reliability test:tsan Run CI tests with ThreadSanitizer configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants