Repository navigation
Retain SendTracing state above 64 overlapping sends - #148
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
Review of #148 The design is sound. Slots are fixed and the reservation is atomic. Blocking:
Fix: use test-and-test-and-set. Read first, then CAS only when the slot looks free:
A plain read of a line that no writer is touching stays in shared cache state, so busy slots no longer cost an interlocked operation. You could also start the scan at a rotating hint, such as the last released index, so the occupied prefix is not walked on every send. Non-blocking
|
|
@codex review |
Codex Review SummaryThis 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. |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
|
Disposition of Claude's review, addressed in 6ba68d7:
Release build passed with zero warnings/errors; all 114 tracing tests and the documentation build passed. Existing concurrency-128 MemoryDiagnoser cases passed before and after this fix, with unchanged allocations (31,248 B per single-send burst and 19,152 B per batch burst). Short timings are noisy, so no throughput claim is made. Simplification review found no further changes needed. Per-message change: one volatile read per inspected slot, avoiding CAS for observed busy slots; 0 added B and no added awaits or locks. No-listener path unchanged. Evidence and verified SHA-256 inventory: |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
ReviewI read the
Nit, non-blocking: if |
|
Disposition of Claude's current-head review: the Both required reviewers now give positive verdicts for Pre-promotion evidence verification rehashed every file against the archived SHA-256 inventories: all 1,544 entries for |
|
Promoted the approved head Waiting for Performance run 41351870604; ready CI run 41351870462 has also registered. No source or head changes were made. On the next visit, inspect all review surfaces and check results, then arm with |
6ba68d7 to
2b519c0
Compare
|
Resolve audit updated: the earlier wait ended. Performance run 41371097174 completed; required CI 41371097119 passed on Every Resolve route was checked against fresh
Advisory Performance disposition: the two failures are scoped All review surfaces were inspected: Claude CLEAR and Codex completed/no-findings approve the exact current head; earlier findings have explicit dispositions and no threads exist. Four Claude rounds and two force-push events are below the rework budget. Pre-merge evidence verification rehashed all 2,544 entries across the four cited SHA archives; every recorded hash matches. Current-head size checks also pass. Report: |
Review of #148I found no blocking issues.
|
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
2b519c0 to
e97216c
Compare
Review of PR #148I read Correctness
Performance (AGENTS.md)
Tests and docs
|
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Disposition of Claude's current-head review:
Claude CLEAR and Codex completed/no-findings both approve Reverified all archived evidence against its recorded SHA-256 inventory: 1,544 entries for The earlier blocker no longer holds: #149 is merged and #143 closed. Fresh |
Closes #131
SendTracingnow retains preparation states in growable 64-slot segments. Each state stays in a fixed slot with an atomic reservation, so overlapping sends cannot share borrowed memory. Completion clears the used storage before releasing the reservation, without scanning the pool on return.Adds deterministic coverage for 128 overlapping single and batch sends, native partial failures, cancellation, creation links, and isolated tracing providers. Adds MemoryDiagnoser benchmarks for concurrency 1, 64, and 128 with dropped and recorded spans. Updates transport-author documentation and corrects its stale statement that all broker adapters are planned.
Validation:
dotnet build -c Release: passed, zero warnings and errors.dotnet test -c Release --no-build: 786 passed, including broker and transport-conformance suites.npm ciandnpm run buildinwebsite/: passed. The existing 27 npm audit findings match Address documentation dependency audit vulnerabilities #101; dependency manifests are unchanged.SendTracingConcurrencyBenchmarks: all 24 cases completed on this implementation and on the originalSendTracing.csfrom base96327c7, with identical benchmark inputs. At concurrency 128 with dropped spans, complete-burst allocations fell from 89,103 B to 31,248 B for singles and from 125,136 B to 19,152 B for two-message batches. These totals still include framework async-builder costs; recorded spans also allocate Activities. Short local timings are diagnostic only and do not establish real-broker throughput compliance.Per-message cost: the no-listener path is unchanged. Traced sends scan retained slots using volatile reads and atomically reserve only apparently free slots; return clears the same used buffers and performs one release write. No per-message locks, added awaits, or steady-state preparation-storage allocations after concurrency and batch-size warm-up. Pool growth and competing initialization can allocate while establishing capacity.
Validation inputs, raw reports, logs, loaded library/test binaries, and verified SHA-256 inventory are archived outside removable worktrees at
C:/git/Relayer-evidence/pr-148/619d974940c3383ca73e5e437f27f6261139edd2/(normal seven inactive days retention).experiment.jsonrecords the benchmark command and baseline substitution;final-inputs/contains the measured source snapshot. The baseline benchmark changes onlySendTracing.csand restores the candidate infinally.Review update (
6ba68d7b898ae159bd3fda732b93c5ebc2797a2b): busy tracing slots now skip CAS after a volatile read, preserving atomic ownership of free slots. Transport-author documentation explains lifetime retention after concurrency and batch-size spikes. Warm-up growth behavior is unchanged.Validation for this update: Release solution build passed with zero warnings/errors; all 114 tracing tests passed;
npm ciandnpm run buildpassed. Existing MemoryDiagnoser benchmarks passed four Dry and four Short cases for both the previous head and this update at concurrency 128 with dropped spans. Complete-burst allocations remain 31,248 B for singles and 19,152 B for two-message batches, including framework async-builder costs. Short timings are noisy and do not establish throughput compliance or multi-thread contention performance. Theperformancelabel enables the advisory CI gate.Update evidence, fixture sources, measured inputs, loaded benchmark/test binaries, reports and verified SHA-256 inventory:
C:/git/Relayer-evidence/pr-148/6ba68d7b898ae159bd3fda732b93c5ebc2797a2b/(normal seven inactive days retention).experiment.jsonrecords the comparison and its limits. The PR remains draft for fresh Claude and Codex verdicts on this head.CI maintenance on
2b519c0a307afb3bb91d89bbb08048ef3de03f40:candidate/benchmarks/Relayer.Benchmarks/RegressionGatedirectory. Rebased onto currentorigin/main(7f65561), which supplies the regression harness.git range-diffconfirms both original patch diffs are unchanged. No threshold or benchmark result was changed, and no failed run was rerun.npm ci,npm run build(Node.js 24.14.1), andgit diff --checkpass. Existing npm audit findings remain tracked by Address documentation dependency audit vulnerabilities #101. No new transport behavior or pool algorithm change was introduced by this rebase, so no new broker tests or BenchmarkDotNet measurements were needed.C:/git/Relayer-evidence/pr-148/2b519c0a307afb3bb91d89bbb08048ef3de03f40/. All 163 manifest entries were SHA-256 verified, including logs, range-diff, exact source ZIP and test binaries; all 156 copied binary files also match their originals. Current cleanup retains evidence while its item remains open. Earlier performance measurements remain historical evidence at their original SHA-specific locations.CI blocker resolved; rebase validation on
e97216c3ed081c41acaf9638e055a6fc69203748:05aacc4, closing Fix Testcontainers resource-reaper host-port collisions in integration CI #143. Rebased onto currentorigin/main(1fa60d3) to incorporate the pinned Docker port-allocation fix and current conformance diagnostics. Both PR patch diffs are unchanged (git range-diff). No failed run was rerun.npm ci,npm run build(Node.js 24.14.1), andgit diff --checkpass. Existing npm audit findings remain tracked by Address documentation dependency audit vulnerabilities #101.C:/git/Relayer-evidence/pr-148/e97216c3ed081c41acaf9638e055a6fc69203748/. Exact source ZIP, range-diff, raw logs, reports and loaded test binaries are retained outside the removable worktree. All 156 copied report/binary files match their originals; all 163 manifest entries pass size/SHA-256 verification. Manifest SHA-256:D3AC1E7135C2AC44392A1FF33CE4FF0A77964CA9325616078173AC770E78FDD4. Evidence remains retained while this PR is open.Current merge status: required CI 41371097119 passes; Claude CLEAR and Codex completed/no-findings approve current head e97216c. The PR is ready. Advisory Performance run 41371097174 completed with two scoped-consumer timing failures, explicitly dispositioned in the Resolve audit and recorded with #155. Neither measured method calls SendTracing; complete build inputs differ, so no unchanged-throughput claim is made. No workflow rerun or threshold change was made. All 2,544 archived evidence hashes were verified again in C:/git/Relayer-evidence/pr-148/pre-merge-verification.json; the hosted artifact and 58-file inventory are retained at C:/git/Relayer-evidence/pr-148/performance-41371097174-1/ and performance-41371097174-1-manifest.json. Local evidence retention lasts while open and cleanup may remove it after closure.