Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The affected-test query follows BoringSSL defaults instead of OpenSSL overrides, allowing compatibility-source changes to omit affected Envoy TLS tests that the later cquery cannot recover.
1 open issue
What changed in this PR
Updates OpenSSL affected-test selection in CI to avoid analyzing unrelated release-signing targets that require credentials.
Changes:
- Uses
bazel queryto discover affected tests, thencqueryto filter incompatible targets. - Passes query expressions through temporary files to support long label lists.
- Preserves query failure reporting and deduplicates selected test labels.
| File | Description |
|---|---|
ci/do_ci.sh |
Generalizes the query helper and separates test discovery from compatibility filtering. |
Review effort: Balanced
`openssl.test_affected` seeds a changed `BUILD` or `.bzl` file's whole package into `kind(test, rdeps(U, set(...)))`. cquery analyses every target those patterns match, manual ones included, and the release signing targets in //distribution fail analysis without a key path, so any change that touches both `compat/openssl` and `distribution/` fails the job: in pgp_sign rule //distribution:signed_changes-x64-envoy-contrib-1.40-jammy: No key path configured for @@//distribution:signed_changes-... The tests are now selected with `bazel query`, which only loads packages, and cquery is used only to drop the incompatible tests from the selected labels. Query follows every `select` branch, so it can select a few more tests. Both queries are passed in a file, as the selection can be long. Query sees the defaults of the `//bazel:ssl`/`//bazel:crypto` label flags (BoringSSL), not the OpenSSL libraries `--config=openssl` sets them to, so a seed in the OpenSSL libraries' dependencies also seeds the flags, selecting the tests cquery reached through them. Signed-off-by: Ryan Northey <[email protected]>
phlax
force-pushed
the
ci-openssl-affected-query
branch
from
November 16, 2026 22:02
f6ecf9f to
6bd3713
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Commit Message: ci/openssl: Select the affected tests with query, not cquery
Additional Description:
openssl.test_affectedseeds a changedBUILDor.bzlfile's whole package intokind(test, rdeps(U, set(...))). cquery analyses every target those patterns match, manual ones included, and the release signing targets in //distribution fail analysis without a key path, so any change that touches bothcompat/opensslanddistribution/fails the job:The tests are now selected with
bazel query, which only loads packages, and cquery is used only to drop the incompatible tests from the selected labels. Query follows everyselectbranch, so it can select a few more tests. Both queries are passed in a file, as the selection can be long.Query sees the defaults of the
//bazel:ssl///bazel:cryptolabel flags (BoringSSL), not the OpenSSL libraries--config=opensslsets them to, so a seed in the OpenSSL libraries' dependencies also seeds the flags, selecting the tests cquery reached through them.Risk Level: low (CI test selection for
openssl.test_affected)Testing: CI
Docs Changes: n/a
Release Notes: n/a