Skip to content

[bp/1.40] ci: Flattened compile-time options and gcc checks - #49184

Merged
phlax merged 7 commits into
envoyproxy:release/v1.40from
phlax:bp-1.40-ci-checks
Nov 11, 2026
Merged

phlax merged 7 commits into
envoyproxy:release/v1.40from
phlax:bp-1.40-ci-checks

Conversation

@phlax

@phlax phlax commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Brings the flattened Check/build layout from main to release/v1.40, so that each compile-time option, the gcc build and test, and the OpenSSL targets run as their own jobs and failures can be seen per job.

Rebased onto release/v1.40 after #49174 landed, and rebuilt from the commits as merged to main:

Differences from main:

With the wasmtime tests now re-enabled on this branch, cto.wasmtime is included as on main.

Note that the previous compile_time_options target on this branch exited after the wamr run, so the jemalloc, admin-disabled, release-assert and logging-disabled runs have not been running here. They now do, as cto.jemalloc, cto.noadmin, cto.asserts and cto.nolog.

@phlax

phlax commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

@jwendell this include the openssl.asan - which i dont mind too much as its pretty lightweight - altho probs it could be dropped

@phlax
phlax force-pushed the bp-1.40-ci-checks branch 2 times, most recently from 1dd4644 to a703c37 Compare November 11, 2026 21:00
tedjpoole and others added 7 commits November 11, 2026 21:27
…voyproxy#49007)

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

Signed-off-by: Ted Poole <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
`_request.yml` lists a Check/build job for each
`check-build-<check>-<option>` run flag set in the target branch's
config, as the `<check>.<option>` target, for the compile-time options
(`cto`) and `gcc` checks. `_check_build.yml` runs that list.

A branch with no flags for a check keeps its single job
(`compile_time_options`, `gcc`). No branch has any yet, so nothing
changes.

this will allow more dynamic (per-branch) handling of the checks
sub/jobs - cto, gcc, openssl

Signed-off-by: Ryan Northey <[email protected]>
The check ran the whole tree twice in one job, each time with several
options mixed in. It is now one `do_ci.sh` subtask and one Check/build
job per option:

- `cto.base`: the `compile-time-options` config plus jemalloc, all tests
- `cto.noadmin`: admin disabled, all tests
- `cto.gperftools`: the server tests and those that observe allocation
- `cto.wamr`, `cto.wasmtime`: the wasm extension tests, and those that
link the engine with the rest of Envoy (the server, dynamic modules)
- `cto.asserts`, `cto.nolog`: the same targets as before

`compile_time_options` (or `cto`) runs them all. Test runs use
`--build_tests_only`.

Jobs are enabled and path selected by `check-build-cto-<option>` run
flags; a branch with none keeps the single `compile_time_options` job.

Fixes AdminInstanceTest.MemoryTcmalloc under jemalloc.

Requires envoyproxy#49170, which this is stacked on.

---------

Signed-off-by: Ryan Northey <[email protected]>
`gcc` built the server and tools in five bazel invocations, then ran the
tests in a sixth. It now builds them as part of the test invocation.
`gcc.build` and `gcc.test` (were `gcc.server_only`, `gcc.test_only`) do
one half each, and `gcc.build` builds in one invocation too.

Check/build runs `gcc.build` and `gcc.test` as separate jobs, enabled
and path selected by `check-build-gcc-*` run flags in the same way as
the `cto.*` jobs; a branch with none keeps the single `gcc` job.

This changes when gcc runs: it was part of `check-build`, which runs for
any change, and now only runs when the paths its flags list change (the
source and test trees, the build configuration and the CI scripts), so
not for e.g. a docs only change.

---------

(cherry picked from commit c64ab1f)

Backport note: the gcc section of `ci/do_ci.sh` and its paragraph in `ci/README.md` conflicted
with this branch's older text and are taken as on main. `AGENTS.md` is left as on this branch.

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

`openssl.presubmit` built the server and tools in five bazel invocations
before selecting and running the affected tests. `openssl.build` now
builds them in one, and `openssl.test_affected` only selects and tests;
the selection itself is unchanged. `openssl.test` is the test half of
`openssl`.

Check/build (OpenSSL) runs these and `openssl.asan` as separate jobs,
enabled and path selected by `check-build-openssl-*` run flags in the
same way as the `cto.*` and `gcc.*` jobs. Pull requests get the build
and the affected tests, anything else the build, all tests and asan, as
before.

A branch without the new flags keeps the jobs it had. release/v1.40
already has a `check-build-openssl-presubmit` flag, so the request
ignores the old flag names when deciding that; this can be removed once
the branches that predate the `openssl.*` targets are no longer
supported.

`openssl.presubmit` stays in `do_ci.sh` until the flags are on main, as
that is what a pull request is asked for until then.

---------

Signed-off-by: Ryan Northey <[email protected]>
envoyproxy#49177)

…arget

For consistency with the other `do_ci.sh` subtargets. `fuzz_coverage`
still works, and is what CI uses until the branches it runs for have the
new name.

Signed-off-by: Ryan Northey <[email protected]>
`cto.base` suggests a base run that the other `cto.*` targets share or
build on. There is none: each target is the compile-time-options config
plus one option of its own, and this one's is jemalloc. It is the only
run in CI that uses jemalloc.

Name it for that, so that when it fails and nothing else does it is
obvious where to look.

The run flag is renamed to match (`check-build-cto-jemalloc`), which is
what names the job: "Compile time options (jemalloc)".

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax force-pushed the bp-1.40-ci-checks branch from 12bf1fd to b045cc4 Compare November 11, 2026 21:28
@jwendell

jwendell commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

@jwendell this include the openssl.asan - which i dont mind too much as its pretty lightweight - altho probs it could be dropped

Feel free to remove or leave it, whatever is easier for you (maybe leaving it means less merge conflicts when backporting stuff?)

@phlax
phlax merged commit 3ec6b77 into envoyproxy:release/v1.40 Nov 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants