Repository navigation
fix: count sends at native admission boundaries - #308
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Review of #308: count sends at native admission boundariesI read the Kafka, Service Bus and in-memory changes in What I checked
Non-blocking notes
|
51d3810 to
7892b45
Compare
|
Disposition of Claude's review of 51d3810, which reported no blocking findings:
Rebased onto |
|
@codex review |
ReviewI read the What the change does: Checked and correct:
I found no correctness, security or performance issues. |
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. 🚀 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". |
|
Both required reviewers approve current head Before promotion, rechecked both evidence inventories and every SHA-256 hash: 661 files in Promoting through |
Pull request was converted to draft
7892b45 to
51a6c7f
Compare
|
Run 41514498885 completed successfully, so the previous wait has ended. The PR subsequently conflicted with native-duration changes merged in #301. Rebased onto The resolution preserves native-duration timing and Kafka's synchronous admission/drain behavior while adding counters immediately before native attempts. It preserves both benchmark metrics callbacks and the JSON DI instrumentation, removes overlapping duplicate setup/disposal, and keeps Service Bus emulator assertions for both counts and durations. Simplification review found no further changes needed. Release build, 102 focused tests (including real Kafka, Service Bus emulator and PostgreSQL), documentation installation/build and 28 BenchmarkDotNet Dry cases pass. The PR body identifies the hash-verified archive, exact validation source and final whitespace-only cleanup. The previous head's approvals do not carry over: restored draft before pushing and requesting fresh review. No merge or protection bypass was attempted. |
|
@codex review |
Review of #308I traced the counter move from Correctness
Tests Performance and conventions Minor, non-blocking |
|
Codex Review: Didn't find any major issues. Another round soon, please! 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". |
51a6c7f to
4349c1e
Compare
|
Run 41514498885 passed; that wait no longer blocks this PR. Main subsequently merged #310, which caused a new conflict in The resolution preserves #310's retained continuation and execution-context implementation exactly, except removing the tracing-level counter as intended by #302. Disposition of Claude's latest review: the endpoint lookup suggestion is non-blocking and remains outside this accounting fix. The PR already states its endpoint lookup cost and records 0 B for counter recording; keep the existing benchmark coverage without refactoring endpoint ownership here. Release build, 239 tests (including all tracing tests, real Kafka, Service Bus emulator and PostgreSQL), documentation installation/build pass. The PR body names the exact-head archive; all 819 inventory hashes and originals were verified before citation. Previous head approvals do not carry over. The PR stays draft for fresh Claude and Codex reviews. |
|
@codex review |
Review of #308: count sends at native admission boundariesI read the full diff and checked the Kafka batch path in Correctness
Performance and AGENTS.md
Tests and docs
Non-blocking nit
|
|
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". |
|
The earlier wait ended: run 41514498885 succeeded. Current head is 4349c1e and is mergeable. Claude's PR-associated run 41520121060/1 succeeded with CLEAR for this head; Codex's completed summary names the same full SHA and reports no findings. All review bodies, inline comments, conversation comments and review threads were checked; there are no unresolved threads or blocking findings. Disposition of Claude's current review: passing the resolved endpoint through the Kafka tombstone helper is a non-blocking optimization. Keep it outside this accounting fix: the PR already records the endpoint lookup cost and includes metrics-enabled benchmarks. No code push is needed for this suggestion. Reverified all four retained evidence inventories and SHA-256 hashes: 819 files for the current head, plus 764, 132 and 661 files from earlier heads. All 49 available original files also match; originals in removed worktrees are unavailable, while the archived binaries, sources and reports remain intact. Verification is recorded at C:/git/Relayer-evidence/pr-308/promotion-20261102-2106-verification.json. The current-head archive remains C:/git/Relayer-evidence/pr-308/4349c1e6d6c8d2fb3da359a41737eae1fc82e7ad/continuation-validation/. These local archives remain while the PR is open and may be removed after closure. No validation was rerun or attributed to a different head. No prerequisite, superseding PR, unfinished parent, stale scope or reversible design decision blocks promotion. #308 already closes #302. Promoting and arming through scripts/Enable-AutoMerge.ps1 -Pr 308 -MarkReady; required ready CI must pass before merge. |
|
scripts/Enable-AutoMerge.ps1 -Pr 308 -MarkReady passed and armed auto-merge for approved head 4349c1e. Required ready CI is now running: https://github.com/thomhurst/Relayer/actions/runs/41525641258. No check was bypassed. This single unit releases pr-308 without waiting for CI completion. |
Count
messaging.client.sent.messagesimmediately before native sends, after validation and preparation. Failed native calls count; rejected calls and unattempted Service Bus split tails do not. Outbox enqueue stays excluded, and dispatch retries count at each native attempt. Custom adapters callSendTracing.RecordNativeSend(count)at their native boundary.Build on Dekaf 1.25.0
ProduceAsync/topicProduceAsync/ProduceAllAsync, Azure.Messaging.ServiceBus 7.21.0CreateMessageBatchAsync/TryAddMessage/SendMessageAsync/SendMessagesAsync, and Relayer's endpoint recorder, pools, existing grouping and native-duration timers. Native source was inspected at the pinned versions during implementation. No native batching, retry, ordering or acknowledgement behavior is replaced or duplicated; no decision exception is needed.Update Kafka, Service Bus and in-memory sends, the telemetry guide (including custom-adapter migration), listener tests and metrics-enabled benchmarks. Rebase onto
b57353c(#310), preserving its retained cross-thread send continuations, native send duration timing, Kafka's synchronous admission/drain behavior, the default JSON benchmarks, both metrics callbacks and shared DI instrumentation. Resolve duplicate setup/disposal introduced by overlapping changes. The Service Bus emulator test now checks counts and durations together.Per-message cost: move the existing counter to native admission, 0 B from recording. In-memory sends add an endpoint lookup; Kafka singles reuse the validated endpoint for both counter and timer, ordinary batches reuse the duration endpoint lookup, and tombstone batches add one endpoint lookup per homogeneous batch. Service Bus records per admitted batch. The
performancelabel enables the advisory gate; no throughput-budget claim is made.Validation on
4349c1e6d6c8d2fb3da359a41737eae1fc82e7ad: Release solution build (0 warnings/errors), 63 core/send/duration/allocation/emulator tests, all 137 tracing tests (including retained cross-thread continuations), 21 real Kafka send/duration/conformance tests, 18 PostgreSQL outbox telemetry tests,npm ciand documentation production build pass. The earlier head's 28 BenchmarkDotNet Dry smoke cases remain execution checks only; they were not rerun for this conflict resolution. The same 22 low/moderate documentation dependency audit findings remain tracked in #101; no dependency manifests changed.Evidence for
4349c1e6d6c8d2fb3da359a41737eae1fc82e7ad:C:/git/Relayer-evidence/pr-308/4349c1e6d6c8d2fb3da359a41737eae1fc82e7ad/continuation-validation/contains logs, reports, loaded test binaries, the exact source snapshot and rebase range-diff. All 819 inventoried files were SHA-256 verified, with copies checked against their originals. Earlier validation remains in the SHA-specific archives described in the PR history; those results are not measurements of this rebased head. Local evidence is retained while the PR is open and may be removed after closure.Closes #302