Skip to content

test/bazel: Replace the RBE pool pins with measured per-configuration ones - #49078

Merged
phlax merged 4 commits into
envoyproxy:mainfrom
phlax:rbe-pool-drop-unneeded
Nov 10, 2026
Merged

phlax merged 4 commits into
envoyproxy:mainfrom
phlax:rbe-pool-drop-unneeded

Conversation

@phlax

@phlax phlax commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Commit Message: test/bazel: Replace the RBE pool pins with measured per-configuration ones
Additional Description:

Pins use the per-configuration build/test rbe_pool spec from #49081.

Data: every compile, link and test action of //test/... run once on the large pool with pins neutralised, per configuration (opt, asan, tsan, msan at CI scope, gcc), peak RSS from the EngFlow traces (envoy-ci-staging, 2026-11-10; the 2026-11-08 survey agrees within noise). Each pin is the smallest pool clearing the target's peak with 10% headroom for compiles/links and 20% for tests, spelled out only for the configurations and actions that need it.

Findings:

  • Tests fit the default pool except under msan (34 targets, 5 needing large) and a few under asan/tsan.
  • Compiles are what the old pins were really covering: ~750 test targets compile over 3GiB under clang, ~1400 under gcc (76 over 7GiB); the tsan/gcc links of the largest binaries run 9-12GB.
  • 166 targets exceed their current pool with no headroom and are killed and re-run by EngFlow on every rebuild; 476 pins cover nothing.

Result: 476 pins removed, 1183 changed (mostly plain pool name, which also put the test on the highmem pool, to a build-only pin), 142 added; 6 on source/ libraries and binaries. The loop-defined codec fuzz tests in test/common/http are pinned by hand.

Kept on their current pool regardless of the data: the integration tests #36784 moved back to a multi-core pool because they flake on a single core (cds, direct_response, http2_flood, idle_timeout, tcp_async_client, tcp_tunneling, xds, conn_manager_impl_test); memory peaks cannot see that.

