envoy: Limiting number of targets in CI (#7809)

* envoy: Limiting number of targets in CI

Signed-off-by: Adi Suissa-Peleg <adip@google.com>

* Removing another target

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
This commit is contained in:
Adi (Suissa) Peleg 2022-06-07 13:03:19 -04:00 committed by GitHub
parent 9e0dd4c311
commit 97d0732562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -19,7 +19,15 @@ declare -r FUZZ_TARGET_QUERY='
let all_fuzz_tests = attr(tags, "fuzz_target", "...") in
$all_fuzz_tests - attr(tags, "no_fuzz", $all_fuzz_tests)
'
declare -r OSS_FUZZ_TARGETS="$(bazel query "${FUZZ_TARGET_QUERY}" | sed 's/$/_oss_fuzz/')"
if [ -n "${OSS_FUZZ_CI-}" ]
then
# CI has fewer resources so restricting to a small number of fuzz targets.
# Choosing the header_parser, and header_map_impl.
declare -r OSS_FUZZ_TARGETS="$(bazel query "${FUZZ_TARGET_QUERY}" | grep ':header' | sed 's/$/_oss_fuzz/')"
else
declare -r OSS_FUZZ_TARGETS="$(bazel query "${FUZZ_TARGET_QUERY}" | sed 's/$/_oss_fuzz/')"
fi
declare -r EXTRA_BAZEL_FLAGS="$(
if [ -n "$CC" ]; then