Skip to content

tools: Move the router check, schema validator and config load check tools from test/ - #49262

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:tools-move-test-tools
Nov 16, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:tools-move-test-tools

Conversation

@phlax

@phlax phlax commented Nov 14, 2026

Copy link
Copy Markdown
Member

Commit Message: tools: Move the router check, schema validator and config load check tools from test/
Additional Description:

router_check_tool, schema_validator_tool and config_load_check_tool are released (in the release binaries and the envoy-tools image), but live in test/tools. This moves them, their libraries and the router check validation.proto to tools/:

  • test/tools/{router_check,schema_validator,config_load_check}/* (sources, headers, proto, BUILD) -> tools/<tool>/. Their tests and test configs stay in test/tools/<tool>/test, so they still run with //test/....
  • The old labels (//test/tools/<tool>:<tool>_tool, .stripped, and the libraries) are aliases of the new ones.
  • References: ci/do_ci.sh (build targets and stripped binary paths), the tool docs (build/run commands and the validation.proto link), tools/code_format/config.yaml, the extension_config package group (the tools link all of the extensions), the router tool test's binary path, and include paths (regrouped as clang-format groups tools/... includes).

The tools still depend on test libraries (eg //test/mocks/server, //test/config_test); removing those is separate.

Risk Level: low
Testing: CI
Docs Changes: tool docs (paths)
Release Notes: n/a

@phlax
phlax requested a balanced review from Copilot November 14, 2026 13:52
@repokitteh-read-only

Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #49262 was opened by phlax.

see: more, trace.

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

No active review issues remain for the validation-tool relocation.

No open issues 🎉

What changed in this PR

Moves Envoy’s three released validation tools from test/tools/ to tools/, while keeping tests and test configurations under test/. Existing test-library dependencies remain unchanged.

Changes:

  • Relocates tool sources, libraries, build definitions, and the router validation schema.
  • Adds compatibility aliases for the old binary, stripped-binary, and library labels.
  • Updates CI packaging, test references, documentation, and extension visibility for the new locations.
File Description
tools/​schema_validator/​validator.h Relocates validator declarations.
tools/​schema_validator/​validator.cc Updates the validator header include.
tools/​schema_validator/​schema_validator.cc Updates the entry-point include.
tools/​schema_validator/​BUILD Defines relocated schema validator targets.
tools/​router_check/​validation.proto Relocates the router validation schema.
tools/​router_check/​router.h Updates coverage and generated-proto includes.
tools/​router_check/​router.cc Updates the router header include.
tools/​router_check/​router_check.cc Updates tool and schema includes.
tools/​router_check/​coverage.h Relocates route coverage declarations.
tools/​router_check/​coverage.cc Updates the coverage header include.
tools/​router_check/​BUILD Defines relocated router and proto targets.
tools/​config_load_check/​config_load_check.cc Relocates the config load checker.
tools/​config_load_check/​BUILD Defines relocated config load targets.
tools/​code_format/​config.yaml Updates the router tool’s formatting exception path.
test/​tools/​schema_validator/​test/​schema_validator_test.cc Includes the relocated validator header.
test/​tools/​schema_validator/​test/​BUILD Uses the new validator library label.
test/​tools/​schema_validator/​BUILD Preserves old labels through aliases.
test/​tools/​router_check/​test/​router_test.cc Includes relocated router and proto headers.
test/​tools/​router_check/​test/​route_tests.sh Uses the new binary runfiles path.
test/​tools/​router_check/​test/​BUILD Uses relocated router targets.
test/​tools/​router_check/​BUILD Preserves old binary and library labels.
test/​tools/​config_load_check/​BUILD Preserves old labels through aliases.
docs/​root/​operations/​tools/​schema_validator_check_tool.rst Updates build and execution paths.
docs/​root/​operations/​tools/​route_table_check_tool.rst Updates tool paths and schema links.
docs/​root/​operations/​tools/​config_load_check_tool.rst Updates build and execution paths.
docs/​root/​configuration/​operations/​tools/​router_check.rst Updates router coverage command examples.
ci/​do_ci.sh Updates build targets and release/image binary paths.
BUILD Grants relocated tools extension-config visibility.

Review effort: Balanced

@phlax phlax changed the title [WIP] tools: Move the router check, schema validator and config load check tools from test/ tools: Move the router check, schema validator and config load check tools from test/ Nov 14, 2026
@phlax
phlax marked this pull request as ready for review November 14, 2026 14:10
…tools from test/

Move `router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` (and their libraries, and the router check
validation proto) from `test/tools` to `tools`. They are released (in the
release binaries and the `envoy-tools` image), so they belong with the
other tools rather than the tests. Their tests stay in `test/tools`, so
they still run with `//test/...`.

The old labels are aliases of the new ones. The tools still depend on
test libraries (eg mocks), which is unchanged here.

The references are updated: the CI targets and stripped binary paths,
the docs, the format config, and the `extension_config` package group
(the tools link all of the extensions).

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax force-pushed the tools-move-test-tools branch from 5cd2026 to e62a8f4 Compare November 14, 2026 16:51
@phlax
phlax requested a balanced review from Copilot November 15, 2026 18:30

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

No active review issues were identified for the validation-tool relocation.

No open issues 🎉

Review effort: Balanced

@phlax
phlax merged commit 6835cd7 into envoyproxy:main Nov 16, 2026
25 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note: the moved targets keep this branch's RBE pools
(`linux_x64_small`), not those envoyproxy#49078 gave them on main.

(cherry picked from commit 6835cd7)
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, 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
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note (release/v1.39): the moved targets keep this branch's RBE pools
and load the skip lists from `//bazel:repositories.bzl`; `ci/do_ci.sh` keeps
this branch's `strip` and `route_tests.sh` its `TEST_SRCDIR` runfiles path.

(cherry picked from commit 6835cd7)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note: the moved targets keep this branch's RBE pools
(`linux_x64_small`), not those envoyproxy#49078 gave them on main.

(cherry picked from commit 6835cd7)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note (release/v1.39): the moved targets keep this branch's RBE pools
and load the skip lists from `//bazel:repositories.bzl`; `ci/do_ci.sh` keeps
this branch's `strip` and `route_tests.sh` its `TEST_SRCDIR` runfiles path.

(cherry picked from commit 6835cd7)
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
… 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, 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. Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

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. The fuzz
coverage link of `//test/server:server_fuzz_test` (26.4GB) is over even
xlarge with headroom, and is marked so. No compile needs more than
large.

Result: 200 pins added, 1503 changed, 60 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.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.9GB, their fuzz coverage links at ~12.6GB). 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 55 tests
on release/v1.39's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note: the moved targets keep this branch's RBE pools
(`linux_x64_small`), not those envoyproxy#49078 gave them on main.

(cherry picked from commit 6835cd7)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note (release/v1.39): the moved targets keep this branch's RBE pools
and load the skip lists from `//bazel:repositories.bzl`; `ci/do_ci.sh` keeps
this branch's `strip` and `route_tests.sh` its `TEST_SRCDIR` runfiles path.

(cherry picked from commit 6835cd7)
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
… 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 17, 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 17, 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 17, 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 17, 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, 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. Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

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. The fuzz
coverage link of `//test/server:server_fuzz_test` (26.4GB) is over even
xlarge with headroom, and is marked so. No compile needs more than
large.

Result: 200 pins added, 1503 changed, 60 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.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.9GB, their fuzz coverage links at ~12.6GB). 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 55 tests
on release/v1.39's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 17, 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, 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. Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

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. The fuzz
coverage link of `//test/server:server_fuzz_test` (26.4GB) is over even
xlarge with headroom, and is marked so. No compile needs more than
large.

Result: 200 pins added, 1503 changed, 60 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.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.9GB, their fuzz coverage links at ~12.6GB). 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 55 tests
on release/v1.39's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 17, 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 17, 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, 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. Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

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. The fuzz
coverage link of `//test/server:server_fuzz_test` (26.4GB) is over even
xlarge with headroom, and is marked so. No compile needs more than
large.

Result: 200 pins added, 1503 changed, 60 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.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.9GB, their fuzz coverage links at ~12.6GB). 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 55 tests
on release/v1.39's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 17, 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, 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. Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

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. The fuzz
coverage link of `//test/server:server_fuzz_test` (26.4GB) is over even
xlarge with headroom, and is marked so. No compile needs more than
large.

Result: 200 pins added, 1503 changed, 60 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.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.9GB, their fuzz coverage links at ~12.6GB). 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 55 tests
on release/v1.39's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 that referenced this pull request Nov 17, 2026
…tools from test/ (#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note: the moved targets keep this branch's RBE pools
(`linux_x64_small`), not those #49078 gave them on main.

(cherry picked from commit 6835cd7)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note (release/v1.39): the moved targets keep this branch's RBE pools
and load the skip lists from `//bazel:repositories.bzl`; `ci/do_ci.sh` keeps
this branch's `strip` and `route_tests.sh` its `TEST_SRCDIR` runfiles path.

(cherry picked from commit 6835cd7)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 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, 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. Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

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. The fuzz
coverage link of `//test/server:server_fuzz_test` (26.4GB) is over even
xlarge with headroom, and is marked so. No compile needs more than
large.

Result: 200 pins added, 1503 changed, 60 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.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.9GB, their fuzz coverage links at ~12.6GB). 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 55 tests
on release/v1.39's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 17, 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 17, 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, 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. Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

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. The fuzz
coverage link of `//test/server:server_fuzz_test` (26.4GB) is over even
xlarge with headroom, and is marked so. No compile needs more than
large.

Result: 200 pins added, 1503 changed, 60 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.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.9GB, their fuzz coverage links at ~12.6GB). 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 55 tests
on release/v1.39's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 17, 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, 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. Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

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. The fuzz
coverage link of `//test/server:server_fuzz_test` (26.4GB) is over even
xlarge with headroom, and is marked so. No compile needs more than
large.

Result: 200 pins added, 1503 changed, 60 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.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.9GB, their fuzz coverage links at ~12.6GB). 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 55 tests
on release/v1.39's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 17, 2026
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note (release/v1.39): the moved targets keep this branch's RBE pools
and load the skip lists from `//bazel:repositories.bzl`; `ci/do_ci.sh` keeps
this branch's `strip` and `route_tests.sh` its `TEST_SRCDIR` runfiles path.

(cherry picked from commit 6835cd7)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note (release/v1.39): the moved targets keep this branch's RBE pools
and load the skip lists from `//bazel:repositories.bzl`; `ci/do_ci.sh` keeps
this branch's `strip` and `route_tests.sh` its `TEST_SRCDIR` runfiles path.

Backport note (release/v1.37): as on release/v1.38, and the moved tools use
this branch's `@com_github_mirror_tclap//:tclap`; `ci/do_ci.sh` has no OpenSSL jobs
here.

(cherry picked from commit 6835cd7)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 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, 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. Fuzz coverage is also an asan build, so
where a target with no `default` spec has an asan pin that fuzz coverage does not need
(`//test/mocks/http:http_mocks`, `//test/mocks/network:network_mocks`), its `fuzz_coverage`
pool is spelled out as well. Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

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. The fuzz
coverage link of `//test/server:server_fuzz_test` (26.4GB) is over even
xlarge with headroom, and is marked so. No compile needs more than
large.

Result: 200 pins added, 1503 changed, 60 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.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.9GB, their fuzz coverage links at ~12.6GB). 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 55 tests
on release/v1.39's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
… ones (v1.38)

The release/v1.38 counterpart of envoyproxy#49078, regenerated from a measurement of
release/v1.38 itself rather than picked: v1.38's targets and peaks differ
from main's and from release/v1.39'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.38 run once in envoy-ci-staging#2174
(2026-11-17), 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/...`.
The release job is the one-job build of both arches (`release.multiarch`):
only its x64 actions are counted, as the pins apply to the x64 pools. 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. Fuzz coverage is also an asan build, so where a target
with no `default` spec has an asan pin that fuzz coverage does not need
(`//test/common/http/http2:frame_replay_lib`, `//test/mocks/http:http_mocks`,
`//test/mocks/network:network_mocks`), its `fuzz_coverage` pool is spelled
out as well. Generated with `rbe_report.py pins`, as envoyproxy#49315 is for main,
and every measured peak then checked against the pool the result assigns
it: none is over its pool, and none is on a larger pool than it needs.

The coverage links of 316 targets, the fuzz coverage links of 53, 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`, up to
12.6GB) and the msan test of `//test/common/router:config_impl_test`
(11.7GB) need more than the large pool (12GiB) with headroom; they are
pinned to xlarge, each marked with its measured peak, so they do not 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. Nothing
measured is over xlarge. No compile needs more than large.

Result: 165 pins added, 1468 changed, 48 removed. The loop-defined codec
fuzz tests in `test/common/http` are pinned by hand from the measurement
(their `_lib`s compile at ~3.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.7GB, their fuzz coverage links at ~12.1GB). 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 55 tests
on release/v1.38's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 that referenced this pull request Nov 17, 2026
… ones (#49321)

Stacked on #49205 (the branch carries its commits until it lands): this
is the last two commits, a port of #46986 (canonical pool names) and the
pins.

The release/v1.39 counterpart of #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 #49081,
with the `link` pools and the `cto`, `openssl` and `fuzz_coverage`
configurations of #49313 (both on this branch), on top of the canonical
pool names of #46986 (the previous commit).

Data: every CI job of release/v1.39 (with #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, 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. Generated with
`rbe_report.py pins`, as #49315 is for main.

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. The fuzz
coverage link of `//test/server:server_fuzz_test` (26.4GB) is over even
xlarge with headroom, and is marked so. No compile needs more than
large.

Result: 200 pins added, 1503 changed, 60 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.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.9GB, their fuzz coverage links at ~12.6GB). 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 55 tests
on release/v1.39's `2core` and `4core` pools (#36784, #36837), renamed
medium and large by the previous commit, 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 17, 2026
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note (release/v1.39): the moved targets keep this branch's RBE pools
and load the skip lists from `//bazel:repositories.bzl`; `ci/do_ci.sh` keeps
this branch's `strip` and `route_tests.sh` its `TEST_SRCDIR` runfiles path.

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

The release/v1.38 counterpart of envoyproxy#49078, regenerated from a measurement of
release/v1.38 itself rather than picked: v1.38's targets and peaks differ
from main's and from release/v1.39'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.38 run once in envoy-ci-staging#2174
(2026-11-17), 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/...`.
The release job is the one-job build of both arches (`release.multiarch`):
only its x64 actions are counted, as the pins apply to the x64 pools. 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. Fuzz coverage is also an asan build, so where a target
with no `default` spec has an asan pin that fuzz coverage does not need
(`//test/common/http/http2:frame_replay_lib`, `//test/mocks/http:http_mocks`,
`//test/mocks/network:network_mocks`), its `fuzz_coverage` pool is spelled
out as well. Generated with `rbe_report.py pins`, as envoyproxy#49315 is for main,
and every measured peak then checked against the pool the result assigns
it: none is over its pool, and none is on a larger pool than it needs.

The coverage links of 316 targets, the fuzz coverage links of 53, 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`, up to
12.6GB) and the msan test of `//test/common/router:config_impl_test`
(11.7GB) need more than the large pool (12GiB) with headroom; they are
pinned to xlarge, each marked with its measured peak, so they do not 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. Nothing
measured is over xlarge. No compile needs more than large.

Result: 165 pins added, 1468 changed, 48 removed. The loop-defined codec
fuzz tests in `test/common/http` are pinned by hand from the measurement
(their `_lib`s compile at ~3.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.7GB, their fuzz coverage links at ~12.1GB). 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 55 tests
on release/v1.38's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 17, 2026
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note (release/v1.39): the moved targets keep this branch's RBE pools
and load the skip lists from `//bazel:repositories.bzl`; `ci/do_ci.sh` keeps
this branch's `strip` and `route_tests.sh` its `TEST_SRCDIR` runfiles path.

Backport note (release/v1.37): as on release/v1.38, and the moved tools use
this branch's `@com_github_mirror_tclap//:tclap`; `ci/do_ci.sh` has no OpenSSL jobs
here.

(cherry picked from commit 6835cd7)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 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. The GCC jobs were measured again
on the branch as landed (2026-11-17): they have their own RBE platform,
which the first run had left on the default pool, where their actions
were killed and retried rather than measured on the large one. That
changed one pin (`proxy_protocol_header_test`'s GCC compile, 2.9GB, is
now on small). 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, 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. Fuzz coverage is also an asan build, so
where a target with no `default` spec has an asan pin that fuzz coverage does not need
(`//test/mocks/http:http_mocks`, `//test/mocks/network:network_mocks`), its `fuzz_coverage`
pool is spelled out as well. Generated with
`rbe_report.py pins`, as envoyproxy#49315 is for main.

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. The fuzz
coverage link of `//test/server:server_fuzz_test` (26.4GB) is over even
xlarge with headroom, and is marked so. No compile needs more than
large.

Result: 200 pins added, 1503 changed, 60 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.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.9GB, their fuzz coverage links at ~12.6GB). 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 55 tests
on release/v1.39's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 17, 2026
… ones (v1.38)

The release/v1.38 counterpart of envoyproxy#49078, regenerated from a measurement of
release/v1.38 itself rather than picked: v1.38's targets and peaks differ
from main's and from release/v1.39'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.38 run once in envoy-ci-staging#2174
(2026-11-17), 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. The GCC jobs were then measured again on the branch as
landed: they have their own RBE platform, which the first run had left on
the default pool, where their actions were killed and retried rather than
measured on the large one. No pin changed. 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/...`.
The release job is the one-job build of both arches (`release.multiarch`):
only its x64 actions are counted, as the pins apply to the x64 pools. 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. Fuzz coverage is also an asan build, so where a target
with no `default` spec has an asan pin that fuzz coverage does not need
(`//test/common/http/http2:frame_replay_lib`, `//test/mocks/http:http_mocks`,
`//test/mocks/network:network_mocks`), its `fuzz_coverage` pool is spelled
out as well. Generated with `rbe_report.py pins`, as envoyproxy#49315 is for main,
and every measured peak then checked against the pool the result assigns
it: none is over its pool, and none is on a larger pool than it needs.

The coverage links of 316 targets, the fuzz coverage links of 53, 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`, up to
12.6GB) and the msan test of `//test/common/router:config_impl_test`
(11.7GB) need more than the large pool (12GiB) with headroom; they are
pinned to xlarge, each marked with its measured peak, so they do not 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. Nothing
measured is over xlarge. No compile needs more than large.

Result: 165 pins added, 1468 changed, 48 removed. The loop-defined codec
fuzz tests in `test/common/http` are pinned by hand from the measurement
(their `_lib`s compile at ~3.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.7GB, their fuzz coverage links at ~12.1GB). 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 55 tests
on release/v1.38's `2core` and `4core` pools (envoyproxy#36784, envoyproxy#36837), renamed
medium and large by the previous commit, 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 18, 2026
…tools from test/ (envoyproxy#49262)

`router_check_tool`, `schema_validator_tool` and
`config_load_check_tool` are released (in the release binaries and the
`envoy-tools` image), but live in `test/tools`. This moves them, their
libraries and the router check `validation.proto` to `tools/`:

- `test/tools/{router_check,schema_validator,config_load_check}/*`
(sources, headers, proto, BUILD) -> `tools/<tool>/`. Their tests and
test configs stay in `test/tools/<tool>/test`, so they still run with
`//test/...`.
- The old labels (`//test/tools/<tool>:<tool>_tool`, `.stripped`, and
the libraries) are aliases of the new ones.
- References: `ci/do_ci.sh` (build targets and stripped binary paths),
the tool docs (build/run commands and the `validation.proto` link),
`tools/code_format/config.yaml`, the `extension_config` package group
(the tools link all of the extensions), the router tool test's binary
path, and include paths (regrouped as clang-format groups `tools/...`
includes).

The tools still depend on test libraries (eg `//test/mocks/server`,
`//test/config_test`); removing those is separate.

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

Backport note (release/v1.39): the moved targets keep this branch's RBE pools
and load the skip lists from `//bazel:repositories.bzl`; `ci/do_ci.sh` keeps
this branch's `strip` and `route_tests.sh` its `TEST_SRCDIR` runfiles path.

Backport note (release/v1.37): as on release/v1.38, and the moved tools use
this branch's `@com_github_mirror_tclap//:tclap`; `ci/do_ci.sh` has no OpenSSL jobs
here.

(cherry picked from commit 6835cd7)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 18, 2026
… ones (v1.38)

The release/v1.38 counterpart of #49078, regenerated from a measurement of
release/v1.38 itself rather than picked: v1.38's targets and peaks differ
from main's and from release/v1.39'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), on top
of the canonical pool names of #46986 (the previous commit).

Data: every CI job of release/v1.38 run once in envoy-ci-staging#2174
(2026-11-17), 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. The GCC jobs were then measured again on the branch as
landed: they have their own RBE platform, which the first run had left on
the default pool, where their actions were killed and retried rather than
measured on the large one. No pin changed. 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/...`.
The release job is the one-job build of both arches (`release.multiarch`):
only its x64 actions are counted, as the pins apply to the x64 pools. 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. Fuzz coverage is also an asan build, so where a target
with no `default` spec has an asan pin that fuzz coverage does not need
(`//test/common/http/http2:frame_replay_lib`, `//test/mocks/http:http_mocks`,
`//test/mocks/network:network_mocks`), its `fuzz_coverage` pool is spelled
out as well. Generated with `rbe_report.py pins`, as #49315 is for main,
and every measured peak then checked against the pool the result assigns
it: none is over its pool, and none is on a larger pool than it needs.

The coverage links of 316 targets, the fuzz coverage links of 53, 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`, up to
12.6GB) and the msan test of `//test/common/router:config_impl_test`
(11.7GB) need more than the large pool (12GiB) with headroom; they are
pinned to xlarge, each marked with its measured peak, so they do not 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. Nothing
measured is over xlarge. No compile needs more than large.

Result: 165 pins added, 1468 changed, 48 removed. The loop-defined codec
fuzz tests in `test/common/http` are pinned by hand from the measurement
(their `_lib`s compile at ~3.3-3.9GB, 5.3GB with gcc, their tsan links at
~3.7GB, their fuzz coverage links at ~12.1GB). 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 55 tests
on release/v1.38's `2core` and `4core` pools (#36784, #36837), renamed
medium and large by the previous commit, 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants