Skip to content

bazel: Add RBE pool keys for links and more configurations - #49313

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:rbe-pool-config-keys
Nov 16, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:rbe-pool-config-keys

Conversation

@phlax

@phlax phlax commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Commit Message: bazel: Add RBE pool keys for links and more configurations
Additional Description:

rbe_pool could pin a pool per configuration only for asan, msan, tsan, coverage and gcc builds. The compile time options and OpenSSL builds fell back to each pin's default entry, and fuzz coverage, being both coverage and asan, to its asan one, so none of them could be sized on their own. On main they are where EngFlow moves actions to larger pools than requested (compile time options and OpenSSL links at 3.2-3.4GB on xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new --define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1 in --config=compile-time-options, the existing //bazel:openssl flag and a new --define=ENVOY_CONFIG_FUZZ_COVERAGE=1 in --config=fuzz-coverage. fuzz_coverage takes precedence over coverage and asan, and asan over openssl, so the OpenSSL asan build keeps asan's pools.

A target's build pool also covered its link, so a target whose link needs a large pool had its compiles pinned there too (and the reverse). The C++ rules link in a cpp_link execution group, so a pool spec can now name a link pool, set as cpp_link.Pool. As with test, a link the spec does not name stays on the platform default, so every pin names each action that needs more. The existing dict pins, whose build pool covered their link, get a link pool only where the link needs more than the default, sized from the measurement of #49315 (envoy-ci-staging#2167): 1020 specs name a link, 727 leave it on the default, and the 3 the measurement cannot be matched to keep their build pool for their link. A pool name on its own still covers every action. Only C++ rules have that execution group, so the C++ macros opt in (link = True); any other caller, eg the docs build, sets no cpp_link properties, and a link pool on one fails. execution_context_dual_test passes its C++ test's pins to a wrapper test rule, which drops their link pools.

Risk Level: low (RBE pool selection only; the new configuration keys are not used yet)
Testing: CI
Docs Changes: n/a
Release Notes: n/a

@phlax
phlax requested a balanced review from Copilot November 16, 2026 09:41
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules take it: the benchmark `sh_test`
and the execution context test rule pass `link = False`.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
… ones (v1.40)

The release/v1.40 counterpart of envoyproxy#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 envoyproxy#49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of envoyproxy#49313 (both on this branch).

Data: every CI job of release/v1.40 (with envoyproxy#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, spelled out only for the configurations and actions that need it,
as in envoyproxy#49078. A link is pinned separately from its compiles where they
differ (1796 targets), below them where it needs less.

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
large, where EngFlow moves them to a larger pool as it does today. No
compile needs more than large.

Result: 211 pins added, 1579 changed, 102 removed (on `source/`: 9
removed, 1 changed); 575 targets exceeded their current pool with no
headroom. The same hand edits as envoyproxy#49078: the loop-defined codec fuzz
tests in `test/common/http` are pinned by hand (their `_lib`s compile at
~3.2GB, their fuzz coverage links at ~8.5GB), and the integration tests
envoyproxy#36784 moved to a multi-core pool keep their test action on medium
(`cds`, `direct_response`, `http2_flood`, `idle_timeout`,
`tcp_async_client`, `tcp_tunneling`, `xds`, `conn_manager_impl_test`).

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]>

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

The wrapper rejects shared rbe_pool link entries during package loading, so these entries, including configuration-specific ones, must be stripped from its copy while preserved on the underlying C++ target.

1 open issue
What changed in this PR

This PR extends Envoy’s remote build pool selection so more build configurations and C++ link actions can be sized independently.

Changes:

  • Adds cto, openssl, and fuzz_coverage pool keys with configuration precedence.
  • Adds optional link-specific pools through cpp_link.Pool, falling back to the build pool.
  • Marks non-C++ test wrappers as ineligible for link pools.
File Description
bazel/​execution_context_transition.bzl Disables link pools for the execution-context test wrapper.
bazel/​envoy_test.bzl Disables link pools for benchmark shell tests.
bazel/​envoy_rbe.bzl Adds configuration keys, link pool selection, validation, and documentation.
bazel/​BUILD Defines configuration settings and matching EngFlow pool selectors.
.bazelrc Adds identifiers for compile-time-options and fuzz-coverage builds.

Review effort: Balanced

Comment thread bazel/execution_context_transition.bzl Outdated
name = name,
test = test,
exec_properties = envoy_exec_properties(rbe_pool, exec_properties),
exec_properties = envoy_exec_properties(rbe_pool, exec_properties, link = False),
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules take it: the benchmark `sh_test`
and the execution context test rule pass `link = False`.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main, without the
execution context rule (not on this branch). The native C++ rules this
branch's Bazel (8.7) provides through rules_cc declare the `cpp_link`
execution group too.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax force-pushed the rbe-pool-config-keys branch from 91f2dcb to e6ac58a Compare November 16, 2026 10:03
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…I job

Regenerates envoyproxy#49078's pins from a measurement of every CI job, with the
`link` pools and the `cto`, `openssl` and `fuzz_coverage` configurations
of envoyproxy#49313 (the previous commit).

Data: every CI job of main (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2167 (2026-11-13, main at 3500543), 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, external and release jobs
(as `default`), including `//contrib/...`, which envoyproxy#49078's per-configuration
`//test/...` legs did not. Each pin is the smallest pool clearing the
target's peak with 5% headroom for compiles, 10% for links and 20% for
tests, spelled out only for the configurations and actions that need it.
A link is pinned separately from its compiles where they differ (1387
targets), below them where it needs less.

The fuzz coverage links of 5 targets, and the coverage links of 2, need
more than the large pool (12GiB) with headroom; they are pinned to large,
where EngFlow moves them to a larger pool as it does today. No compile
needs more than large.

Result: 21 pins added, 1362 changed, 26 removed (on `source/`: 1
removed, 1 changed); 593 targets exceeded their current pool with no
headroom. 17 targets added since the measurement keep their pins. As in
envoyproxy#49078, the integration tests envoyproxy#36784 moved to a multi-core pool keep
their test action on medium (`cds`, `direct_response`, `http2_flood`,
`idle_timeout`, `tcp_async_client`, `tcp_tunneling`, `xds`,
`conn_manager_impl_test`), and the loop-defined codec fuzz tests in
`test/common/http` keep their hand pin, which covers their measured
links. `execution_context_test` is not a C++ rule (it has no `cpp_link`
execution group): its measured link is in its build pool.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules have that execution group, so the
C++ macros opt in (`link = True`); any other caller, eg the docs build,
sets no `cpp_link` properties, and a link pool on one fails.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules have that execution group, so the
C++ macros opt in (`link = True`); any other caller, eg the docs build,
sets no `cpp_link` properties, and a link pool on one fails.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main, without the
execution context rule (not on this branch). The native C++ rules this
branch's Bazel (8.7) provides through rules_cc declare the `cpp_link`
execution group too.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
… ones (v1.40)

The release/v1.40 counterpart of envoyproxy#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 envoyproxy#49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of envoyproxy#49313 (both on this branch).

Data: every CI job of release/v1.40 (with envoyproxy#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, spelled out only for the configurations and actions that need it,
as in envoyproxy#49078. A link is pinned separately from its compiles where they
differ (1796 targets), below them where it needs less.

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
large, where EngFlow moves them to a larger pool as it does today. No
compile needs more than large.

Result: 211 pins added, 1579 changed, 102 removed (on `source/`: 9
removed, 1 changed); 575 targets exceeded their current pool with no
headroom. The same hand edits as envoyproxy#49078: the loop-defined codec fuzz
tests in `test/common/http` are pinned by hand (their `_lib`s compile at
~3.2GB, their fuzz coverage links at ~8.5GB), and the integration tests
envoyproxy#36784 moved to a multi-core pool keep their test action on medium
(`cds`, `direct_response`, `http2_flood`, `idle_timeout`,
`tcp_async_client`, `tcp_tunneling`, `xds`, `conn_manager_impl_test`). `execution_context_test`
is not a C++ rule (it has no `cpp_link` execution group): its measured
link is in its build pool.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules have that execution group, so the
C++ macros opt in (`link = True`); any other caller, eg the docs build,
sets no `cpp_link` properties, and a link pool on one fails.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main, without the
execution context rule (not on this branch). The native C++ rules this
branch's Bazel (8.7) provides through rules_cc declare the `cpp_link`
execution group too.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
… ones (v1.40)

The release/v1.40 counterpart of envoyproxy#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 envoyproxy#49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of envoyproxy#49313 (both on this branch).

Data: every CI job of release/v1.40 (with envoyproxy#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, spelled out only for the configurations and actions that need it,
as in envoyproxy#49078. A link is pinned separately from its compiles where they
differ (1796 targets), below them where it needs less.

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
large, where EngFlow moves them to a larger pool as it does today. No
compile needs more than large.

Result: 211 pins added, 1579 changed, 102 removed (on `source/`: 9
removed, 1 changed); 575 targets exceeded their current pool with no
headroom. The same hand edits as envoyproxy#49078: the loop-defined codec fuzz
tests in `test/common/http` are pinned by hand (their `_lib`s compile at
~3.2GB, their fuzz coverage links at ~8.5GB), and the integration tests
envoyproxy#36784 moved to a multi-core pool keep their test action on medium
(`cds`, `direct_response`, `http2_flood`, `idle_timeout`,
`tcp_async_client`, `tcp_tunneling`, `xds`, `conn_manager_impl_test`). `execution_context_test`
is not a C++ rule (it has no `cpp_link` execution group): its measured
link is in its build pool.

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]>
@phlax
phlax requested a balanced review from Copilot November 16, 2026 11:13

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.

🟢 Approval recommended

The review reports no active issues with the remote-execution pool selection changes.

1 open issue

Review effort: Balanced

phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules have that execution group, so the
C++ macros opt in (`link = True`); any other caller, eg the docs build,
sets no `cpp_link` properties, and a link pool on one fails.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main, without the
execution context rule (not on this branch). The native C++ rules this
branch's Bazel (7.7.1) provides through rules_cc declare the `cpp_link`
execution group too.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 97dff29)
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules have that execution group, so the
C++ macros opt in (`link = True`); any other caller, eg the docs build,
sets no `cpp_link` properties, and a link pool on one fails.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main, without the
execution context rule (not on this branch). The native C++ rules this
branch's Bazel (7.7.1) provides through rules_cc declare the `cpp_link`
execution group too.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 97dff29)
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules have that execution group, so the
C++ macros opt in (`link = True`); any other caller, eg the docs build,
sets no `cpp_link` properties, and a link pool on one fails.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main, without the
execution context rule (not on this branch). The native C++ rules this
branch's Bazel (7.7.1) provides through rules_cc declare the `cpp_link`
execution group too.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 97dff29)
Backport note (release/v1.37): without the `openssl` key, as this branch has no
OpenSSL build (`//bazel:openssl`) to match it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules have that execution group, so the
C++ macros opt in (`link = True`); any other caller, eg the docs build,
sets no `cpp_link` properties, and a link pool on one fails.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main, without the
execution context rule (not on this branch). The native C++ rules this
branch's Bazel (7.7.1) provides through rules_cc declare the `cpp_link`
execution group too.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 97dff29)
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules have that execution group, so the
C++ macros opt in (`link = True`); any other caller, eg the docs build,
sets no `cpp_link` properties, and a link pool on one fails.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main, without the
execution context rule (not on this branch). The native C++ rules this
branch's Bazel (7.7.1) provides through rules_cc declare the `cpp_link`
execution group too.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 97dff29)
Backport note (release/v1.37): without the `openssl` key, as this branch has no
OpenSSL build (`//bazel:openssl`) to match it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules have that execution group, so the
C++ macros opt in (`link = True`); any other caller, eg the docs build,
sets no `cpp_link` properties, and a link pool on one fails.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main, without the
execution context rule (not on this branch). The native C++ rules this
branch's Bazel (7.7.1) provides through rules_cc declare the `cpp_link`
execution group too.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 97dff29)
Backport note (release/v1.37): without the `openssl` key, as this branch has no
OpenSSL build (`//bazel:openssl`) to match it.

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

