Skip to content

refchain test: widen external-process leak-cache tail window (stacked on #899) - #1019

Closed
jbachorik wants to merge 12 commits into
fix-nightliesfrom
dd/diagnose-linux-slow-release-reference-chain-failures-9fx6
Closed

jbachorik wants to merge 12 commits into
fix-nightliesfrom
dd/diagnose-linux-slow-release-reference-chain-failures-9fx6

Conversation

@jbachorik

Copy link
Copy Markdown
Collaborator

What does this PR do?:

Widens the external-process leak-cache scenario's post-round tail from 5 fixed one-second attempts to a 60-second time budget, raises that test's child timeout from 90s to 150s, and prints per-round reference_chain_* counters plus per-tail-attempt progress lines as failure diagnostics. Test-only change (2 files), stacked on #899.

Motivation:

ExternalProcessReferenceChainTest.shouldReconstructReferrerChainInSeparateProcess fails [chain-not-found] on Linux aarch64/glibc release. Diagnosis (task diagnose-linux-slow-release-reference-chain-failures-9fx6): the datadog.ReferenceChain event materializes only at t≈15–17s because chain-building polls are serialized behind the search's first BFS pass under the engine lock, while the scenario's 5s tail closed the window ~10s too early. The same five failures reproduce identically on clean main (full testSlowRelease run, glibc/release/aarch64, JDK 17) — pre-existing, not introduced by #899. #899 has since fixed the other four; this completes the remaining one.

The engine-side observations from the diagnosis (polls blocked for the whole pass; terminal-state checks unreachable while passes are long/blocked) are recorded as follow-up material for #899's ongoing work, not addressed here.

Additional Notes:

  • Timing numbers (event at t≈15–17s, chain at tail attempts 6–7) are from full-suite verification runs of an earlier commit of this branch; the final candidate adds the review fixes (150s timeout, capped final sleep, variable rename) and is compile-verified but not re-run end-to-end. The deltas are behavior-preserving or strictly widen the window.
  • Review: fresh-context code-review subagent, two rounds plus a re-review of the fixes; no open Critical/High findings (one review round caught a compile-breaking rename miss, fixed and compile-verified). One cosmetic LOW (comment line wrap) left as-is.
  • Human review recommended: the change alters the timing envelope of a flake-prone end-to-end test; a human should confirm the wider window is acceptable for CI.

How to test the change?:

./.claude/commands/build-and-summarize :ddprof-test:testSlowRelease -Ptests=ExternalProcessReferenceChainTest on Linux aarch64/glibc release (glibc/17-release-aarch64). Previously the leak-cache test failed [chain-not-found] essentially consistently; with this change it passes, with the chain landing inside the new tail budget.

For Datadog employees:

  • This PR doesn't touch any of that.
  • JIRA: [JIRA-XXXX]

@jbachorik jbachorik added AI human_review:recommended Human review recommended — see PR description labels Nov 19, 2026
@jbachorik

Copy link
Copy Markdown
Collaborator Author

@DataDog review

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

jbachorik commented Nov 19, 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

✅ stopped 13:00 UTC · PR #1019 closed — babysitting continues on #1022


Stop summary: no commits pushed; both CI reds (validate-quarantine stale gtest quarantine id, fuzz-build-and-soak UNIT_TEST-member compile error) were inherited from base fix-nightlies (PR #899 shows both red) and reported to the session for escalation; no inline threads; Bits PASS on 9c6276a10 (triggered by the author).

@datadog-official datadog-official 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 wider wait window preserves the existing chain-match and persistence assertions. Static review found no actionable defect, but the timing-sensitive external-process scenario was not rerun.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 9c6276a

@datadog-official

This comment has been minimized.

@jbachorik
jbachorik added this pull request to stack #1021 November 19, 2026 12:55
The chain event can only be built after the search's first BFS pass completes
(chain-building polls are serialized behind the in-flight pass), which on
Linux aarch64/glibc release lands at t~15-17s - after the previous 5-attempt
tail had given up. Verified on glibc/release/aarch64 JDK 17: the test passes
with the chain landing at tail attempts 6-7 across two full-suite runs.
…he scenario

Release builds have no TEST_LOG, so a failing child previously reported only
the final counters. Printing reference_chain_* counters each round shows
when candidate admission happens, when frontier admissions stop, and when
the chain event lands - the evidence that localized the Linux aarch64/glibc
release failures to single-pass timing rather than a code defect.
@jbachorik
jbachorik force-pushed the dd/diagnose-linux-slow-release-reference-chain-failures-9fx6 branch from 9c6276a to 846f65c Compare November 19, 2026 12:59
@jbachorik

Copy link
Copy Markdown
Collaborator Author

Retargeting: this was created stacked on the wrong PR (#899); recreated with base paul.fournillon/fix-reference-chain-release-failures (#889). Superseded by the new PR.

@jbachorik jbachorik closed this Nov 19, 2026
@jbachorik jbachorik removed the dog-sitter Actively watched by babysit-pr: fixes pushed through the repo gates label Nov 19, 2026
@dd-octo-sts

dd-octo-sts Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

CI Test Results

Run: #44525650136 | Commit: efdfff9 | Duration: 21m 49s (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-19 13:03:20 UTC

@jbachorik
jbachorik deleted the dd/diagnose-linux-slow-release-reference-chain-failures-9fx6 branch November 19, 2026 14:11
An error occurred while trying to automatically change base from fix-nightlies to main November 24, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI human_review:recommended Human review recommended — see PR description

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants