diff --git a/projects/prometheus/build.sh b/projects/prometheus/build.sh index 442232fc2c68..ef764b303a33 100755 --- a/projects/prometheus/build.sh +++ b/projects/prometheus/build.sh @@ -14,10 +14,14 @@ # limitations under the License. # ################################################################################ -# Wrong naming in this fuzzer breaks the coverage build -rm promql/fuzz_test.go -compile_go_fuzzer github.com/prometheus/prometheus/promql FuzzParseMetric fuzzParseMetric -compile_go_fuzzer github.com/prometheus/prometheus/promql FuzzParseOpenMetric fuzzParseOpenMetric -compile_go_fuzzer github.com/prometheus/prometheus/promql FuzzParseMetricSelector fuzzParseMetricSelector -compile_go_fuzzer github.com/prometheus/prometheus/promql FuzzParseExpr fuzzParseExpr +compile_native_go_fuzzer_v2 github.com/prometheus/prometheus/util/fuzzing FuzzParseMetricText fuzzParseMetricText +compile_native_go_fuzzer_v2 github.com/prometheus/prometheus/util/fuzzing FuzzParseOpenMetric fuzzParseOpenMetric +compile_native_go_fuzzer_v2 github.com/prometheus/prometheus/util/fuzzing FuzzParseMetricSelector fuzzParseMetricSelector +compile_native_go_fuzzer_v2 github.com/prometheus/prometheus/util/fuzzing FuzzParseExpr fuzzParseExpr + +/root/.go/bin/go generate -tags fuzzing ./util/fuzzing/corpus_gen +mv util/fuzzing/fuzzParseExpr_seed_corpus.zip $OUT/ +mv util/fuzzing/fuzzParseMetricSelector_seed_corpus.zip $OUT/ +mv util/fuzzing/fuzzParseMetricText_seed_corpus.zip $OUT/ +mv util/fuzzing/fuzzParseOpenMetric_seed_corpus.zip $OUT/