Regenerates envoyproxy#49078's pins from a measurement of every CI job, with the
`link` pools and the `cto`, `openssl` and `fuzz_coverage` configurations
of envoyproxy#49313 (the previous commit).

Data: every CI job of main (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2167 (2026-11-13, main at 3500543), 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, external and release jobs
(as `default`), including `//contrib/...`, which envoyproxy#49078's per-configuration
`//test/...` legs did not. Each pin is the smallest pool clearing the
target's peak with 5% headroom for compiles, 10% for links and 20% for
tests, spelled out only for the configurations and actions that need it.
A link is pinned separately from its compiles where they differ (1387
targets), below them where it needs less.

The fuzz coverage links of 5 targets, and the coverage links of 2, 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: 21 pins added, 1362 changed, 26 removed (on `source/`: 1
removed, 1 changed); 593 targets exceeded their current pool with no
headroom. 17 targets added since the measurement keep their pins. As in
envoyproxy#49078, the integration tests envoyproxy#36784 moved to a multi-core pool keep
their test action on medium (`cds`, `direct_response`, `http2_flood`,
`idle_timeout`, `tcp_async_client`, `tcp_tunneling`, `xds`,
`conn_manager_impl_test`), and the loop-defined codec fuzz tests in
`test/common/http` keep their hand pin, which covers their measured
links. `execution_context_test` is not a C++ rule (it has no `cpp_link`
execution group): its measured link is in its build pool.

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]>
@phlax
phlax force-pushed the rbe-pool-config-keys branch from e6ac58a to f4ad86d Compare November 16, 2026 13:16
@phlax
phlax force-pushed the rbe-pool-config-keys branch from ae6eb73 to 4c180e6 Compare November 16, 2026 14:30
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…I job

Regenerates envoyproxy#49078's pins from a measurement of every CI job, with the
`link` pools and the `cto`, `openssl` and `fuzz_coverage` configurations
of envoyproxy#49313 (the previous commit).

Data: every CI job of main (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2167 (2026-11-13, main at 3500543), 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, external and release jobs
(as `default`), including `//contrib/...`, which envoyproxy#49078's per-configuration
`//test/...` legs did not. Each pin is the smallest pool clearing the
target's peak with 5% headroom for compiles, 10% for links and 20% for
tests, spelled out only for the configurations and actions that need it:
as envoyproxy#49313 has it, an action a spec does not name runs on the default
pool, so a `link` is named only where the link needs more than that.

The fuzz coverage links of 5 targets, and the coverage links of 2, 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: 21 pins added, 1362 changed, 26 removed (on `source/`: 1
removed, 1 changed); 593 targets exceeded their current pool with no
headroom. 17 targets added since the measurement keep their pins. As in
their test action on medium (`cds`, `direct_response`, `http2_flood`,
`idle_timeout`, `tcp_async_client`, `tcp_tunneling`, `xds`,
`conn_manager_impl_test`), and the loop-defined codec fuzz tests in
`test/common/http` keep their hand pin, which covers their measured
links. `execution_context_test` is not a C++ rule (it has no `cpp_link`
execution group): its measured link is in its build pool.

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]>
@phlax
phlax requested a balanced review from Copilot November 16, 2026 14:30
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
… ones (v1.39)

The release/v1.39 counterpart of envoyproxy#49078, regenerated from a measurement of
release/v1.39 itself rather than picked: v1.39's targets and peaks differ
from main's. Pins use the per-configuration `rbe_pool` spec of envoyproxy#49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of envoyproxy#49313 (both on this branch), on top of the canonical
pool names of envoyproxy#46986 (the previous commit).

Data: every CI job of release/v1.39 (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2173 (2026-11-16), 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, format, deps 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, spelled out only for the configurations and actions
that need it, as in envoyproxy#49078. A link is pinned separately from its
compiles where they differ (1707 targets), below them where it needs
less.

Some links and one test need more than the large pool (12GiB) with
headroom: the coverage links of 343 targets, the fuzz coverage links of
57, the tsan links of 7 (the big binaries: `envoy-static`,
`config_test`, `router_check_tool`, `all_extensions_build_test`,
`extra_extensions_test`, `server_fuzz_test` and `config_fuzz_test`, at
12.5-13.7GB), and the msan test of `//test/common/router:config_impl_test`
(12.9GB). They are pinned to large, where EngFlow moves them to a larger
pool as it does today. No compile needs more than large.

Result: 199 pins added, 1503 changed, 60 removed (on `source/`: 9
removed, 1 changed); 1218 targets exceeded their current pool with no
headroom. The same hand edits as envoyproxy#49078: the loop-defined codec fuzz
tests in `test/common/http` are pinned by hand (their `_lib`s compile at up to
~5.3GB, their tsan links at ~3.9GB, their fuzz coverage links at
~12.5GB), and the integration tests envoyproxy#36784 moved to a multi-core pool
keep their test action on medium (`cds`, `direct_response`,
`http2_flood`, `idle_timeout`, `tcp_async_client`, `tcp_tunneling`,
`xds`, `conn_manager_impl_test`).

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]>

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

Unavailable staging measurements require a maintainer to verify EngFlow pool routing and linker memory headroom in CI traces, including memory-related retries and exit 137.

1 open issue

Review effort: Balanced

phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
… ones (v1.39)

The release/v1.39 counterpart of envoyproxy#49078, regenerated from a measurement of
release/v1.39 itself rather than picked: v1.39's targets and peaks differ
from main's. Pins use the per-configuration `rbe_pool` spec of envoyproxy#49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of envoyproxy#49313 (both on this branch), on top of the canonical
pool names of envoyproxy#46986 (the previous commit).

Data: every CI job of release/v1.39 (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2173 (2026-11-16), 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, format, deps 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, spelled out only for the configurations and actions
that need it, as in envoyproxy#49078. A link is pinned separately from its
compiles where they differ (1707 targets), below them where it needs
less.

Some links and one test need more than the large pool (12GiB) with
headroom, and are pinned to xlarge as measured: the coverage links of
343 targets, the fuzz coverage links of 57, the tsan links of 7 (the big
binaries: `envoy-static`, `config_test`, `router_check_tool`,
`all_extensions_build_test`, `extra_extensions_test`,
`server_fuzz_test` and `config_fuzz_test`, at 12.5-13.7GB), and the msan
test of `//test/common/router:config_impl_test` (12.9GB). These are the
actions to bring down; until then they run where they fit, instead of
being killed on large and moved up by EngFlow. No compile needs more
than large.

Result: 199 pins added, 1503 changed, 60 removed (on `source/`: 9
removed, 1 changed); 1218 targets exceeded their current pool with no
headroom. The same hand edits as envoyproxy#49078: the loop-defined codec fuzz
tests in `test/common/http` are pinned by hand (their `_lib`s compile at up to
~5.3GB, their tsan links at ~3.9GB, their fuzz coverage links at
~12.5GB), and the integration tests envoyproxy#36784 moved to a multi-core pool
keep their test action on medium (`cds`, `direct_response`,
`http2_flood`, `idle_timeout`, `tcp_async_client`, `tcp_tunneling`,
`xds`, `conn_manager_impl_test`).

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]>
@phlax

phlax commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

fuller/more correct measurements/pins in follow up here #49315

phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
… ones (v1.40)

The release/v1.40 counterpart of envoyproxy#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 envoyproxy#49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of envoyproxy#49313 (both on this branch).

Data: every CI job of release/v1.40 (with envoyproxy#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, spelled out only for the configurations and actions that need it,
as in envoyproxy#49078. A link is pinned separately from its compiles where they
differ (1796 targets), below them where it needs less.

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: 211 pins added, 1579 changed, 102 removed (on `source/`: 9
removed, 1 changed); 575 targets exceeded their current pool with no
headroom. The same hand edits as envoyproxy#49078: the loop-defined codec fuzz
tests in `test/common/http` are pinned by hand (their `_lib`s compile at
~3.2GB, their fuzz coverage links at ~8.5GB), and the integration tests
envoyproxy#36784 moved to a multi-core pool keep their test action on medium
(`cds`, `direct_response`, `http2_flood`, `idle_timeout`,
`tcp_async_client`, `tcp_tunneling`, `xds`, `conn_manager_impl_test`). `execution_context_test`
is not a C++ rule (it has no `cpp_link` execution group): its measured
link is in its build pool.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
… ones (v1.39)

The release/v1.39 counterpart of envoyproxy#49078, regenerated from a measurement of
release/v1.39 itself rather than picked: v1.39's targets and peaks differ
from main's. Pins use the per-configuration `rbe_pool` spec of envoyproxy#49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of envoyproxy#49313 (both on this branch), on top of the canonical
pool names of envoyproxy#46986 (the previous commit).

Data: every CI job of release/v1.39 (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2173 (2026-11-16), 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, format, deps 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, spelled out only for the configurations and actions
that need it, as in envoyproxy#49078. A link is pinned separately from its
compiles where they differ (1707 targets), below them where it needs
less.

The coverage links of 343 targets, the fuzz coverage links of 57, the
tsan links of 7 (the big binaries: `envoy-static`, `config_test`,
`router_check_tool`, `all_extensions_build_test`,
`extra_extensions_test`, `server_fuzz_test` and `config_fuzz_test`, at
12.5-13.7GB) and the msan test of `//test/common/router:config_impl_test`
(12.9GB) 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: 199 pins added, 1503 changed, 60 removed (on `source/`: 9
removed, 1 changed); 1218 targets exceeded their current pool with no
headroom. The same hand edits as envoyproxy#49078: the loop-defined codec fuzz
tests in `test/common/http` are pinned by hand (their `_lib`s compile at up to
~5.3GB, their tsan links at ~3.9GB, their fuzz coverage links at
~12.5GB), and the integration tests envoyproxy#36784 moved to a multi-core pool
keep their test action on medium (`cds`, `direct_response`,
`http2_flood`, `idle_timeout`, `tcp_async_client`, `tcp_tunneling`,
`xds`, `conn_manager_impl_test`).

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]>
@phlax
phlax enabled auto-merge (squash) November 16, 2026 14:42
@phlax
phlax merged commit 2040be8 into envoyproxy:main Nov 16, 2026
30 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…I job

Regenerates envoyproxy#49078's pins from a measurement of every CI job, with the
`link` pools and the `cto`, `openssl` and `fuzz_coverage` configurations
of envoyproxy#49313 (the previous commit).

Data: every CI job of main (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2167 (2026-11-13, main at 3500543), 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, external and release jobs
(as `default`), including `//contrib/...`, which envoyproxy#49078's per-configuration
`//test/...` legs did not. Each pin is the smallest pool clearing the
target's peak with 5% headroom for compiles, 10% for links and 20% for
tests, spelled out only for the configurations and actions that need it:
as envoyproxy#49313 has it, an action a spec does not name runs on the default
pool, so a `link` is named only where the link needs more than that.

The fuzz coverage links of 5 targets, and the coverage links of 2, 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: 21 pins added, 1362 changed, 26 removed (on `source/`: 1
removed, 1 changed); 593 targets exceeded their current pool with no
headroom. 17 targets added since the measurement keep their pins. As in
their test action on medium (`cds`, `direct_response`, `http2_flood`,
`idle_timeout`, `tcp_async_client`, `tcp_tunneling`, `xds`,
`conn_manager_impl_test`), and the loop-defined codec fuzz tests in
`test/common/http` keep their hand pin, which covers their measured
links. `execution_context_test` is not a C++ rule (it has no `cpp_link`
execution group): its measured link is in its build pool.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in `--config=fuzz-coverage`.
fuzz_coverage takes precedence over coverage and asan, and asan over
openssl, so the OpenSSL asan build keeps asan's pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`; without one the link
stays on the build pool. Only C++ rules have that execution group, so the
C++ macros opt in (`link = True`); any other caller, eg the docs build,
sets no `cpp_link` properties, and a link pool on one fails.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 ahead of its merge to main, without the
execution context rule (not on this branch). The native C++ rules this
branch's Bazel (7.7.1) provides through rules_cc declare the `cpp_link`
execution group too.

(cherry picked from commit 91f2dcb)
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 97dff29)
Backport note (release/v1.37): without the `openssl` key, as this branch has no
OpenSSL build (`//bazel:openssl`) to match it.

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

Regenerates envoyproxy#49078's pins from a measurement of every CI job, with the
`link` pools and the `cto`, `openssl` and `fuzz_coverage` configurations
of envoyproxy#49313 (the previous commit).

Data: every CI job of main (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2167 (2026-11-13, main at 3500543), 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, external and release jobs
(as `default`), including `//contrib/...`, which envoyproxy#49078's per-configuration
`//test/...` legs did not. Each pin is the smallest pool clearing the
target's peak with 5% headroom for compiles, 10% for links and 20% for
tests, spelled out only for the configurations and actions that need it:
as envoyproxy#49313 has it, an action a spec does not name runs on the default
pool, so a `link` is named only where the link needs more than that.

The fuzz coverage links of 5 targets, and the coverage links of 2, 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: 21 pins added, 1362 changed, 26 removed (on `source/`: 1
removed, 1 changed); 593 targets exceeded their current pool with no
headroom. 17 targets added since the measurement keep their pins. As in
their test action on medium (`cds`, `direct_response`, `http2_flood`,
`idle_timeout`, `tcp_async_client`, `tcp_tunneling`, `xds`,
`conn_manager_impl_test`), and the loop-defined codec fuzz tests in
`test/common/http` keep their hand pin, which covers their measured
links. `execution_context_test` is not a C++ rule (it has no `cpp_link`
execution group): its measured link is in its build pool.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…I job

Regenerates envoyproxy#49078's pins from a measurement of every CI job, with the
`link` pools and the `cto`, `openssl` and `fuzz_coverage` configurations
of envoyproxy#49313 (the previous commit).

Data: every CI job of main (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2167 (2026-11-13, main at 3500543), 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, external and release jobs
(as `default`), including `//contrib/...`, which envoyproxy#49078's per-configuration
`//test/...` legs did not. Each pin is the smallest pool clearing the
target's peak with 5% headroom for compiles, 10% for links and 20% for
tests, spelled out only for the configurations and actions that need it:
as envoyproxy#49313 has it, an action a spec does not name runs on the default
pool, so a `link` is named only where the link needs more than that.

The fuzz coverage links of 5 targets, and the coverage links of 2, 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: 21 pins added, 1362 changed, 26 removed (on `source/`: 1
removed, 1 changed); 593 targets exceeded their current pool with no
headroom. 17 targets added since the measurement keep their pins. As in
their test action on medium (`cds`, `direct_response`, `http2_flood`,
`idle_timeout`, `tcp_async_client`, `tcp_tunneling`, `xds`,
`conn_manager_impl_test`), and the loop-defined codec fuzz tests in
`test/common/http` keep their hand pin, which covers their measured
links. `execution_context_test` is not a C++ rule (it has no `cpp_link`
execution group): its measured link is in its build pool.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…I job

Regenerates envoyproxy#49078's pins from a measurement of every CI job, with the
`link` pools and the `cto`, `openssl` and `fuzz_coverage` configurations
of envoyproxy#49313 (the previous commit).

Data: every CI job of main (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2167 (2026-11-13, main at 3500543), 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, external and release jobs
(as `default`), including `//contrib/...`, which envoyproxy#49078's per-configuration
`//test/...` legs did not. Each pin is the smallest pool clearing the
target's peak with 5% headroom for compiles, 10% for links and 20% for
tests, spelled out only for the configurations and actions that need it:
as envoyproxy#49313 has it, an action a spec does not name runs on the default
pool, so a `link` is named only where the link needs more than that. 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 (37 targets); an action
a configuration has no data for keeps what it inherits.

The fuzz coverage links of 5 targets, and the coverage links of 2, 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: 21 pins added, 1362 changed, 26 removed (on `source/`: 1
removed, 1 changed); 593 targets exceeded their current pool with no
headroom. 17 targets added since the measurement keep their pins. As in
their test action on medium (`cds`, `direct_response`, `http2_flood`,
`idle_timeout`, `tcp_async_client`, `tcp_tunneling`, `xds`,
`conn_manager_impl_test`), and the loop-defined codec fuzz tests in
`test/common/http` keep their hand pin, which covers their measured
links. `execution_context_test` is not a C++ rule (it has no `cpp_link`
execution group): its measured link is in its build pool.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…I job

Regenerates envoyproxy#49078's pins from a measurement of every CI job, with the
`link` pools and the `cto`, `openssl` and `fuzz_coverage` configurations
of envoyproxy#49313 (the previous commit).

Data: every CI job of main (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2167 (2026-11-13, main at 3500543), 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, external and release jobs
(as `default`), including `//contrib/...`, which envoyproxy#49078's per-configuration
`//test/...` legs did not. Each pin is the smallest pool clearing the
target's peak with 5% headroom for compiles, 10% for links and 20% for
tests, spelled out only for the configurations and actions that need it:
as envoyproxy#49313 has it, an action a spec does not name runs on the default
pool, so a `link` is named only where the link needs more than that. 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 (37 targets); an action
a configuration has no data for keeps what it inherits.

The fuzz coverage links of 5 targets, and the coverage links of 2, 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: 21 pins added, 1362 changed, 26 removed (on `source/`: 1
removed, 1 changed); 593 targets exceeded their current pool with no
headroom. 17 targets added since the measurement keep their pins. As in
their test action on medium (`cds`, `direct_response`, `http2_flood`,
`idle_timeout`, `tcp_async_client`, `tcp_tunneling`, `xds`,
`conn_manager_impl_test`), and the loop-defined codec fuzz tests in
`test/common/http` keep their hand pin, which covers their measured
links. `execution_context_test` is not a C++ rule (it has no `cpp_link`
execution group): its measured link is in its build pool.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…I job

Regenerates envoyproxy#49078's pins from a measurement of every CI job, with the
`link` pools and the `cto`, `openssl` and `fuzz_coverage` configurations
of envoyproxy#49313 (the previous commit).

Data: every CI job of main (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2167 (2026-11-13, main at 3500543), 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, external and release jobs
(as `default`), including `//contrib/...`, which envoyproxy#49078's per-configuration
`//test/...` legs did not. Each pin is the smallest pool clearing the
target's peak with 5% headroom for compiles, 10% for links and 20% for
tests, spelled out only for the configurations and actions that need it:
as envoyproxy#49313 has it, an action a spec does not name runs on the default
pool, so a `link` is named only where the link needs more than that. 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 (37 targets); an action
a configuration has no data for keeps what it inherits.

The fuzz coverage links of 5 targets, and the coverage links of 2, 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: 21 pins added, 1362 changed, 26 removed (on `source/`: 1
removed, 1 changed); 593 targets exceeded their current pool with no
headroom. 17 targets added since the measurement keep their pins. As in
their test action on medium (`cds`, `direct_response`, `http2_flood`,
`idle_timeout`, `tcp_async_client`, `tcp_tunneling`, `xds`,
`conn_manager_impl_test`), and the loop-defined codec fuzz tests in
`test/common/http` keep their hand pin, which covers their measured
links. `execution_context_test` is not a C++ rule (it has no `cpp_link`
execution group): its measured link is in its build pool.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…y#49313)

`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in
`--config=fuzz-coverage`. fuzz_coverage takes precedence over coverage
and asan, and asan over openssl, so the OpenSSL asan build keeps asan's
pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`. As with `test`, a link
the spec does not name stays on the platform default, so every pin names
each action that needs more. The existing dict pins, whose `build` pool
covered their link, get a `link` pool only where the link needs more
than the default. On release/v1.40 only one, sized from the v1.40
measurement (envoy-ci-staging#2168), names a link; the other dict pin's
link needs no more than the default. A pool name on its own still covers every action.
Only C++ rules have that execution group, so the C++ macros opt in
(`link = True`); any other caller, eg the docs build, sets no `cpp_link`
properties, and a link pool on one fails. `execution_context_dual_test`
passes its C++ test's pins to a wrapper test rule, which drops their
link pools.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 (2040be8) without main's pin changes.

(cherry picked from commit 2040be8)
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
… ones (v1.40)

The release/v1.40 counterpart of envoyproxy#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 envoyproxy#49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of envoyproxy#49313 (both on this branch). Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

Data: every CI job of release/v1.40 (with envoyproxy#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 envoyproxy#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, 1579 changed, 102 removed (on `source/`: 9
removed, 1 changed); 580 targets exceeded their current pool with no
headroom. The loop-defined codec fuzz tests in `test/common/http` are
pinned by hand from the measurement (their `_lib`s compile at ~3.2GB,
5.7GB with gcc, their fuzz coverage links at ~8.6GB). The integration
tests envoyproxy#36784 moved to a multi-core pool keep their test action on medium
where they fit it (`//test/integration`: `cds`, `direct_response`,
`http2_flood`, `idle_timeout`, `tcp_async_client`, `tcp_tunneling` and
`xds_integration_test`; `//test/common/http:conn_manager_impl_test`).
The split wasm filter tests (envoyproxy#48681) postdate the measurement and keep
their pins.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
… ones (v1.40)

The release/v1.40 counterpart of envoyproxy#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 envoyproxy#49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of envoyproxy#49313 (both on this branch). Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

Data: every CI job of release/v1.40 (with envoyproxy#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 envoyproxy#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, 1579 changed, 102 removed (on `source/`: 9
removed, 1 changed); 580 targets exceeded their current pool with no
headroom. The loop-defined codec fuzz tests in `test/common/http` are
pinned by hand from the measurement (their `_lib`s compile at ~3.2GB,
5.7GB with gcc, their fuzz coverage links at ~8.6GB). The integration
tests envoyproxy#36784 moved to a multi-core pool keep their test action on medium
where they fit it (`//test/integration`: `cds`, `direct_response`,
`http2_flood`, `idle_timeout`, `tcp_async_client`, `tcp_tunneling` and
`xds_integration_test`; `//test/common/http:conn_manager_impl_test`).
The split wasm filter tests (envoyproxy#48681) postdate the measurement and keep
their pins. The router check, schema validator and config load check
tools are pinned in `tools/`, where envoyproxy#49262 (on this branch) moved them.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…I job

Regenerates envoyproxy#49078's pins from a measurement of every CI job, with the
`link` pools and the `cto`, `openssl` and `fuzz_coverage` configurations
of envoyproxy#49313 (the previous commit).

Data: every CI job of main (with envoyproxy#49236's gcc-ci) run once in
envoy-ci-staging#2167 (2026-11-13, main at 3500543), 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, external and release jobs
(as `default`), including `//contrib/...`, which envoyproxy#49078's per-configuration
`//test/...` legs did not. Each pin is the smallest pool clearing the
target's peak with 5% headroom for compiles, 10% for links and 20% for
tests, spelled out only for the configurations and actions that need it:
as envoyproxy#49313 has it, an action a spec does not name runs on the default
pool, so a `link` is named only where the link needs more than that. 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 (37 targets); an action
a configuration has no data for keeps what it inherits.

The fuzz coverage links of 5 targets, and the coverage links of 2, 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: 22 pins added, 1283 changed, 24 removed (on `source/`: 1
removed, 1 changed); 551 targets exceeded their current pool with no
headroom. 17 targets added since the measurement keep their pins.

Tests pinned for CPU rather than memory keep their cores: the 54 tests
on the `2core` (envoyproxy#36784 and before) and `4core` (envoyproxy#36837) pools, renamed
medium and large in envoyproxy#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). The loop-defined codec fuzz tests in `test/common/http` are
pinned by hand from the measurement.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
… ones (v1.40)

The release/v1.40 counterpart of envoyproxy#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 envoyproxy#49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of envoyproxy#49313 (both on this branch). Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

Data: every CI job of release/v1.40 (with envoyproxy#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 envoyproxy#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, 1579 changed, 102 removed (on `source/`: 9
removed, 1 changed); 580 targets exceeded their current pool with no
headroom. The loop-defined codec fuzz tests in `test/common/http` are
pinned by hand from the measurement (their `_lib`s compile at ~3.2GB,
5.7GB with gcc, their fuzz coverage links at ~8.6GB). The integration
tests envoyproxy#36784 moved to a multi-core pool keep their test action on medium
where they fit it (`//test/integration`: `cds`, `direct_response`,
`http2_flood`, `idle_timeout`, `tcp_async_client`, `tcp_tunneling` and
`xds_integration_test`; `//test/common/http:conn_manager_impl_test`).
The split wasm filter tests (envoyproxy#48681) postdate the measurement and keep
their pins. The router check, schema validator and config load check
tools are pinned in `tools/`, where envoyproxy#49262 (on this branch) moved them.

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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
… ones (v1.40)

The release/v1.40 counterpart of envoyproxy#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 envoyproxy#49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of envoyproxy#49313 (both on this branch). Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

Data: every CI job of release/v1.40 (with envoyproxy#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 envoyproxy#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 (envoyproxy#48681) postdate the
measurement and keep their pins. The router check, schema validator and
config load check tools are pinned in `tools/`, where envoyproxy#49262 (on this
branch) moved them.

Tests pinned for CPU rather than memory keep their cores: the 54 tests
on the `2core` (envoyproxy#36784 and before) and `4core` (envoyproxy#36837) pools, renamed
medium and large in envoyproxy#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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…y#49313)

`rbe_pool` could pin a pool per configuration only for asan, msan, tsan,
coverage and gcc builds. The compile time options and OpenSSL builds
fell back to each pin's `default` entry, and fuzz coverage, being both
coverage and asan, to its `asan` one, so none of them could be sized on
their own. On main they are where EngFlow moves actions to larger pools
than requested (compile time options and OpenSSL links at 3.2-3.4GB on
xsmall, fuzz coverage links up to about 26GB).

Add "cto", "openssl" and "fuzz_coverage", matched by a new
`--define=ENVOY_CONFIG_COMPILE_TIME_OPTIONS=1` in
`--config=compile-time-options`, the existing `//bazel:openssl` flag and
a new `--define=ENVOY_CONFIG_FUZZ_COVERAGE=1` in
`--config=fuzz-coverage`. fuzz_coverage takes precedence over coverage
and asan, and asan over openssl, so the OpenSSL asan build keeps asan's
pools.

A target's `build` pool also covered its link, so a target whose link
needs a large pool had its compiles pinned there too (and the reverse).
The C++ rules link in a `cpp_link` execution group, so a pool spec can
now name a `link` pool, set as `cpp_link.Pool`. As with `test`, a link
the spec does not name stays on the platform default, so every pin names
each action that needs more. On release/v1.39 no existing pin is a dict
with a `build` pool, so no pin changes. A pool name on its own still
covers every action.
Only C++ rules have that execution group, so the C++ macros opt in
(`link = True`); any other caller, eg the docs build, sets no `cpp_link`
properties, and a link pool on one fails.

Signed-off-by: Ryan Northey <[email protected]>
Backport note: picked from envoyproxy#49313 without main's pin changes or the
`execution_context_dual_test` change (not on release/v1.39).

(cherry picked from commit 2040be8)
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