Skip to content

ci/openssl: Leave incompatible targets out of the presubmit selection - #49150

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:ci-openssl-presubmit-incompatible
Nov 10, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:ci-openssl-presubmit-incompatible

Conversation

@phlax

@phlax phlax commented Nov 10, 2026

Copy link
Copy Markdown
Member

The presubmit selects the affected tests with cquery and passes them to bazel test as explicit labels. cquery includes targets that are incompatible with the target platform, such as the Windows-only //test/exe:win32_scm_test (#48922), and Bazel only skips those for wildcard patterns: as explicit labels they abort the build with "command succeeded, but not all targets were analyzed", as on any PR touching test/exe/BUILD. The selection now drops them, by checking for IncompatiblePlatformProvider in the cquery starlark output.

The presubmit selects the affected tests with cquery and passes them to
bazel test as explicit labels. cquery includes targets that are
incompatible with the target platform, such as the Windows-only
//test/exe:win32_scm_test (envoyproxy#48922), and Bazel only skips those for
wildcard patterns: as explicit labels they abort the build with
"command succeeded, but not all targets were analyzed", as on any PR
touching test/exe/BUILD. The selection now drops them, by checking for
IncompatiblePlatformProvider in the cquery starlark output.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the change excluding platform-incompatible targets from OpenSSL presubmit tests.

No open issues 🎉

What changed in this PR

Updates OpenSSL presubmit test selection to exclude platform-incompatible targets, preventing Windows-only tests from aborting builds when passed to Bazel as explicit labels.

Changes:

  • Filters cquery results using IncompatiblePlatformProvider and removes resulting blank lines.
  • Updates comments to explain the filtering and clarify the remaining purpose of --keep_going.
File Description
ci/​do_ci.sh Excludes incompatible targets from cquery output used for OpenSSL presubmit testing.

Review effort: Balanced

@phlax
phlax enabled auto-merge (squash) November 10, 2026 17:52
@phlax
phlax merged commit 1bc65d9 into envoyproxy:main Nov 10, 2026
25 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
…envoyproxy#49150)

The presubmit selects the affected tests with cquery and passes them to
bazel test as explicit labels. cquery includes targets that are
incompatible with the target platform, such as the Windows-only
//test/exe:win32_scm_test (envoyproxy#48922), and Bazel only skips those for
wildcard patterns: as explicit labels they abort the build with "command
succeeded, but not all targets were analyzed", as on any PR touching
test/exe/BUILD. The selection now drops them, by checking for
IncompatiblePlatformProvider in the cquery starlark output.

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

The presubmit selects the affected tests with cquery and passes them to
bazel test as explicit labels. cquery includes targets that are
incompatible with the target platform, such as the Windows-only
//test/exe:win32_scm_test (envoyproxy#48922), and Bazel only skips those for
wildcard patterns: as explicit labels they abort the build with "command
succeeded, but not all targets were analyzed", as on any PR touching
test/exe/BUILD. The selection now drops them, by checking for
IncompatiblePlatformProvider in the cquery starlark output.

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

The presubmit selects the affected tests with cquery and passes them to
bazel test as explicit labels. cquery includes targets that are
incompatible with the target platform, such as the Windows-only
//test/exe:win32_scm_test (envoyproxy#48922), and Bazel only skips those for
wildcard patterns: as explicit labels they abort the build with "command
succeeded, but not all targets were analyzed", as on any PR touching
test/exe/BUILD. The selection now drops them, by checking for
IncompatiblePlatformProvider in the cquery starlark output.

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

The presubmit selects the affected tests with cquery and passes them to
bazel test as explicit labels. cquery includes targets that are
incompatible with the target platform, such as the Windows-only
//test/exe:win32_scm_test (envoyproxy#48922), and Bazel only skips those for
wildcard patterns: as explicit labels they abort the build with "command
succeeded, but not all targets were analyzed", as on any PR touching
test/exe/BUILD. The selection now drops them, by checking for
IncompatiblePlatformProvider in the cquery starlark output.

Signed-off-by: Ryan Northey <[email protected]>
jwendell pushed a commit that referenced this pull request Nov 11, 2026
…#49150)

The presubmit selects the affected tests with cquery and passes them to
bazel test as explicit labels. cquery includes targets that are
incompatible with the target platform, such as the Windows-only
//test/exe:win32_scm_test (#48922), and Bazel only skips those for
wildcard patterns: as explicit labels they abort the build with "command
succeeded, but not all targets were analyzed", as on any PR touching
test/exe/BUILD. The selection now drops them, by checking for
IncompatiblePlatformProvider in the cquery starlark output.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants