Skip to content

Attribute three throughput failures in Performance run 43376451021 #565

Closed
1 of 1 issue completed
Closed

Description

@thomhurst

The main Performance run 43376451021 fails three bracketed throughput comparisons: scoped DirectScopedDispatch, log ComposedRoundTrip and queue NativeRoundTrip. Their candidate confidence bounds exceed both baseline bounds under the existing 5% rule. Identify the cause and correct any demonstrated defect without relaxing thresholds or assuming unchanged call-path source proves identical execution.

Reproduction

Run: https://github.com/thomhurst/Relayer/actions/runs/43376451021 , candidate db2afb3. Failed step: Compare bracketed throughput, allocations and startup. Retained artifact: performance-43376451021-1 (14015338227).

Expected and actual

Scoped DirectScopedDispatch: baseline CIs [85.1107,87.1707] and [105.829,113.456] ns; candidate [119.849,126.985]. Log ComposedRoundTrip: [4003.28,4087.77] / [4058.96,4097.72] versus [4402.38,4460.11]. Queue NativeRoundTrip: [2831.7,2858.83] / [2879.69,2911.32] versus [3137.43,3172.59]. Allocations match in these cases. ConcurrentRoundTrip allocations pass (732/730 baseline, 730 candidate), so #562 does not describe this failure.

Environment

Hosted Linux x64, first attempt; exact SDK/runtime and original frozen images are in the artifact. Candidate changes diagnostic scripts/workflow only, which does not establish identical containing binaries or execution. No infrastructure failure or justified rerun is established.

Acceptance criteria

  • Retain and hash-verify original reports, executable images and comparison inputs, including unfavorable outcomes.
  • Reuse existing frozen native BenchmarkDotNet launcher and original generated jobs for focused controls covering these three comparisons; extend its supported selection only where necessary rather than inventing another benchmark harness.
  • Keep brackets, runtime/process-order effects and historical attribution limitations explicit; a reversed ordering alone does not invalidate the original result.
  • Fix only a demonstrated defect with focused coverage. Preserve thresholds and performance contracts; no speculative production change or gate rerun.