Not measured: coverage (inherits each pin's default entry), compile_time_options, //contrib/....

Acceptance: CI traces show every action's used pool equal to its requested pool and no exit 137.

Risk Level: low (remote action scheduling only)
Testing: CI; measurement runs in envoy-ci-staging
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

AI assisted (measurement, generation and drafting), reviewed by me.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The reduced remote-test memory limits need maintainer validation in remote CI because supporting EngFlow traces and worker limits are unavailable and the measurements omit MSAN coverage.

No open issues 🎉

What changed in this PR

Removes explicit RBE pool pins from measured Envoy test targets so they use the default remote-execution pool. The changes affect test scheduling, not Envoy runtime behavior.

Changes:

  • Drops selected linux_x64_small, linux_x64_medium, linux_x64_large, and 6gig overrides based on reported peak-memory measurements.
  • Preserves test sources, dependencies, tags, sizes, and sharding.
  • Retains pins for higher-memory and unmeasured targets.

Review was static; tests and formatting checks were not run.

File Description
test/​tools/​type_whisperer/​BUILD Unpins API type database test.
test/​tools/​schema_validator/​test/​BUILD Unpins schema validator test.
test/​tools/​router_check/​test/​BUILD Unpins router checker tests.
test/​mocks/​http/​BUILD Unpins HTTP mocks test.
test/​integration/​admin_html/​BUILD Unpins admin HTML shell test.
test/​fuzz/​BUILD Unpins random utility test.
test/​extensions/​watchdog/​profile_action/​BUILD Unpins profiling action tests.
test/​extensions/​watchdog/​backtrace_action/​BUILD Unpins backtrace action tests.
test/​extensions/​upstreams/​tcp/​generic/​BUILD Unpins generic TCP configuration test.
test/​extensions/​upstreams/​http/​udp/​BUILD Unpins UDP upstream tests.
test/​extensions/​upstreams/​http/​tcp/​BUILD Unpins TCP upstream request test.
test/​extensions/​upstreams/​http/​reverse_tunnel/​BUILD Unpins reverse-tunnel configuration test.
test/​extensions/​upstreams/​http/​generic/​BUILD Unpins generic HTTP configuration test.
test/​extensions/​upstreams/​http/​dynamic_modules/​BUILD Unpins dynamic upstream tests.
test/​extensions/​upstreams/​http/​BUILD Unpins HTTP upstream configuration test.
test/​extensions/​udp_packet_writer/​gso/​BUILD Unpins GSO writer configuration test.
test/​extensions/​udp_packet_writer/​default/​BUILD Unpins default writer configuration test.
test/​extensions/​transport_sockets/​tls/​handshakers/​dynamic_modules/​BUILD Unpins dynamic TLS handshaker tests.
test/​extensions/​transport_sockets/​tls/​cert_validator/​spiffe/​BUILD Unpins SPIFFE validator tests.
test/​extensions/​transport_sockets/​tls/​cert_validator/​dynamic_modules/​BUILD Unpins dynamic certificate validator test.
test/​extensions/​transport_sockets/​tls/​cert_selectors/​on_demand/​BUILD Unpins on-demand certificate selector test.
test/​extensions/​transport_sockets/​tls/​cert_selectors/​dynamic_modules/​BUILD Unpins dynamic certificate selector tests.
test/​extensions/​transport_sockets/​tcp_stats/​BUILD Unpins TCP statistics tests.
test/​extensions/​transport_sockets/​tap/​BUILD Unpins transport tap tests.
test/​extensions/​transport_sockets/​starttls/​BUILD Unpins STARTTLS tests.
test/​extensions/​transport_sockets/​proxy_protocol/​BUILD Unpins upstream PROXY protocol tests.
test/​extensions/​transport_sockets/​internal_upstream/​BUILD Unpins internal upstream tests.
test/​extensions/​transport_sockets/​http_11_proxy/​BUILD Unpins HTTP proxy connection tests.
test/​extensions/​transport_sockets/​dynamic_modules/​BUILD Unpins dynamic transport socket tests.
test/​extensions/​transport_sockets/​common/​BUILD Unpins passthrough socket test.
test/​extensions/​tracers/​zipkin/​BUILD Unpins Zipkin tracer tests.
test/​extensions/​tracers/​xray/​BUILD Unpins X-Ray tests and fuzzer.
test/​extensions/​tracers/​opentelemetry/​samplers/​parent_based/​BUILD Unpins parent-based sampler tests.
test/​extensions/​tracers/​opentelemetry/​samplers/​dynatrace/​BUILD Unpins Dynatrace sampler tests.
test/​extensions/​tracers/​opentelemetry/​samplers/​cel/​BUILD Unpins CEL sampler tests.
test/​extensions/​tracers/​opentelemetry/​samplers/​BUILD Unpins OpenTelemetry sampler test.
test/​extensions/​tracers/​opentelemetry/​resource_detectors/​static/​BUILD Unpins static resource detector tests.
test/​extensions/​tracers/​opentelemetry/​resource_detectors/​environment/​BUILD Unpins environment resource detector tests.
test/​extensions/​tracers/​opentelemetry/​resource_detectors/​BUILD Unpins resource provider test.
test/​extensions/​tracers/​fluentd/​BUILD Unpins Fluentd tracer tests.
test/​extensions/​tracers/​datadog/​BUILD Unpins Datadog tracer tests.
test/​extensions/​string_matcher/​lua/​BUILD Unpins Lua string matcher tests.
test/​extensions/​stats_sinks/​wasm/​BUILD Unpins Wasm statistics sink tests.
test/​extensions/​stats_sinks/​statsd/​BUILD Unpins StatsD configuration test.
test/​extensions/​stats_sinks/​open_telemetry/​BUILD Unpins OpenTelemetry sink integration test.
test/​extensions/​stats_sinks/​metrics_service/​BUILD Unpins metrics service tests.
test/​extensions/​stats_sinks/​hystrix/​BUILD Unpins Hystrix sink tests.
test/​extensions/​stats_sinks/​graphite_statsd/​BUILD Unpins Graphite StatsD configuration test.
test/​extensions/​stats_sinks/​dog_statsd/​BUILD Unpins DogStatsD configuration test.
test/​extensions/​stats_sinks/​common/​statsd/​BUILD Unpins shared StatsD tests.
test/​extensions/​router/​route_specifiers/​dynamic_modules/​BUILD Unpins dynamic route specifier tests.
test/​extensions/​router/​cluster_specifiers/​priority_group/​BUILD Unpins priority-group specifier tests.
test/​extensions/​router/​cluster_specifiers/​matcher/​BUILD Unpins matcher cluster specifier tests.
test/​extensions/​router/​cluster_specifiers/​lua/​BUILD Unpins Lua cluster specifier tests.
test/​extensions/​router/​cluster_specifiers/​dynamic_modules/​BUILD Unpins dynamic cluster specifier tests.
test/​extensions/​retry/​priority/​previous_priorities/​BUILD Unpins previous-priorities configuration test.
test/​extensions/​retry/​host/​previous_hosts/​BUILD Unpins previous-hosts retry tests.
test/​extensions/​retry/​host/​omit_host_metadata/​BUILD Unpins metadata retry predicate test.
test/​extensions/​retry/​host/​omit_canary_hosts/​BUILD Unpins canary retry predicate test.
test/​extensions/​resource_monitors/​injected_resource/​BUILD Unpins injected resource monitor tests.
test/​extensions/​resource_monitors/​fixed_heap/​BUILD Unpins fixed-heap monitor tests.
test/​extensions/​resource_monitors/​downstream_connections/​BUILD Unpins downstream connection monitor tests.
test/​extensions/​request_id/​uuid/​BUILD Unpins UUID configuration test.
test/​extensions/​rate_limit_descriptors/​jwt_claim/​BUILD Unpins JWT descriptor configuration test.
test/​extensions/​rate_limit_descriptors/​expr/​BUILD Unpins expression descriptor test.
test/​extensions/​quic/​server_preferred_address/​BUILD Unpins preferred-address tests.
test/​extensions/​quic/​connection_id_generator/​quic_lb/​BUILD Unpins QUIC-LB tests.
test/​extensions/​quic/​connection_debug_visitor/​quic_stats/​BUILD Unpins QUIC statistics integration test.
test/​extensions/​path/​uri_template_lib/​BUILD Unpins URI template tests and fuzzer.
test/​extensions/​path/​rewrite/​uri_template/​BUILD Unpins URI template rewrite tests.
test/​extensions/​path/​match/​uri_template/​BUILD Unpins URI template path matcher tests.
test/​extensions/​network/​socket_interface/​sockmap/​BUILD Unpins sockmap integration test.
test/​extensions/​network/​dns_resolver/​hickory/​BUILD Unpins Hickory resolver tests.
test/​extensions/​network/​dns_resolver/​getaddrinfo/​BUILD Unpins getaddrinfo resolver test.
test/​extensions/​network/​dns_resolver/​cares/​BUILD Unpins c-ares resolver test.
test/​extensions/​network/​dns_resolver/​apple/​BUILD Unpins Apple resolver test.
test/​extensions/​matching/​network/​common/​BUILD Unpins network matching input tests.
test/​extensions/​matching/​input_matchers/​uri_template/​BUILD Unpins URI template input matcher tests.
test/​extensions/​matching/​input_matchers/​runtime_fraction/​BUILD Unpins runtime fraction matcher tests.
test/​extensions/​matching/​input_matchers/​metadata/​BUILD Unpins dynamic metadata matcher test.
test/​extensions/​matching/​input_matchers/​ip/​BUILD Unpins IP matcher tests.
test/​extensions/​matching/​input_matchers/​consistent_hashing/​BUILD Unpins consistent hashing matcher tests.
test/​extensions/​matching/​input_matchers/​cel_matcher/​BUILD Unpins CEL matcher test.
test/​extensions/​matching/​common_inputs/​environment_variable/​BUILD Unpins environment variable input tests.
test/​extensions/​matching/​actions/​format_string/​BUILD Unpins format-string action test.
test/​extensions/​load_balancing_policies/​wrr_locality/​BUILD Unpins WRR locality tests.
test/​extensions/​load_balancing_policies/​subset/​BUILD Unpins subset load balancing tests.
test/​extensions/​load_balancing_policies/​ring_hash/​BUILD Unpins ring-hash load balancing tests.
test/​extensions/​load_balancing_policies/​override_host/​BUILD Unpins override-host configuration test.
test/​extensions/​load_balancing_policies/​load_aware_locality/​BUILD Unpins load-aware locality tests.
test/​extensions/​load_balancing_policies/​host_allowlist/​BUILD Unpins host allowlist tests.
test/​extensions/​load_balancing_policies/​dynamic_modules/​BUILD Unpins dynamic load balancing test.
test/​extensions/​load_balancing_policies/​common/​BUILD Unpins shared load balancing tests.
test/​extensions/​load_balancing_policies/​cluster_provided/​BUILD Unpins cluster-provided load balancing tests.
test/​extensions/​load_balancing_policies/​client_side_weighted_round_robin/​BUILD Unpins client-side weighted round-robin tests.
test/​extensions/​key_value/​file_based/​BUILD Unpins file-backed cache and store tests.
test/​extensions/​io_socket/​user_space/​BUILD Unpins user-space socket tests.
test/​extensions/​internal_redirect/​previous_routes/​BUILD Unpins previous-route predicate test.
test/​extensions/​internal_redirect/​filter_state/​BUILD Unpins filter-state redirect predicate test.
test/​extensions/​internal_redirect/​BUILD Unpins internal redirect tests.
test/​extensions/​http/​stateful_session/​header/​BUILD Unpins header session state tests.
test/​extensions/​http/​stateful_session/​envelope/​BUILD Unpins envelope session state tests.
test/​extensions/​http/​stateful_session/​cookie/​BUILD Unpins cookie session state tests.
test/​extensions/​http/​original_ip_detection/​xff/​BUILD Unpins XFF detection tests.
test/​extensions/​http/​original_ip_detection/​custom_header/​BUILD Unpins custom-header IP detection tests.
test/​extensions/​http/​credential_injector/​oauth2/​BUILD Unpins OAuth2 credential tests.
test/​extensions/​http/​credential_injector/​generic/​BUILD Unpins generic credential integration tests.
test/​extensions/​http/​cache/​simple_http_cache/​BUILD Unpins simple HTTP cache test.
test/​extensions/​http/​cache/​file_system_http_cache/​BUILD Unpins filesystem HTTP cache tests.
test/​extensions/​http/​cache_v2/​simple_http_cache/​BUILD Unpins simple HTTP cache v2 test.
test/​extensions/​http/​cache_v2/​file_system_http_cache/​BUILD Unpins filesystem HTTP cache v2 tests.
test/​extensions/​http/​ai_filters/​transcoder/​BUILD Unpins AI transcoder tests.
test/​extensions/​http/​ai_filters/​route_selector/​BUILD Unpins AI route selector tests.
test/​extensions/​http/​ai_filters/​model_router/​BUILD Unpins AI model router tests.
test/​extensions/​http/​ai_filters/​common/​BUILD Unpins shared AI filter test.
test/​extensions/​health_checkers/​udp/​BUILD Unpins UDP health checker integration test.
test/​extensions/​health_checkers/​thrift/​BUILD Unpins Thrift health checker tests.
test/​extensions/​health_checkers/​redis/​BUILD Unpins Redis health checker tests.
test/​extensions/​health_checkers/​dynamic_modules/​BUILD Unpins dynamic health checker tests.
test/​extensions/​health_check/​event_sinks/​file/​BUILD Unpins file health event sink test.
test/​extensions/​grpc_credentials/​file_based_metadata/​BUILD Unpins file-based gRPC credentials test.
test/​extensions/​geoip_providers/​maxmind/​BUILD Unpins MaxMind provider tests.
test/​extensions/​formatter/​xfcc_value/​BUILD Unpins XFCC formatter test and fuzzer.
test/​extensions/​formatter/​req_without_query/​BUILD Unpins query-stripping formatter test.
test/​extensions/​formatter/​metadata/​BUILD Unpins metadata formatter tests.
test/​extensions/​formatter/​generic_secret/​BUILD Unpins generic secret formatter tests.
test/​extensions/​formatter/​file_content/​BUILD Unpins file-content formatter tests.
test/​extensions/​formatter/​cel/​BUILD Unpins CEL formatter test.
test/​extensions/​filters/​udp/​udp_proxy/​session_filters/​http_capsule/​BUILD Unpins HTTP capsule session filter tests.
test/​extensions/​filters/​udp/​udp_proxy/​session_filters/​ext_authz/​BUILD Unpins UDP authorization tests.
test/​extensions/​filters/​udp/​udp_proxy/​session_filters/​dynamic_forward_proxy/​BUILD Unpins UDP dynamic proxy tests.
test/​extensions/​filters/​udp/​udp_proxy/​session_filters/​BUILD Unpins UDP passthrough session filter test.
test/​extensions/​filters/​network/​zookeeper_proxy/​BUILD Unpins ZooKeeper proxy tests.
test/​extensions/​filters/​network/​wasm/​BUILD Unpins Wasm network filter tests.
test/​extensions/​filters/​network/​thrift_proxy/​filters/​ratelimit/​BUILD Unpins Thrift rate-limit tests.
test/​extensions/​filters/​network/​thrift_proxy/​filters/​payload_to_metadata/​BUILD Unpins Thrift payload metadata tests.
test/​extensions/​filters/​network/​thrift_proxy/​filters/​header_to_metadata/​BUILD Unpins Thrift header metadata tests.
test/​extensions/​filters/​network/​thrift_proxy/​filters/​BUILD Unpins Thrift passthrough filter test.
test/​extensions/​filters/​network/​tcp_proxy/​BUILD Unpins TCP proxy configuration test.
test/​extensions/​filters/​network/​tcp_bandwidth_limit/​BUILD Unpins TCP bandwidth integration test.
test/​extensions/​filters/​network/​sni_dynamic_forward_proxy/​BUILD Unpins SNI dynamic proxy tests.
test/​extensions/​filters/​network/​sni_cluster/​BUILD Unpins SNI cluster filter test.
test/​extensions/​filters/​network/​set_filter_state/​BUILD Unpins network filter-state test.
test/​extensions/​filters/​network/​reverse_tunnel/​drain_aware_hcm/​BUILD Unpins drain-aware HCM tests.
test/​extensions/​filters/​network/​reverse_tunnel/​BUILD Unpins reverse-tunnel filter tests.
test/​extensions/​filters/​network/​rbac/​BUILD Unpins network RBAC tests.
test/​extensions/​filters/​network/​ratelimit/​BUILD Unpins network rate-limit tests.
test/​extensions/​filters/​network/​local_ratelimit/​BUILD Unpins network local rate-limit tests and fuzzer.
test/​extensions/​filters/​network/​http_connection_manager/​BUILD Unpins HCM configuration tests.
test/​extensions/​filters/​network/​generic_proxy/​router/​BUILD Unpins generic proxy router tests.
test/​extensions/​filters/​network/​generic_proxy/​codecs/​http1/​BUILD Unpins generic HTTP/1 codec configuration test.
test/​extensions/​filters/​network/​generic_proxy/​codecs/​dubbo/​BUILD Unpins Dubbo codec configuration test.
test/​extensions/​filters/​network/​echo/​BUILD Unpins echo integration test.
test/​extensions/​filters/​network/​direct_response/​BUILD Unpins direct response tests.
test/​extensions/​filters/​network/​connection_limit/​BUILD Unpins connection-limit tests.
test/​extensions/​filters/​network/​common/​redis/​BUILD Unpins shared Redis network tests.
test/​extensions/​filters/​network/​common/​fuzz/​BUILD Unpins network filter fuzzers.
test/​extensions/​filters/​listener/​set_filter_state/​BUILD Unpins listener filter-state integration test.
test/​extensions/​filters/​listener/​proxy_protocol/​BUILD Unpins listener PROXY protocol tests and fuzzer.
test/​extensions/​filters/​listener/​original_dst/​BUILD Unpins original-destination tests and fuzzer.
test/​extensions/​filters/​listener/​local_ratelimit/​BUILD Unpins listener local rate-limit tests.
test/​extensions/​filters/​http/​upstream_rbac/​BUILD Unpins upstream RBAC tests.
test/​extensions/​filters/​http/​transform/​BUILD Unpins HTTP transform tests.
test/​extensions/​filters/​http/​thrift_to_metadata/​BUILD Unpins HTTP Thrift metadata tests.
test/​extensions/​filters/​http/​tap/​BUILD Unpins HTTP tap tests.
test/​extensions/​filters/​http/​stateful_session/​BUILD Unpins stateful session filter tests.
test/​extensions/​filters/​http/​set_metadata/​BUILD Unpins HTTP metadata filter tests.
test/​extensions/​filters/​http/​set_filter_state/​BUILD Unpins HTTP filter-state integration tests.
test/​extensions/​filters/​http/​router/​BUILD Unpins HTTP router tests.
test/​extensions/​filters/​http/​proto_message_extraction/​extraction_util/​BUILD Unpins protobuf extraction utility test.
test/​extensions/​filters/​http/​proto_message_extraction/​BUILD Unpins protobuf message extraction tests.
test/​extensions/​filters/​http/​proto_api_scrubber/​BUILD Unpins protobuf API scrubber tests.
test/​extensions/​filters/​http/​priority_load_shed/​BUILD Unpins priority load-shedding tests.
test/​extensions/​filters/​http/​original_src/​BUILD Unpins original-source filter tests.
test/​extensions/​filters/​http/​on_demand/​BUILD Unpins on-demand filter tests.
test/​extensions/​filters/​http/​mcp/​BUILD Unpins MCP configuration test.
test/​extensions/​filters/​http/​mcp_router/​BUILD Unpins MCP router integration test.
test/​extensions/​filters/​http/​match_delegate/​BUILD Unpins match delegate tests.
test/​extensions/​filters/​http/​lua/​BUILD Unpins selected Lua tests; retains filter test pin.
test/​extensions/​filters/​http/​local_ratelimit/​BUILD Unpins HTTP local rate-limit tests.
test/​extensions/​filters/​http/​json_to_metadata/​BUILD Unpins JSON metadata tests.
test/​extensions/​filters/​http/​ip_tagging/​BUILD Unpins IP tagging tests.
test/​extensions/​filters/​http/​health_check/​BUILD Unpins HTTP health-check tests.
test/​extensions/​filters/​http/​header_to_metadata/​BUILD Unpins header metadata tests.
test/​extensions/​filters/​http/​grpc_web/​BUILD Unpins gRPC-Web tests.
test/​extensions/​filters/​http/​grpc_stats/​BUILD Unpins gRPC statistics tests.
test/​extensions/​filters/​http/​grpc_http1_reverse_bridge/​BUILD Unpins reverse gRPC HTTP/1 bridge tests.
test/​extensions/​filters/​http/​grpc_http1_bridge/​BUILD Unpins gRPC HTTP/1 bridge tests.
test/​extensions/​filters/​http/​grpc_field_extraction/​message_converter/​BUILD Unpins gRPC message converter tests.
test/​extensions/​filters/​http/​grpc_field_extraction/​BUILD Unpins gRPC field extraction tests.
test/​extensions/​filters/​http/​geoip/​BUILD Unpins GeoIP filter tests.
test/​extensions/​filters/​http/​filter_chain/​BUILD Unpins HTTP filter-chain tests.
test/​extensions/​filters/​http/​file_system_buffer/​BUILD Unpins filesystem buffer tests.
test/​extensions/​filters/​http/​file_server/​BUILD Unpins file server tests.
test/​extensions/​filters/​http/​fault/​BUILD Unpins HTTP fault injection tests.
test/​extensions/​filters/​http/​ext_proc/​unit_test_fuzz/​BUILD Unpins external processing unit fuzzer.
test/​extensions/​filters/​http/​ext_proc/​http_client/​BUILD Unpins external processing HTTP client tests.
test/​extensions/​filters/​http/​dynamic_forward_proxy/​BUILD Unpins HTTP dynamic proxy tests.
test/​extensions/​filters/​http/​decompressor/​BUILD Unpins HTTP decompressor tests.
test/​extensions/​filters/​http/​custom_response/​BUILD Unpins custom response tests.
test/​extensions/​filters/​http/​csrf/​BUILD Unpins CSRF filter tests.
test/​extensions/​filters/​http/​credential_injector/​BUILD Unpins credential injector filter tests.
test/​extensions/​filters/​http/​cors/​BUILD Unpins CORS filter tests.
test/​extensions/​filters/​http/​compressor/​BUILD Unpins selected compressor tests.
test/​extensions/​filters/​http/​composite/​BUILD Unpins composite filter tests.
test/​extensions/​filters/​http/​common/​fuzz/​BUILD Unpins shared HTTP filter fuzzer.
test/​extensions/​filters/​http/​common/​BUILD Unpins shared HTTP filter utility tests.
test/​extensions/​filters/​http/​buffer/​BUILD Unpins HTTP buffer tests.
test/​extensions/​filters/​http/​body_size_limit/​BUILD Unpins body-size limit tests.
test/​extensions/​filters/​http/​basic_auth/​BUILD Unpins basic authentication tests.
test/​extensions/​filters/​http/​bandwidth_limit/​BUILD Unpins HTTP bandwidth filter tests.
test/​extensions/​filters/​http/​alternate_protocols_cache/​BUILD Unpins alternate protocol cache filter tests.
test/​extensions/​filters/​http/​ai_protocol_manager/​sse/​BUILD Unpins SSE event codec test.
test/​extensions/​filters/​http/​ai_protocol_manager/​schema/​BUILD Unpins AI protocol schema tests.
test/​extensions/​filters/​http/​adaptive_concurrency/​controller/​BUILD Unpins gradient controller test.
test/​extensions/​filters/​http/​adaptive_concurrency/​BUILD Unpins adaptive concurrency tests.
test/​extensions/​filters/​common/​set_filter_state/​BUILD Unpins shared filter-state configuration test.
test/​extensions/​filters/​common/​rbac/​BUILD Unpins shared RBAC tests.
test/​extensions/​filters/​common/​ratelimit/​BUILD Unpins shared rate-limit implementation test.
test/​extensions/​filters/​common/​ratelimit_config/​BUILD Unpins rate-limit configuration test.
test/​extensions/​filters/​common/​original_src/​BUILD Unpins original-source socket option test.
test/​extensions/​filters/​common/​mutation_rules/​BUILD Unpins mutation rules test.
test/​extensions/​filters/​common/​lua/​BUILD Unpins shared Lua utility tests.
test/​extensions/​filters/​common/​local_ratelimit/​BUILD Unpins shared local rate-limit test.
test/​extensions/​filters/​common/​fault/​BUILD Unpins shared fault configuration test.
test/​extensions/​filters/​common/​ext_authz/​BUILD Unpins shared authorization utility tests.
test/​extensions/​dynamic_modules/​udp/​BUILD Unpins dynamic UDP module test.
test/​extensions/​dynamic_modules/​network/​BUILD Unpins selected dynamic network module tests.
test/​extensions/​dynamic_modules/​http/​BUILD Unpins selected dynamic HTTP module tests.
test/​extensions/​dynamic_modules/​BUILD Unpins dynamic module loading test.
test/​extensions/​config/​validators/​minimum_clusters/​BUILD Unpins minimum-cluster validator tests.
test/​extensions/​config/​validators/​dynamic_modules/​BUILD Unpins dynamic configuration validator tests.
test/​extensions/​config_subscription/​rest/​BUILD Unpins REST subscription test.
test/​extensions/​config_subscription/​filesystem/​BUILD Unpins filesystem subscription test.
test/​extensions/​config_subscription/​common/​BUILD Unpins shared subscription tests.
test/​extensions/​compression/​zstd/​decompressor/​BUILD Unpins Zstd decompressor test.
test/​extensions/​compression/​zstd/​compressor/​BUILD Unpins Zstd compressor test.
test/​extensions/​compression/​gzip/​decompressor/​BUILD Unpins gzip decompressor test.
test/​extensions/​compression/​gzip/​compressor/​BUILD Unpins gzip compressor test.
test/​extensions/​compression/​gzip/​BUILD Unpins gzip compression fuzzer.
test/​extensions/​compression/​brotli/​decompressor/​BUILD Unpins Brotli decompressor test.
test/​extensions/​compression/​brotli/​compressor/​BUILD Unpins Brotli compressor test.
test/​extensions/​common/​tap/​BUILD Unpins shared tap tests.
test/​extensions/​common/​redis/​BUILD Unpins Redis refresh manager test.
test/​extensions/​common/​proxy_protocol/​BUILD Unpins shared PROXY protocol tests.
test/​extensions/​common/​matcher/​BUILD Unpins shared matcher tests.
test/​extensions/​common/​dynamic_forward_proxy/​BUILD Unpins DNS cache utility tests.
test/​extensions/​common/​async_files/​BUILD Unpins asynchronous file utility tests.
test/​extensions/​clusters/​reverse_connection/​BUILD Unpins reverse-connection cluster test.
test/​extensions/​clusters/​original_dst/​BUILD Unpins original-destination cluster test.
test/​extensions/​clusters/​mcp_multicluster/​BUILD Unpins MCP multicluster integration test.
test/​extensions/​clusters/​logical_dns/​BUILD Unpins logical DNS cluster test.
test/​extensions/​clusters/​eds/​BUILD Unpins EDS and LEDS tests.
test/​extensions/​clusters/​dynamic_modules/​BUILD Unpins selected dynamic cluster tests.
test/​extensions/​clusters/​dynamic_forward_proxy/​BUILD Unpins dynamic proxy cluster test.
test/​extensions/​clusters/​composite/​BUILD Unpins composite cluster tests.
test/​extensions/​clusters/​common/​BUILD Unpins shared DNS cluster tests.
test/​extensions/​clusters/​aggregate/​BUILD Unpins aggregate cluster tests.
test/​extensions/​bootstrap/​wasm/​BUILD Unpins Wasm bootstrap tests.
test/​extensions/​bootstrap/​reverse_tunnel/​upstream_socket_interface/​BUILD Unpins reverse-tunnel acceptor extension test.
test/​extensions/​bootstrap/​internal_listener/​BUILD Unpins internal listener tests.
test/​extensions/​access_loggers/​wasm/​BUILD Unpins Wasm access logger test.
test/​extensions/​access_loggers/​stream/​BUILD Unpins stdout and stderr logger tests.
test/​extensions/​access_loggers/​stats/​BUILD Unpins statistics logger integration test.
test/​extensions/​access_loggers/​fluentd/​BUILD Unpins Fluentd access logger tests.
test/​extensions/​access_loggers/​filters/​process_ratelimit/​BUILD Unpins process rate-limit logging tests.
test/​extensions/​access_loggers/​file/​BUILD Unpins file logger configuration test.
test/​extensions/​access_loggers/​common/​BUILD Unpins shared access logger tests.
test/​config_test/​BUILD Unpins configuration validation test.
test/​common/​websocket/​BUILD Unpins WebSocket codec test.
test/​common/​watchdog/​BUILD Unpins abort watchdog action tests.
test/​common/​tls/​ocsp/​BUILD Unpins OCSP utility tests.
test/​common/​tls/​integration/​BUILD Unpins upstream TLS integration test.
test/​common/​tls/​cert_validator/​BUILD Unpins certificate validator tests.
test/​common/​thread_local/​BUILD Unpins thread-local implementation test.
test/​common/​tcp/​BUILD Unpins TCP pool and client tests.
test/​common/​tcp_proxy/​BUILD Unpins TCP proxy unit tests.
test/​common/​ssl/​matching/​BUILD Unpins SSL matching input tests.
test/​common/​singleton/​BUILD Unpins singleton tests.
test/​common/​signal/​BUILD Unpins signal handler tests.
test/​common/​shared_pool/​BUILD Unpins shared pool test.
test/​common/​secret/​BUILD Unpins secret management tests.
test/​common/​runtime/​BUILD Unpins runtime configuration tests.
test/​common/​rds/​BUILD Unpins RDS test.
test/​common/​quic/​platform/​BUILD Unpins QUIC platform test.
test/​common/​orca/​BUILD Unpins ORCA tests and fuzzer.
test/​common/​network/​dns_resolver/​BUILD Unpins DNS factory test.
test/​common/​memory/​BUILD Unpins memory utility tests.
test/​common/​matcher/​actions/​BUILD Unpins string-returning matcher action test.
test/​common/​local_reply/​BUILD Unpins local reply test.
test/​common/​local_info/​BUILD Unpins local information test.
test/​common/​json/​wuffs_json/​BUILD Unpins Wuffs JSON cursor fuzzer.
test/​common/​io/​BUILD Unpins io_uring tests.
test/​common/​init/​BUILD Unpins initialization utility tests.
test/​common/​http/​matching/​BUILD Unpins HTTP matching input tests.
test/​common/​http/​http3/​BUILD Unpins HTTP/3 connection pool test.
test/​common/​html/​BUILD Unpins HTML utility test.
test/​common/​formatter/​BUILD Unpins formatter tests and fuzzer.
test/​common/​filter/​BUILD Unpins filter discovery test.
test/​common/​filesystem/​BUILD Unpins filesystem utility tests.
test/​common/​event/​BUILD Unpins event dispatcher and timer tests.
test/​common/​crypto/​BUILD Unpins crypto test and signature fuzzer.
test/​common/​coroutine/​BUILD Unpins coroutine utility tests.
test/​common/​conn_pool/​BUILD Unpins connection pool base test.
test/​common/​api/​BUILD Unpins OS system calls test.
test/​common/​access_log/​BUILD Unpins core access logging tests.

Review effort: Balanced

@phlax phlax changed the title test/bazel: Drop RBE pool pins that nothing measured needs test/bazel: Drop/adjust RBE pool pins to measured requirements Nov 7, 2026
@phlax phlax changed the title test/bazel: Drop/adjust RBE pool pins to measured requirements [WIP] test/bazel: Drop/adjust RBE pool pins to measured requirements Nov 7, 2026
@phlax
phlax marked this pull request as draft November 7, 2026 16:35
@phlax
phlax force-pushed the rbe-pool-drop-unneeded branch from 1a5a361 to 693b95d Compare November 7, 2026 19:52
@phlax phlax changed the title [WIP] test/bazel: Drop/adjust RBE pool pins to measured requirements test/bazel: Replace RBE pool pins with per-configuration ones Nov 7, 2026
@phlax
phlax force-pushed the rbe-pool-drop-unneeded branch 4 times, most recently from 693fea2 to 02014d1 Compare November 7, 2026 20:43
@phlax
phlax disabled auto-merge November 10, 2026 17:13
@phlax
phlax force-pushed the rbe-pool-drop-unneeded branch 2 times, most recently from 8a64daa to 766c575 Compare November 10, 2026 18:20
Every `rbe_pool` in the tree is on a test rule, so no build action asks
for a pool, and the only axis that matters for tests is memory: no
Envoy test runs more than one Envoy at a time and none of the targets
measured used more than ~1.3 cores. The pools are (per-action limit,
instance): default/xsmall 3GiB on n2d-standard-4, small 7GiB on
n2d-highmem-4, medium 6GiB on n2d-standard-4, large 12GiB on
n2d-standard-8.

Measured peak RSS per test action from the EngFlow traces of one
request's opt/asan/tsan/coverage/compile-time-options legs plus the
asan and tsan legs of the last twelve merged PRs (1739 test
targets in all). Drop the pin on every test target that ran under a
sanitizer there and peaked under 2GB across every run, i.e. fits the
default pool with headroom: 1486 targets (1419 small,
34 medium, 19 large, 14 6gig).

Kept, for a look case by case: 47 targets that did not run in any
of those legs, and these that peaked above 2GB:
  //test/extensions/filters/http/oauth2:filter_test 3.4GB
  //test/extensions/filters/http/lua:lua_filter_test 3.3GB
  //test/integration:integration_test 2.6GB
  //test/common/tls:ssl_socket_test 2.5GB
  //test/integration:quic_protocol_integration_test 2.4GB
  //test/extensions/filters/http/ext_authz:ext_authz_filter_test 2.4GB
  //test/extensions/dynamic_modules/network:abi_impl_test 2.3GB
  //test/extensions/filters/http/ext_authz:ext_authz_test 2.3GB
  //test/extensions/filters/http/ext_proc:ext_proc_integration_test 2.3GB
  //test/extensions/compression/zstd:compression_test 2.2GB
  //test/common/tls/integration:ssl_integration_test 2.2GB
  //test/common/upstream:health_checker_impl_test 2.2GB
  //test/integration:tcp_tunneling_integration_test 2.2GB
  //test/extensions/clusters/dynamic_modules:cluster_test 2.1GB
  //test/extensions/filters/http/compressor:compressor_filter_test 2.1GB
  //test/integration:tcp_proxy_integration_test 2.0GB
  //test/server/admin:stats_handler_test 2.0GB

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax force-pushed the rbe-pool-drop-unneeded branch from 766c575 to aa7b73d Compare November 10, 2026 18:55
Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax force-pushed the rbe-pool-drop-unneeded branch from aa7b73d to 2b4461f Compare November 10, 2026 19:06

@jwendell jwendell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still doesn't match the description:

  1. It says the hot-restart test's  exec_properties  pin is dropped. It is still at  test/integration/python/BUILD:30  ( Pool: linux_x64_medium ).
  2. It says the two loop-defined  *_codec_impl_fuzz_test  targets are pinned by hand with a build-only small pin. They are untouched:  rbe_pool = "linux_x64_small"  at  test/common/http/BUILD:128  still pins compile, link and the test.

…d pins

Restoring their test pool as a plain pool name also put their compile and
link actions back on medium (6GiB), which their gcc links (5.9-6.1GB) do
not clear with headroom. Keep the test action on medium and pin the
build actions from the measurements, as everywhere else.

Signed-off-by: Ryan Northey <[email protected]>
The loop-defined targets are outside the generator; their compiles are
3.0-5.5GB in every configuration and their tests under 1GB.

Signed-off-by: Ryan Northey <[email protected]>
@phlax

phlax commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

Both points taken, thanks:

  1. The hot-restart exec_properties pin is not dropped - the description was wrong and has been corrected (it was from a draft of the generated set).
  2. The codec fuzz tests are now pinned build-only in 1e5f137 ({"build": "linux_x64_small"}: compiles 3.0-5.5GB in every configuration, tests under 1GB).

The description now matches the tree: 476 removed, 1183 changed, 142 added, plus the eight #36784 tests kept on a multi-core test pool.

(bot assisted)

@phlax
phlax merged commit dea9cd3 into envoyproxy:main Nov 10, 2026
24 of 25 checks passed
oschaaf added a commit to We-Amp/envoy that referenced this pull request Nov 10, 2026
VirtualHostImpl route resolution linearly scans every configured route
per request; with many routes nearly all of them fail on the path
condition. Build a config-time index over route positions: an
exact-path hash map and a prefix trie (honoring case sensitivity and
path-separated prefixes) for exact / prefix / path-separated-prefix
routes, and an ordered side list of positions for regex, URI-template,
connect and other route kinds the index cannot represent.

At request time only candidate positions are visited, always in
ascending configured-route order, so first-match semantics, route
specifiers and callback 'no more routes' statuses are exactly those of
the linear scan. The index only produces candidates: every candidate is
re-validated by the route's matches(), which preserves correctness for
query stripping, path-separated boundaries and case-insensitive
matching. Single-route virtual hosts keep the linear scan.

docs: Replace envoy-build-ubuntu with the envoy-build images (#49135)

CI has used the envoyproxy/envoy-build images, built from toolshed and
pinned in .github/config.yml, since 1.37; envoy-build-ubuntu and the
envoy-build-tools repository that built it are being archived. Point the
install and build docs, ci/README and the dockerhub_envoy role at the
current images and their source.

Signed-off-by: Ryan Northey <[email protected]>
test: Shard dynamic_modules abi_impl_test (#49141)
[cache_v2] Fix upstream reset crash and stats (#48814)

Commit Message: [cache_v2] Fix upstream reset crash and stats
Additional Description: Cache filter could crash if an upstream reset
while more than one downstream was waiting on it (subject to a race
going the wrong way). This makes it so an upstream reset fails harder,
preventing the crash, and also fixes that there was previously no path
to the upstream_reset metric being updated.
Risk Level: WIP filter
Testing: Yes
Docs Changes: Yes
Release Notes: Yes
Platform Specific Features: Filter is already disabled for Windows

---------

Signed-off-by: Raven Black <[email protected]>
mobile/ci: Run the Android jobs in the default build image (#49134)

The Android SDK (platform 30, build-tools 35.0.0) and NDK r29 come from
the hermetic-android-toolchains module, and the Android tools from the
remote android_tools extension, so the mobile image's JDK, cmdline
tools, NDK, platform and build-tools (1.6 GiB over the default image)
are no longer used by the build. The emulator jobs already run on the
runner with its own SDK.

Signed-off-by: Ryan Northey <[email protected]>
deps: Bump `bazel-registry` -> 417c07d (+envoy_toolshed) (#49138)

- `envoy_toolshed` -> 0.5.20.envoy

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
Co-authored-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
coverage: Postprocess inside the test action, with toolshed's lcov tools (#49130)

Each coverage test action uploaded its raw profile (141MB for an
integration test, 89% of it a copy of the binary's symbol table) for a
separate postprocessing action to download again: ~160GB in and out of
the CAS and 7 worker-hours of postprocess actions per full run, plus a
9GB merge on the runner.

Run the postprocessing inside the test action instead, and use
toolshed's coverage tools for it: `llvm-cov` exports line coverage for
workspace sources only (function and branch records, and external code,
are never read by the report), and the lcov merger strips what remains
and removes the coverage directory's intermediates before the test's
outputs are uploaded.

Measured on a full run (1,597 tests, 96.9% before and after): CAS
uploads 133GB -> 1.35GB, no postprocess actions, coverage phase 838s ->
650s, critical path 346s -> 287s, report merge 107s -> 27s.

Signed-off-by: Ryan Northey <[email protected]>
compat/openssl: Added X509_VERIFY_PARAM_set_time() implementation (#49137)

Added `X509_VERIFY_PARAM_set_time()` implementation, needed by
`spiffe_validator_fuzz_test.cc`

Signed-off-by: Ted Poole <[email protected]>
router tests: Use Protobuf::DynamicCastMessage instead of dynamic_cast (#49048)

Prefer Protobuf::DynamicCastMessage instead of
dynamic_cast as lite-proto builds (!ENVOY_ENABLE_FULL_PROTOS) won't
compile.
Risk Level: none
Testing:  bazel test //test/common/router:retry_policy_impl_test
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Michal Kielan <[email protected]>
deps: Bump `bazel-registry` -> e66ede8 (+protoc-gen-validate) (#49136)

- `protoc-gen-validate` -> 1.3.3.envoy.1

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
ci: Stop caching the build image (#49133)

Since 2026-11-09T22:58Z restoring the cached build image intermittently
leaves Docker unable to start on GitHub's hosted runners ("Job for
docker.service failed"), failing jobs in their first 20s. The cache blob
(primed 2026-10-21), the runner image (20261101.360 since 2026-11-03)
and the restore path are unchanged, so this is on the runner side, and
the restore action discards the journal that would say why.

Since #48963 the CI build image is 275 MiB in six layers, pulled in
seconds, so the cache saves nothing worth stopping Docker and swapping
/var/lib/docker under sudo on every job. Drop the restore from the run
workflow and stop priming the cache; the cache-build-image inputs are
kept so callers need not change.

Signed-off-by: Ryan Northey <[email protected]>
deps: Bump `bazel-registry` -> 2308406 (+rules_rust) (#49132)o

- `rules_rust` -> 0.74.0.envoy.1

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
reverse_tunnel: downstream admin handler (#47689)

## Commit Message
reverse_tunnel: downstream admin handler

## Description
Add an admin handler on the downstream side for reverse tunnels which
returns the number of tunnels per src node, cluster, tenant.
Lazily aggregates across workers using the runOnAllThreads.

## Testing
Unit + Integ tests.

---------

Signed-off-by: aakugan <[email protected]>
on_demand: add discovery stats and filter state for access logs (#48391)

Commit Message: on_demand: add discovery stats and filter state for
access logs
Additional Description: Adds stats under `http.<stat_prefix>.on_demand.`
for on-demand route (VHDS/SRDS) and cluster discoveries: counters
`route_discovery_{requested,found,not_found,cancelled}` and
`cluster_discovery_{requested,available,missing,timeout,cancelled}`,
gauges `{route,cluster}_discovery_pending`, and histograms
`{route,cluster}_discovery_duration` (ms). `cancelled` means the stream
was destroyed before the discovery completed. A route-config update that
completes synchronously inside `decodeHeaders()` (nothing to discover)
is not counted as `requested`. `route_discovery_found` means the virtual
host / route config was delivered, not that a route matched.

The duration histograms only record successful discoveries (found /
available): a timed out cluster discovery always lasts about the
configured timeout, and a missing cluster or not-found route is a quick
negative answer, so including them would make the percentiles
meaningless. Failures are visible through the counters. VHDS has no
timeout, so during a control plane outage requests keep waiting;
`route_discovery_pending` and `route_discovery_cancelled` are the
signals then (documented).

For access logs, the filter stores a request-lifespan filter state
object `envoy.filters.http.on_demand.discovery` (only when a discovery
was started) with fields `host`, `vhost` (for VHDS `<route config
name>/<domain>`), `cluster`, `route_status`, `cluster_status`,
`route_discovery_duration_us` and `cluster_discovery_duration_us`,
usable with `%FILTER_STATE(...:FIELD:<name>)%`. Durations are set for
every outcome, so a timed out discovery shows how long the request
waited. The cluster name and host are intentionally not part of any stat
name, to keep stat cardinality independent of them. No API/proto change.

Related: #48122 (od-cds per-cluster discovery time).
Risk Level: Low (new stats and filter state only; no behavior change)
Testing: Unit tests in `on_demand_filter_test`, and integration tests in
`on_demand_integration_test` (VHDS: found / not found, with an access
log using the filter state) and `odcds_integration_test` (CDS: available
/ timeout / missing, with an access log using the filter state). Relying
on CI.
Docs Changes: Statistics and filter state sections in the on-demand
filter docs.
Release Notes:
changelogs/current/new_features/on_demand__added-discovery-stats-and-timing.rst
Fixes #47945

---------

Signed-off-by: xuanmin-zhu <[email protected]>
Co-authored-by: Claude <[email protected]>
dynamic_modules: add load shed point support to filters (#49111)

## Description

This PR adds load shed point support to dynamic module HTTP, network,
listener and UDP listener filters. A filter gets an overload manager
load shed point by name and checks it to shed load.

A filter on a listener that bypasses the overload manager gets no load
shed point, and neither does an upstream HTTP filter.

---

**Commit Message:** dynamic_modules: add load shed point support to
filters
**Risk Level:** Low
**Testing:** Added Tests
**Docs Changes:** Added
**Release Notes**: Added

Signed-off-by: Rohit Agrawal <[email protected]>
cds: track SotW CDS resources so that OD-CDS clusters are not removed (#48675)

Commit Message: cds: track SotW CDS resources so that OD-CDS clusters
are not removed
Additional Description:
A SotW CDS update removes every dynamic cluster that is missing from the
update, which includes the clusters added by on-demand CDS. This causes
extra load on the management servers, and `cluster_not_found` responses
until the clusters are discovered again.

#41117 added tracking of the clusters received through SotW CDS
(`sotw_resource_names_`), but enabled it only when xDS-TP config sources
are configured. This PR enables the tracking for all configurations,
behind the `envoy.reloadable_features.cds_sotw_track_resources` runtime
guard (default `true`). A SotW CDS update then removes only the clusters
that were previously received through the same CDS subscription.

The names are recorded even when the guard is disabled, so enabling it
at runtime does not leave clusters that were added earlier unknown to
the next SotW update.

This is the option 1 from #42551. It is meant to be compatible with the
xDS resource manager work in #24773: the tracking is the same per-source
state that the xDS-Cache layer is expected to provide, and the existing
`TODO` about removing it once that layer lands is kept.

Risk Level: low-medium. Behavior change for setups that use SotW CDS
together with ODCDS and no xDS-TP: dynamic clusters that were not
received through CDS are no longer removed by a CDS update. Can be
reverted with the runtime guard.
Testing: Unit tests in `cds_api_impl_test` (guard enabled, guard
disabled, guard enabled at runtime). Integration tests in
`odcds_integration_test` (file-based SotW CDS update keeps an ODCDS
cluster, and removes it when the guard is disabled). All pass locally on
Linux (aarch64).
Docs Changes: N/A
Release Notes: Added.
Platform Specific Features: N/A
Runtime guard: `envoy.reloadable_features.cds_sotw_track_resources`
Fixes #42551

---------

Signed-off-by: xuanmin-zhu <[email protected]>
Co-authored-by: Claude <[email protected]>
deps: Bump `bazel-registry` -> b1d19aa (+envoy_toolshed) (#49124)

- `envoy_toolshed` -> 0.5.19.envoy

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
dynamic_modules: add synchronous feedback to resource monitors (#49110)
spiffe: add a fuzz test for the SPIFFE cert validator (#49012)

Commit Message: spiffe: add a fuzz test for the SPIFFE cert validator

Adds a proto fuzzer that builds the SPIFFE cert validator from fuzzed
config and verifies a fuzzed peer certificate chain. It covers both
config forms (inline PEM trust domains and the JSON trust bundle map),
SAN matchers, the allow-expired and suppress-CA-list options, and
doVerifyCertChain on the downstream side (workload trust domain in
connection filter state) and the upstream side (shared filter state and
the SAN override). Each input also calls addClientValidationContext,
updateDigestForSessionId, daysUntilFirstCertExpires and
getCaCertInformation.

Additional Description:

First step for #17723: promoting this extension to
robust_to_untrusted_downstream needs fuzz coverage. The security_posture
change is left for a follow-up once the fuzzer has run on OSS-Fuzz. The
8 seeds cover successful verification in both trust bundle formats, on
both sides and through an intermediate, plus failures on an empty chain,
a CA certificate used as the leaf, a workload trust domain mismatch and
an invalid x5c entry.

Fixes #17723 only partly; I'd leave the issue open for the posture
change.

Risk Level: Low (test only)
Docs Changes: N/A
Release Notes: N/A

AI usage: AI helped write the fuzzer, the corpus and its certificate
generation. I have reviewed and understand the change.

---------

Signed-off-by: Boteng Yao <[email protected]>
test/kv_store: Fix the shutdown race in the restart helper (#49080)

`shutdownAndRestartTestServer()` posted `server.shutdown()` itself,
waited only for that call to return, and then reset the test server.
Once `shutdown()` returns, `Server::InstanceImpl::run()` returns on the
server thread and the server, a stack object in
`createAndRunEnvoyServer()`, is destroyed; `~IntegrationTestServerImpl`
meanwhile posts to `server_->dispatcher()` through its still-set raw
pointer. When the server thread wins, that is a use-after-free:

  Caught Segmentation fault, suspect faulting address 0x48
  #1: Envoy::IntegrationTestServerImpl::~IntegrationTestServerImpl()
#2:
KeyValueStoreXdsDelegateIntegrationTest_BasicSuccess_Test::TestBody()

The destructor already does the shutdown and waits for the server thread
to finish, so just reset the test server.

Signed-off-by: Ryan Northey <[email protected]>
test/fuzz: Create health check fuzz mocks on demand (#49025)

The health check fuzz harness pre-allocated a mock connection and codec
whenever it predicted that the next interval would create a new client.
The prediction mirrors the health checker's internal state by hand and
diverges from it: the gRPC harness sets its `received_no_error_goaway_`
on every NO_ERROR GOAWAY, while the checker only does so when a probe is
in flight. After a timeout (no probe), a GOAWAY and a completed response
the harness allocates a fresh pair, the checker reuses its connection,
and the pair is never adopted, so gmock reports leaked mocks at exit and
the fuzz coverage job fails (eg
https://github.com/envoyproxy/envoy/actions/runs/41770754226).

Create the connection and codec mocks inside the
`createClientConnection_` and `createCodecClient_` default actions
instead, so they only exist when the health checker asks for them and
are always owned by it. This removes the `expect_client_create` guessing
from `triggerIntervalTimer()` for all three harnesses, along with the
connection/codec index queues. The `newStream` default action is
installed per codec and clears the shared encoder's callbacks for each
new stream, as `expectStreamCreate()` did.

Add a corpus entry for the GOAWAY-without-probe sequence; it reproduces
the leak on the previous harness.

Signed-off-by: Ryan Northey <[email protected]>
dynamic_modules: add resource monitor support (#49108)

## Description

This PR adds a dynamic module resource monitor for the overload manager.
At each refresh the module reports the pressure of a resource. A module
can also leave an update pending and report it later from any thread
through a scheduler.

---

**Commit Message:** dynamic_modules: add resource monitor support
**Risk Level:** Low
**Testing:** Added Tests
**Docs Changes:** Added
**Release Notes:** Added

Signed-off-by: Rohit Agrawal <[email protected]>
rust_sdk: allow iterating response flag mask values  (#49065)

Commit Message:
Attach `strum` derive macros and add inherent methods to the
envoy_dynamic_module_type_response_flag type to enable converting from a
response flag enum value into its bit flag, and from a mask of set bits
back into an iterator over the equivalent flags values.

This improves usability in calling code.

Additional Description:
Risk Level: low
Testing: added and ran unit tests
Docs Changes: none
Release Notes: none
Platform Specific Features: n/a

---------

Signed-off-by: Alex Bakon <[email protected]>
test: Deflake network ext_proc connection-close assertions (#49024)

GrpcStreamFailure, ConnectionStatusCloseHandling and
ConnectionStatusRSTHandling asserted that a write fails immediately
after waiting for a stats counter. The counter is incremented on the
worker thread before the connection is closed, and the test thread only
does a single non-blocking dispatcher run on an empty write, so it can
observe the write succeeding before the FIN arrives. Wait for the
disconnect first; the write then fails deterministically.

Signed-off-by: Ryan Northey <[email protected]>
ci/dependency: Allow module updates with the registry bump (#48870)

Add an `update` input to the `registry` task of the dependency workflow,
passed through update.sh and `do_ci.sh registry` to `registry_update`:

- `*` bumps every module (in every nested MODULE.bazel) that has a newer
version available in the envoy bazel-registry, as reported by the
toolshed module updater after the pin has moved.
- `name` bumps that module to its latest registry version, `name=1.2.3`
to that version; specs are space separated and applied in every module
that declares them, as `deps.update` does.
- `*` is rejected when combined with other specs, and `update` is
rejected for the `bazel` and `lockfiles` tasks.

Inside the build container the command is exec'd unquoted, where a bare
`*` would glob, so update.sh passes it as `all`; `registry_update`
accepts either. Lockfiles are regenerated once at the end.

---------

Signed-off-by: Ryan Northey <[email protected]>
test/wasm: Drop the filter integration test size, sharding and pool (#49076)

The target is marked "enormous" (a one hour timeout), split into 16
shards and run on the large RBE pool. Since #48681 it runs one engine
per build (all engines only across the compile-time-options legs), which
leaves it with 24-31 cases per leg. Measured in CI: 2s of cases in opt,
10s under coverage and in the wamr leg, 56s in the wasmtime leg and 65s
under tsan, so none of the three does anything but spread ~30 cases over
16 large executors.

Signed-off-by: Ryan Northey <[email protected]>
ci/dependency: Add a release-images task (#49106)

Add a `release-images` task to the dependency workflow that updates the
base images pinned in `distribution/docker/Dockerfile-envoy` (the
`BUILD_OS:BUILD_TAG@sha256:BUILD_SHA` args and any pinned `FROM ... AS
envoy-<name>` stage) to the current digest of their tag, and opens a PR
with the result.

The update is done by `ci/dependency/release_images.sh`, which only
needs docker (buildx) and jq, so it can also be run locally.

Signed-off-by: Ryan Northey <[email protected]>
compat/openssl: Add post-merge ASAN build of compat/openssl tests (#49007)

Added post-merge ASAN build of the OpenSSL compatibility layer utests.

Signed-off-by: Ted Poole <[email protected]>
docker/release: Bump container images (#49105)

- `ubuntu:22.04`: 5ec03bb -> 076e7bf
- `gcr.io/distroless/base-nossl-debian13:nonroot`: 6a2a334 -> e6b0f82

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
Revert "hot_restart: hold UDP forwarding listener configs as weakptrs… (#49109)

… (#49019)"

This reverts commit 56adfb49c5cbec1d17bb3060c8c8c1a3150b6573.

Signed-off-by: Ryan Northey <[email protected]>
deps: Bump `bazel-registry` -> f500f99 (+envoy_toolshed) (#49104)

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
config: consolidate resource state transitions in DeltaSubscriptionState (#48577)

Commit Message: config: consolidate resource state transitions in
DeltaSubscriptionState
Additional Description:
Consolidates the resource state mutation logic in
`DeltaSubscriptionState`:
- Extract a shared `bool removeResourceStateFromServer(absl::string_view
resource_name)` helper used by both `handleGoodResponse` (for
`message.removed_resources()`) and `ttlExpiryCallback` (for `expired`
resources).
- Route all resources in `handleGoodResponse` through
`addResourceStateFromServer(resource)` instead of branching between
`requested_resource_state_.contains(resource.name())` and
`requested_resource_state_.contains(Wildcard)` at the call site.

Companion PR to deduplication in #48576.
Risk Level: Low
Testing: Unit tests (`//test/extensions/config_subscription/grpc/...`)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: antoniovleonti <[email protected]>
lua: read the filter context without copying it (#49083)

Commit Message: lua: read the filter context without copying it

Every `handle:filterContext()` call built a `MetadataMapWrapper` that
copy-constructed the whole `filter_context` Struct, nested lists and
maps included, once per handler per request. The wrapper can now borrow
its Struct when passed with `std::cref()`, and `luaFilterContext()`
does. The context is owned either by the filter's config, which the
filter holds, or by route configuration, which the stream's route config
snapshot holds. A per-route script's VM already depends on the latter.
Route and virtual host metadata keep the copy here. A cleared route
stays alive until the stream ends, so they could borrow the same way in
a follow-up.

Additional Description:

In a production profile of ours, that copy alone was about 0.4% of
Envoy's CPU. This adds `BM_FilterContextGet` to the Lua speed test. Its
argument is the length of a list in the context that the script never
reads.

Medians of five alternating base/PR rounds, `-c opt` binaries,
`--benchmark_repetitions=5 --benchmark_enable_random_interleaving=true`,
macOS arm64. Base is `1329291ccc`, the merge base, built with this PR's
benchmark file.

| Case | Base | This PR | Change | Rounds won |
| ---------------------------- | -------: | ------: | -----: |
---------: |
| `FilterContextGet/0` | 3081 ns | 2111 ns | -31.5% | 5/5 |
| `FilterContextGet/16` | 4673 ns | 2122 ns | -54.6% | 5/5 |
| `FilterContextGet/256` | 25899 ns | 2123 ns | -91.8% | 5/5 |
| `NoopBoth` (unchanged) | 1630 ns | 1630 ns | +0.0% | 2/5 |
| `HeaderMetadata` (unchanged) | 3794 ns | 3781 ns | -0.3% | 4/5 |

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low

Testing:
```
bazel test //test/extensions/filters/common/lua:wrappers_test //test/extensions/filters/http/lua:lua_filter_test
```
The new `LuaMetadataMapWrapperOwnershipTest` fails on the base for the
borrowed case.

Docs Changes: N/A

Release Notes: N/A

Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
hot_restart: hold UDP forwarding listener configs as weakptrs (#49019)

Commit Message: hot_restart: hold UDP forwarding listener configs as
weakptrs
Additional Description:

`HotRestartingChild::UdpForwardingContext::listener_map_` in
`HotRestartImpl` held a shared ptr to every UDP listener config and
never erased entries, so configs outlived their listeners.
`HotRestartImpl` is destroyed after the server and stats store. With
quic-lb and SDS, ~SdsApi released its stats scope into the freed store
and Envoy crashed on exit.

The map now holds weak ptrs to configs instead and drops expired entries
on lookup.

Risk Level: Low
Testing: Unit test, manual
Docs Changes: N/A
Release Notes: Added bugfix
Platform Specific Features: N/A
Fixes #48758

Signed-off-by: Filip Cacky <[email protected]>
test/drain_close: Shorten the HCM drain timeout (#49072)

A drain-close keeps the connection open for the HCM's drain_timeout (5s
by default) after the response that announced it, for HTTP/1 as well as
HTTP/2: `startDrainSequence()` only moves to Closing from
`onDrainTimeout()`. Every drain-closing case in this test waits for that
close, so 35 of its 45 cases took 5s each (~180s per run) for a grace
period none of them is testing. Set it to 100ms in the fixture and drop
the test size.

Signed-off-by: Ryan Northey <[email protected]>
test/protocol: Stop waiting on the stats flush and drain timer, drop … (#49075)

…the size

Of the 1613 cases this target runs in an opt CI job, 48 take 5s and the
other 1565 average 0.14s:

- `Retry`, `ReqRespSizeStats` and `UpstreamRequestsPerConnectionMetric`
wait for histogram samples, which only reach the parent store on the
stats flush (5s by default). Flush every 100ms in those tests.
- The HTTP/2 cases of `MaxRequestsPerConnectionReached` and
`TestDownstreamResetIdleTimeout` wait for the connection to close after
a GOAWAY, which happens from the HCM drain timer (5s by default). Set it
to 100ms in those tests.

The target was marked "enormous" (a one hour timeout) on 16 shards; its
shards run 25-40s in opt and under 200s under tsan, which has a 600s
"medium" timeout. Drop the size.

Signed-off-by: Ryan Northey <[email protected]>
router: add per mirror policy statistics (#48470)

Commit Message: router: add per mirror policy statistics

Request mirroring is fire and forget, so the only signal is the mirror
cluster's upstream stats. Those miss mirrors that are selected but never
sent (no `cluster_header` value, unknown cluster, local reply on the
primary), and do not tell how many mirrors a policy should have sent.

Add `RequestMirrorPolicy.stat_prefix`. When set, the router emits
counters under `mirror.<stat_prefix>.`: `rq_sampled`, `rq_no_cluster`,
`rq_started`, `rq_success` (2xx), `rq_failure` (non-2xx or failed) and
`rq_cancelled`.

Additional Description:
For policies with `stat_prefix`, the shadow writer allocates a callbacks
object per mirror that records the outcome and deletes itself (deferred)
from `onBeforeFinalizeUpstreamSpan()`. It holds the stats scope, so a
route update does not free counters still in use. Policies without
`stat_prefix` are unchanged and allocate nothing.

The counters are rooted at `mirror.<stat_prefix>.` rather than under the
route stats, because a mirror policy can be set on the route
configuration, a virtual host or a route. Open to another namespace.

Risk Level: Low. New optional field; no change when unset.
Testing: Unit tests in `shadow_writer_impl_test`, `router_test` and
`config_impl_test`; integration tests in
`shadow_policy_integration_test`. Also run under ASAN.
Docs Changes: API docs and a mirror policy statistics section in the
router filter docs.
Release Notes: Added.
Platform Specific Features: N/A
[Optional API Considerations:] New `stat_prefix` field on
`RouteAction.RequestMirrorPolicy`.

AI assistance: prepared with AI assistance (Cursor agent). We reviewed
and understand all of it.

---------

Signed-off-by: William Dauchy <[email protected]>
datadog: log trace context extraction errors at debug level (#49026)

Commit Message: datadog: log trace context extraction errors at debug
level

When a request carried trace context headers that dd-trace-cpp could not
parse, for example `x-datadog-trace-id: nope`, the Datadog tracer logged
an error and started a new trace. Downstream clients control these
headers, so any client could make Envoy log one error per request.

The message is now logged at debug level, and these errors are counted
in a new `tracing.datadog.extraction_errors` counter so they stay
visible. A request without trace context is not counted.

Additional Description:
Same reasoning as the body size limit filter change in
`changelogs/current/bug_fixes/http__body-size-limit-log-level.rst`.

Risk Level: Low. Only the log level changes, and a counter is added.
Testing:
- `tracer_test`: an invalid trace context logs at debug level and
increments the counter; a valid or missing trace context does not. The
log assertion fails with the previous implementation.
- `tracer_stats_test` covers the new counter.
- `//test/extensions/tracers/datadog/...`, `check_format` and
`check_spelling_pedantic` pass on Linux x86_64.
Docs Changes: N/A (the Datadog tracer stats are not documented).
Release Notes: Added under `bug_fixes`.
Platform Specific Features: N/A

Signed-off-by: William Dauchy <[email protected]>
datadog: copy the request path instead of referencing it (#48999)

Commit Message: datadog: copy the request path instead of referencing it

`AgentHTTPClient::post()` set the `:path` header with
`setReferencePath()`, so the request pointed at the path string of the
URL passed in by dd-trace-cpp. That URL belongs to dd-trace-cpp's
`DatadogAgent`, whose destructor flushes one last request and then frees
it, before `ThreadLocalTracer` cancels the request with `shutdown()`.
Nothing reads the header in between today, but the request should not
depend on that.

The path is now copied. The agent paths (`/v0.4/traces`, `/v0.7/config`)
fit in the inline header buffer, so the copy does not allocate.

Additional Description:
Follow-up to #48209 and #48480.

Risk Level: Low. Same header value, now owned by the request.
Testing:
- New `agent_http_client_test` case: overwrite and destroy the URL after
`post()` returns, then check the path of the sent request. It fails with
the previous implementation.
- `//test/extensions/tracers/datadog/...`, `check_format` and
`check_spelling_pedantic` pass on Linux x86_64.
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

AI disclosure: a Cursor agent helped write and test this change. I have
reviewed it and understand it.

---------

Signed-off-by: William Dauchy <[email protected]>
bazel: Select RBE pools per configuration (#49081)

`rbe_pool` pins one EngFlow pool for every action of a target in every
build. Measuring every compile, link and test of `//test/...` under opt,
asan, tsan, msan and gcc showed that the need is per configuration and
per kind of action: compiles over 3GiB are common under clang and more
so under gcc, the tsan and gcc links of the largest binaries run 9-12GB,
and tests fit the default pool everywhere except a few dozen under msan.
One pin for everything either over-provisions the test action and the
other configurations or under-provisions the one that needs it.

This makes the selection configuration- and action-aware, in a shared
`bazel/envoy_rbe.bzl`:

- `rbe_pool` still takes a pool name (every action, every configuration,
as before) and now also a dict keyed by
`default`/`asan`/`msan`/`tsan`/`coverage`/`gcc`; a configuration not
named uses `default`.
- each value is a pool name or `{"build": pool, "test": pool}`: `build`
covers compile and link (`Pool`), `test` the test action (`test.Pool`).
A build-only pin leaves the test action on the platform default; a
test-only pin leaves compiles and links there.
- the non-test macros (`envoy_cc_library`, `envoy_cc_binary`,
`envoy_cc_test_library`, `envoy_cc_test_binary`, a fuzz test's library)
ignore test pools; a fuzz test's library now gets the pin, previously
only its binary did.
- each configuration gets its own single-key `select()` in a fixed
precedence order, so configurations enabled together (fuzz coverage:
coverage + asan) never meet in one `select()`.

Existing string pins land every action on the pool they do today;
nothing changes until a pin uses the new forms. #49078 regenerates the
tree's pins from the measurement using them.

Signed-off-by: Ryan Northey <[email protected]>
compat/openssl: Build OpenSSL with rules_cc from the BCR module (#49058)

Switch the `openssl` dependency from the registry's `3.5.9.envoy`
module, which builds OpenSSL with `rules_foreign_cc` `configure_make`,
to BCR's `3.5.9.bcr.1` module, which builds it natively with `rules_cc`.

The BCR module only provides static `@openssl//:crypto` and
`@openssl//:ssl` libraries, so bssl-compat now builds what it needs
itself:
- `:libcrypto` and `:libssl` (`cc_shared_library`) produce
`libcrypto.so.3` and `libssl.so.3`, replacing `@openssl//:libs` as a
data dependency.
- `:openssl_include` (new `openssl_include_dir` rule) collects the
`openssl/*.h` headers for the prefixer, replacing `@openssl//:include`.
- `ossl_dlutil.c` loads the libraries from `OSSL_RUNFILES_LIB_DIR`
instead of probing several `openssl`/`openssl+` runfiles paths.

The BCR module has no legacy provider, which was only used by the
bssl-compat unit tests, so drop it: remove the provider config from
`test/main.cc` and the `OPENSSL_MODULES` setup from `ossl_dlutil.c`, and
leave the PKCS#12 tests that rely on RC2-40 (`TestCompat`,
`TestEmptyPassword`, `TestNullPassword`, `TestUnicode`, ...) disabled.

Signed-off-by: Jonh Wendell <[email protected]>
Co-authored-by: Copilot <[email protected]>
test/lua: Fix the drain test, shard the integration test, drop its si… (#49077)

…ze and pool

`lua_integration_test` runs 36 tests over a 20-way protocol/filter
position matrix (720 cases); every case boots an Envoy, ~0.1s in opt and
~1.6s under tsan, i.e. ~900s per tsan run hidden behind `size =
"large"`.

- `DrainConnectionUponCompletion`: the HTTP/2 variants wait for the
connection to close after the GOAWAY, which happens from the HCM drain
timer (5s by default): 10 cases x 5s per run for a grace period the test
is not about. Set it to 100ms.
- Shard the target four ways instead of sizing it.
- Drop the large RBE pool: measured in CI the test never uses more than
one core (0.2 in opt, 1.0 under tsan) and peaks at 1.5GB RSS under asan,
against the pool's 8 cores and 12GiB limit; the default pool's 3GiB
covers it twice over.

Signed-off-by: Ryan Northey <[email protected]>
feat: impl apply_on_stream_done for local rate limit (#48530)

<!--
!!!ATTENTION!!!

If you are fixing **any** crash or **any** potential security issue,
**do not
open a pull request**.

Instead, please
[open a GitHub Security
Advisory](https://github.com/envoyproxy/envoy/security/advisories/new)
(preferred). Alternatively, you may email
[email protected].

Thank you in advance for helping to keep Envoy secure.

!!!ATTENTION!!!

For an explanation of how to fill out the fields, please see the
relevant section
in
[PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/main/PULL_REQUESTS.md)

!!!ATTENTION!!!

Please check the [use of generative AI
policy](https://github.com/envoyproxy/envoy/blob/main/CONTRIBUTING.md?plain=1#L41).

You may use generative AI only if you fully understand the code. You
need to disclose
this usage in the PR description to ensure transparency.
-->

Commit Message: feat: impl apply_on_stream_done for local rate limit
Additional Description: Implement `apply_on_stream_done` feature for
local rate limit, similar to the existing feature in global rate limit.
Note that unlike in global rate limit, `apply_on_stream_done` does't
apply to route/vhost level rate limit descriptors for local rate limit
filter. For such behavior `typed_per_filter_config` can be used instead.
Risk Level: Low (new API)
Testing: Unit and Integration testing
Docs Changes: Yes
Release Notes: Yes
Platform Specific Features: N/A
Fixes #37790

---------

Signed-off-by: Rudrakh Panigrahi <[email protected]>
tracing: add configurable B3 and W3C propagation to opentelemetry tracer (#48711)

Adds `incoming_trace_context` and `outgoing_trace_context` to
`OpenTelemetryConfig`, so the tracer can read and write W3C Trace
Context, the B3 single header, or B3 multiple headers. Default stays W3C
only.

Additional Description:
- Extraction tries formats in order; the first valid one wins and
malformed ones are skipped. If headers are present but none are valid,
the request is not traced, as with a malformed `traceparent` today.
- Injection writes every configured format and leaves other headers
alone.
- B3 parsing follows the OpenTelemetry B3 spec and the Zipkin tracer's
leniency. It lives in the OpenTelemetry tracer because Zipkin already
depends on this library.
- Out of scope: injecting only the extracted format (#40977), GCP and
AWS formats, baggage.

AI disclosure: written with AI assistance (Cursor). I have reviewed and
understand all of the code.

Risk Level: Low. Opt-in; the default config is unchanged.
Testing: New unit, driver, and config tests. All OpenTelemetry and
Zipkin tracer tests pass locally.
Docs Changes: Proto docs and a tracing architecture overview entry.
Release Notes:
`changelogs/current/new_features/tracing__opentelemetry-b3-propagation.rst`
Platform Specific Features: N/A
Fixes #39412
Related to #27384
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]
Adds one enum and two repeated fields (11 and 12) to
`envoy.config.trace.v3.OpenTelemetryConfig`.

---------

Signed-off-by: Wan Afiq <[email protected]>
Co-authored-by: Wan Afiq <[email protected]>
router: consolidate on-demand VHDS callback handling in RouteConfigUpdateReceiverImpl (#48767)

Both `RdsRouteConfigProviderImpl` and
`StaticRouteConfigProviderImpl::VhdsContext` maintained duplicate
on-demand VHDS callback management:
- `UpdateOnDemandCallback` struct definition
- `config_update_callbacks_` queue and `still_alive_` deallocation guard
- `requestVirtualHostsUpdate(...)` posting to main thread, local alias
cache check, and callback queuing
- publish loop iterating through callbacks in `onConfigUpdate()` and
`onConfigWarmed()`

This change:
1. Adds `requestVirtualHostsUpdate(...)` and `onVhdsConfigPublished()`
to `RouteConfigUpdateReceiver` interface.
2. Moves callback queuing, `still_alive_`, local answer check, and
callback notification into `RouteConfigUpdateReceiverImpl`.
3. Updates `RdsRouteConfigProviderImpl` and
`StaticRouteConfigProviderImpl` to delegate to
`RouteConfigUpdateReceiver`.

Risk Level: Low
Testing: Existing unit and integration tests
(`//test/common/router:config_impl_test`,
`//test/common/router:rds_impl_test`,
`//test/common/router:static_route_provider_impl_test`,
`//test/common/router:vhds_test`,
`//test/integration:vhds_integration_test`)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: antoniovleonti <[email protected]>
Revert "dfp cluster: create new host rather than update address in place when address updated (#48176)" (#49079)

This reverts commit 3ae2dbdfa3bb2408abf82caa5f067bc36bab86f2.

This change needs to be a configuration option. Previous behavior was
equivalent to the LOGICAL_DNS and new behavior is STRICT_DNS. Previous
behavior was not a bug, it is the desired behavior for existing
production deployments.

Signed-off-by: Yan Avlasov <[email protected]>
connect_grpc_bridge: align unary HTTP status mappings with Connect spec (#49011)

Commit Message: connect_grpc_bridge: align unary HTTP status mappings
with Connect spec

Update `statusCodeToConnectUnaryStatus()` to return the HTTP status
codes required by the current Connect protocol specification. The
Connect spec amended four mappings in March 2024
(https://github.com/connectrpc/connectrpc.com/pull/130), and the filter
still returned the original values:
- `canceled`: 408 -> 499
- `deadline_exceeded`: 408 -> 504
- `failed_precondition`: 412 -> 400
- `unimplemented`: 404 -> 501

Additional Description: The incorrect HTTP statuses cause access logs,
metrics, 5xx alerting, and HTTP middleware to misclassify these unary
Connect responses (Connect clients themselves read the `code` field from
the JSON error body and are unaffected). All other mappings are
unchanged and match the spec table at
https://connectrpc.com/docs/protocol#error-codes.

No runtime guard was added: `envoy.filters.http.connect_grpc_bridge` is
`status: alpha` in `extensions_metadata.yaml`, and the runtime-guarding
guidance in `CONTRIBUTING.md` applies to non-alpha features. Happy to
add a guard if reviewers would prefer one.

AI disclosure: this patch was prepared with AI coding assistance; I have
reviewed and understand all of the changes.

Risk Level: Low
Testing: Updated the expectations pinned by
`//test/extensions/filters/http/connect_grpc_bridge:end_stream_response_test`
for the four affected statuses. Verified the resulting mapping table
against the Connect spec reference; the full table (all 16 codes plus
the 500 default) now matches
https://connectrpc.com/docs/protocol#error-codes. The Bazel test target
is exercised by CI.
Docs Changes: N/A
Release Notes: Added
`changelogs/current/bug_fixes/http__connect-grpc-bridge-status-mapping.rst`.
Platform Specific Features: N/A
Fixes #49003

Signed-off-by: Santhi Prakash <[email protected]>
listener: preserve buffered data on write half-close (#48677)

Commit Message:
listener: preserve buffered data on write half-close

When an internal socket delivers `Read | Closed`, listener filters
currently handle the close before looking at the buffered data. A client
that sends a payload followed immediately by END_STREAM through HTTP/2
CONNECT can therefore lose the payload and the reply.

Inspect the buffered data first. Queue the close notification before
calling the data callback, so a filter that still needs more bytes
closes on the next iteration. If inspection finishes, resetting the old
file event cancels that queued notification before the connection takes
over.

Additional Description:
The callback may destroy the listener buffer, so the patch does not
access its members after calling it. Close-only events, empty EOF, read
errors and listeners with data callbacks disabled retain their close
behavior.

This patch does not change CONNECT's existing handling of an upstream
that half-closes before the downstream finishes sending.

Risk Level: Medium — this changes event ordering in the shared
listener-filter buffer.

Testing:
- `//test/common/network:listener_filter_buffer_impl_test`: 11 tests
passed, including seven new cases for buffered data, callback
destruction, incomplete inspection, EOF, read errors, EAGAIN and
disabled data callbacks.
- Envoy format and spelling checks passed for both changed C++ files.
- Built a patched Linux arm64 Envoy binary and ran a loopback HTTP/2
CONNECT reproducer with TLS/HTTP inspectors enabled: the stock v1.40.0
binary returns 0 of 64 bytes; the patched binary returns all 64 bytes
after request END_STREAM.
- Repeated immediate request half-close with 64 B, 3,200 B, 64 KiB and 1
MiB payloads, with inspection enabled and bypassed, for 10 rounds. All
replies were complete. An incomplete protocol prefix also closed before
the listener-filter timeout in all 10 rounds.
- Local builds and execution used v1.40.0. Its affected source and
original unit tests are byte-for-byte identical to the main base of this
PR; a full main build is left to CI.

Docs Changes: N/A
Release Notes: Added a listener bug-fix entry.
Platform Specific Features: No new platform-specific API. Local
execution uses Linux arm64.

Fixes #48676

AI assistance was used to prepare and review this patch and its tests.

Signed-off-by: zhaochunlin <[email protected]>
Co-authored-by: zhaochunlin <[email protected]>
reverse_tunnel: add tunnel setup latency stats (#46614)

## Commit Message
reverse_tunnel: add tunnel setup latency stats

## Description
Adds max_tunnel_setup_time on the downstream reverse-tunnel initiator
and emits tunnel_setup_time (histogram) for how long it takes a host to
reach its configured connection count.
Episode timing is reused across retries within an establishment episode
and resets when capacity drops.
Tunnels which cannot be established etc can be tracked by the admin
handler #47689

## Testing
Unit tests + integ tests for the counter and histogram added.

---------

Signed-off-by: aakugan <[email protected]>
header: optimize union storage for header values (#47612)

Commit Message:
Replace the variant storage for header strings with a custom tagged
union type. The existing behavior is preserved, though the size and
capacity of header values are now stored as u32s. The gains come from a)
reducing the memory usage without changing functionality (the u32 size
limit was already functionally present) and b) putting the size of the
string at the same offset whether the value was owned or a reference.

Additional details:
This change was made with the assistance of AI tools. The author fully
understands and takes ownership of the change.

Risk Level: low, does not change public API
Testing: ran unit tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

---------

Signed-off-by: Alex Bakon <[email protected]>
zstd: correct chunk_size and qatzstd level defaults in api docs (#48700)

Commit Message: zstd: correct chunk_size and qatzstd level defaults in
api docs

Additional Description:
The API docs for the zstd compressor, the zstd decompressor and the
contrib qatzstd compressor say an unset `chunk_size` defaults to 4096.
The factories use zstd's recommended output buffer size instead:

- `source/extensions/compression/zstd/compressor/config.cc:15`:
`PROTOBUF_GET_WRAPPED_OR_DEFAULT(zstd, chunk_size,
ZSTD_CStreamOutSize())`
- `source/extensions/compression/zstd/decompressor/config.cc:13`: `...
ZSTD_DStreamOutSize())`
- `contrib/qat/compression/qatzstd/compressor/source/config.cc:15`: `...
ZSTD_CStreamOutSize())`

`Base` allocates the output buffer at that size
(`source/common/compression/zstd/common/base.cc:8-9`). With the zstd
pinned in `MODULE.bazel:116` (1.5.7), `ZSTD_CStreamOutSize()` is 131591
bytes and `ZSTD_DStreamOutSize()` is 131072, so the default buffer is
about 128 KiB, not 4 KiB. (That default is also above the 65536 maximum
an explicit `chunk_size` may set; this PR only documents the default and
does not change it.)

The same qatzstd file says of `compression_level`: "Value 0 means
default". The field is validated `{lte: 22 gte: 1}`, so 0 is rejected;
an unset level falls back to `ZSTD_CLEVEL_DEFAULT` (3) at
`contrib/qat/compression/qatzstd/compressor/source/config.cc:13`. The
comment now reads "If not set, defaults to 3." The non-QAT zstd proto
keeps its "Value 0 means default" line, since that field has no lower
bound and zstd treats level 0 as its default.

Gzip, Brotli and QATzip document 4096 and do use 4096; they are
unchanged.

Prepared with AI assistance (Claude Code) and reviewed with GitHub
Copilot.

Risk Level: Low (comments only)
Testing: Comment-only change; no build or test run. Default sizes
checked against zstd 1.5.7 (`ZSTD_CStreamOutSize()` 131591,
`ZSTD_DStreamOutSize()` 131072).
Docs Changes: The proto comments above, which generate the API
reference.
Release Notes: N/A
Platform Specific Features: N/A

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: ZainnQureshii <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
stat_sinks: support runtime-dynamic monitored resources in the OpenTelemetry sink (#48518)

Adds `SinkConfig.ConversionAction.resource_conversion`, which reports
the metrics of a conversion under
an OTLP resource of their own instead of the resource of the sink. This
lets an Envoy that serves
several workloads, such as a gateway, report the metrics of each
workload under that workload's
resource, e.g. using tags that the stats access logger sets from
listener metadata:
```
  resource_conversion:
    static_resource_attributes:
    - {key: gcp.resource_type, value: {string_value: k8s_pod}}
    tags_to_resource_attributes:
    - {tag_name: k8s.pod.name, resource_attribute_key: pod_name}
    - {tag_name: k8s.namespace.name, resource_attribute_key: namespace_name}
```
- Each attribute of the resource is either static or set from a stat
tag; nothing is inherited from
the resource of the sink. Setting an attribute more than once, or a
static attribute with an empty
  key or a non-string value, is rejected when the sink is created.
- A stat that lacks one of the tags, or has it with an empty value, is
reported as if there were no
resource conversion: under the resource of the sink, with all of its
tags as data point attributes.
- Within an export request, the metrics of resources with the same
attributes, including the resource
of the sink, are reported under one `ResourceMetrics`. Batching by
`max_data_points_per_request`
  keeps working.
- Fixes a `ConversionAction` without a `metric_name` reporting its
metrics with an empty name, which is
not a valid OTLP metric name. They are now named as if their stats
matched no conversion, so one
conversion can apply to many stats without merging them into a single
metric.
- The aggregator keeps one result per resource, and draining the results
iterates each map once and
moves the metric names instead of copying them, which also speeds up
flushes with
  `custom_metric_conversions`.

Risk Level: Low (resource_conversion is opt-in; for existing configs,
the only change is that a
ConversionAction without a metric_name no longer reports metrics with an
empty name which is invalid)
Testing: Unit tests (config validation, resource registry, aggregator,
request streamer, flusher) and an
integration test that tags stats from listener metadata with the stats
access logger and checks the
per-pod resources of the export, including a listener without metadata.
open_telemetry_benchmark (opt build, one CPU, 9,000 stats with 8 tags
each, ms per flush):
- Without custom_metric_conversions: unchanged (24.9 -> 24.7).
- With custom_metric_conversions: 39.9 -> 31.8.
- With resource_conversion: no slower than plain conversions up to 100
pods, +17-22% with 3,000 pods.

Docs Changes: API docs, and a resource conversion section in the
OpenTelemetry stat sink docs.
Release Notes:
changelogs/current/new_features/stat_sinks__otlp-resource-conversion.rst,
changelogs/current/bug_fixes/stat_sinks__otlp-empty-metric-name.rst
Platform Specific Features: N/A
This change was developed with AI assistance (Google internal
Antigravity); the submitter has reviewed
and understands all of the code.

---------

Signed-off-by: Xuyang Tao <[email protected]>
deps: Bump `c-ares` -> 1.34.9 (#48799)

Created by Envoy dependency bot for @phlax

Signed-off-by: dependency-envoy[bot]
<148525496+dependency-envoy[bot]@users.noreply.github.com>

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
Co-authored-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
bootstrap: add a statusor factory method, deprecate throwing factory (#48863)

Add a non-throwing entrypoint to the bootstrap extension factory
interface and mark the throwing method as deprecated, but retained to
preserve compatibility with out-of-tree extensions. Modify the in-tree
extensions to use the new entrypoint, returning error statuses instead
of throwing exceptions.

Additional Description:
The author used AI to produce this, but has reviewed and understands the
code.

Risk Level: low
Testing: ran unit tests
Docs Changes: none
Release Notes: added
Platform Specific Features: none

---------

Signed-off-by: Alex Bakon <[email protected]>
upstream: bind the context's priority load by reference (#48671)

Commit Message: upstream: bind the context's priority load by reference

`LoadBalancerBase::chooseHostSet()` binds the reference returned by
`determinePriorityLoad()` to `const auto`. So every pick made with a
context copy-constructs both vectors of `HealthyAndDegradedLoad`, and
the router always passes itself as the context. This binds the result by
reference, the way the aggregate cluster already does. The referent is
either the balancer's own `per_priority_load_` or a retry priority's
member, and nothing writes to either before `choosePriority()` reads it.

Additional Description:

This adds a `chooseHost` benchmark for round robin, with and without a
context. Every policy built on `LoadBalancerBase` takes the same path.

Medians of five alternating base/PR rounds, `-c opt` binaries,
`--benchmark_repetitions=5 --benchmark_enable_random_interleaving=true`,
macOS arm64. Base is `b5061f06b4`, the merge base, built with this PR's
benchmark file.

| Case | Base | This PR | Change | Rounds won |
| --------------------------------------- | ------: | ------: | -----: |
---------: |
| `chooseHost`, 1 hosts, with context | 75.6 ns | 36.1 ns | -52.3% | 5/5
|
| `chooseHost`, 1 hosts, no context | 31.7 ns | 33.1 ns | +4.4% | 0/5 |
| `chooseHost`, 100 hosts, with context | 75.7 ns | 36.3 ns | -52.1% |
5/5 |
| `chooseHost`, 100 hosts, no context | 31.8 ns | 33.2 ns | +4.4% | 0/5
|
| `chooseHost`, 10000 hosts, with context | 76.2 ns | 36.2 ns | -52.5% |
5/5 |
| `chooseHost`, 10000 hosts, no context | 31.8 ns | 33.2 ns | +4.4% |
0/5 |

The no-context arm never reaches the changed line. It moved +1.4 ns in
all five rounds, and I don't have an explanation better than code
layout.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low

Testing:
```
bazel test //test/extensions/load_balancing_policies/round_robin:all //test/extensions/load_balancing_policies/common:all //test/extensions/load_balancing_policies/least_request:all //test/extensions/clusters/aggregate:all
```

Docs Changes: N/A

Release Notes: N/A

Platform Specific Features: N/A

Signed-off-by: Derek Argueta <[email protected]>
dynamic_modules: prevent `EnvoyMutBuffer` aliases (#49067)

`EnvoyMutBuffer` is copyable even though it exposes mutable slices, so
safe code can create overlapping mutable references to the same body
chunk.

This PR removes `Clone` and `Copy` and adds a compile-fail doc test.

Risk Level: Low
Testing: Confirmed the regression compiles before the fix and is
rejected afterward. Buffer unit tests, SDK doc tests, Clippy, and
formatting pass.
Docs Changes: Documented exclusive borrowing.
Release Notes: Added a dynamic modules bug-fix fragment.
Platform Specific Features: N/A

AI assistance was used.

Signed-off-by: Gavin Bunney <[email protected]>
dynamic_modules: fix `EnvoyBuffer::new` lifetime (#49063)

`EnvoyBuffer::new` returns a buffer whose lifetime is unrelated to its
input slice. Safe code can return a buffer backed by a local `Vec` and
read freed memory after the `Vec` is dropped.

This PR ties the buffer's lifetime to the slice and adds a compile-fail
doc test for that case.

Risk Level: Low
Testing: Confirmed the regression compiled before the fix and is
rejected afterward. Buffer unit tests and SDK doc tests pass.
Docs Changes: Documented the constructor's borrow.
Release Notes: Added a dynamic modules bug-fix fragment.
Platform Specific Features: N/A

AI assistance was used; I reviewed and understand the changes.

Signed-off-by: Gavin Bunney <[email protected]>
deps: Update QUICHE to 35cbd03 (#49043)

deps: Update QUICHE to 35cbd03

Update QUICHE from f53fd81 to 35cbd03
https://github.com/google/quiche/compare/f53fd81..35cbd03

Registry:
https://github.com/envoyproxy/bazel-registry/commit/05ecd55a93884ef065ade452ddba83bbcef97918

```
$ git log f53fd81..35cbd03 --date=short --no-merges --format="%ad %an %s"

2026-10-27 ricea Separate Balsa tests from quiche_tests
2026-10-27 ricea Merge the BBRv2 and BBRv3 simulator tests into one parameterized test.
2026-10-27 apaseltiner Round Structured Headers decimal ties to even across all in-range values.
2026-10-28 QUICHE team Fix misaligned header pointer access in CreateTcpResetPacket.
2026-10-28 QUICHE team #cana-http 1/2: Pass the HTTP/3 SETTINGS wire order to QuicSpdySession::OnSettingsFrame.
2026-10-28 ricea Add QUICHE_EXPORT to ChunkedBuffer::AppendRegion
2026-10-29 ricea Consolidate Http2StructureDecoder tests into a single test file.
2026-10-29 ianswett No public description
2026-10-29 martinduke Add PUBLISH_STATE_NOTIFY parser/framer and delete request-id from GOAWAY.
2026-10-30 QUICHE team Add a QUIC protocol flag for the ack frequency used during ack decimation.
2026-10-30 ianswett Add tests for key usecases described in go/cid-capacity-experiment
2026-10-30 martinduke Consolidate SubscriptionFilter anchoring and LARGEST_OBJECT validation in Update().
2026-10-30 apaseltiner Use absl::string_view for raw inputs in Structured Headers spec tests.
2026-10-30 martinduke Update kMaxGroupId and kMaxObjectId.
2026-10-30 apaseltiner Default optional fields in Structured Headers spec test structs.
2026-11-02 QUICHE team Enable GFE feature flags rolled out to 100% of production.
2026-11-02 ianswett Improve QUIC ACK Frequency frame handling and validation to draft-ietf-quic-ack-frequency-14.
2026-11-03 jprat Add QuicheCodeCountReader platform API and verify BalsaFrame defect code counters
2026-11-03 jprat Verify BalsaFrame protocol defect code counters in balsa_frame_test
2026-11-03 jprat Add test coverage for require_header_colon_enforced in BalsaFrame
2026-11-03 martinduke Deprecate --gfe2_reloadable_flag_quic_enobufs_blocked.
2026-11-03 jprat Record stray_data_after_chunk_detected code counter at most once per message.
2026-11-03 jprat Add a quiche code count for detecting multiple transfer encoding keys
2026-11-03 jprat Eliminate double counting and redundant Balsa HTTP validation code counts
2026-11-04 asedeno Report synchronous OS bind errors in quic::CreateAndBindServerSocket.
2026-11-04 QUICHE team QBONE packet reader: fix UDP GRO
2026-11-04 apaseltiner Document duplicate-key caveat on `quiche::structured_headers::Dictionary(std::vector<DictionaryMember>)`.
2026-11-04 vasilvv Add proper API to enable receive timestamps.
2026-11-05 ianswett Allow sending up to two probe packets on PTO during the QUIC handshake with the PTO2 connection option.
2026-11-05 ianswett Store QUIC min_ack_delay in microseconds and update naming to draft14.
```

---------

Signed-off-by: Ryan Hamilton <[email protected]>
repo: remove derekargueta from emeritus code owners (#49056)

Active in the project again.

Signed-off-by: Derek Argueta <[email protected]>
tests/coverage: Don't exec bazel in the coverage shim (#49055)

`exec` bypasses the exported `bazel` function from `ci/build_setup.sh`,
dropping the CI startup options (`--output_user_root`/`--output_base`),
so under CI the coverage run used a default output base instead of the
configured one. Call it as a command like the other CI scripts do.

Signed-off-by: Ryan Northey <[email protected]>
test: add fuzz coverage for MCP Filter and JSON-REST Bridge (#49016)

Commit Message: add fuzz coverage for MCP Filter and JSON-REST Bridge
Additional Description: This PR adds dedicated fuzz testing for the MCP
HTTP Filter and MCP JSON-REST Bridge, focusing on MCP 2026-07-28
protocol handling.
The changes include:
MCP Filter: Add a fuzz harness and 19 curated corpus seeds covering
protocol validation, attribute sources (HEADERS, VERIFY, BODY), traffic
modes, header/body consistency, and required request metadata.
MCP JSON-REST Bridge: Add a fuzz harness and 17 curated corpus seeds
covering request validation, MCP-to-REST transcoding, response
transformation, SSE streaming, and legacy compatibility.
Risk Level: Low
Testing:
-MCP Filter and JSON-REST Bridge Bazel tests passed.
-ASan/UBSan fuzzing completed for both targets with no crashes or
invariant failures.
Docs Changes: NA
Release Notes: NA
Platform Specific Features: NA

---------

Signed-off-by: Wenwei Zhao <[email protected]>
bazel: Bump -> 9.3.2 (#49054)

Signed-off-by: Ryan Northey <[email protected]>
deps/cve: Ignore CVE-2026-72854 (msgpack-c unpacker, unused) (#49052)

Signed-off-by: Ryan Northey <[email protected]>
ci/cve: Include CVE Program (cvelist) data in the scan/fetch (#49051)o

Pairs with the toolshed scanner change adding cvelistV5 records as a
source for CVEs that NVD has not analyzed: glob the `cve_data/cvelist/`
month files into the scan data, sync the subdirectory from the bucket,
and pass a token for the fetcher's release lookup.

Signed-off-by: Ryan Northey <[email protected]>
deps: Bump `bazel-registry` -> 99aa31e (#49050)

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
dynamic_modules: let a stats sink retain its flush snapshot past the flush hook (#48974)

Commit Message: dynamic_modules: let a stats sink retain its flush
snapshot past the flush hook

The goal of the PR is to introduce 2 new ABI methods that allow a stats
sink dynamic module to process a flush snapshot off the main thread, by
retaining it during the flush hook and releasing it once the module is
done.

Additional Description:

A dynamic module stats sink gets its snapshot in
`envoy_dynamic_module_on_stat_sink_flush`, which runs on the main
thread, and the handle is only valid during that hook. A sink that
formats a large snapshot therefore has to decode every stat name on the
main thread With many clusters that is a lot of main-thread time on
every flush.

This adds two new callbacks:

- `envoy_dynamic_module_callback_stat_sink_snapshot_retain` takes a
reference on every stat in the snapshot and copies the values: counter
values and deltas, gauge values, text readout values, and histogram
sample counts, sums, and buckets. It returns a new handle that every
existing snapshot callback accepts,

- `envoy_dynamic_module_callback_stat_sink_snapshot_release` drops the
handle and its references.

Risk Level: Low. These are new opt-in ABI callbacks, and the existing
flush path behaves the same.
Testing: Unit and integration tests, run locally in the CI build image:
`//test/extensions/dynamic_modules/stat_sink:abi_impl_test` (new cases
for values frozen at retain time, stat references, retaining from a
retained handle, a removed stat kept alive until release, and read plus
release on another thread),
`//test/extensions/dynamic_modules/stat_sink:sink_test`,
`//test/extensions/dynamic_modules:abi_impl_test` (weak stubs),
`//source/extensions/dynamic_modules/sdk/rust:envoy_proxy_dynamic_modules_rust_sdk_test`,
and `//test/extensions/dynamic_modules/stat_sink:integration_test`. The
integration test ran IPv4 only, because IPv6 is disabled in my local
container, so the IPv6 cases are left to CI.
Docs Changes: N/A (ABI header docs updated)
Release Notes: Added
`changelogs/current/new_features/dynamic_modules__stat-sink-snapshot-retain.rst`.
Platform Specific Features: N/A

---------

Signed-off-by: Dev Narula <[email protected]>
Co-authored-by: Isaac <[email protected]>
body_size_limit: add rejection counters (#48773)

Commit Message: body_size_limit: add rejection counters

The filter has no stats, so the only signal that it rejected something
was the access log's
`request_payload_too_large` response code details. #48985 already moved
the rejection log from `error` to `debug`.

This adds `rq_content_length_too_large` and `rq_body_too_large` counters
under
`http.<stat_prefix>.body_size_limit.`, and switches the rejection log to
`ENVOY_STREAM_LOG(debug)` so it carries the connection and stream IDs,
dropping the client address, upstream host and path it no longer needs.

Additional Description: Two counters rather than one because they mean
different things to an
operator: the first is a client announcing a too-large body, the second
is a chunked (or lying)
body that got cut off partway. The filter is alpha, so this isn't a
threat-model issue, but we were
looking at rolling it out on internet-facing listeners and the error log
volume was the thing that
stopped us.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low
Testing: unit and integration tests assert both counters
Docs Changes: added a Statistics section to the filter's docs page
Release Notes: added (new feature)
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
tcp_proxy: remove http stream reset mapping runtime guard (#48763)

Commit Message:
Remove `envoy.reloadable_features.map_http_stream_reset_to_tcp_rst` and
its obsolete fallback path. Preserve the enabled-by-default mapping of
remote HTTP stream reset reasons to `RemoteClose`/`RemoteReset` before
response completion; local resets and remote resets after response
completion continue to use `LocalClose`/`Normal`.

Additional Description:
- Remove disabled-guard unit and integration tests while retaining
default-path tunneling coverage.
- Extend unit coverage to include `RemoteResetNoError` and all four
mapped remote reset reasons after response completion across HTTP/1,
HTTP/2, and HTTP/3 codec parameters.
- This branch is based directly on main and is independent of the
upstream reset propagation guard cleanup.

Risk Level: Low; preserves the existing default behavior and removes the
ability to opt out.
Testing:
- Repository format checks, C++ formatting checks, and `git diff
--check` passed.
- Confirmed no remaining source, test, or documentation references to
the removed guard.
- Attempted focused tests with `bazel test
//test/common/tcp_proxy:upstream_test
//test/integration:tcp_tunneling_integration_test --jobs=2
--test_filter='*HttpUpstreamTest*:*UpstreamRstPropagationThroughTunnel*'
--test_output=errors`; compilation was blocked before tests ran because
the pinned LLVM compiler requires GLIBC_2.32/2.33/2.34, unavailable in
the local environment. Docker was unavailable, so execution n…
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
`rbe_pool` pins one EngFlow pool for every action of a target in every
build. Measuring every compile, link and test of `//test/...` under opt,
asan, tsan, msan and gcc showed that the need is per configuration and
per kind of action: compiles over 3GiB are common under clang and more
so under gcc, the tsan and gcc links of the largest binaries run 9-12GB,
and tests fit the default pool everywhere except a few dozen under msan.
One pin for everything either over-provisions the test action and the
other configurations or under-provisions the one that needs it.

This makes the selection configuration- and action-aware, in a shared
`bazel/envoy_rbe.bzl`:

- `rbe_pool` still takes a pool name (every action, every configuration,
as before) and now also a dict keyed by
`default`/`asan`/`msan`/`tsan`/`coverage`/`gcc`; a configuration not
named uses `default`.
- each value is a pool name or `{"build": pool, "test": pool}`: `build`
covers compile and link (`Pool`), `test` the test action (`test.Pool`).
A build-only pin leaves the test action on the platform default; a
test-only pin leaves compiles and links there.
- the non-test macros (`envoy_cc_library`, `envoy_cc_binary`,
`envoy_cc_test_library`, `envoy_cc_test_binary`, a fuzz test's library)
ignore test pools; a fuzz test's library now gets the pin, previously
only its binary did.
- each configuration gets its own single-key `select()` in a fixed
precedence order, so configurations enabled together (fuzz coverage:
coverage + asan) never meet in one `select()`.

Existing string pins land every action on the pool they do today;
nothing changes until a pin uses the new forms. envoyproxy#49078 regenerates the
tree's pins from the measurement using them.


Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
… build of endpoint_keyed_filtering_test

The GCC compile of this test does not fit the default RBE pool and is
killed intermittently, failing the gcc check.

This is the pin for this target from envoyproxy#49078, which cannot be picked to
this branch as a whole.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
…d of health_checker_impl_test

The GCC compile of this test does not fit the default RBE pool: it ran
until the 30 minute action timeout, failing the gcc check.

This is the pin for this target from envoyproxy#49078, which cannot be picked to
this branch as a whole.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
`rbe_pool` pins one EngFlow pool for every action of a target in every
build. Measuring every compile, link and test of `//test/...` under opt,
asan, tsan, msan and gcc showed that the need is per configuration and
per kind of action: compiles over 3GiB are common under clang and more
so under gcc, the tsan and gcc links of the largest binaries run 9-12GB,
and tests fit the default pool everywhere except a few dozen under msan.
One pin for everything either over-provisions the test action and the
other configurations or under-provisions the one that needs it.

This makes the selection configuration- and action-aware, in a shared
`bazel/envoy_rbe.bzl`:

- `rbe_pool` still takes a pool name (every action, every configuration,
as before) and now also a dict keyed by
`default`/`asan`/`msan`/`tsan`/`coverage`/`gcc`; a configuration not
named uses `default`.
- each value is a pool name or `{"build": pool, "test": pool}`: `build`
covers compile and link (`Pool`), `test` the test action (`test.Pool`).
A build-only pin leaves the test action on the platform default; a
test-only pin leaves compiles and links there.
- the non-test macros (`envoy_cc_library`, `envoy_cc_binary`,
`envoy_cc_test_library`, `envoy_cc_test_binary`, a fuzz test's library)
ignore test pools; a fuzz test's library now gets the pin, previously
only its binary did.
- each configuration gets its own single-key `select()` in a fixed
precedence order, so configurations enabled together (fuzz coverage:
coverage + asan) never meet in one `select()`.

Existing string pins land every action on the pool they do today;
nothing changes until a pin uses the new forms. envoyproxy#49078 regenerates the
tree's pins from the measurement using them.


Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
… build of endpoint_keyed_filtering_test

The GCC compile of this test does not fit the default RBE pool and is
killed intermittently, failing the gcc check.

This is the pin for this target from envoyproxy#49078, which cannot be picked to
this branch as a whole.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
…d of health_checker_impl_test

The GCC compile of this test does not fit the default RBE pool: it ran
until the 30 minute action timeout, failing the gcc check.

This is the pin for this target from envoyproxy#49078, which cannot be picked to
this branch as a whole.

Signed-off-by: Ryan Northey <[email protected]>
jwendell pushed a commit that referenced this pull request Nov 11, 2026
`rbe_pool` pins one EngFlow pool for every action of a target in every
build. Measuring every compile, link and test of `//test/...` under opt,
asan, tsan, msan and gcc showed that the need is per configuration and
per kind of action: compiles over 3GiB are common under clang and more
so under gcc, the tsan and gcc links of the largest binaries run 9-12GB,
and tests fit the default pool everywhere except a few dozen under msan.
One pin for everything either over-provisions the test action and the
other configurations or under-provisions the one that needs it.

This makes the selection configuration- and action-aware, in a shared
`bazel/envoy_rbe.bzl`:

- `rbe_pool` still takes a pool name (every action, every configuration,
as before) and now also a dict keyed by
`default`/`asan`/`msan`/`tsan`/`coverage`/`gcc`; a configuration not
named uses `default`.
- each value is a pool name or `{"build": pool, "test": pool}`: `build`
covers compile and link (`Pool`), `test` the test action (`test.Pool`).
A build-only pin leaves the test action on the platform default; a
test-only pin leaves compiles and links there.
- the non-test macros (`envoy_cc_library`, `envoy_cc_binary`,
`envoy_cc_test_library`, `envoy_cc_test_binary`, a fuzz test's library)
ignore test pools; a fuzz test's library now gets the pin, previously
only its binary did.
- each configuration gets its own single-key `select()` in a fixed
precedence order, so configurations enabled together (fuzz coverage:
coverage + asan) never meet in one `select()`.

Existing string pins land every action on the pool they do today;
nothing changes until a pin uses the new forms. #49078 regenerates the
tree's pins from the measurement using them.


Signed-off-by: Ryan Northey <[email protected]>
jwendell pushed a commit that referenced this pull request Nov 11, 2026
… build of endpoint_keyed_filtering_test

The GCC compile of this test does not fit the default RBE pool and is
killed intermittently, failing the gcc check.

This is the pin for this target from #49078, which cannot be picked to
this branch as a whole.

Signed-off-by: Ryan Northey <[email protected]>
jwendell pushed a commit that referenced this pull request Nov 11, 2026
…d of health_checker_impl_test

The GCC compile of this test does not fit the default RBE pool: it ran
until the 30 minute action timeout, failing the gcc check.

This is the pin for this target from #49078, which cannot be picked to
this branch as a whole.

Signed-off-by: Ryan Northey <[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.

3 participants