Skip to content

chore(proxy): the Envoy pin moves to 1.40.0-dev.20261009.189f198 and the two carried patches it contains are dropped (#980) - #1643

Merged
bpalermo merged 1 commit into
mainfrom
deps/envoy-pin-189f198
Oct 10, 2026
Merged

bpalermo merged 1 commit into
mainfrom
deps/envoy-pin-189f198

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Refs #980. Two of the carried Envoy patches are dropped; seven stay (list below), so the issue stays open.

Written by an agent (Claude Code).

The pin

current new
envoy, envoy_api (proxy/MODULE.bazel) 1.40.0-dev.20260926.726d7ac.envoy 1.40.0-dev.20261009.189f198.envoy
envoyproxy/bazel-registry commit (proxy/.bazelrc) 263a259ec7498fe90ad0308edd3592992243560e 5db29c09de17218d24f58c665be38208284754d8
Envoy source commit (the snapshot's source.json) 726d7acb73934085cbbccc83ea47fdd78b583d7e 189f1988cff19241b038d0075e8ba29ba7eb0984
rules_python 2.2.0 2.3.3 (what the envoy module requests; MVS selected it anyway)
.envoy siblings (protobuf, proxy-wasm-cpp-host, rules_rust, toolchains_llvm) unchanged, all requested by the new envoy module at the same versions

Moved with scripts/bump-envoy-pin.sh --write latest. The registry commit is the registry's main HEAD, the commit that added the snapshot; a walk of every bazel_dep from modules/envoy and modules/envoy_api at that commit finds a directory for every .envoy-suffixed version (68 modules, no miss). 221 upstream commits lie between the two Envoy commits.

Carried patches

Evidence is from the Envoy history (git merge-base --is-ancestor <merge> 189f198) and from applying each patch, in MODULE.bazel order, to the 189f198 tree.

patch upstream in 189f198? action
47743-udp-hot-restart-forwarding-netns envoyproxy/envoy#47743, merged as a644fc670e (2026-09-30), an ancestor of 189f198 yes: all 9 files of the patch reverse-apply cleanly dropped
aether1022-exec-in-netns-thread-self envoyproxy/envoy#47776, merged as 7d6ca3273c (2026-09-30), an ancestor yes: utility.h opens /proc/thread-self/ns/net. Not byte-identical: the carried patch also fell back to /proc/self/task/<tid>/ns/net on kernels older than 3.17 and carried a per-thread model test dropped, with its two test targets
47740-quic-hostname-check-explicit-san envoyproxy/envoy#47740, open no (no commit in range; applies forward) kept; same content, hunk positions refreshed
aether1050-hotrestart-nonblocking-forward envoyproxy/envoy#47834, open no refreshed from the pull request's diff at 72408727eb (docs and changelog dropped). Against the carried source the only difference is three counters, server.hot_restart_udp_forwarding_{datagrams,retries,dropped}; the test hunks no longer bring the 47743 test changes
aether1054-hotrestart-terminate-wait-h3-goaway not proposed no kept, rebased over envoyproxy/envoy#47991 (see below)
aether1054b-quic-time-wait-before-forward not proposed no kept; same content, hunk positions refreshed
aether1054c-paused-udp-listener-no-read envoyproxy/envoy#47868, open no kept, file untouched
aether1074-quic-persistent-info-lifetime envoyproxy/envoy#47893, open no kept, file untouched
aether1126-forwarded-udp-worker-index not reported no kept; same content, hunk positions refreshed

Arriving with the snapshot without ever being carried: envoyproxy/envoy#47492 (9018c8cee8, a hot-restart successor inherits its listen sockets before entering the network namespace) and #47737 (3e87b117bf).

envoyproxy/envoy#47740 is not upstream, so the SPIRE dnsNameTemplates prerequisite text is unchanged (the issue's step 2).

The one real rebase: aether1054 and upstream's proactive drain

envoyproxy/envoy#47991 (2026-10-05, in the snapshot) rewrote ConnectionManagerImpl::onDrain(): the connection manager now drains connections that sent no response on its own, at a random point in [2/3 * drain time, drain time - drain timeout]. That overlaps the second half of the carried patch (idle HTTP/3 connections start their own drain sequence inside the drain window), but does not replace it: Network::proactiveDrainDelay() returns zero when the window is empty, and at the chart's proxy.hotRestart.drainTime: 10s with the default 5s drain timeout it is (6.67s >= 5s). So the carried behaviour is kept exactly as it was, moved into armIdleHttp3DrainTimer() and armed after upstream's timer; whichever fires first starts the drain sequence.

In the patch's test hunks: upstream's seven ProactiveDrain* / ResponseDrainKeepsUpgradedStreamHttp2 / NoProactiveDrainForConnectionAcceptedLate cases notify the drain before the connection has a codec, where the carried timer is armed too, so they set envoy.reloadable_features.http3_drain_idle_connections to false (they are about the proactive timer alone); the carried Http3IdleConnectionDrainsInsideGradualDrainWindow now asserts both timers and that the proactive one finds the connection draining. Seen red first: without the guard, six of those upstream cases failed on an unexpected createTimer_ call.

Whether that second half can be retired in favour of upstream's mechanism (it would need a longer drain time) is a decision for a maintainer, not for a pin bump.

proxy/.bazelrc against upstream's

envoyproxy/envoy#47806 ("bazel/rc: Rationalize flags") removed --config=clang from Envoy's own .bazelrc.

  • Removed here, because they no longer exist upstream: common:libc++ --@envoy//bazel:libc++=true and common:libc++ --define force_libcpp=enabled (the standard library is derived from the compiler now).
  • Kept although upstream's root file dropped them (all still valid; this is what both RBE legs have been built with): the clang / clang-common / libc++ configs and --host_platform=@clang_platform, the Java 11 lines and --extra_toolchains=@envoy//bazel:envoy_java_toolchain_definition (the filter-cc template still sets them), -std=c++20 (the toolchain's default since before this pin), --define envoy_mobile_listener=enabled, -fsized-deallocation, prefer_prebuilt_protoc (the template and upstream's bazel/tests/external still set it).
  • Not adopted: upstream's new per-module warning suppressions (--per_file_copt=external/<module>…), and --incompatible_default_to_explicit_init_py, which upstream has long set and this workspace never did. rules_python 2.3.3 now prints a deprecation warning about it for one Envoy tool target.

Upstream changes between the two commits that touch what aether uses

change what it means here covered by
#47743, #47776, #47492: netns hot restart is native the two patches go; a successor keeps a listener whose netns path vanished hot_restarting_{child,parent}_test (carried targets, which now also run upstream's own cases). Not covered by a test here: the kind check the issue asks for (delete a pod's netns pin, hot-restart, successor keeps the listener)
#47991: proactive drain; the gradual drain ramp now reaches probability one at half the drain time at drainTime: 10s every response on a draining connection carries the drain decision from 5s on (was a ramp over the full 10s); idle connections of other protocols are not drained proactively at these timings conn_manager_impl_test (carried target). Not covered: the effect on a live hot restart
#46216: an on-demand xDS resource requested after the first subscription could be dropped (ODCDS for a second cluster) on-demand quic: twins and on-demand capture clusters //agent/test/mtlspool (TestOnDemandQUIC*), run here against the built proxy
#47732: the tcp_proxy_odcds_over_ads_fix guard is gone aether does not set it; tcp_proxy on-demand CDS over ADS has no dedicated test here not covered
#47664: HTTP filters get the http.<prefix>. scope instead of a prefix string (names and tags stated unchanged; guard use_stats_prefix_scope_for_http_filter) aether_stats creates its stats in context.scope() and ignores the prefix aether_stats_test, aether_stats_integration_test, tag_extraction_test; //agent/test/envoy_validate stats cases against the built proxy. Not covered: a /stats diff of a running proxy
#47627: udp_proxy upstream sockets honour upstream_bind_config the capture UDP path TestCaptureUDP* validate the config only; no UDP data-path test here
#47394: histograms are cleared during shutdown stats merging across a hot restart not covered
#47511: trusted_ca is always treated as a set of certificates SDS-served trust bundles //agent/test/mtlspool handshakes against the built proxy
#47472: HTTP/3 GOAWAY load-shed points are evaluated at stream creation, not per packet not configured by aether -
#47907: BoringSSL 0.20260929.0 (CVE-2026-35189); CVE-2026-73546 (stat names sanitized in the admin HTML) picked up -
quiche 0.0.0-261006-9e60ac2.envoy now (the lockfile); the only QUIC source changes in Envoy are #47743 and #47472 //agent/test/mtlspool QUIC cases against the built proxy
extensions 349 upstream - 34 dropped = 315 compiled in (was 345 - 32 = 313). New and compiled in: envoy.http.ai_filters.schema_validation, envoy.http.ai_filters.transcoder. New and dropped by the existing dynamic_module rule: two more bazel test //... links //:envoy

Runtime guards aether sets (hot_restart_propagate_stat_tags, quic_hostname_check_deferred_to_explicit_san_match) both still exist.

What ran (amd64, the compile on RBE with the release config)

In proxy/:

  • bazel mod graph --depth=1 --lockfile_mode=update; bazel mod show_repo --base_module=envoy @envoy_build_config prints the local bazel/build_config; bazel mod explain quiche protobuf abseil-cpp. The lockfile is unchanged after the builds below.
  • bazel test //bazel/patches:carried_patch_tests: 6 of 6 pass (conn_manager_impl_test, udp_listener_impl_test, hot_restart_impl_test, hot_restarting_{base,child,parent}_test).
  • bazel test //...: 12 of 12 pass (those six, //:image_test, //integration:{build_id,symtab}_test, the three aether_stats tests). This is the full Envoy build.
  • bazel aquery 'mnemonic("CppLink", //:envoy)': the last --build-id on the link line is sha1.

In the root workspace:

  • agent/test/envoy_validate/validate-built-proxy.sh <built envoy> (the gate proxy.yml runs): pass.
  • //agent/test/... (envoyargs, envoy_validate, mtlspool) with the same override, so against the built proxy: 3 of 3 pass. Not a CI gate; it is the earliest look at what the chart pin PR will run.
  • //agent/test/... unmodified, against the chart-pinned released proxy: 3 of 3 pass (served from cache: nothing they depend on changes here).
  • scripts/check-envoy-pin.sh --online, --self-test (27/27), scripts/check-envoy-api-parity.sh (bindings v1.39, proxy 1.40-dev: aligned), scripts/lint-proxy.sh, scripts/check-registry-config.sh, make format-check.

Not run: the arm64 leg (it needs an arm64 driver; proxy.yml runs it), the three patch tests that only build in the Envoy workspace (envoy_quic_dispatcher_test, http3 conn_pool_test, the quic_http_integration_test case; unchanged content), any kind or cluster run.

The root workspace does not move here

//agent/test/envoybin takes the Envoy it runs from the published proxy image at the digest charts/aether/values.yaml pins (//bazel/proxy_pin), so nothing in the root workspace is re-pinned in this pull request (proxy/README.md, "Envoy version bumps"). No chart file changes, so no chart version bump.

What merging does

proxy-release.yml builds and pushes the proxy image for both arches, tagged with the merge commit, and opens the chart pin pull request that moves proxy.image in charts/aether/values.yaml. Only that second pull request changes what a cluster runs and what the root tests run against. An operator on the new image sees: labels dev.aethermesh.envoy.revision=189f198 and the new registry commit; three new counters server.hot_restart_udp_forwarding_*; the earlier drain ramp described above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…the two carried patches it contains are dropped (#980)

The pin is one fact in three places and moves as one: envoy and envoy_api
(proxy/MODULE.bazel) and the envoyproxy/bazel-registry commit
(proxy/.bazelrc, 5db29c09de17218d24f58c665be38208284754d8), written by
scripts/bump-envoy-pin.sh. rules_python follows what the envoy module
requests (2.2.0 -> 2.3.3). The lockfile is refreshed.

Dropped, because Envoy 189f198 contains them:
- envoy-47743-udp-hot-restart-forwarding-netns (envoyproxy/envoy#47743,
  a644fc670e): the carried hunks reverse-apply cleanly to the snapshot.
- envoy-aether1022-exec-in-netns-thread-self (envoyproxy/envoy#47776,
  7d6ca3273c): the snapshot opens /proc/thread-self/ns/net. The carried
  fallback for kernels older than 3.17 and its per-thread model test go with
  it.

Kept, in the same order:
- 47740 (still open upstream): unchanged content, hunk positions refreshed.
- aether1050: replaced by the diff of its upstream pull request,
  envoyproxy/envoy#47834 at 72408727eb, docs and changelog dropped. Same
  source as before plus three counters,
  server.hot_restart_udp_forwarding_{datagrams,retries,dropped}; the test
  hunks no longer carry the 47743 test changes.
- aether1054: rebased over envoyproxy/envoy#47991, which rewrote
  ConnectionManagerImpl::onDrain() to drain idle connections proactively in
  the last third of the drain time. That arms nothing when the drain time
  leaves no room after the drain timeout (the chart's 10s with the default
  5s), so the carried idle HTTP/3 drain stays, armed beside it from
  armIdleHttp3DrainTimer(). Upstream's ProactiveDrain* tests notify the drain
  before a codec exists and turn the carried timer off; the carried gradual
  case now asserts both timers.
- aether1054b, aether1054c, aether1074, aether1126: unchanged content.

proxy/.bazelrc: envoyproxy/envoy#47806 removed the --@envoy//bazel:libc++
flag and the force_libcpp define, so both leave the libc++ config; nothing
else upstream removed from its own .bazelrc is required to go, and the rest
is kept as built before.

Refs #980

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 7ae3208 into main Oct 10, 2026
31 checks passed
@bpalermo
bpalermo deleted the deps/envoy-pin-189f198 branch October 10, 2026 14:21
bpalermo added a commit that referenced this pull request Oct 10, 2026
…cts in the runbook, AGENTS.md, CLAUDE.md, README and the configuration reference are corrected (#1653)

Proposal statuses (the website's proposals index is generated from them):
- 042: Implemented; the harness is maintained outside this repository. The
  three passages that left the soak's mesh_dns timeouts "under investigation"
  now state the outcome (CPU saturation on one node, #1320).
- 036: Implemented; phase 1 is the only phase in this repository. Phases 0, 2
  and 3 are platform configuration.
- 037: Implemented for Phases 0-3, Phase 4 pending (the any-port shim is still
  emitted); one Phase 3 item that was not built is named.
- 040: the status line is re-wrapped so the index no longer cuts it at a
  continuation line that began with '#'.

Doc drift:
- runbook: the aether1022 Envoy patch is no longer carried (#1643); the
  inbound-readiness WARN sample shows the fields and the cluster name the
  agent logs since #1634; the agent-roll section no longer says a caller
  retries "a 503" (#1641).
- AGENTS.md, configuration reference: no literal module count for the
  proxy-supervisor; AGENTS.md gains uds-csi, agent-ready and the two missing
  proto packages.
- CLAUDE.md, README: load-all and push-all cover six images, uds-csi included.
- devcontainer comment: DynamoDB Local left in #760.


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

1 participant