Skip to content

Fix reference-chain nightly flakes, cap the anchor index, and drop their quarantine - #899

Merged
jbachorik merged 18 commits into
mainfrom
fix-nightlies
Nov 24, 2026
Merged

jbachorik merged 18 commits into
mainfrom
fix-nightlies

Conversation

@jbachorik

@jbachorik jbachorik commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?:
Fixes reference-chain discovery and correlation failures reported in PROF-16305, removes the four quarantines added by #888, bounds anchor-index growth under sustained root churn, and removes the one stale gtest quarantine entry (LineNumberTableCopyTest.RejectsUnmappedSource, a test that no longer exists) It also integrates the merged rework of #889 (UNKNOWN_TRUNCATED shape handling, the 0→resolved class-tag upgrade) and addresses the two pre-release quarantine candidates from PROF-16825: both ExternalProcessReferenceChainTest.shouldReconstructReferrerChainForGrowingStaticFieldCollection (chain-found) and LeakTagCorrelationReferenceChainTest.shouldRotateFrontierLeakHoldersUnderPodLikeTightWindows pass on this branch; full-matrix confirmation runs in CI.

  • Review rounds addressed (commit subjects; the stack is kept rebased on origin/main): the themed stack carries the full fix history. refchain+ liveness: address datadog-code-review findings — the merged-delta round (fair-tier picks hand their queued first look to the caller's requeue; saturated passes keep non-indexed/evicted queue entries pending; promotion preserves displaced incumbents' epoch samples; heapRootCallback journals DURABLE_ADD on fresh durable admission; stale join-count assertion removed). refchain+liveness: address the second datadog-code-review round — the second round (0-to-resolved class-tag refresh through the stamp dedup with a maintained zero-tag count; fresh-lane pops resolve shapes through the index's stored tag; local-to-durable promotion on durable sightings via callback staging and re-enlist replay; failed GetObjectsWithTags/FollowReferences keep anchors unwalked; unpromoted challengers keep their live trend sample; confirmed containers displace staged unknowns through the displacement budget). refchain: enforce the durable cap on re-enlist replay promotion — durable-cap enforcement on re-enlist replay promotion and refreshed class tags on queued fresh turns. refchain: reclaim dead anchor entries in the rotation selection scan (+ the comment/quarantine trim and scratch-reserve commits) — the maintainer round (the rotation selection scan reclaims dead durable entries again below the durable cap — missing frontier lookup or ABANDONED state — with live-but-ineligible entries kept and dead entries' queued fresh turns dropped; oversized comments trimmed to the comment budget; the stale _reference_chains_active teardown comment corrected; the stale PROF-16621 quarantine header dropped). refchain: walk evicted non-container anchors on their preserved fresh turn — the Bits P2 (the fresh lane spends a classified non-container's preserved first look only while the holder is still in the durable index; an evicted non-container walks on its preserved turn as a fresh pick, since no fair tier can reach an unindexed tag and the served mark is sticky against re-enlistment).

  • Deferred with replies: resweep pacing stays frozen pending representative above-cap measurements, and the challenger-pool newcomer bound stays the approved design.

  • Resolved-chain cache (PROF-16316): distinguish eviction from a changed-but-live path; rebuild changed paths from the intact frontier and retain the old chain if rebuilding fails.

  • Discovery and rotation: register candidates before the first walk, improve candidate admission, re-enlist evicted durable anchors, retain rotation eligibility for reparented collections/maps, and reclaim collected local anchors.

  • Callback-safe indexing: heap callbacks record anchor-index observations in a fixed 16,384-record journal. The traversal caller replays accepted observations after each synchronous JVMTI call returns. On journal overflow, the walk aborts before the associated frontier transition, replays the accepted prefix, and retries the unserved work.

  • Retry progress: root-enumeration retry progress survives independently of the capped durable-anchor index. The frontier table stamps the last attempt that accepted each durable-root report by source, kind, and attempt; a retry skips restaging only those same-kind accepted reports, so repeated journal overflows cannot trap enumeration at the same prefix and starve later roots.

  • Liveness thread trends: the challenger-thread trend scratch is extracted to its own unit and retains four challenger slots per class (143,360 B fixed payload across 256 classes), so a rising allocating thread cannot be evicted while the incumbent cohort list stays at 16 slots.

  • Lifecycle and ordering: a failed BFS-thread join prevents tracker teardown; at-risk observations return to the queue in their original FIFO order.

  • Slow-test pacing: give the CPU-budget-paced walk time to drain its backlog without weakening assertions, retries, or configured limits.

  • Test hygiene: the ELF parser's unmap test skips under TSan in-test (PROF-16632) instead of relying on a quarantine entry.

Motivation:
The 2026-10-23 Nightly Sanitized run 39893765385 had 20 failed slow-test jobs. One musl-x64 JDK 11 failure reported the ThreadLocal and leak-tag correlation tests failing, and no CachedPayload chain after 69,001 cache entries. #888 quarantined these slow tests.

The late ThreadLocal failure exposed a cache-lifecycle gap: dump-time invalidation erased a changed chain, while a terminal search could clear the candidate state needed to rebuild it. The fix rebuilds path-changed chains from the still-intact frontier. Candidate registration now also precedes the first walk, so a fast-draining pass cannot finish before candidate-specific discovery is active.

The cache fixture now grows to at most 36,601 entries (down from 69,001), then leaves polling rounds for the paced walk to catch up. Assertions and configured limits remain. The anchor-index fix addresses the cost of re-enlisting evicted anchors: before the fix, the rotation test selected the same 32 holders over 20 passes, leaving 8,968 of 9,000 unselected.

Additional Notes:

Accepted costs — reviewer acknowledgment requested:

  • The durable index caps at 8,192 and FIFO-evicts in batches of 1,024 down to 7,168; the local index caps at 4,096. If the local share is full of live collections/maps, new local holders wait until entries die or the search restarts. Selection and shape reconciliation scan up to 12,288 entries per pass; this PR leaves that recurring cost unchanged for follow-up.

  • Each pass selects up to 32 indexed anchors and drains up to 16 at-risk FIFO anchors; actual walks also obey edge and deadline budgets. For 9,000 durable holders, 282 passes is only the ideal minimum with 32 unique selections every pass; rotation is best-effort and can take longer.

  • Staging skips records whose replay is a known no-op (re-enlist of an indexed tag; LOCAL of an indexed/parked/classified-non-container holder; LOCAL of a confirmed container refused by a full pending buffer with no displaceable victim; AT_RISK of an already-queued, cap-blocked, or quota-blocked holder): a stable anchor population above the journal capacity no longer refills the journal with its own no-op records every enumeration, so the overflow can no longer abort at the same prefix every pass and starve every later root.

  • A retry after an incomplete root enumeration suppresses restaging only for reports the preceding incomplete attempt (or the same attempt earlier) accepted with the same root kind; rejected transitions and root-kind changes still restage. Each durable-root report pays one shared-lock frontier probe per enumeration attempt; the anchor-index check is a lock-free set probe.

  • LOCAL reports beyond what replay can absorb (local-index room, pending-buffer slots, displaceable victims) are not staged at all; those holders are re-offered by the next enumeration and admitted when capacity frees. A refused LOCAL population therefore cannot fill the journal. A fixed per-tracker counter tracks displaceable victims without rescanning the pending buffer.

  • The journal occupies up to 384 KiB per tracker, plus 136 KiB of per-scope dedup indexes. On staging overflow, the affected walk can truncate and retry. Each accepted observation currently takes separate journal-lock acquisitions for reservation and commit; that overhead is not optimized here.

  • An eviction requests a static-field sweep without resetting the active cursor. The sweep processes at most 512 loaded classes per pass; requests arriving during a lap remain unserved until a later complete lap. Sustained eviction can therefore add loaded-class sweep work. Resweep pacing is unchanged; representative above-cap measurement remains follow-up.

  • #889 is merged; its rework (UNKNOWN_TRUNCATED shape handling, the 0-to-resolved class-tag upgrade) is integrated here. #898 remains open and overlaps this PR's resolved-chain cache work — this PR includes the PROF-16316 improveChain cache-invalidation fix; reconcile with Reference-chain cache: rebuild stale chains (improved path, correlation) instead of erasing them #898's current state before merging.

  • Quarantine flaky reference-chain slow e2e tests (PROF-16305) #888 is merged; this PR removes its four PROF-16305 quarantine entries.

  • Agentic review: every fix round was Sphinx-reviewed before its push; the latest (over the head's fix range) returned 0 Critical/High with both acceptance claims verified. The early rounds' six LOW findings (lease-checked journal snapshot, shape-first LOCAL lookups, local-subset regression test, rotation boundary tests) are all in the themed stack; the three LOW performance observations remain open by design: the per-pass full-index rotation scan (removal is the planned-but-unapproved maintained tier-index follow-up), per-candidate staging lock/hash lookups in the journal callbacks, and the worst-case-sized per-scope at-risk staging table. No Critical/High findings remain. Bits reviews of every pushed head pass on the current head with no findings.

  • Human review is recommended for the fixed journal footprint and unchanged resweep policy.

How to test the change?:

  • :ddprof-lib:gtestDebug_referenceChains_ut: 383 passed. Full :ddprof-lib:gtestDebug: 1,551 passed, 11 skipped. buildRelease succeeded.
  • :ddprof-test:testDebug -Ptests=*ReferenceChain*: 22 passed. :ddprof-test:testSlowDebug -Ptests=*ReferenceChain*: 10 passed, including the late static-field append case.
  • CI on the latest pre-rebase head was fully green: all test-matrix cells, the dd-gitlab pipeline (including the fuzz/asan/tsan jobs), and bits-review/head PASS with no findings — the liveness and lifecycle tests are covered there and in the full local suites.
  • qualityChecks, spotlessCheck, both quarantine validators, and the copyright/CLAUDE.md checks pass. Native builds on this macOS host used Xcode 26.4's SDK because the default CommandLineTools 27.2 SDK linker rejected arm64e.x1-* TAPI entries.
  • The static-field E2E assertion is unchanged. Debug builds drive at most eight pass-seam attempts after the late append to test re-expansion without depending on organic scheduler cadence; release builds keep the organic cadence.
  • Regression coverage includes journal capacity/overflow/retry, lease-checked snapshot, deferred callback mutations, FIFO requeue, failed-join teardown, anchor re-enlistment, local-share subset preservation, completed-lap resweeps, fresh-lane budget boundaries, liveness challenger retention, and root-enumeration retry progress.

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-16305, PROF-16316, PROF-16632, and PROF-16825.

Unsure? Have a question? Request a review!

@jbachorik jbachorik added the AI label Oct 25, 2026
@dd-octo-sts

dd-octo-sts Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

CI Test Results

Run: #45440494480 | Commit: 36d84eb | Duration: 27m 24s (longest job)

✅ All 32 test jobs passed

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

Summary: Total: 32 | Passed: 32 | Failed: 0


Updated: 2026-11-24 17:41:47 UTC

@dd-octo-sts

dd-octo-sts Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

✅ All 40 integration tests passed

📊 Dashboard · 👷 Pipeline · 📦 ab1bec1c

@jbachorik
jbachorik marked this pull request as ready for review October 28, 2026 14:56
@jbachorik
jbachorik requested a review from a team as a code owner October 28, 2026 14:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T14:59:42.438407Z 0ce265c 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 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

Here are some automated review suggestions for this pull request.

Reviewed commit: 0ce265c9ba

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

@jbachorik jbachorik changed the title Fix reference-chain nightly flakes (PROF-16305) and drop their quarantine Fix reference-chain nightly flakes and drop their quarantine Oct 29, 2026
jbachorik added a commit that referenced this pull request Nov 2, 2026
@dd-octo-sts

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

Copy link
Copy Markdown
Contributor

Reliability & Chaos Results

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

jbachorik added a commit that referenced this pull request Nov 3, 2026
@jbachorik

Copy link
Copy Markdown
Collaborator Author

Fixed in 19eeb3f (addressing general review comment) — verified against the full claim: ddprof-lib/src/main/cpp/referenceChainAnchors.cpp:437-458 — compactLocalAnchors() now iterates only _local_anchor_tags (now a tag->own-class-tag map, referenceChains.h), so the locked scan is O(cap) and the per-slot count() double hash is gone; referenceChainAnchors.cpp:413-423 — a compaction that removes nothing arms LOCAL_ANCHOR_COMPACT_BACKOFF=8 skipped attempts, so a saturated-but-live share no longer pays the scan every pass (pinned by LocalRootAnchorCompactBackoffSkipsNoProgressCompactions). The O(index) vector compaction remains but runs only when entries are actually removed.

@jbachorik

Copy link
Copy Markdown
Collaborator Author

Fixed in 19eeb3f (addressing general review comment) — verified against the full claim: ddprof-lib/src/main/cpp/referenceChainAnchors.cpp:362-392 — at a full pending buffer a confirmed container (met at the local cap) evicts the oldest not-yet-confirmed entry via the forward-only _pending_local_evict_cursor, dedup set kept exact; it is dropped only when every parked entry is already a confirmed container (pinned by LocalRootAnchorPendingBufferEvictsForConfirmedContainer).

@jbachorik

Copy link
Copy Markdown
Collaborator Author

Fixed in 19eeb3f (addressing general review comment) — verified against the full claim: ddprof-lib/src/main/cpp/referenceChainAnchors.cpp:641-667 — collection step extracted verbatim into const collectUnclassifiedAnchorClassTags(); ddprof-lib/src/test/cpp/referenceChainsAnchorTests.inc:1167 AnchorShapeReconcileBudgetCapsRequestedClasses parks budget+10 distinct classes and asserts the request is exactly ANCHOR_SHAPE_RECONCILE_BUDGET in order (fails for <= or a removed stop) and that the unrequested remainder is dropped by resolvePendingLocalAnchorsForTest().

@jbachorik

Copy link
Copy Markdown
Collaborator Author

Fixed in 19eeb3f (addressing general review comment) — verified against the full claim: ddprof-lib/src/test/cpp/referenceChainsAnchorTests.inc:1209 AnchorShapeReconcilePrefersPendingHolders — phase 1 asserts a full budget of pending classes is requested with no durable class (fails if loop order is swapped, or if room && is dropped from the index loop since the size would exceed the budget); phase 2 asserts pending classes first, then durable classes in index order, size == budget.

@dd-octo-sts

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

Copy link
Copy Markdown
Contributor

Scan-Build Report

User:runner@runnervmccnms
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:Wed Nov 18 11:04:54 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.cppapplyOomRamp5321
Logic errorDereference of null pointerperfEvents_linux.cppunregisterThread72026

@datadog-prod-us1-4 datadog-prod-us1-4 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: FAIL

Durable-anchor eviction lacks a working traversal-based readmission path. Once the index exceeds its cap, live collections can lose targeted walks, causing later backing-storage replacements and leak instances to be missed.

Open Bits AI session

🤖 Bits Code Review · Commit 42f5c0b

@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Pipelines

⚠️ Warnings

Your PR has warnings. Please review the issues below.

🚦 1 Pipeline job failed

CI Run | test-matrix / test-linux-glibc-aarch64 (17-graal, debug, regular)

View more details · View in GitHub Actions

Useful? React with 👍 / 👎

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

@datadog-prod-us1-4 datadog-prod-us1-4 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: FAIL

The PR preserves leak chains, improves traversal/admission, hardens slow tests, and removes their quarantine; the latest commit restores callback-based anchor readmission. The earlier finding remains partially open: sweep completion can discard resweep requests, and eviction-driven cooldowns can stall, leaving static-only collections unindexed and missing later leak instances.

Open Bits AI session

🤖 Bits Code Review · Commit 6444508

@datadog-prod-us1-4 datadog-prod-us1-4 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: FAIL

The PR preserves leak chains, improves traversal, hardens slow tests, and removes quarantine; callback-based anchor readmission is fixed. The earlier scheduling finding remains open despite the pending flag: sweep completion still loses requests and cooldown suppresses later requests, so static-only holders can miss targeted leak discovery.

Open Bits AI session

🤖 Bits Code Review · Commit 957ad12

@datadog-prod-us1-4 datadog-prod-us1-4 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: FAIL

The PR preserves leak chains, improves traversal, hardens slow tests, and removes quarantine; earlier request-loss and cooldown mechanisms are fixed. Forced resweeps can still stop after one chunk, excluding later static-only holders from targeted leak discovery, and the new cooldown regression test never triggers an eviction.

Open Bits AI session

🤖 Bits Code Review · Commit 85eab40

@datadog-prod-us1-4 datadog-prod-us1-4 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 PR preserves resolved leak chains, improves traversal/admission, hardens slow tests, and removes quarantine. Durable-anchor resweeps now remain enabled across chunks until completion, and the cooldown regression case refills to capacity and checks an eviction-generation increment; both reported findings are resolved, with no open findings remaining.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 23f8861

@datadog-prod-us1-4 datadog-prod-us1-4 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: FAIL

Repeated durable-anchor eviction can confine the static-field sweep to its first 4,096 classes. Reparented collections can also lose persistent rotation eligibility after eviction, impairing discovery of replacement backing storage.

Open Bits AI session

🤖 Bits Code Review · Commit 5da1b2c

@jbachorik jbachorik removed the dog-sitter Actively watched by babysit-pr: fixes pushed through the repo gates label Nov 24, 2026

@zhengyu123 zhengyu123 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated code review of 2a2ab4c79 (high effort): 2 important, 1 pre-existing, 5 nits, as inline comments.

These findings did not go through a separate verification pass. Some can be false positives; please check each one against the code.

Comment thread ddprof-lib/src/main/cpp/profiler.cpp Resolved
Comment thread ddprof-test/quarantine.txt Resolved
…ex bounds

Bounds anchor-index growth under sustained root churn with tiered rotation
selection, journal-based anchor observations with LOCAL/AT_RISK staging and
retry stamps, the resolved-chain frontier cache, and the BFS-thread
lifecycle guards. UNKNOWN_TRUNCATED class shapes resolve through the shape
cache; a confirmed collection re-enlists through the journal on the sweep's
next lap.
Extracts the trend sampling out of livenessTracker.cpp into its own module;
incumbents keep a bounded cohort list and each class qualifies at most four
challengers by live-sample growth.
Covers every journal branch, tier boundary, retry stamp and lifecycle guard
of the new subsystems; skips the ELF parser unmap test under in-test TSan
instead of a quarantine entry (PROF-16632).
Adds the static-field, leak-tag correlation, thread-local and growing-collection
scenarios; removes the four PROF-16305 quarantine entries and the stale
LineNumberTableCopyTest gtest entry.
The merge left the anchor-index documentation split between main's
selection-order section and this branch's shares/eviction section. Fold the
unique facts of both into the maintained section: the UNKNOWN_TRUNCATED shape
contract, the tag-keyed class-tag upgrade view, and selection skipping (not
pruning) dead entries.
eraseAnchorEntries() position rebuild skips a tag missing from the class-tag
map instead of dereferencing end(); set and map are maintained together, so
the guard only turns a hypothetical divergence into a skip. clearPrefix()
clears the whole journal (its only caller replays the full snapshot), so the
comment says that instead of promising a prefix clear.
- fair-tier picks hand their queued first look to the caller's requeue
- saturated passes keep non-indexed/evicted fresh-queue entries pending
- promotion preserves displaced incumbents' epoch samples
- heapRootCallback journals DURABLE_ADD on fresh durable admission
- drop stale joinCallCountForTest assertion after the custom hook
…e merged delta

- journal the 0-to-resolved class-tag refresh for stamp-suppressed indexed
  reports; queued first looks resolve their shape through the index's
  stored tag at pop time
- durable sightings promote locally indexed holders to the durable share
  (callback staging + re-enlist replay), releasing the local slot
- failed GetObjectsWithTags/FollowReferences report every selected anchor
  unwalked instead of marking first looks served without a walk
- unpromoted challengers keep their live trend sample like displaced
  incumbents
- staging a pending unknown makes it displaceable: a confirmed container
  stages through the displacement budget in the same walk
@jbachorik jbachorik added the dog-sitter Actively watched by babysit-pr: fixes pushed through the repo gates label Nov 24, 2026
@jbachorik

jbachorik commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

🐶 babysit-pr is watching this PR — CI breakages and mechanical findings are fixed and pushed automatically; design decisions are always brought to you.

This run
  • 14:45 · started · CI on head fb4a5f1f3 in progress (dd-gitlab pipeline, test-matrix, bits-review/head pending)
  • 14:56 · asked · session owns 8 new review findings (zhengyu123 batch) — premises verified against the tree, analysis escalated; fixes/replies route through the session
  • 15:10 · Bits · auto-review FAIL on fb4a5f1f3 — same 8-finding round the session owns; no re-request, the coming fix push re-reviews on its own
  • 15:10 · CI · 4 cancelled ${{ matrix }}-named test-matrix jobs (workflow run 45417015639, event-dispatch race cancelled by concurrency) — CI-config artifact; properly-named equivalents green or in flight
  • 15:26 · answered · Bits P2 on referenceChainAnchors.cpp:713 (root 4681846697) — premise verified real, escalated to the session with the other findings
  • 15:26 · CI · test-matrix terminal green on fb4a5f1f3; dd-gitlab tail (default-pipeline) still pending
  • 16:28 · pushed · session landed the fix round — 68a4522 / 6f6f011 / b04e060; 7 thread replies posted (stamp clobber, dead counter, unbounded requeue, double-eviction write-back, quarantine block, citations, split reply)
  • 16:28 · started · CI on head b04e06065 in progress — dd-gitlab pipeline, test-matrix, bits-review/head re-review pending
  • 16:40 · Bits · re-review PASS on b04e06065
  • 16:46 · pushed · session landed ab1bec1 — failed-join re-registers existing threads; join-failure and test-load threads replied, every thread of the round answered
  • 16:46 · started · CI on head ab1bec1cf in progress — dd-gitlab pipeline, test-matrix, bits-review/head re-review pending

👀 watching · since 14:45 UTC · CI running on ab1bec1cf · 9 findings answered (round closed) · Bits re-review pending

@datadog-prod-us1-4 datadog-prod-us1-4 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: FAIL

Repeated anchor eviction can discard a resolved class tag and consume a container’s preserved first look without walking it, reducing reference-chain discovery coverage.

Open Bits AI session

🤖 Bits Code Review · Commit fb4a5f1

@datadog-prod-us1-4 datadog-prod-us1-4 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 PR repairs reference-chain discovery and cache rebuilding, bounds anchor indexing, and removes related quarantines. The latest changes preserve class tags across repeated eviction and separate traversal retry stamps; the earlier finding is fixed, and no review findings remain open.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit b04e060

@jbachorik

jbachorik commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

🐶 babysit-pr is watching this PR — CI breakages and mechanical findings are fixed and pushed automatically; design decisions are always brought to you.

This run
  • 17:00 · started · CI on head ab1bec1cf in progress — fresh run taking over from the prior watch
  • 17:12 · CI red · 17-graal aarch64 cell failed at "Setup cached JDK" on the pull_request run (18s, infra — no tests ran); the push run's copy of the same job is green — will take its single rerun once the run completes

👀 watching · since 17:00 UTC · CI running · 0 findings answered this run · Bits pending

@zhengyu123 zhengyu123 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI dog-sitter Actively watched by babysit-pr: fixes pushed through the repo gates human_review:recommended Human review recommended — see PR description

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants