From 4f3158373d766710f9ec9fe7e1b1b78d30553c60 Mon Sep 17 00:00:00 2001 From: Amit Patankar Date: Wed, 17 Feb 2021 18:30:47 -0800 Subject: [PATCH] Remove manual denylisting in tensorflow (#5210) * Remove manual denylisting in tensorflow Remove manual denylisting of fuzzing targets using bazel query via tags. * Add a space in the bazel query. * Update the tag we should denylist. * Update the comment. --- projects/tensorflow/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/tensorflow/build.sh b/projects/tensorflow/build.sh index 8f793951d..012642389 100755 --- a/projects/tensorflow/build.sh +++ b/projects/tensorflow/build.sh @@ -47,8 +47,8 @@ fi # Determine all fuzz targets. To control what gets fuzzed with OSSFuzz, all # supported fuzzers are in `//tensorflow/security/fuzzing`. -# Ignore the identity and AttrValues fuzzer in opensource. -declare -r FUZZERS=$(bazel query 'kind(cc_.*, tests(//tensorflow/security/fuzzing/...))' | grep -v identity | grep -v AttrValues | grep -v bfloat16) +# Ignore fuzzers tagged with `no_oss` in opensource. +declare -r FUZZERS=$(bazel query 'kind(cc_.*, tests(//tensorflow/security/fuzzing/...)) - attr(tags, no_oss, kind(cc_.*, tests(//tensorflow/security/fuzzing/...)))') # Build the fuzzer targets. # Pass in `--config=libc++` to link against libc++.