Repository navigation
refchain test: widen external-process leak-cache tail window (stacked on #889) - #1022
Conversation
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.
|
@DataDog review |
|
🐶 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:38 UTC · CI green — 123 checks passed, 0 failed · merge state CLEAN Stop summary: no commits pushed, no fixes needed. CI green on head |
There was a problem hiding this comment.
More details
The longer tail wait preserves the existing chain-success assertions while allowing more time for the first BFS pass to complete. Its effectiveness against the Linux aarch64/glibc flake remains unverified end to end.
🤖 Bits Code Review · Commit 846f65c
Scan-Build Report
Bug Summary
Filter Results by FileReports
|
|||||||||||||||||||||||||||||||||||||||||||||||||
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
The longer tail preserves the existing chain-success assertions while allowing more time for the first BFS pass to complete. Its effectiveness against the reported Linux aarch64/glibc flake remains unverified end to end.
🤖 Bits Code Review · Commit 846f65c
CI Test ResultsRun: #44529212467 | Commit:
Status Overview
Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled Summary: Total: 32 | Passed: 32 | Failed: 0 Updated: 2026-11-19 13:24:22 UTC |
502b84c
into
paul.fournillon/fix-reference-chain-release-failures
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 #889.Motivation:
ExternalProcessReferenceChainTest.shouldReconstructReferrerChainInSeparateProcessfails[chain-not-found]on Linux aarch64/glibc release. Diagnosis (taskdiagnose-linux-slow-release-reference-chain-failures-9fx6): thedatadog.ReferenceChainevent 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 cleanmain(fulltestSlowReleaserun, glibc/release/aarch64, JDK 17) — pre-existing, not introduced by #889. #889's branch 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 #889's ongoing work, not addressed here.
Additional Notes:
How to test the change?:
./.claude/commands/build-and-summarize :ddprof-test:testSlowRelease -Ptests=ExternalProcessReferenceChainTeston 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: