Skip to content

test: drop the NativeThreadNameRace quarantine entry; root fix merged in #979 - #984

Merged
jbachorik merged 2 commits into
mainfrom
jb/drop-ntn-quarantine
Nov 12, 2026
Merged

jbachorik merged 2 commits into
mainfrom
jb/drop-ntn-quarantine

Conversation

@jbachorik

@jbachorik jbachorik commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?:
Deletes the NativeThreadNameRaceTest.threadDyingBetweenScansIsNeverNamed (PROF-16577) entry from ddprof-test/quarantine.txt, so the test gates again. Also removes the quarantine-test pin that existed solely to cross-check that entry's id against the gtest declaration — with the entry gone by design, the pin reads an empty field and fails; the general id-vs-declaration gap in validate() itself is unchanged (pre-existing since before #974).

Motivation:
The entry's intended exit: the root fix is merged. #979 (399ce5e60) pins the mechanism — pthread_join returns at exit_mm()/mm_release() while the tid stays listed under /proc/self/task until exit_notify() unhashes it — and the fixed test waits out that window before scanning (validated in the exact CI image: standalone probe 462/50 000 joins caught the window; 400 sequential + 160 CPU-pressured post-fix runs, all pass). With the fix on main the gate is restored, and any recurrence surfaces as a real CI failure with the ticket trail intact in git history.

Related PRs: fix in #979; the interim GTEST_SKIP() shipped on #898 is superseded by the quarantine entry on main and by this removal.

How to test the change?:

  • python3 .github/scripts/quarantine.py validate (14 entries, all valid).
  • bash .github/scripts/tests/test_quarantine.sh (77/77 pass after the pin removal).
  • CI: dd-gitlab/gtest-* cells run nativeThreadNameRace_ut gating again.

For Datadog employees:

  • This PR doesn't touch code that signs or publishes builds or packages, or handles credentials of any kind.
  • JIRA: PROF-16577

@jbachorik
jbachorik requested a review from a team as a code owner November 12, 2026 09:40
@jbachorik jbachorik added the AI label Nov 12, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 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-12T09:42:43.460097Z 2a6c8d7 PR opened
ℹ️ 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.

@datadog-prod-us1-3 datadog-prod-us1-3 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 thread-exit race fix is already present in the supplied base, supporting restoration of this test’s CI gate. Native-test stability was not revalidated.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 2a6c8d7

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

https://github.com/DataDog/java-profiler/blob/2a6c8d7e3b12fd7e534e7c0a9c1cd8a174659867/ddprof-test/quarantine.txt#L109
P1 Badge Remove the quarantine-entry assertion alongside the entry

Removing this entry makes the validate-quarantine job in .github/workflows/ci.yml fail on every run: .github/scripts/tests/test_quarantine.sh still unconditionally asserts that the PROF-16577 entry exists and matches the native test declaration (lines 1388–1397). Running that script reproduces FAIL: the PROF-16577 entry ('') does not match the declared gtest id ('NativeThreadNameRaceTest.threadDyingBetweenScansIsNeverNamed'). Remove or adapt the obsolete assertion in the same change so restoring native-test gating does not break the quarantine-validation gate.

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

@dd-octo-sts

dd-octo-sts Bot commented Nov 12, 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:Thu Nov 12 09:47:43 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 12, 2026 •

Copy link
Copy Markdown
Contributor

CI Test Results

Run: #43440892151 | Commit: fbd78c6 | Duration: 26m 4s (longest job)

❌ 1 of 32 test jobs failed

Status Overview

JDK glibc-aarch64/debug glibc-amd64/debug musl-aarch64/debug musl-amd64/debug
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

⚠️ Flaky tests — failed, then passed on retry

Test Cells Message
AggressiveLeakReferenceChainTest.shouldNotOpenSearchGateOnAggressiveHeapWideGrowthWithNoLeakCandidate__ musl-11-librca-debug-aarch64 The gate evaluation must not advance the latch machine ==> expected: <false> but was: <true>

These fail the build. Passing on a second run makes a test flaky, not passing. Fix it, or quarantine it against a ticket so the debt is tracked rather than forgotten.

Consider quarantining these — click for ready-made entries

A quarantined test still runs and still reports; its failures just stop
turning CI red. To quarantine one:

  1. Open a PROF ticket for the test, linking the failing job.
  2. Append the line below to ddprof-test/quarantine.txt, replacing
    PROF-XXXXX with the ticket number.
  3. Check the cells and reason columns — the proposal only knows what
    failed in this run, and a narrower cells glob keeps the same test
    gating everywhere it has not misbehaved.

CI fails once review_by passes, so an entry expires instead of piling up.

# test | ticket | added | review_by | cells | reason
com.datadoghq.profiler.referencechains.AggressiveLeakReferenceChainTest.shouldNotOpenSearchGateOnAggressiveHeapWideGrowthWithNoLeakCandidate | PROF-XXXXX | 2026-11-13 | 2027-02-11 | musl-11-librca-debug-aarch64 | The gate evaluation must not advance the latch machine ==> expected: <false> but was: <true> (seen in: musl-11-librca-debug-aarch64)

Retried 1 of 32 cells.

Failed Jobs

  • musl-aarch64/debug / 11-librca — view logs

Summary: Total: 32 | Passed: 31 | Failed: 1


Updated: 2026-11-13 14:44:51 UTC

@dd-octo-sts

dd-octo-sts Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

✅ All 40 integration tests passed

📊 Dashboard · 👷 Pipeline · 📦 3a64609b

@jbachorik
jbachorik merged commit fbd78c6 into main Nov 12, 2026
121 checks passed
@jbachorik
jbachorik deleted the jb/drop-ntn-quarantine branch November 12, 2026 11:12
@github-actions github-actions Bot added this to the 1.53.0 milestone Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant