Skip to content

ci/openssl: Split the OpenSSL check into per-target jobs - #49173

Merged
phlax merged 2 commits into
envoyproxy:mainfrom
phlax:ci-openssl-jobs
Nov 11, 2026
Merged

phlax merged 2 commits into
envoyproxy:mainfrom
phlax:ci-openssl-jobs

Conversation

@phlax

@phlax phlax commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

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.

@phlax phlax changed the title [WIP] Ci openssl jobs [WIP] ci/openssl: Split the OpenSSL check into per-target jobs Nov 11, 2026
@phlax
phlax marked this pull request as draft November 11, 2026 13:32
@phlax
phlax requested a balanced review from Copilot November 11, 2026 13:32

This comment was marked as outdated.

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 are reported for the OpenSSL CI job split.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

Copilot AI commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Install deps

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

@phlax phlax changed the title [WIP] ci/openssl: Split the OpenSSL check into per-target jobs ci/openssl: Split the OpenSSL check into per-target jobs Nov 11, 2026
@phlax
phlax marked this pull request as ready for review November 11, 2026 14:32
@phlax
phlax force-pushed the ci-openssl-jobs branch 2 times, most recently from ca6f837 to 439613c Compare November 11, 2026 16:27
`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` (was `openssl.presubmit`)
only selects and tests. `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, post-submit the build, all tests and asan, as
before.

A branch without the new flags keeps the jobs it had.

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

phlax commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

/retest

Comment thread .github/config.yml Outdated
Comment on lines +459 to +462
# A flag with no paths to match is post-submit only: nothing selects it for a pull request, and
# a push runs it whatever changed.
check-build-openssl-asan:
paths: []

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think paths: [] is post-submit only. request.yml also runs on schedule, and torun only skips path matching when the event is push. On any other event it returns globMatchPaths(paths, ...), which is always false for []. So check-build-openssl-asan and check-build-openssl-test will never run on the nightly schedule. Before this PR, check-build-openssl (paths: ["**/*"]) did run the full openssl target nightly.

Could we give these paths: ["**/*"] and do the PR/post-submit split in _request.yml instead (drop test/asan when $pr is set)? If skipping them nightly is intended, the comment should say so.

Comment thread .github/config.yml Outdated
- .bazelrc
- ci/do_ci.sh
- ci/bazel_fun.sh
push: never

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

push: never only blocks push events. On a schedule run, this job (and check-build-openssl-build) can still be selected when the latest commit touches these paths, since non-PR events diff against HEAD^1. With CI_TARGET_BRANCH=main the merge base is HEAD, so test_affected would start a runner only to report "No affected test targets found". The old matrix skipped openssl.presubmit whenever pr == ''. Maybe also drop test_affected in _request.yml when $pr is false?

Comment thread AGENTS.md
| Prechecks: external | `external` | downstream bzlmod build in `bazel/tests/external` |
| Checks: build | `api`, `cto.*` (one job per option), `execution_context`, `gcc.build`, `gcc.test` | `--config=gcc`, `--config=compile-time-options` |
| Checks: openssl | `openssl.presubmit` (PRs), `openssl` (post-submit) | `--config=openssl`; allowed to fail |
| Checks: openssl | `openssl.build`, `openssl.test_affected` (PRs), `openssl.asan`, `openssl.test` (post-submit) | `--config=openssl`; allowed to fail |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

compat/openssl/AGENTS.md (lines 15-16) still says CI runs ci/do_ci.sh openssl.presubmit on PRs and ci/do_ci.sh openssl post-submit. openssl.presubmit is removed from do_ci.sh in this PR, so it would be good to update that file to match this table too.

A flag with no paths is never selected for a scheduled request, so
`openssl.test` and `openssl.asan` have paths again, and the request
drops the targets that are not for the event: `openssl.test_affected`
for anything but a pull request, the full tests and asan for a pull
request.

`openssl.presubmit` stays in `do_ci.sh` until the flags are on the
target branch, and `docker-ci` is passed again for the branches that
still select their image with it.

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

phlax commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

should be fixed - i was reprimanded by bot because it says it had already fixed this and i pushed over it 8/

@phlax
phlax enabled auto-merge (squash) November 11, 2026 19:09
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
…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` (was `openssl.presubmit`)
only selects and tests. `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, post-submit the build, all tests and asan, as
before.

A branch without the new flags keeps the jobs it had.

ci/openssl: Fix scheduled runs and jobs for older branches

A flag with no paths is never selected for a scheduled request, so
`openssl.test` and `openssl.asan` have paths again, and the request
drops the targets that are not for the event: `openssl.test_affected`
for anything but a pull request, the full tests and asan for a pull
request.

`openssl.presubmit` stays in `do_ci.sh` until the flags are on the
target branch, and `docker-ci` is passed again for the branches that
still select their image with it.

Backport note: picked from the pull request ahead of its merge to main. `AGENTS.md` and
`compat/openssl/AGENTS.md` are left as on this branch.

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax merged commit 02bc21e into envoyproxy:main Nov 11, 2026
25 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
…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]>
phlax added a commit that referenced this pull request Nov 11, 2026
`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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
Backport of envoyproxy#49173 and envoyproxy#49150, and the `openssl.asan` target of envoyproxy#49007,
so that this branch runs the same OpenSSL jobs as main and
release/v1.40: `openssl.build` and `openssl.test_affected` for pull
requests, and `openssl.build` and `openssl.test` for everything else.

CI's workflows run from main, and set the OpenSSL jobs from the
`check-build-openssl-*` run flags in this branch's `.github/config.yml`,
so only the config and `ci/do_ci.sh` are ported. As before on this
branch, the OpenSSL builds set up the clang toolchain and leave the
quiche tests out, and `WORKSPACE` is treated as a build-wide change.

The post-merge ASAN job is not turned on: the compat layer on this
branch still loads OpenSSL with `RTLD_DEEPBIND`, which ASAN does not
support. Main stopped using it in envoyproxy#48972.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
Backport of envoyproxy#49173 and envoyproxy#49150, and the `openssl.asan` target of envoyproxy#49007,
so that this branch runs the same OpenSSL jobs as main and
release/v1.40: `openssl.build` and `openssl.test_affected` for pull
requests, and `openssl.build` and `openssl.test` for everything else.

CI's workflows run from main, and set the OpenSSL jobs from the
`check-build-openssl-*` run flags in this branch's `.github/config.yml`,
so only the config and `ci/do_ci.sh` are ported. As before on this
branch, the OpenSSL builds set up the clang toolchain and leave the
quiche tests out, and `WORKSPACE` is treated as a build-wide change.

The post-merge ASAN job is not turned on: the compat layer on this
branch still loads OpenSSL with `RTLD_DEEPBIND`, which ASAN does not
support. Main stopped using it in envoyproxy#48972.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
Backport of envoyproxy#49173 and envoyproxy#49150, and the `openssl.asan` target of envoyproxy#49007,
so that this branch runs the same OpenSSL jobs as main and
release/v1.40: `openssl.build` and `openssl.test_affected` for pull
requests, and `openssl.build` and `openssl.test` for everything else.

CI's workflows run from main, and set the OpenSSL jobs from the
`check-build-openssl-*` run flags in this branch's `.github/config.yml`,
so only the config and `ci/do_ci.sh` are ported. As before on this
branch, the OpenSSL builds set up the clang toolchain and leave the
quiche tests out, and `WORKSPACE` is treated as a build-wide change.

The post-merge ASAN job is not turned on: the compat layer on this
branch still loads OpenSSL with `RTLD_DEEPBIND`, which ASAN does not
support. Main stopped using it in envoyproxy#48972.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
Backport of envoyproxy#49173 and envoyproxy#49150, and the `openssl.asan` target of envoyproxy#49007,
so that this branch runs the same OpenSSL jobs as main and
release/v1.40: `openssl.build` and `openssl.test_affected` for pull
requests, and `openssl.build` and `openssl.test` for everything else.

CI's workflows run from main, and set the OpenSSL jobs from the
`check-build-openssl-*` run flags in this branch's `.github/config.yml`,
so only the config and `ci/do_ci.sh` are ported. As before on this
branch, the OpenSSL builds set up the clang toolchain and leave the
quiche tests out, and `WORKSPACE` is treated as a build-wide change.

The post-merge ASAN job is not turned on: the compat layer on this
branch still loads OpenSSL with `RTLD_DEEPBIND`, which ASAN does not
support. Main stopped using it in envoyproxy#48972.

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

Backport of envoyproxy#49173 and envoyproxy#49150, and the `openssl.asan` target of envoyproxy#49007,
so that this branch runs the same OpenSSL jobs as main and
release/v1.40: `openssl.build` and `openssl.test_affected` for pull
requests, and `openssl.build` and `openssl.test` for everything else.

CI's workflows run from main, and set the OpenSSL jobs from the
`check-build-openssl-*` run flags in this branch's `.github/config.yml`,
so only the config and `ci/do_ci.sh` are ported. As before on this
branch, the OpenSSL builds set up the clang toolchain and leave the
quiche tests out, and `WORKSPACE` is treated as a build-wide change.

The post-merge ASAN job is not turned on: the compat layer on this
branch still loads OpenSSL with `RTLD_DEEPBIND`, which ASAN does not
support. Main stopped using it in envoyproxy#48972.

(cherry picked from commit 02bc21e)

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

Backport of envoyproxy#49173 and envoyproxy#49150, and the `openssl.asan` target of envoyproxy#49007,
so that this branch runs the same OpenSSL jobs as main and
release/v1.40: `openssl.build` and `openssl.test_affected` for pull
requests, and `openssl.build` and `openssl.test` for everything else.

CI's workflows run from main, and set the OpenSSL jobs from the
`check-build-openssl-*` run flags in this branch's `.github/config.yml`,
so only the config and `ci/do_ci.sh` are ported. As before on this
branch, the OpenSSL builds set up the clang toolchain and leave the
quiche tests out, and `WORKSPACE` is treated as a build-wide change.

The post-merge ASAN job is not turned on: the compat layer on this
branch still loads OpenSSL with `RTLD_DEEPBIND`, which ASAN does not
support. Main stopped using it in envoyproxy#48972.

(cherry picked from commit 02bc21e)

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 17, 2026
Backport of #49173 and #49150, and the `openssl.asan` target of #49007,
so that this branch runs the same OpenSSL jobs as main and
release/v1.40: `openssl.build` and `openssl.test_affected` for pull
requests, and `openssl.build` and `openssl.test` for everything else.

CI's workflows run from main, and set the OpenSSL jobs from the
`check-build-openssl-*` run flags in this branch's `.github/config.yml`,
so only the config and `ci/do_ci.sh` are ported. As before on this
branch, the OpenSSL builds set up the clang toolchain and leave the
quiche tests out, and `WORKSPACE` is treated as a build-wide change.

The post-merge ASAN job is not turned on: the compat layer on this
branch still loads OpenSSL with `RTLD_DEEPBIND`, which ASAN does not
support. Main stopped using it in #48972.

(cherry picked from commit 02bc21e)

Signed-off-by: Ryan Northey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants