Repository navigation
ci/openssl: Split the OpenSSL check into per-target jobs - #49173
Conversation
d3b3caa to
635cc64
Compare
|
One or more custom setup steps configured for this repository failed during this Copilot code review run: 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 |
ca6f837 to
439613c
Compare
`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]>
439613c to
4144aa0
Compare
|
/retest |
| # 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: [] |
There was a problem hiding this comment.
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.
| - .bazelrc | ||
| - ci/do_ci.sh | ||
| - ci/bazel_fun.sh | ||
| push: never |
There was a problem hiding this comment.
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?
| | 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 | |
There was a problem hiding this comment.
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]>
|
should be fixed - i was reprimanded by bot because it says it had already fixed this and i pushed over it 8/ |
…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]>
…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]>
`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]>
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]>
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]>
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]>
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]>
…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]>
…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]>
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]>


openssl.presubmitbuilt the server and tools in five bazel invocations before selecting and running the affected tests.openssl.buildnow builds them in one, andopenssl.test_affectedonly selects and tests; the selection itself is unchanged.openssl.testis the test half ofopenssl.Check/build (OpenSSL) runs these and
openssl.asanas separate jobs, enabled and path selected bycheck-build-openssl-*run flags in the same way as thecto.*andgcc.*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-presubmitflag, so the request ignores the old flag names when deciding that; this can be removed once the branches that predate theopenssl.*targets are no longer supported.openssl.presubmitstays indo_ci.shuntil the flags are on main, as that is what a pull request is asked for until then.