Repository navigation
Description
Summary
The .NET 11 Linux Native AOT send-tracing smoke check failed after its existing warm-up in CI run 43421747205. It should measure zero bytes after warm-up. The exception contains neither the byte count nor the configuration, so this failure cannot yet be attributed to Relayer or runtime initialization.
Reproduction
At commit 252faedfc09645e926879ee7fe4d80eefa623893:
dotnet publish tests/Relayer.AotSmoke -c Release -f net11.0 -r linux-x64 -o .artifacts/aot-smoke
.artifacts/aot-smoke/Relayer.AotSmokeThe CI exception is System.InvalidOperationException: Awaited send tracing allocates under Native AOT. at tests/Relayer.AotSmoke/Program.cs:38. This follows the wrapped awaited warm-up, not the first awaited run described in closed #525. The .NET 10 CI job passed.
Expected and actual
Expected: zero Relayer steady-state allocations on the native completion path, without hiding a regression by increasing warm-up or rerunning CI for green.
Actual: one CI failure after warm-up, not reproduced by diagnostic builds using SDK 11.0.100 on osx-arm64 or linux-x64 (the latter under Docker emulation). Both diagnostic builds measured 32 B on the first wrapped awaited burst and 0 B on the following nine bursts; all other single/batch and listener configurations measured 0 B. These diagnostic builds change the linked image, so their successful measurements do not establish why the original CI binary failed.
#674 adds assertion details for total bytes, caller/worker bytes and configuration while retaining the original warm-up and zero-byte threshold. Its investigation archive retains the diagnostic inputs, binaries and logs. No CI retry was requested.
Ask
Investigate the post-warm-up allocation with enhanced failure details or an independent reproduction. Fix a demonstrated Relayer defect or report a self-contained native/runtime measurement defect and apply a justified test-host control. Keep the zero-allocation assertion intact. The original missing CI executable cannot be retrospectively attributed from passing rebuilds.
Current status and resolution scope
Rechecked origin/main at 489ce7079df1f92788b76dd8c8e191f46707b827: #674 supplies caller/worker/configuration diagnostics and #691 supplies exact failing-image retention. Native child #690 is closed. Neither alone attributes the original CI run, whose artifact endpoint still returns zero artifacts. No open implementation, superseding PR or open prerequisite was found.
A new, independent experiment does reproduce an allocation-measurement defect under Native AOT, without Relayer. The original package-free empty-window reproduction from dotnet/runtime#134724, published with .NET 11.0.0 Native AOT, reports positive bytes around only counter reads and SpinWait while a separate worker requests collections. Linux x64 reports 16/192 nonzero empty windows; macOS arm64 reports 34/192. With the exact same native executable and concurrent GC disabled, both report 0/192. Every run keeps all 32 warmed empty controls at zero and detects all 32 explicit allocations as exactly 64 B. A separate Linux Native AOT compile using the existing SDK ConcurrentGarbageCollection=false property embeds System.GC.Concurrent=false and also yields 0/192 nonzero empty windows, with all positive controls intact.
The Native AOT counter reads allocation-context accounting; the shared GC's background cleanup can discard the unused range without subtracting it from alloc_bytes. This independently demonstrated confounder supports using the standard SDK control in the smoke test host only, as already done in core allocation tests by #348. The experiment and attribution limits are reported upstream at dotnet/runtime#134724. No production GC setting, tolerance, changed warm-up, changed assertion, test serialization or CI retry is needed.
Resolution scope clarified under the skill's “Decide and document” route: implement the demonstrated Native AOT measurement correction and retain the upstream reproduction, rather than require recovery of an executable that was never retained. This is a reversible test-host correction supported by new unfavorable and control evidence. The cause and byte count of the original run remain unknown; this is not a claim to have traced that historical failure, and a future failure under the corrected host must still be investigated using retained executable evidence.
Additional unchanged-original-source image probes under a 16 MiB heap limit/GCConserveMemory=9 and a GCStress=4 environment also pass. Those passes do not attribute anything; actual GCStress support/effect was not verified and is not evidence for a collection mechanism.
Remaining acceptance criteria
- Apply the standard nonconcurrent-GC SDK setting only to the Native AOT allocation-checking smoke executable; preserve its exact zero-byte thresholds, original warm-up and all parallel test execution.
- Validate the Native AOT compile-time setting and smoke executable, with zero empty-window controls and exact real-allocation positive controls; retain sources, native binaries/symbols, outputs, commands and verified hashes outside removable worktrees.
- Link the independently reproduced upstream Native AOT report and preserve the original failed CI observation and its historical-attribution limits. A passing changed image does not establish the original failure's cause.
Fresh experiment evidence: /Users/tom/git/Relayer-evidence/issue-679/current-20261113/; publication PR will record its final verified archive. The original retained-source rebuild still has all 43 hashes verified. No workflow was dispatched or retried.
Implementation: draft #746, head da5c2cfdb88fd4071f9cee563c4a376586000eb3, applies the three-line smoke-host control. Full net11.0 Native AOT smoke publish/execution passed on macOS arm64 and Linux x64 (emulated); native compiler inputs embed the intended false runtime knob. Final evidence archive: /Users/tom/git/Relayer-evidence/pr-746/da5c2cfdb88fd4071f9cee563c4a376586000eb3/ (123 entries verified against originals and on read-back). Protected draft review/CI lifecycle remains required; original historical attribution is not claimed.
Activity
Report native AOT allocation configuration and counters for #679
Report native AOT allocation configuration and counters for #679
thomhurst commentedon Nov 13, 2026
Re-checked and claimed this issue. The earlier
waiting #674: run 43426343548no longer holds: that run failed in the net11.0 Test step, so its AOT smoke was skipped. #674 has now merged; its subsequent ready CI run 43431175992 passed the net11.0 AOT smoke. A passing changed-image build does not attribute the original failure.The original failed run 43421747205 has zero retained GitHub Actions artifacts, so the original executable cannot be recovered. The earlier unchanged-source rebuild at
252faedfc09645e926879ee7fe4d80eefa623893used SDK 11.0.100/runtime 11.0.0 in Linux x64 Docker emulation and passed; its external Git metadata was not mounted, so MinVer used a fallback version. This unit executed that exact retained rebuild in 32 separate processes: every original warm-up/zero-byte check passed, without source changes, increased warm-up, or a CI rerun. This is diagnostic non-reproduction, not attribution. Existing source review of dotnet/runtime#137474 explains first-dispatch initialization only; no independently reproducible post-warm-up runtime defect has been established, so no speculative upstream issue or production fix is warranted.Resolve routes checked: origin/main and merged #674 provide diagnostic byte/configuration details, but neither implements this issue's remaining attribution criteria; no existing PR fixes or supersedes the original failure. This is not a finished parent: the missing evidence-retention work is now native sub-issue #690. Implemented that removable obstacle under its own lock in draft #691, which preserves the exact failing image/symbols, logs, runtime/host details, source archive and hashes for 14 days. Failure capture does not rebuild, retry or change assertions. #691 closes #690 only; #679 remains open for demonstrated attribution and a targeted fix or independently reproducible upstream report. Updated the issue body to this current state rather than parking it behind completed #674 or a passing run.
Retained original rebuild inputs/native executable:
/Users/tom/git/Relayer-evidence/issue-679/original-source-rebuild/(43-entry verified inventory from the earlier unit). The 32-process log is/Users/tom/git/Relayer-evidence/issue-679/repeated-original-rebuild.log. #691 validation archive:/Users/tom/git/Relayer-evidence/pr-691/33e98434f268a56f78ee223864f1e6d861242346/(118 SHA-256-verified files). Native Linux shell validation covers publish failure, executable failure, exit preservation, exact archive/hash contents, and executable permissions. No external blocker label or CI rerun was added; the next unit can complete #691's reviews and continue attribution from an actual failing image if one becomes available.Latest recheck after #691 merged: the earlier wait on #674/run 43426343548 is obsolete. Verified
origin/maincontains #691 at04ee8e764a4ee1b49a34a179798badb4bc2d06c3, closing the only native child #690. Its ready CI run 43436097933 passed the net11.0 Native AOT smoke; all failure-capture steps were correctly skipped, and the run has no artifacts. Repository-wide AOT artifact search also found no failed image; original run 43421747205 still has no artifacts. No open PR implements or supersedes #679's remaining attribution work.Tried an additional reproduction route with the exact retained original-source rebuild, not another rebuild: pinned Linux x64 execution to CPU 0 using
taskset, and ran eight separate processes in the recorded SDK container digest. All eight original smoke runs passed, including the awaited send zero-allocation assertions; no warm-up, thresholds, iterations or test parallelism changed. Verified every one of the 43 retained-file SHA-256 values. Log:/Users/tom/git/Relayer-evidence/issue-679/single-cpu-original-rebuild.log. This extends the previous 32-process non-reproduction without attributing the missing original CI image. No demonstrated defect justifies a production patch, regression test or upstream defect report yet.Resolve routes exhausted for the present evidence: #674 and #691 are merged, so no open prerequisite remains to take over; the parent is only partly implemented, with evidence retention complete but all three attribution criteria still unmet; no replacement/duplicate PR exists to close or advance. Updated the body to remove the stale child status. The next evidence gate is the already-running automatic main CI 43438295040 from #691's merge (net11.0 Test in progress, AOT pending at the latest read). Report
waiting #679: run 43438295040, without an on-hold label, new workflow dispatch, CI rerun, relaxed assertion or false closure. A changed-image pass will still not attribute the original failure.Recheck after the waiting run completed: run 43438295040 succeeded, including both Native AOT smoke steps; failure collection/upload skipped and no artifact exists. The earlier wait no longer holds. Reclaimed under issue-679, verified origin/main 8a4ccbb includes the diagnostics and retention work, and verified the only native child #690 is closed. The parent's own reproduction/attribution/regression criteria remain unmet. No open prerequisite, replacement PR, duplicate implementation or retained failing AOT image was found; the original failed run 43421747205 still has zero artifacts.
Tried a different diagnostic route: the exact retained original-source Linux x64 executable, unchanged, with DOTNET_DefaultStackSize=40000 (hex 256 KiB) in its recorded SDK container digest. This probes runtime-async dispatch with less worker stack. Every smoke assertion passed, including awaited send tracing; all 43 retained-file SHA-256 hashes were reverified. Log: /Users/tom/git/Relayer-evidence/issue-679/constrained-stack-original-rebuild.log. Reviewed SendTracing.State completion/slot retention and the shared fixture's caller/worker counters and fixed warm-up; no demonstrated production defect emerged. dotnet/runtime#137474 describes first-dispatch initialization, not evidence for this post-warm-up failure.
Resolve routes exhausted: merged diagnostics/retention do not establish attribution; the finished child does not satisfy the parent's remaining acceptance; no stale remaining implementation or agent-workable blocker exists to take over. Updated the body to remove the completed-run wait while retaining the acceptance criteria. A passing rebuilt image cannot justify closure, a speculative patch, or an independently reproducible upstream defect report. No new wait, external hold, CI retry, workflow dispatch, relaxed assertion or changed warm-up was introduced. Reporting this unit as failed to reproduce/attribute rather than inventing a human/upstream/credentials/locked deferral category. The issue remains open for a future retained failure or independently reproducible attribution.
Latest unit: the earlier non-reproduction blocker is now removed for an actionable measurement correction, using a new independent Native AOT reproduction rather than recovery of the missing historical executable. The original runtime#134724 package-free source yields Linux x64 16/192 and macOS arm64 34/192 positive EMPTY counter windows. The exact same native images with concurrent GC disabled yield 0/192; the compile-time standard SDK property also yields Linux 0/192. All 32 warmed empty controls remain zero and all 32 explicit allocations remain exactly 64 B in every execution. Native AOT counter/background GC source analysis supports the allocation-context explanation; no object-level or historical-window trace is claimed. Upstream report: dotnet/runtime#134724 (comment).
Resolve routes checked against origin/main 489ce70: the closed child #690 and merged #674/#691 supply diagnostics/retention but no counter control; no open blocker, implementing/superseding PR or failed AOT artifact existed. Existing #348 already controls this mechanism in core tests, so the new change reuses the SDK setting only for the separate AOT smoke host. Clarified acceptance to the reversible, independently demonstrated measurement correction, preserving the original unknown cause instead of requiring an unavailable executable forever. Low-heap/GCStress-environment original-source image probes also passed but do not attribute the original; GCStress effect was not verified.
Implemented and pushed draft #746 at da5c2cf. It preserves exact zero-byte thresholds, original warm-up, and parallel execution; production and benchmark settings are unchanged. Full net11 Native AOT publish/execution passed on both macOS arm64 and Linux x64 under emulation; compiler inputs embed System.GC.Concurrent=false. All 123 archive entries match originals and verified read-back SHA-256/size under /Users/tom/git/Relayer-evidence/pr-746/da5c2cfdb88fd4071f9cee563c4a376586000eb3/. Codex review requested; Claude automatic. No CI dispatch/retry, assertion relaxation, production patch, new dependency/hold, or historical-attribution claim. RESULT is opened #746 closing #679; issue remains open until protected PR completion.
Retain SQL Server outbox sends with durable retry backoff (#674)
Retain failing Native AOT smoke inputs (#690, #679) (#691)