Repository navigation
Conversation
Signed-off-by: Cooper Gamble <cooper@openai.com>
✅ Deploy Preview for cerulean-figolla-1f9435 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Signed-off-by: Cooper Gamble <cooper@openai.com>
cooper-oai
marked this pull request as ready for review
September 29, 2026 22:17
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10144 +/- ##
=======================================
Coverage 81.41% 81.42%
=======================================
Files 266 266
Lines 41300 41301 +1
=======================================
+ Hits 33626 33628 +2
+ Misses 7673 7672 -1
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
zirain
approved these changes
Sep 30, 2026
kkk777-7
approved these changes
Oct 3, 2026
Member
|
LGTM, thanks! |
kkk777-7
pushed a commit
to kkk777-7/gateway
that referenced
this pull request
Oct 24, 2026
* [envoy-gateway] Release discarded coalesced snapshots [ci changed_files] Signed-off-by: Cooper Gamble <cooper@openai.com> * [envoy-gateway] Note coalesced update retention fix [ci changed_files] Signed-off-by: Cooper Gamble <cooper@openai.com> --------- Signed-off-by: Cooper Gamble <cooper@openai.com>
kkk777-7
added a commit
that referenced
this pull request
Oct 24, 2026
* fix(infrastructure): mount writable /tmp on the shutdown-manager (#10120) * fix(infrastructure): mount writable /tmp on the shutdown-manager The shutdown-manager signals drain completion by creating /tmp/shutdown-ready. Since the fix for #4881, the controller replicates the user-provided Envoy container securityContext onto the shutdown-manager. When that securityContext sets readOnlyRootFilesystem: true, the shutdown-manager can no longer create the file, the Envoy preStop hook never gets a 200, the kubelet logs FailedPreStopHook, and both containers are SIGKILLed after the full grace period, making every proxy pod deletion take the full terminationGracePeriodSeconds instead of the drain duration. Mount a dedicated writable emptyDir at /tmp on the shutdown-manager (same approach as the writable wasm-cache emptyDir added for the control plane in #9069). The user's securityContext replication is preserved (custom runAsUser, capabilities, readOnlyRootFilesystem: true all keep working), so hardened deployments no longer break graceful shutdown. Fixes #10119 Signed-off-by: Clement Phu <clement.phu@hotmail.fr> * fix(shutdown-manager): clear stale shutdown ready marker at startup An emptyDir volume persists across container restarts within the same pod, so a /tmp/shutdown-ready marker created by a previous drain could short-circuit the next drain sequence. Remove the marker when the shutdown manager starts. Signed-off-by: Clement Phu <clement.phu@hotmail.fr> * fix(infrastructure): combine volume appends to satisfy gocritic Address the appendCombine lint failure reported by CI. Signed-off-by: Clement Phu <clement.phu@hotmail.fr> --------- Signed-off-by: Clement Phu <clement.phu@hotmail.fr> * fix(message): release discarded coalesced updates (#10144) * [envoy-gateway] Release discarded coalesced snapshots [ci changed_files] Signed-off-by: Cooper Gamble <cooper@openai.com> * [envoy-gateway] Note coalesced update retention fix [ci changed_files] Signed-off-by: Cooper Gamble <cooper@openai.com> --------- Signed-off-by: Cooper Gamble <cooper@openai.com> * fix(translator): use own route config name for TLS listeners sharing port with HTTP (#10171) * fix(translator): use own route config name for TLS listeners sharing a port with HTTP When an HTTP listener shares a container port with HTTPS listeners and is translated first, HTTPS virtual hosts ended up in its RouteConfiguration while their own filter chains referenced route configs that never existed. Default filter chain lookup only applies to plain HTTP listeners. Fixes #10170 Signed-off-by: stillya <st.ilya.101@gmail.com> * docs: add release note for #10171 Signed-off-by: stillya <st.ilya.101@gmail.com> --------- Signed-off-by: stillya <st.ilya.101@gmail.com> * fix: handle EndpointSlices labelled with both a Service and a ServiceImport (#10192) * fix: handle EndpointSlices labelled with both a Service and a ServiceImport Fixes #10191 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Signed-off-by: Seiji Chew <seiji@exa.ai> * release-notes: use PR number for MCS EndpointSlice fix Signed-off-by: Seiji Chew <seiji@exa.ai> --------- Signed-off-by: Seiji Chew <seiji@exa.ai> Co-authored-by: Seiji Chew <seiji@exa.ai> * fix(translator): stop seeding api_key_auth from the first keyed route (#10190) * fix(translator): stop seeding api_key_auth from the first keyed route The listener-level api_key_auth filter is emitted disabled and switched on per route through typed_per_filter_config, but it was built from the first route on the listener that uses API key authentication. That publishes one route's credentials in the listener, so adding or rotating a key on that route rewrites the listener. Envoy then replaces the filter chain and drains the superseded one, terminating long-lived requests on every route of the listener. The same change on any other route is a route-only update that costs nothing, so which route pays is an artifact of ordering. Build the listener-level filter from an empty config instead. The per route configs are unchanged. Signed-off-by: John Lybeck <john.lybeck@amd.com> * docs: add release note for the api_key_auth listener fix Signed-off-by: John Lybeck <john.lybeck@amd.com> * docs: reword the api_key_auth release note per review Signed-off-by: John Lybeck <john.lybeck@amd.com> --------- Signed-off-by: John Lybeck <john.lybeck@amd.com> * chore: bump golang.org/x/net to v0.60.0 (#10254) Fixes CVE-2026-97032, CVE-2026-78659, CVE-2026-78660, CVE-2026-78663 and CVE-2026-78669. Signed-off-by: Hariharan Subramanian <hsubramanian@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c55c776d-397b-4a82-a279-d91e0e21e10d * fix: route status condition order (#10183) * fix(status): report route status conditions in a deterministic order Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> * add release note Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> --------- Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> * fix(provider): index HTTPRouteFilters referenced only from backendRef filters (#10246) * fix(provider): index HTTPRouteFilters referenced only from backendRef filters Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> * renumber release note Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> --------- Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> * fix: record a BackendTrafficPolicy on a TCP or UDP route once (#10289) A policy with mergeType is applied once per listener of each parentRef, and a parentRef with a sectionName can name a listener another parentRef already covers. The feature fields are only set when nil, but the policy metadata was appended on every pass, so a TCP, TLS or UDP route attached to the same Gateway twice carried the policy twice. The append now skips a policy the route already records. Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io> * fix(status): match route parent status by parentRef and controllerName (#10327) * fix(status): match route parent status by parentRef and controllerName mergeRouteParentStatus matched old and new RouteParentStatus entries by parentRef only. When another controller had written its own entry for the same parentRef, that entry was replaced by our status, so the route ended up with two entries of ours. The other controller then re-added its entry, and every following merge added one more duplicate until status.parents reached its maxItems of 32 and all further status writes to the route were rejected. Match entries by parentRef and controllerName, and append each new entry only once so existing duplicates are collapsed on the next update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Freem <freemanovec@protonmail.com> * Add release note for route parent status fix Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Freem <freemanovec@protonmail.com> --------- Signed-off-by: Freem <freemanovec@protonmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * fix: report merged route policy status on the parentRef ancestor (#10315) * fix: report merged route policy status on the parentRef ancestor Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> * remove todo comments and dead code Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> --------- Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> Co-authored-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> * fix: make namespace watch cache ByObject entries deterministic (#10302) * fix: make namespace watch cache ByObject entries deterministic ByObject is keyed by object pointer, so the WatchesNamespaces() block added a second entry for types already registered (Secret, ConfigMap, Service, EndpointSlice, ServiceAccount, Deployment) and the cache kept one at random. Replace the existing entry for the type instead, and grant EndpointSlice read in the controller namespace for Gateway Namespace Mode with watch namespaces. Fixes #10271 Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com> * test: regenerate helm golden for gateway-namespace-config-watch Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com> --------- Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com> * fix(helm): grant controller namespace Secret/EndpointSlice read with watch.namespaces (#10377) Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> * fix: not exist field Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> * fix: generate testdata Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> --------- Signed-off-by: Clement Phu <clement.phu@hotmail.fr> Signed-off-by: Cooper Gamble <cooper@openai.com> Signed-off-by: stillya <st.ilya.101@gmail.com> Signed-off-by: Seiji Chew <seiji@exa.ai> Signed-off-by: John Lybeck <john.lybeck@amd.com> Signed-off-by: Hariharan Subramanian <hsubramanian@microsoft.com> Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io> Signed-off-by: Freem <freemanovec@protonmail.com> Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com> Co-authored-by: Clement Phu <34369901+cleman95@users.noreply.github.com> Co-authored-by: cooper-oai <cooper@openai.com> Co-authored-by: Starchenko Ilya <st.ilya.101@gmail.com> Co-authored-by: Seiji Chew <67301797+schew2381@users.noreply.github.com> Co-authored-by: Seiji Chew <seiji@exa.ai> Co-authored-by: Lybeck <john.lybeck@amd.com> Co-authored-by: Hariharan Subramanian <105889062+hsubramanianaks@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> Co-authored-by: Freem <freemanovec@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Manish <69393822+manish-9245@users.noreply.github.com> Copilot-Session: c55c776d-397b-4a82-a279-d91e0e21e10d
zirain
pushed a commit
to zirain/gateway
that referenced
this pull request
Oct 25, 2026
* [envoy-gateway] Release discarded coalesced snapshots [ci changed_files] Signed-off-by: Cooper Gamble <cooper@openai.com> * [envoy-gateway] Note coalesced update retention fix [ci changed_files] Signed-off-by: Cooper Gamble <cooper@openai.com> --------- Signed-off-by: Cooper Gamble <cooper@openai.com> Signed-off-by: zirain <zirain2009@gmail.com>
zirain
added a commit
that referenced
this pull request
Oct 25, 2026
* fix(infrastructure): mount writable /tmp on the shutdown-manager (#10120) * fix(infrastructure): mount writable /tmp on the shutdown-manager The shutdown-manager signals drain completion by creating /tmp/shutdown-ready. Since the fix for #4881, the controller replicates the user-provided Envoy container securityContext onto the shutdown-manager. When that securityContext sets readOnlyRootFilesystem: true, the shutdown-manager can no longer create the file, the Envoy preStop hook never gets a 200, the kubelet logs FailedPreStopHook, and both containers are SIGKILLed after the full grace period, making every proxy pod deletion take the full terminationGracePeriodSeconds instead of the drain duration. Mount a dedicated writable emptyDir at /tmp on the shutdown-manager (same approach as the writable wasm-cache emptyDir added for the control plane in #9069). The user's securityContext replication is preserved (custom runAsUser, capabilities, readOnlyRootFilesystem: true all keep working), so hardened deployments no longer break graceful shutdown. Fixes #10119 Signed-off-by: Clement Phu <clement.phu@hotmail.fr> * fix(shutdown-manager): clear stale shutdown ready marker at startup An emptyDir volume persists across container restarts within the same pod, so a /tmp/shutdown-ready marker created by a previous drain could short-circuit the next drain sequence. Remove the marker when the shutdown manager starts. Signed-off-by: Clement Phu <clement.phu@hotmail.fr> * fix(infrastructure): combine volume appends to satisfy gocritic Address the appendCombine lint failure reported by CI. Signed-off-by: Clement Phu <clement.phu@hotmail.fr> --------- Signed-off-by: Clement Phu <clement.phu@hotmail.fr> Signed-off-by: zirain <zirain2009@gmail.com> * fix(message): release discarded coalesced updates (#10144) * [envoy-gateway] Release discarded coalesced snapshots [ci changed_files] Signed-off-by: Cooper Gamble <cooper@openai.com> * [envoy-gateway] Note coalesced update retention fix [ci changed_files] Signed-off-by: Cooper Gamble <cooper@openai.com> --------- Signed-off-by: Cooper Gamble <cooper@openai.com> Signed-off-by: zirain <zirain2009@gmail.com> * fix(translator): use own route config name for TLS listeners sharing port with HTTP (#10171) * fix(translator): use own route config name for TLS listeners sharing a port with HTTP When an HTTP listener shares a container port with HTTPS listeners and is translated first, HTTPS virtual hosts ended up in its RouteConfiguration while their own filter chains referenced route configs that never existed. Default filter chain lookup only applies to plain HTTP listeners. Fixes #10170 Signed-off-by: stillya <st.ilya.101@gmail.com> * docs: add release note for #10171 Signed-off-by: stillya <st.ilya.101@gmail.com> --------- Signed-off-by: stillya <st.ilya.101@gmail.com> Signed-off-by: zirain <zirain2009@gmail.com> * fix: handle EndpointSlices labelled with both a Service and a ServiceImport (#10192) * fix: handle EndpointSlices labelled with both a Service and a ServiceImport Fixes #10191 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Signed-off-by: Seiji Chew <seiji@exa.ai> * release-notes: use PR number for MCS EndpointSlice fix Signed-off-by: Seiji Chew <seiji@exa.ai> --------- Signed-off-by: Seiji Chew <seiji@exa.ai> Co-authored-by: Seiji Chew <seiji@exa.ai> Signed-off-by: zirain <zirain2009@gmail.com> * fix(translator): stop seeding api_key_auth from the first keyed route (#10190) * fix(translator): stop seeding api_key_auth from the first keyed route The listener-level api_key_auth filter is emitted disabled and switched on per route through typed_per_filter_config, but it was built from the first route on the listener that uses API key authentication. That publishes one route's credentials in the listener, so adding or rotating a key on that route rewrites the listener. Envoy then replaces the filter chain and drains the superseded one, terminating long-lived requests on every route of the listener. The same change on any other route is a route-only update that costs nothing, so which route pays is an artifact of ordering. Build the listener-level filter from an empty config instead. The per route configs are unchanged. Signed-off-by: John Lybeck <john.lybeck@amd.com> * docs: add release note for the api_key_auth listener fix Signed-off-by: John Lybeck <john.lybeck@amd.com> * docs: reword the api_key_auth release note per review Signed-off-by: John Lybeck <john.lybeck@amd.com> --------- Signed-off-by: John Lybeck <john.lybeck@amd.com> Signed-off-by: zirain <zirain2009@gmail.com> * chore: bump golang.org/x/net to v0.60.0 (#10254) Fixes CVE-2026-97032, CVE-2026-78659, CVE-2026-78660, CVE-2026-78663 and CVE-2026-78669. Signed-off-by: Hariharan Subramanian <hsubramanian@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c55c776d-397b-4a82-a279-d91e0e21e10d Signed-off-by: zirain <zirain2009@gmail.com> * fix: route status condition order (#10183) * fix(status): report route status conditions in a deterministic order Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> * add release note Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> --------- Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> Signed-off-by: zirain <zirain2009@gmail.com> * fix(provider): index HTTPRouteFilters referenced only from backendRef filters (#10246) * fix(provider): index HTTPRouteFilters referenced only from backendRef filters Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> * renumber release note Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> --------- Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> Signed-off-by: zirain <zirain2009@gmail.com> * fix: record a BackendTrafficPolicy on a TCP or UDP route once (#10289) A policy with mergeType is applied once per listener of each parentRef, and a parentRef with a sectionName can name a listener another parentRef already covers. The feature fields are only set when nil, but the policy metadata was appended on every pass, so a TCP, TLS or UDP route attached to the same Gateway twice carried the policy twice. The append now skips a policy the route already records. Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io> Signed-off-by: zirain <zirain2009@gmail.com> * fix(status): match route parent status by parentRef and controllerName (#10327) * fix(status): match route parent status by parentRef and controllerName mergeRouteParentStatus matched old and new RouteParentStatus entries by parentRef only. When another controller had written its own entry for the same parentRef, that entry was replaced by our status, so the route ended up with two entries of ours. The other controller then re-added its entry, and every following merge added one more duplicate until status.parents reached its maxItems of 32 and all further status writes to the route were rejected. Match entries by parentRef and controllerName, and append each new entry only once so existing duplicates are collapsed on the next update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Freem <freemanovec@protonmail.com> * Add release note for route parent status fix Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Freem <freemanovec@protonmail.com> --------- Signed-off-by: Freem <freemanovec@protonmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zirain <zirain2009@gmail.com> * fix: make namespace watch cache ByObject entries deterministic (#10302) * fix: make namespace watch cache ByObject entries deterministic ByObject is keyed by object pointer, so the WatchesNamespaces() block added a second entry for types already registered (Secret, ConfigMap, Service, EndpointSlice, ServiceAccount, Deployment) and the cache kept one at random. Replace the existing entry for the type instead, and grant EndpointSlice read in the controller namespace for Gateway Namespace Mode with watch namespaces. Fixes #10271 Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com> * test: regenerate helm golden for gateway-namespace-config-watch Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com> --------- Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com> Signed-off-by: zirain <zirain2009@gmail.com> * fix(helm): grant controller namespace Secret/EndpointSlice read with watch.namespaces (#10377) Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> Signed-off-by: zirain <zirain2009@gmail.com> * fix lint Signed-off-by: zirain <zirain2009@gmail.com> * fix gen Signed-off-by: zirain <zirain2009@gmail.com> * fix: deterministic parentRef order (#10393) Signed-off-by: zirain <zirain2009@gmail.com> --------- Signed-off-by: Clement Phu <clement.phu@hotmail.fr> Signed-off-by: zirain <zirain2009@gmail.com> Signed-off-by: Cooper Gamble <cooper@openai.com> Signed-off-by: stillya <st.ilya.101@gmail.com> Signed-off-by: Seiji Chew <seiji@exa.ai> Signed-off-by: John Lybeck <john.lybeck@amd.com> Signed-off-by: Hariharan Subramanian <hsubramanian@microsoft.com> Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com> Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io> Signed-off-by: Freem <freemanovec@protonmail.com> Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com> Co-authored-by: Clement Phu <34369901+cleman95@users.noreply.github.com> Co-authored-by: cooper-oai <cooper@openai.com> Co-authored-by: Starchenko Ilya <st.ilya.101@gmail.com> Co-authored-by: Seiji Chew <67301797+schew2381@users.noreply.github.com> Co-authored-by: Seiji Chew <seiji@exa.ai> Co-authored-by: Lybeck <john.lybeck@amd.com> Co-authored-by: Hariharan Subramanian <105889062+hsubramanianaks@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Kota Kimura <86363983+kkk777-7@users.noreply.github.com> Co-authored-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> Co-authored-by: Freem <freemanovec@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Manish <69393822+manish-9245@users.noreply.github.com> Copilot-Session: c55c776d-397b-4a82-a279-d91e0e21e10d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
coalesceUpdatescompacts the latest update for each key into the end of its input slice. The returned slice keeps the entire backing array alive, including discarded entries before its start. Those entries can retain obsolete resource snapshots while the retained updates are processed.Clear the discarded prefix before returning. Update selection, ordering, and ownership do not change. This is a memory-retention fix, not a CPU optimization.
Validation
go test -race -p 4 ./internal/message -count=10passes.golangci-lintpasses for./internal/message.Benchmarks
Compared with upstream
f1f4888691b3c4faeee3d2f8e023750481a3da5d, using identical benchmark source and separate non-race test binaries. Linux/amd64, AMD EPYC-Milan, Go 1.27.1,GOMAXPROCS=4. Eight independent process pairs, alternating baseline/candidate order, 500 ms per case; medians and significance frombenchstat.Bytes and allocations per operation are unchanged in every case. Clearing adds a small CPU cost when entries are discarded; these microbenchmarks do not measure retained heap or end-to-end propagation time.
Run
go test ./internal/message -run '^$' -bench '^BenchmarkCoalesceUpdates$' -benchmem -benchtime=500mson each variant to reproduce a sample. Apply only the test changes to the baseline and alternate runs before comparing withbenchstat.No public API, generated code, or user-facing configuration changes. AI-assisted contribution; no automated reviewer requests were made.