Skip to content

Pin Service Bus send allocation checks to the native SDK baseline - #373

Merged
thomhurst merged 1 commit into
mainfrom
issue-295-d52-send
Nov 10, 2026
Merged

thomhurst merged 1 commit into
mainfrom
issue-295-d52-send

Conversation

@thomhurst

@thomhurst thomhurst commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

The Service Bus send allocation check still described SDK-required strings as a release blocker after D52, and compared preparation with discarded conversions rather than an actual native message. It now compares equivalent warmed raw SDK body/header/content-type preparation and asserts exact allocation equality. The existing header benchmark also covers stored trace creation context; the site describes the measured boundary without claiming the unmeasured 5% throughput target.

Reuses #300/#297's changing ID/timestamp, serializer, wire-type and buffer-lifetime coverage and retains the DefaultJson acknowledged comparison. Azure.Messaging.ServiceBus 7.21.0's ContentType property and native conversion use strings for text; the existing upstream request Azure/azure-sdk-for-net#64450 remains the optimization follow-up. No native feature is reimplemented.

Validation: six allocation/lifetime cases pass. Adapter and raw preparation both allocate 312/368 B without tracing and 504/560 B with tracing (string/UTF-8 content type respectively), adding 0 B in each case on .NET 10.0.14 arm64. npm ci and npm run build pass; Release benchmark build and all eight Dry/in-process header benchmark cases pass. The first parallel benchmark build failed with MSBuild worker exits (MSB4166); a serial -m:1 -nr:false build passed. Dry runs verify execution only, not throughput. No broker comparison was rerun because production transport behavior is unchanged.

Per-message production cost: unchanged, 0 added operations and 0 added B. This updates tests, benchmark coverage and docs only; no new trade-off or budget exception.

Closes #295

Validation evidence and SHA-256 inventory: /Users/tom/git/Relayer-evidence/pr-373/69524ab85b30337064c2436830600fcbf6665cda (test reports, loaded test binaries, build logs and benchmark smoke artifacts).

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c86c956b-b8b6-4e8e-bb22-077fe2415d0d
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@thomhurst

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T01:11:43.806944Z 69524ab Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

Review

I reviewed the diff against AGENTS.md. The change touches tests, a benchmark and docs only, with no production code.

  • Allocation test: it now compares against an equivalent raw SDK baseline: borrowed body, ContentType, and ApplicationProperties. It asserts exact equality and keeps the > 0 sanity check on the baseline. That fixes the old comparison, which used discarded string conversions and a stale "release blocker" comment. The test is consistent with D52.
  • Benchmark: the Tracing param exercises the stored creation context, and 5 or 7 header slots are sliced accordingly. The slot counts (5 and 7) are hard-coded and tied to how many headers the envelope writes. SetHeader throws on overflow, so a mismatch fails loudly instead of silently.
  • Docs: the site text matches the code. It does not claim the 5% throughput target, which is correct.
  • PR description: it states the per-message cost (unchanged, 0 B) and lists the native features it builds on, as required.

Nothing actionable found.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 69524ab85b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@thomhurst
thomhurst marked this pull request as ready for review November 10, 2026 01:10
@thomhurst
thomhurst enabled auto-merge (squash) November 10, 2026 01:10
@thomhurst

Copy link
Copy Markdown
Owner Author

Both required reviewers cleared head 69524ab; all review surfaces have no outstanding findings or threads. Reverified the complete 245-file SHA-256 inventory at /Users/tom/git/Relayer-evidence/pr-373/69524ab85b30337064c2436830600fcbf6665cda. Promoted and armed auto-merge using scripts/Enable-AutoMerge.ps1 -Pr 373 -MarkReady; required CI now gates merging.

@thomhurst
thomhurst merged commit 04cd95a into main Nov 10, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Service Bus send preparation allocates strings for the default UTF-8 envelope

1 participant