Please attribute these throughput signals and correct any demonstrated defect.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    bug
    P1
    on Nov 13, 2026
  2. thomhurst commented on Nov 13, 2026

    @thomhurst
    OwnerAuthor

    The quoted earlier blocker “waiting #562: run 43375421580” is gone: that run succeeded and its outputs were already retained/analyzed on #562. Its subsequent #559 prerequisite is now closed through merged #561. Neither resolves this distinct latest-main failure: run 43376451021 fails three throughput comparisons and its concurrent allocation comparison passes. No historical allocation claim is transferred between runs.

    Read the failed comparison logs and searched open/closed issues and open PRs for the run/cases. No existing delivery PR, merged fix, superseding item, finished parent or stale acceptance criteria resolves these three signals. No infrastructure error justifies a rerun. There is no external/human/credential blocker and no threshold relaxation or approved trade-off. Existing trusted launchers select ConcurrentRoundTrip or limited scope methods; none can select these three original generated jobs. Chose the reversible extension of the existing native launcher rather than a parallel engine.

    Retained the entire original artifact performance-43376451021-1 (14015338227). All three original executable inventories verify; independently read back lengths and SHA-256 for 772 files / 228,576,077 bytes against /Users/tom/git/Relayer-evidence/issue-565/original-retention-sha256.json. Inputs are in original/; failed logs remain under main-ci/43376451021.log. Baseline and repeated baseline commit aff0eab, candidate db2afb3. Selected original generated runner IDs are 6 (scoped DirectScopedDispatch), 16 (log ComposedRoundTrip) and 12 (queue NativeRoundTrip) in all three images; all are one-operation GC-stat jobs. Reports remain unfavorable and unchanged.

    Published draft #567 at 1e0ea0e, closing diagnostic prerequisite #566; added/verified native blocked_by #566 on this issue. The PR adds explicit original parameter selectors, reuses existing native WorkloadResult timing parsing, and retains the new parser dependency in every artifact consumer. All 37 focused tests pass (13 native BDN launcher, 15 scope launcher/parser, 5 core crossover, 4 audit); diff check passes. No production change, documentation impact or per-message cost. PR validation source/log archive contains 27 files, verified against originals and independently read back by SHA-256/length; full location is in the PR body. Codex requested once for that draft head; Claude review is automatic. This is pushed work, not a deferral; attribution #565 stays open.

    Next: complete #567 review/delivery lifecycle, then dispatch existing trusted frozen-bdn-control.yml on main with performance_run=43376451021 and each new benchmark_case: scoped-dispatch, log-composed, queue-native. Keep each fixed native ABBA bracket separate, retain every outcome and runtime/process-order evidence. These are new process experiments, not reconstruction of historical cause or proof of equivalence. A reversed ordering cannot invalidate the original failures. Fix only demonstrated defects. Do not rerun the Performance gate or duplicate instrumentation. No workflow was started by this unit and no services were started. All locks are being released.

  3. added
    area: performance
    on Nov 13, 2026
  4. thomhurst commented on Nov 13, 2026

    @thomhurst
    OwnerAuthor

    Triage verified fresh origin/main at 753247a37559037d16250c71ed4ea18ae9909ba0: the three historical throughput signals remain unresolved and the new selectors are not merged. The native blocked_by link to #566 is correct; open PR #567 already closes #566 and now also fixes the native timing-unit parsing failure. Keep #565 open with its existing attribution criteria; after #567 lands, use the trusted-main controls described above. Added the missing performance-area label. No gate rerun, threshold change or production implementation in this triage unit.

  5. added
    in-progress
    on Nov 13, 2026
  6. thomhurst commented on Nov 13, 2026

    @thomhurst
    OwnerAuthor

    Rechecked and claimed #565 after prerequisite #566 closed through merged #567. Trusted main is 3bf00b2. Independently read back and verified all 772 original retained files / 228,576,077 bytes against original-retention-sha256.json under /Users/tom/git/Relayer-evidence/issue-565; original unfavorable reports and executable inputs remain unchanged.

    Started the existing trusted-main frozen-bdn-control.yml with performance_run=43376451021, once per explicit selector:

    Verified each run through the API: workflow_dispatch, main, .github/workflows/frozen-bdn-control.yml, and the exact trusted main SHA above. Dispatch mapping and verification metadata are retained in control-dispatches.json in the same evidence directory. All were in progress at verification. No Performance gate rerun, threshold change, speculative production change, or new harness. No owned services or worktrees were created.

    Next unit: download and retain every outcome from all three runs (including failures), hash-verify originals and new artifacts, analyze each native ABBA bracket separately with runtime/process-order evidence. These are new experiments and do not reconstruct historical cause; reversed ordering alone cannot invalidate the original failures. Fix only a demonstrated defect. Attribution remains open while these runs complete; no on-hold label is appropriate. Releasing issue-565 lock now.

  7. thomhurst commented on Nov 13, 2026

    @thomhurst
    OwnerAuthor

    The earlier blocker is gone: all three trusted-main controls completed successfully (43383317548 scoped-dispatch, 43383320885 log-composed, 43383323972 queue-native). Rechecked and claimed this issue under the driver’s lock. The surviving issue-565-throughput-controls branch contains changes already merged through #567, not unpublished work. #566 is closed; #567’s merged commit is 3bf00b2. No other delivery PR, superseding issue, finished parent or implementation on main resolves the remaining attribution criteria.

    Retained every new outcome and original executable/report input under /Users/tom/git/Relayer-evidence/issue-565/controls/{scoped,log,queue}/. Artifact IDs are 14017990211, 14016854633 and 14017143514 respectively. Independently read back all 2,358 files / 685,992,357 bytes against control-retention-sha256.json. Reverified all original 772 files against original-retention-sha256.json and verified each of those 772 original inputs/reports is byte-identical in each downloaded control. Original unfavorable results remain unchanged.

    Native WorkloadResult means in ABBA process order, ns/op (four separate launches, not pooled confidence intervals):

    • Scoped DirectScopedDispatch: 114.713 / 117.014 / 114.062 / 121.298; 336 B/op throughout.
    • Log ComposedRoundTrip: 4328.479 / 4282.787 / 4215.336 / 4225.757; 440 B/op throughout.
    • Queue NativeRoundTrip: 3844.813 / 3763.333 / 3853.440 / 3659.314; 104 B/op throughout.

    All twelve native logs report .NET 10.0.15 (10.0.1526.53008), also reported in the historical run. Scoped’s new host reports x86-64-v3, while the new log/queue hosts and historical logs report v4. Each bracket remains separate: adaptive operation counts, warmup, process placement and host drift remain uncontrolled. A changed ordering is not a demonstration of equivalence, historical cause, infrastructure failure or grounds to rerun the gate. These results do not support a speculative production fix.

    Tried the existing trusted workflow routes: frozen-bdn-control accepts benchmark_case but exposes neither same-image nor exact-runtime selection. frozen-native-tail exposes those options but hardcodes ConcurrentRoundTrip and instruments allocations, so cannot provide uninstrumented throughput controls for these cases. Chose the reversible extension of the existing native launcher’s workflow; no new harness. Filed native sub-issue/prerequisite #574, acquired its own lock, and opened draft #575 at 48299b9 closing #574. Verified both native relationships. No deferral, on-hold, threshold relaxation, gate rerun or production change.

    Validation: 13 focused launcher tests passed, all 36 actual workflow command combinations checked with stubbed external commands, three invalid inputs rejected, YAML parse and diff check passed. Validation archive and hashes are in #575. Codex requested once; Claude runs automatically. Next: finish #575’s review/delivery lifecycle, then dispatch explicit same-image controls on trusted main for the three cases at exact 10.0.15; keep each four-process bracket and all unfavorable outcomes. Another patch is an optional separate new experiment, not evidence that the historical runtime differed. Keep attribution #565 open until evidence supports its conclusion. No services started. Releasing issue-565, issue-574 and pr-575 locks.

  8. thomhurst commented on Nov 13, 2026

    @thomhurst
    OwnerAuthor

    Triage removed the obsolete native blocked_by link to closed #566 (merged in #567). The open prerequisite #574 and its delivery PR #575 remain; no attribution acceptance criteria changed.

  9. added
    in-progress
    and removed
    in-progress
    on Nov 13, 2026
  10. thomhurst commented on Nov 13, 2026

    @thomhurst
    OwnerAuthor

    The quoted blocker is gone: run 43383317548 succeeded and its outcomes were retained/analyzed in the earlier comment. The next prerequisite #574 is now closed through merged #575. Removed the obsolete blocked_by relationship to #574, reset the stale claim and re-claimed #565 under the driver's lock. Both surviving issue-565 branches contain work delivered through #567/#575; no worktree or unpublished delivery remains. No open delivery PR, superseding issue or implementation on main resolves the parent attribution criteria. Its completed child supplies tooling, not the parent's remaining attribution.

    Independently read back and SHA-256/length verified every retained original (772 files / 228,576,077 bytes) and previous control (2,358 files / 685,992,357 bytes) against original-retention-sha256.json and control-retention-sha256.json under /Users/tom/git/Relayer-evidence/issue-565. Original unfavorable outcomes remain unchanged.

    Used the existing trusted workflow now delivered by #575, rather than adding another launcher. Started one same-image baseline control per case, all with performance_run=43376451021, same_image=baseline and runtime_version=10.0.15:

    Verified all three through the API: workflow_dispatch, main, .github/workflows/frozen-bdn-control.yml, trusted SHA bd4863e. Exact dispatch mapping and metadata are retained in same-image-dispatches.json at the same evidence location. All three are in progress. Holding the original baseline image fixed tests process-position variation within each separate four-launch bracket; choosing baseline is a reversible new experiment, not a claim that candidate images are equivalent.

    Next unit: retain every artifact and unfavorable outcome, verify hashes and exact runtime identities, and analyze each same-image bracket separately alongside previous ABBA controls. New experiments cannot reconstruct historical causation or invalidate the original gate failures. No speculative production fix, threshold relaxation, Performance gate rerun, external/human blocker or on-hold label. No code changed, services started or worktrees created. This unit waits only for the explicitly recorded controls. Releasing issue-565 lock.

  11. added
    in-progress
    and removed
    in-progress
    on Nov 13, 2026
  12. thomhurst commented on Nov 13, 2026

    @thomhurst
    OwnerAuthor

    The earlier wait is finished: all three runs succeeded (43389348626, 43389352242, 43389355664). Reset and re-claimed #565 under the driver's issue lock. Fresh origin/main is 61a142f. Both older issue-565 branches contain work already delivered through #567/#575, including the deadline synchronization follow-up; no unpublished implementation or open delivery PR remains. The native child #574 is closed and there is no current blocked_by dependency. Main supplies diagnostic tooling, not a demonstrated correction for these historical signals. No duplicate/superseding delivery or finished-parent shortcut resolves attribution.

    Retained every outcome, original report and executable input from the exact-runtime baseline same-image controls under /Users/tom/git/Relayer-evidence/issue-565/same-image/{scoped,log,queue}/. Artifact IDs: 14019194656, 14019224364, 14020610337. Independently read back lengths/SHA-256 for 2,361 files / 686,051,370 bytes against same-image-retention-sha256.json. Each control contains all 772 original inputs/reports byte-identically. Reverified the existing 772-file original and 2,358-file previous-control retention manifests. Original unfavorable results remain unchanged. Workflow logs and dispatch metadata remain alongside these manifests.

    Four separate native WorkloadResult means in process order (ns/op), all using the same original baseline executable within that case and exact .NET 10.0.15 (10.0.1526.53008):

    Case Launch 1 Launch 2 Launch 3 Launch 4 Native B/op
    Scoped DirectScopedDispatch 114.838 113.119 116.810 113.821 336 throughout
    Log ComposedRoundTrip 4251.886 4346.243 4349.533 4231.329 440 rounded throughout
    Queue NativeRoundTrip 3130.629 3106.853 3143.345 3182.856 104 rounded throughout

    Within-bracket maximum/minimum mean differences are approximately 3.26%, 2.79%, and 2.45%. These are descriptive process means, not pooled confidence intervals or a gate comparison. Tiny 32-byte total differences in log/queue are retained in raw counters, not hidden by the rounded table. Scoped launch 3 adapts to 4,194,304 GC-stat operations; other scoped launches use 8,388,608. All log launches use 32,768 and queue launches 65,536.

    Every new log reports x86-64-v3; scoped host is AMD EPYC 9V74, log/queue hosts AMD EPYC 7763. Historical logs report v4. The new baseline image alone can produce absolute means near historical candidate results, but different hosts, process placement, native parent protocol and adaptive engine histories prevent historical attribution. These controls do not reproduce the original three failures within their bracket, prove image equivalence, establish infrastructure failure, or invalidate the original gate. All containing benchmark/Relayer DLL hashes differ between original baseline and candidate; unchanged call-path source alone cannot eliminate image/JIT effects. No demonstrated production defect supports a speculative patch.

    Bounded next step: complete the symmetric negative control once, holding the original candidate image fixed with exact 10.0.15. Reused the existing trusted-main frozen-bdn-control.yml; no new launcher, profiler, runtime hypothesis, threshold change or Performance gate rerun. Inputs are performance_run=43376451021, same_image=candidate, runtime_version=10.0.15, and the corresponding explicit selector:

    Verified API metadata for each: workflow_dispatch, main, .github/workflows/frozen-bdn-control.yml, trusted SHA 61a142f; all were in progress. Exact mappings and verification are retained in candidate-same-image-dispatches.json. This answers the bounded question whether within-image stability is specific to baseline. After these complete, retain every outcome, verify identities/hashes, and conclude the available image/process evidence for each case. Do not add another experiment merely because historical cause remains unidentified: report that limitation explicitly; fix only a demonstrated defect. A reversed ordering or negative control cannot dismiss the original failures. New evidence of a concrete defect can justify focused follow-up, but unknown historical causation is not a reserved human decision.

    This is a wait on these recorded workflows, not a deferral. No on-hold label, code change or service was introduced. The analysis checkout contains no changes; releasing issue-565 removes it. No additional locks were acquired. No docs impact or per-message cost.

  13. added
    in-progress
    and removed
    in-progress
    on Nov 13, 2026
  14. thomhurst commented on Nov 13, 2026

    @thomhurst
    OwnerAuthor

    Completed the bounded investigation. The quoted blocker no longer holds: all three candidate same-image controls succeeded. Reset the stale in-progress claim and re-claimed #565 under the driver's lock. Existing issue-565 branches contain only work already delivered through #567/#575; no unpublished work or open delivery PR exists. The only native child #574 is closed and there are no blocked_by dependencies. No merged production correction, replacement issue or finished-parent shortcut establishes the historical cause.

    Final candidate same-image controls

    Each row is four separate original native BenchmarkDotNet Default-job launches, holding the original candidate image fixed. Exact loaded runtime in all twelve logs is .NET 10.0.15 (10.0.1526.53008). These are descriptive process means in ns/op, not confidence intervals, pooled samples or a gate verdict.

    Case Launch 1 Launch 2 Launch 3 Launch 4 Max/min mean spread
    scoped DirectScopedDispatch 115.240 111.107 107.272 108.436 7.43%
    log ComposedRoundTrip 5533.329 5365.947 5362.953 5528.280 3.18%
    queue NativeRoundTrip 1650.613 1611.386 1657.088 1645.347 2.84%

    Native GC-stat counts are 8,388,608 / 32,768 / 131,072 operations respectively in every launch. Scoped remains exactly 336 B/op, log 440 B/op, queue 104 B/op except launch 3 retains an extra 32 total bytes (104.000244 B/op). No unfavorable sample or counter was discarded.

    Scoped runs on AMD EPYC 7763 / x86-64-v3; log on Intel Xeon Platinum 8370C / v4; queue on AMD EPYC 9V45 / v4. Baseline same-image controls in the preceding comment ran on other hosts and all reported v3. Even exact patch identity does not hold CPU, process placement, native adaptive-engine history or JIT/image effects constant across experiments. The retained native launch protocol also lacks the original anonymous-pipe parent. Do not subtract or combine these brackets.

    Conclusion per original signal

    • Scoped: the candidate image alone varies by 7.43% across these separate process means. This demonstrates process/execution variability without changing image or runtime in this new experiment; it neither identifies the historical source nor proves that variability explains the original confidence-bound failure.
    • Log: candidate-only means are stable within 3.18% on this host, but materially higher than baseline-only means from a different host. The separate hosts and executions prevent attributing that difference to the candidate image, runtime patch or production source. No demonstrated defect.
    • Queue: candidate-only means are stable within 2.84% on this host and substantially below prior baseline-only means on another host. That reversal is not evidence of equivalence or grounds to dismiss the original failure. No demonstrated defect.

    The original three unfavorable comparisons remain valid observations of run 43376451021. Their historical causal attribution is unidentified with the retained evidence; changed containing DLL hashes and new runtime/process/host observations cannot reconstruct it. The fixed-image controls exclude neither image/JIT effects nor historical production regression. They establish no production defect to correct safely. Closing this bounded investigation with that explicit negative result, rather than manufacturing a speculative patch or starting an unbounded series of experiments. This closes the investigation, not the original gate failure: no result is relabelled passing, no threshold changed, no performance trade-off approved and no Performance gate rerun. A future reproducible concrete defect warrants a new focused issue linked here.

    Retention and verification

    Candidate outcomes and every original executable/report input are retained under /Users/tom/git/Relayer-evidence/issue-565/candidate-same-image/{scoped,log,queue}/. Independently read back lengths and SHA-256 for 2,361 files / 686,057,821 bytes; manifest candidate-same-image-retention-sha256.json SHA-256 is 33a16306fcb73786e45eb96c3bdd314c017459b5ec701891cab483609ffbb518. Each downloaded control contains all 772 original files byte-identically. Reverified all 772 original, 2,358 ABBA-control and 2,361 baseline-same-image files against their existing manifests. Workflow logs and dispatch mappings are retained alongside them.

    Hosted artifacts (workflow retention is 90 days, not permanent; local issue evidence is subject to closed-item cleanup):

    These artifacts each retain the original reports/images and all new outcomes. The numerical conclusions and limits above remain in this issue after artifact expiry. No new code, docs impact, per-message cost or services; no implementation tests required for evidence analysis. No additional locks acquired. Releasing issue-565 lock and removing the in-progress claim.

  15. removed
    in-progress
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1area: performancebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions