Skip to content

[bp/1.40] Flake and CI stack - #49234

Merged
phlax merged 41 commits into
envoyproxy:release/v1.40from
phlax:bp-1.40-flake-stack
Nov 17, 2026
Merged

phlax merged 41 commits into
envoyproxy:release/v1.40from
phlax:bp-1.40-flake-stack

Conversation

@phlax

@phlax phlax commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Test deflakes and CI/release pipeline changes for release/v1.40, following #49200, with four product code fixes.

Product code, none behind a runtime guard (as on main):

Release pipeline, which changes how a v1.40 release is built and packaged: the gcc jobs build with -c opt (#49236), Verify is split from Publish (#49261), the container images are built with rules_oci (#49259), the release artifacts are compressed and packaged differently (#49294, #49295, #49296, #49289), and both arches are built, signed and published from one job (#49331).

From main, in the order they landed:

Not included, as they don't apply to v1.40:

Risk Level: medium (the product code fixes above, unguarded, and the release pipeline)

@phlax phlax changed the title [bp/1.40] Flake stack [WIP/bp/1.40] Flake stack Nov 13, 2026
@phlax
phlax marked this pull request as draft November 13, 2026 10:58
phlax and others added 6 commits November 13, 2026 11:00
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: the conflicts in test/extensions/common/wasm/wasm_test.cc were only in
tests that are not on v1.40 (MemorySizeGauge*, RemoteCodeInProgress*, VmMemorySizeGauge),
which are left out.

Signed-off-by: Ryan Northey <[email protected]>
…voyproxy#48960)

createUpstreamTlsContext built every fake upstream TLS context on
server_factory_context_.serverScope(), a single unlocked mock
IsolatedStoreImpl shared by all upstreams. ContextImpl creates
ssl.ciphers.*, ssl.versions.*, ssl.curves.* and ssl.sigalgs.* lazily on
the handshake, ie on each fake upstream dispatcher thread, so two TLS
upstreams handshaking at once (AlpnIntegrationTest.Http1New: two
connections, two upstreams) insert into the same flat_hash_map
concurrently. The msan build hit absl's "constructed value does not
match the lookup key" assertion in IsolatedStatsCache::get on a fake
upstream listener connection.

The xDS upstream already used a TestIsolatedStoreImpl for exactly this.
Create it lazily (upstreamStatsScope()) and use it for every upstream
server TLS context, including the ones alpn_selection and sds_dynamic
build themselves, so creating the xDS upstream no longer replaces a
store other upstreams reference.

Backport note: v1.40 does not have the SslUpstreamClientCertRejectedIntegrationTest
class (envoyproxy#48570), so its server TLS context change is dropped.

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

Backport note: conflicted with the gmock Invoke() removal (envoyproxy#48804), which is not on
v1.40; the fuzz harness files are taken as they are on main after this change.

Signed-off-by: Ryan Northey <[email protected]>
…nvoyproxy#49076)

The target is marked "enormous" (a one hour timeout), split into 16
shards and run on the large RBE pool. Since envoyproxy#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]>
…tion (envoyproxy#49209)

The test sets `max_connection_duration` to 1s and then pre-fills the
downstream outbound queue. The duration timer runs from when the
connection is made, so it also covers the pre-fill, and the pre-fill
helper waits to see `http2.outbound_frames_active` at exactly 1000. If
the timer fires before the test thread has seen that, the GOAWAY
overflows the queue and the connection closes, which is what the test
is after, but the gauge drops to 0 and the helper times out with
"current value 0" and `http2.outbound_flood` already at 1.

This splits sending the pre-fill request out of the helper, and the
test uses that and waits for the disconnect, without waiting on the
state of the queue in between. The response and the GOAWAY are one
frame over the limit together, so nothing has to be seen before the
timer fires. The other users of the helper do not change.

Additional Description:
Seen under tsan on IPv4Oghttp2. The test takes about 2s there, so the
pre-fill normally fits in the second with little to spare. It did not
reproduce in 1000 runs of the test or 100 runs of the suite under tsan
on a quiet cluster. Stalling the test thread for 1.5s after the
pre-fill request is sent reproduces the exact symptom in 20 of 20 runs
on all four variants.

With this change the test passes 500 of 500 runs under tsan. It also
passes 20 of 20 with a 1.5s stall before the socket is blocked, and 20
of 20 with the stall after that but before the request is sent, so it
holds when the timer fires first.

envoyproxy#28733 reported the same failure on the same variant in 2023.

Fixes envoyproxy#28733

Signed-off-by: Ryan Northey <[email protected]>
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax force-pushed the bp-1.40-flake-stack branch 2 times, most recently from 4a0aa85 to 06a18f4 Compare November 13, 2026 12:22
@phlax phlax changed the title [WIP/bp/1.40] Flake stack [bp/1.40] Flake stack Nov 13, 2026
@phlax
phlax marked this pull request as ready for review November 13, 2026 13:07
@phlax phlax changed the title [bp/1.40] Flake stack [WIP/bp/1.40] Flake stack Nov 13, 2026
@phlax
phlax marked this pull request as draft November 13, 2026 13:08
@phlax
phlax force-pushed the bp-1.40-flake-stack branch from 05a1d04 to b94f50d Compare November 13, 2026 21:08
@phlax phlax changed the title [WIP/bp/1.40] Flake stack [WIP/bp/1.40] Flake and CI stack Nov 16, 2026
…y#49219)

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners, which only completes once the workers have added
them, as envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

Signed-off-by: Ryan Northey <[email protected]>
…ps (envoyproxy#48479)

this is yet another attempt to fix endemic dfp flakiness - which is
apparently a code rather than test problem

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit c04db74)
Signed-off-by: Ryan Northey <[email protected]>
… job (envoyproxy#49331)

With `release-publish-multiarch`, the x64 Publish binary job builds
everything published for both arches (`release.multiarch`), and uploads
the same artifacts as the per-arch jobs did (`release.<arch>`,
`oci.<arch>`, `packages.<arch>`); there is no arm64 job.

`//distribution/publish:publish_<arch>` builds `//distribution/publish`
for the arch's target platform, from any host. Only the target platform
changes: everything runs on the build's execution platforms, so the
arm64 binaries are cross-compiled on x64 (the llvm toolchain has the
arm64 sysroot and libc++), and the exec tools (eg the Python ones, whose
pip deps only resolve for the host) stay on the host's arch.

The tools are now `bundled` too (as the container images' are), so they
are built in the same configuration as the binaries.

`release.publish` builds the host's arch, as before.

The job is named `Server (multiarch)`. It sets `--//bazel:multiarch`, so
on EngFlow the x86_64 RBE pool pins (`envoy_exec_properties`, via
`//bazel:engflow_rbe_x86_64`) apply to the arm64 half too, as it is
built on x86_64 workers. Without it (eg a native arm64 build) arm64
keeps the arm platform's pool.

With `release-publish-multiarch`, the x64 Publish binary job
(`release.multiarch`) builds only what the pipeline uses from it, and
signs the release of both arches in the same invocation:

- `//distribution/publish:publish_multiarch_<arch>`: the container
images, uploaded (`oci.<arch>`), and the `.deb`/`.changes` files and the
stripped release binaries (`release.stripped.tar.zst`), which are
signed.
- `//distribution:signed`, with `--//distribution:signing-inputs=debs`
and `--//distribution:<arch>-{debs,release}` set to those
(`publish_multiarch_<arch>_{debs,release}`): the `.changes` are signed
from the debs, and the `.deb`s and signed `.changes` bundled into
`debs.tar.gz` directly, rather than through the packages tarballs
(`signing-inputs=tarballs`, as the Sign packages job), with the key and
passphrase at `ENVOY_SIGNING_{KEY,PASSPHRASE}_PATH` (staged by
`_run.yml` `signing`, under the same conditions as the Sign packages
job, with the snakeoil key for untrusted requests). It uploads
`release.signed`, and the Sign packages job is skipped.

The signing actions are audited as by `release.signed`, in an aquery of
`//distribution:signed` without the builds of its inputs (which can only
drop tool artifacts, so fail the audit, not pass it).

Nothing downstream uses the release tarball (with the debug binaries),
the tools, the packages tarballs, or the release and packages artifacts,
which were for the per-arch Docker OCI, Packages and Sign packages jobs:
they are neither built nor uploaded.

The bundling of the release for signing (the release binaries, the
multi-arch debs, the `.changes` and `release.signed.tar.zst`) is local
(`PUBLISH_PACKAGING_TAGS`): it changes with every commit.

The dev publish (`github-dev`) runs once the release is signed in the
build, as the Sign packages job is skipped, on the publishing agent.

---------

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.40): in `_publish_release.yml` the dev publish job (`github-dev`,
from envoyproxy#49305) is left out, as this branch has no dev/release publish split; the multiarch
sign condition goes on the `github` job.

(cherry picked from commit 44a6cec)
Signed-off-by: Ryan Northey <[email protected]>

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.

🟡 Changes recommended

Automatic verification is blocked by pinned actions that reject the Publish trigger chain and cannot retrieve cross-run artifacts, while the image updater leaves published OCI base-image pins unchanged.

3 open issues
What changed in this PR

Backports test-stability fixes and CI improvements to release/v1.40, alongside runtime fixes for reverse tunnels, internal sockets, and dynamic forward proxy host selection.

Changes:

  • Reduces test races and Wasm compilation overhead, and strengthens protobuf failure handling.
  • Updates release packaging, multi-architecture publishing, verification workflows, dependencies, and remote build settings.
  • Moves configuration-checking tools into tools/, preserves compatibility labels, and enables OpenSSL compatibility formatting checks.
File Description
tools/​spelling/​spelling_dictionary.txt Adds LEB terminology.
tools/​schema_validator/​validator.h Relocates validator declarations.
tools/​schema_validator/​validator.cc Updates relocated header include.
tools/​schema_validator/​schema_validator.cc Updates validator include path.
tools/​schema_validator/​BUILD Defines relocated validator targets.
tools/​router_check/​router.h Updates tool and generated-header paths.
tools/​router_check/​router.cc Updates router header path.
tools/​router_check/​router_check.cc Updates relocated tool includes.
tools/​router_check/​coverage.h Relocates coverage declarations.
tools/​router_check/​coverage.cc Updates coverage header path.
tools/​router_check/​BUILD Defines relocated router-check targets.
tools/​config_load_check/​config_load_check.cc Relocates configuration-check entry point.
tools/​config_load_check/​BUILD Defines relocated configuration-check targets.
tools/​code_format/​config.yaml Enables OpenSSL checks and updates exclusions.
test/​tools/​wee8_compile/​wee8_compile.cc Removes compilation progress output.
test/​tools/​schema_validator/​test/​schema_validator_test.cc Uses relocated validator header.
test/​tools/​schema_validator/​test/​BUILD Uses relocated validator library.
test/​tools/​schema_validator/​BUILD Preserves legacy target aliases.
test/​tools/​router_check/​test/​router_test.cc Uses relocated router headers.
test/​tools/​router_check/​test/​route_tests.sh Uses relocated tool executable.
test/​tools/​router_check/​test/​BUILD Updates tool dependencies.
test/​tools/​router_check/​BUILD Preserves legacy router-check aliases.
test/​tools/​config_load_check/​BUILD Preserves legacy configuration-check aliases.
test/​test_common/​wasm_base.h Enables precompiled test modules.
test/​integration/​xfcc_integration_test.cc Uses locked upstream TLS statistics.
test/​integration/​xds_integration_test.cc Extends drain deadline during connection testing.
test/​integration/​ssl_utility.h Adds explicit TLS statistics scope parameter.
test/​integration/​ssl_utility.cc Uses supplied TLS statistics scope.
test/​integration/​sds_static_integration_test.cc Uses locked upstream TLS statistics.
test/​integration/​overload_integration_test.cc Prevents premature delayed-close timeout.
test/​integration/​listener_extension_discovery_integration_test.cc Waits for listener workers before connecting.
test/​integration/​http2_flood_integration_test.cc Removes transient queue-fill wait.
test/​integration/​hds_integration_test.cc Waits for health-check counters.
test/​integration/​BUILD Reduces SDS test size classification.
test/​integration/​base_integration_test.h Defines shared TLS statistics scope and lifetime.
test/​integration/​base_integration_test.cc Lazily creates locked upstream statistics store.
test/​integration/​alpn_selection_integration_test.cc Uses locked upstream TLS statistics.
test/​integration/​ads_integration_test.cc Reuses upstream statistics helper.
test/​extensions/​upstreams/​http/​reverse_tunnel/​config_test.cc Adapts registry construction to reference parameter.
test/​extensions/​transport_sockets/​starttls/​upstream_starttls_integration_test.cc Uses locked upstream TLS statistics.
test/​extensions/​stats_sinks/​wasm/​wasm_stat_sink_test.cc Narrows host-test runtime matrix.
test/​extensions/​stats_sinks/​wasm/​test_data/​BUILD Enables V8 module precompilation.
test/​extensions/​stats_sinks/​wasm/​config_test.cc Enables precompiled modules and narrows runtimes.
test/​extensions/​load_balancing_policies/​load_aware_locality/​BUILD Adds simulated-time dependency and reduces test size.
test/​extensions/​io_socket/​user_space/​io_handle_impl_test.cc Tests peer-close readiness notifications.
test/​extensions/​io_socket/​user_space/​connection_compatibility_test.cc Tests blocked flush cleanup after peer close.
test/​extensions/​health_checkers/​udp/​BUILD Separates compile and link pool assignments.
test/​extensions/​filters/​network/​wasm/​wasm_filter_test.cc Narrows host-test runtime matrix.
test/​extensions/​filters/​network/​wasm/​test_data/​BUILD Precompiles network-filter test modules.
test/​extensions/​filters/​network/​sni_dynamic_forward_proxy/​proxy_filter_integration_test.cc Supplies locked TLS statistics scope.
test/​extensions/​filters/​network/​reverse_tunnel/​filter_unit_test.cc Corrects registry teardown and replacement order.
test/​extensions/​filters/​http/​wasm/​wasm_filter_integration_test.cc Uses split modules and adds source-loading coverage.
test/​extensions/​filters/​http/​wasm/​test_data/​test_shared_queue_cpp.cc Uses full Wasm intrinsics header.
test/​extensions/​filters/​http/​wasm/​test_data/​test_shared_data_cpp.cc Uses full Wasm intrinsics header.
test/​extensions/​filters/​http/​wasm/​test_data/​test_resume_call_cpp.cc Uses full Wasm intrinsics header.
test/​extensions/​filters/​http/​wasm/​test_data/​test_panic_cpp.cc Uses full Wasm intrinsics header.
test/​extensions/​filters/​http/​wasm/​test_data/​test_close_stream_cpp.cc Uses full Wasm intrinsics header.
test/​extensions/​filters/​http/​wasm/​test_data/​test_body_cpp.cc Updates intrinsics and string-view type.
test/​extensions/​filters/​http/​wasm/​test_data/​test_async_call_cpp.cc Uses full Wasm intrinsics header.
test/​extensions/​filters/​http/​router/​auto_sni_integration_test.cc Uses locked upstream TLS statistics.
test/​extensions/​filters/​http/​grpc_json_transcoder/​grpc_json_transcoder_integration_test.cc Waits for closed pooled connections to disappear.
test/​extensions/​filters/​http/​ext_proc/​http_client/​ext_proc_http_integration_test.cc Extends normal timeouts and normalizes durations.
test/​extensions/​filters/​http/​ext_proc/​ext_proc_observability_integration_test.cc Synchronizes side-stream logging information.
test/​extensions/​filters/​http/​ext_proc/​ext_proc_integration_test.cc Handles variable response-body chunking.
test/​extensions/​filters/​http/​ext_proc/​ext_proc_integration_common.h Declares streamed-response helper.
test/​extensions/​filters/​http/​ext_proc/​ext_proc_integration_common.cc Processes streamed chunks through end-of-stream.
test/​extensions/​filters/​http/​dynamic_forward_proxy/​proxy_filter_integration_test.cc Updates TLS scope and failure diagnostics.
test/​extensions/​config_subscription/​grpc/​xds_failover_integration_test.cc Reuses upstream statistics helper.
test/​extensions/​common/​wasm/​wasm_runtime.h Exposes reduced runtime matrices.
test/​extensions/​common/​wasm/​wasm_runtime.cc Implements first-runtime selection.
test/​extensions/​common/​wasm/​wasm_runtime_test.cc Tests runtime ordering and matrix selection.
test/​extensions/​common/​wasm/​test_data/​BUILD Adds precompiled modules and source-only fixture.
test/​extensions/​common/​wasm/​BUILD Registers runtime tests and source fixture.
test/​extensions/​clusters/​reverse_connection/​reverse_connection_cluster_test.cc Updates extension initialization and replacement.
test/​extensions/​clusters/​dynamic_modules/​integration_test.cc Uses locked upstream TLS statistics.
test/​extensions/​bootstrap/​wasm/​wasm_speed_test.cc Allows precompiled benchmark modules.
test/​extensions/​bootstrap/​wasm/​wasm_integration_test.cc Enables precompiled integration modules.
test/​extensions/​bootstrap/​wasm/​test_data/​BUILD Precompiles bootstrap test modules.
test/​extensions/​bootstrap/​wasm/​config_test.cc Enables precompilation and narrows runtime matrix.
test/​extensions/​bootstrap/​reverse_tunnel/​upstream_socket_interface/​upstream_socket_manager_test.cc Tests logging suppression during thread-local shutdown.
test/​extensions/​bootstrap/​reverse_tunnel/​upstream_socket_interface/​upstream_reverse_connection_io_handle_test.cc Updates registry construction.
test/​extensions/​bootstrap/​reverse_tunnel/​upstream_socket_interface/​reverse_tunnel_upstream_lifecycle_test.cc Adds teardown ordering and shutdown coverage.
test/​extensions/​bootstrap/​reverse_tunnel/​upstream_socket_interface/​reverse_tunnel_acceptor_test.cc Updates registry construction.
test/​extensions/​bootstrap/​reverse_tunnel/​upstream_socket_interface/​reverse_tunnel_acceptor_extension_test.cc Tests worker initialization and pointer cleanup.
test/​extensions/​access_loggers/​wasm/​test_data/​BUILD Precompiles access-logger test module.
test/​extensions/​access_loggers/​wasm/​config_test.cc Enables precompilation and narrows runtime matrix.
test/​common/​upstream/​health_check_fuzz.h Removes predictive client-creation controls.
test/​common/​upstream/​health_check_fuzz_test_utils.h Declares on-demand mock factories.
test/​common/​upstream/​health_check_corpus/​grpc_goaway_without_probe_then_response Adds GOAWAY fuzz regression input.
test/​common/​tls/​integration/​ssl_upstream_integration_test.cc Uses locked upstream TLS statistics.
source/​extensions/​io_socket/​user_space/​io_handle_impl.cc Wakes enabled writers when peers close.
source/​extensions/​clusters/​reverse_connection/​reverse_connection.cc Updates initialization comment and assertion text.
source/​extensions/​clusters/​dynamic_forward_proxy/​cluster.h Reselects hosts after asynchronous DNS completion.
source/​extensions/​clusters/​dynamic_forward_proxy/​cluster.cc Reselects hosts after completed cache lookups.
source/​extensions/​bootstrap/​reverse_tunnel/​upstream_socket_interface/​reverse_tunnel_acceptor_extension.h Declares worker initialization and required extension reference.
source/​common/​protobuf/​create_reflectable_message.cc Enforces non-null results in release builds.
mobile/​MODULE.bazel Updates toolshed dependency.
docs/​root/​start/​building/​local_docker_build.rst Updates release-build command.
docs/​root/​operations/​tools/​schema_validator_check_tool.rst Documents relocated validator paths.
docs/​root/​operations/​tools/​route_table_check_tool.rst Documents relocated router-check paths.
docs/​root/​operations/​tools/​config_load_check_tool.rst Documents relocated configuration-check paths.
docs/​root/​configuration/​operations/​tools/​router_check.rst Updates router-check examples.
docs/​MODULE.bazel Updates toolshed dependency.
docs/​BUILD Assigns larger Sphinx build pool.
distribution/​publish/​arch.bzl Adds architecture-specific publication rules.
distribution/​packages.bzl Adds local packaging tags and compression options.
distribution/​docker/​ca_certificates.bzl Generates certificate configuration from package contents.
distribution/​debian/​packages.bzl Compresses package data and propagates execution tags.
distribution/​changes.bzl Supports direct package inputs and local splitting.
distribution/​binary/​debug.bzl Compresses and splits debug artifacts.
distribution/​binary/​BUILD Adds compressed release and stripped-only archives.
contrib/​config/​test/​kv_store_xds_delegate_integration_test.cc Restarts SDS upstream on its original port.
configs/​BUILD Exports release configuration file.
compat/​openssl/​test/​test_err.cc Adds formatting guards around error assertions.
compat/​openssl/​test/​test_crypto.cc Applies formatting cleanup.
compat/​openssl/​source/​X509_verify.cc Applies formatting cleanup.
compat/​openssl/​source/​X509_set_serialNumber.cc Applies formatting cleanup.
compat/​openssl/​source/​X509_CRL_verify.cc Applies formatting cleanup.
compat/​openssl/​source/​X509_CRL_get0_by_cert.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_write.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_shutdown.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_set1_curves_list.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_set_compliance_policy.cc Reorders includes.
compat/​openssl/​source/​SSL_read.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_get0_peer_certificates.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_get_error.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_get_compliance_policy.cc Reorders includes.
compat/​openssl/​source/​SSL_get_cipher_by_value.cc Applies include and pointer formatting.
compat/​openssl/​source/​SSL_do_handshake.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_CTX_set1_groups_list.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_CTX_set1_curves_list.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_CTX_set_verify_algorithm_prefs.cc Adjusts include spacing.
compat/​openssl/​source/​SSL_CTX_set_reverify_on_resume.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_CTX_set_cert_cb.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_CTX_new.cc Applies formatting cleanup.
compat/​openssl/​source/​SSL_CTX_get_ciphers.cc Applies formatting cleanup.
compat/​openssl/​source/​RSA_check_fips.cc Formats existing no-op implementation.
compat/​openssl/​source/​EVP_SignFinal.cc Applies formatting cleanup.
compat/​openssl/​source/​err.cc Adds formatting guards and corrects comment spelling.
compat/​openssl/​source/​EC_KEY_check_fips.cc Formats existing no-op implementation.
compat/​openssl/​source/​custom_bio.h Applies declaration formatting.
compat/​openssl/​source/​custom_bio.cc Applies include and declaration formatting.
compat/​openssl/​source/​BIO_set_data.cc Applies formatting cleanup.
compat/​openssl/​source/​BIO_new.cc Applies formatting cleanup.
compat/​openssl/​source/​BIO_meth_set_read.cc Applies formatting cleanup.
compat/​openssl/​source/​BIO_meth_set_ctrl.cc Applies formatting cleanup.
compat/​openssl/​source/​BIO_meth_new.cc Applies formatting cleanup.
compat/​openssl/​source/​BIO_get_data.cc Applies formatting cleanup.
compat/​openssl/​BUILD Adds runfiles-directory definition and normalizes ordering.
ci/​dependency/​release_images.sh Adds Dockerfile base-image updater.
ci/​build_setup.sh Reads multiline extra Bazel options.
ci/​bazel_fun.sh Updates crate-repinning explanation.
changelogs/​current/​minor_behavior_changes/​build__gcc-opt.rst Documents optimized GCC CI configuration.
changelogs/​current/​bug_fixes/​sockets__internal-socket-close-wakeup.rst Documents blocked-write cleanup fix.
changelogs/​current/​bug_fixes/​dynamic_forward_proxy__concurrent_resolution_503.rst Documents DNS host-selection race fix.
BUILD Grants relocated tools package access.
bazel/​wasm/​wasm.bzl Adds C++ Wasm precompilation wrapper.
bazel/​tests/​external/​MODULE.bazel Updates toolshed dependency.
bazel/​tests/​external/​.bazelrc Updates registry pin.
bazel/​tests/​codeql/​MODULE.bazel Updates toolshed dependency.
bazel/​tests/​codeql/​.bazelrc Updates registry pin.
bazel/​execution_context_transition.bzl Removes link pools from wrapper tests.
bazel/​envoy_test.bzl Enables C++ link-pool properties.
bazel/​envoy_library.bzl Enables library link-pool properties.
bazel/​envoy_binary.bzl Enables binary link-pool properties.
bazel/​deps.yaml Records container-packaging dependencies.
api/​MODULE.bazel Updates toolshed dependency.
api/​bazel/​cc_proto_descriptor_library/​text_format_transcoder.cc Checks descriptor decoding and construction failures.
api/​bazel/​cc_proto_descriptor_library/​testdata/​text_format_transcoder_test.cc Tests invalid and unbuildable descriptors.
api/​bazel/​cc_proto_descriptor_library/​testdata/​create_dynamic_message_test.cc Tests dynamic-message parse failures.
api/​bazel/​cc_proto_descriptor_library/​testdata/​BUILD Adds descriptor-test dependencies.
api/​bazel/​cc_proto_descriptor_library/​file_descriptor_info.cc Rejects malformed embedded descriptors.
api/​bazel/​cc_proto_descriptor_library/​create_dynamic_message.cc Returns failure for unsuccessful message parsing.
api/​.bazelrc Updates registry pin.
.github/​workflows/​envoy-verify.yml Adds independent post-publish verification workflow.
.github/​workflows/​envoy-publish.yml Separates verification and passes signing secrets.
.github/​workflows/​envoy-dependency.yml Adds release-image update task.
.github/​workflows/​_run.yml Forwards artifact source-run identifier.
.github/​workflows/​_publish_release.yml Accommodates signing within multi-architecture builds.
.github/​workflows/​_publish_build.yml Consolidates architectures into one release job.
.github/​config.yml Enables multi-architecture publishing and separate verification.
.bazelrc Updates registry, GCC CI, and configuration markers.

Review effort: Balanced

Comment thread .github/workflows/_run.yml Resolved
Comment thread .github/workflows/envoy-verify.yml Resolved
Comment thread ci/dependency/release_images.sh Resolved

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

Changes to release signing, multi-architecture builds, and OCI packaging require maintainer validation of branch/main workflow interactions and end-to-end artifact publishing and verification for both architectures.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

@phlax phlax changed the title [WIP/bp/1.40] Flake and CI stack [bp/1.40] Flake and CI stack Nov 17, 2026
@phlax
phlax marked this pull request as ready for review November 17, 2026 13:15
…oyproxy#49350)

The published container images are built with rules_oci
(`//distribution/docker`, envoyproxy#49259) from the base image digests pinned by
`oci.pull` in `MODULE.bazel` (`@ubuntu_base`, `@distroless_base_nossl`).
The `release-images` task (`ci/dependency/release_images.sh`, envoyproxy#49106)
only updated the same digests in `distribution/docker/Dockerfile-envoy`,
so since envoyproxy#49259 its bumps have not reached the published images.

The script now updates the digest in both files. It also fails if an
image's digest in the Dockerfile is not the one pinned in
`MODULE.bazel`, so the two can't drift apart unnoticed. The digests are
not recorded in `MODULE.bazel.lock`, so there is no lockfile change with
a bump.

The Dockerfile is still read for the pinned images and tags, and is
still what `distribution/docker/build.sh` builds from.

Risk Level: low (the dependency workflow's `release-images` task only)
Testing: ran the script against copies of the two files with a stubbed
`docker buildx imagetools inspect`: a bump updates both files, a rerun
reports up to date, and a digest that differs between the files fails.
shellcheck is clean. The workflow task itself has not been run with this
change.
Docs Changes: n/a
Release Notes: n/a

(cherry picked from commit 499b706)
Signed-off-by: Ryan Northey <[email protected]>
@jwendell

Copy link
Copy Markdown
Member

The description understates the product changes. It says the PR is test-only apart from the reverse_tunnel fix (#48441), but these also change behavior in a patch release, with no runtime guards (upstream had none either):

@phlax

phlax commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

will update the description - but commits will be rebased so wont carry (or will carry their own messages)

@phlax
phlax enabled auto-merge (rebase) November 17, 2026 13:51
@phlax

phlax commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

@jwendell agreed, the description was out of date with what the stack now carries. Updated: it now leads with the product code changes (#48479, #48409, #48108 and #48441, none runtime guarded, as on main) and the release pipeline rework, and the risk level is medium. (bot assisted)

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 OCI debug images still reference the original .dwp targets instead of their -joined counterparts, bypassing compression and split caching and retaining uncompressed debug sections and large cache downloads.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity OCI debug images bypass compressed, split-cache DWARF targets

distribution/​docker/​BUILD:51

The OCI debug images still consume the original .dwp targets, bypassing compression and split caching. With release.multiarch omitting the full release tarball, the published debug images therefore retain uncompressed debug sections and the large cache downloads. Point both dwarf entries at their -joined targets.

Review effort: Balanced

Comment thread distribution/docker/BUILD Outdated
"envoy-contrib-debug": "//distribution:envoy-contrib-binary",
"envoy-contrib-dwarf": "//distribution:envoy-contrib-dwarf",
"envoy-debug": "//distribution:envoy-binary",
"envoy-dwarf": "//distribution:envoy-dwarf",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good catch, but not specific to this PR: distribution/docker/BUILD is identical on main, where the debug images take the uncompressed .dwps too. Fix for main: #49354, to be picked here once it lands. (bot assisted)

The debug images took the `.dwp`s as llvm-dwp writes them, with their
debug sections uncompressed (over 3GB for contrib, per arch), and each
as a single blob in the remote cache. The compressed `.dwp`s, cached in
parts (envoyproxy#49294), were only used by the release tarball, which the
images are no longer built from (envoyproxy#49259) and `release.multiarch` does
not build (envoyproxy#49331).

Use them for the images too.

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax disabled auto-merge November 17, 2026 15:31
@phlax
phlax merged commit a409364 into envoyproxy:release/v1.40 Nov 17, 2026
17 of 18 checks passed
phlax added a commit that referenced this pull request Nov 17, 2026
…figuration ones (#49235)

Stacked on #49234 (the branch carries its commits until it lands): this
is the last commit.

The release/v1.40 counterpart of #49078, regenerated from a measurement
of
release/v1.40 itself rather than picked: v1.40's targets and peaks
differ
from main's. Pins use the per-configuration `rbe_pool` spec of #49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of #49313 (both on this branch). Generated with
`rbe_report.py pins`, as #49315 is for main.

Data: every CI job of release/v1.40 (with #49236's gcc-ci) run once in
envoy-ci-staging#2168 (2026-11-13), every remote action on the large
pool with the pins neutralised and every compile and link forced to
execute, peak RSS from the EngFlow traces. That covers the opt, asan,
tsan, msan, gcc, coverage, fuzz coverage, compile-time options and
OpenSSL jobs, and the API, config, docs and release jobs (as `default`),
including `//contrib/...`. Each pin is the smallest pool clearing the
target's peak with 5% headroom for compiles, 10% for links and 20% for
tests, for every configuration and action exactly: as #49313 has it, an
action a spec does not name runs on the default pool, so a pool is named
only where an action needs more, and a configuration that needs less
than the target's `default` spec is spelled out too (with the `default`
pool where it needs no more), so that no measured action asks for more
than it measured. An action a configuration has no data for gets what
the target's `default` configuration gets.

The coverage links of 99 targets, and the fuzz coverage links of 14,
need more than the large pool (12GiB) with headroom; they are pinned to
xlarge, each marked with its measured peak, so they no longer rely on
EngFlow killing and retrying them on a larger pool. They should be
brought
down, but until then the pin says what they need. No compile needs more
than large.

Result: 212 pins added, 1581 changed, 100 removed (on `source/`: 9
removed, 1 changed). The loop-defined codec fuzz tests in
`test/common/http` are pinned by hand from the measurement (their
`_lib`s compile at ~3.0-3.4GB, 5.7GB with gcc, their fuzz coverage
links at ~8.6GB). The split wasm filter tests (#48681) postdate the
measurement and keep their pins. The router check, schema validator and
config load check tools are pinned in `tools/`, where #49262 (on this
branch) moved them.

Tests pinned for CPU rather than memory keep their cores: the 54 tests
on the `2core` (#36784 and before) and `4core` (#36837) pools, renamed
medium and large in #46986, have their test action on the smallest
pool with at least those cores (medium ~2, large ~4: the actions a
pool's RAM limit packs onto a machine) that fits their memory.
Libraries that had such a pin are sized by memory only (a compile uses
one core).

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants