mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Remove fuzzit
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
b317b6ab9c
commit
c666879e3f
|
@ -13,10 +13,6 @@ executors:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.15-node
|
- image: circleci/golang:1.15-node
|
||||||
|
|
||||||
fuzzit:
|
|
||||||
docker:
|
|
||||||
- image: fuzzitdev/golang:1.12.7-buster
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
executor: golang
|
executor: golang
|
||||||
|
@ -95,22 +91,6 @@ jobs:
|
||||||
command: git diff --exit-code
|
command: git diff --exit-code
|
||||||
working_directory: ~/project/documentation/prometheus-mixin
|
working_directory: ~/project/documentation/prometheus-mixin
|
||||||
|
|
||||||
fuzzit_regression:
|
|
||||||
executor: fuzzit
|
|
||||||
working_directory: /go/src/github.com/prometheus/prometheus
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- setup_remote_docker
|
|
||||||
- run: ./fuzzit.sh local-regression
|
|
||||||
|
|
||||||
fuzzit_fuzzing:
|
|
||||||
executor: fuzzit
|
|
||||||
working_directory: /go/src/github.com/prometheus/prometheus
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- setup_remote_docker
|
|
||||||
- run: ./fuzzit.sh fuzzing
|
|
||||||
|
|
||||||
repo_sync:
|
repo_sync:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
|
@ -133,10 +113,6 @@ workflows:
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /.*/
|
only: /.*/
|
||||||
- fuzzit_regression:
|
|
||||||
filters:
|
|
||||||
tags:
|
|
||||||
only: /.*/
|
|
||||||
- prometheus/build:
|
- prometheus/build:
|
||||||
name: build
|
name: build
|
||||||
filters:
|
filters:
|
||||||
|
@ -173,5 +149,3 @@ workflows:
|
||||||
jobs:
|
jobs:
|
||||||
- repo_sync:
|
- repo_sync:
|
||||||
context: org-context
|
context: org-context
|
||||||
- fuzzit_fuzzing:
|
|
||||||
context: org-context
|
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
[][hub]
|
[][hub]
|
||||||
[](https://goreportcard.com/report/github.com/prometheus/prometheus)
|
[](https://goreportcard.com/report/github.com/prometheus/prometheus)
|
||||||
[](https://bestpractices.coreinfrastructure.org/projects/486)
|
[](https://bestpractices.coreinfrastructure.org/projects/486)
|
||||||
[](https://fuzzit.dev)
|
|
||||||
[](https://gitpod.io/#https://github.com/prometheus/prometheus)
|
[](https://gitpod.io/#https://github.com/prometheus/prometheus)
|
||||||
|
|
||||||
Visit [prometheus.io](https://prometheus.io) for the full documentation,
|
Visit [prometheus.io](https://prometheus.io) for the full documentation,
|
||||||
|
|
30
fuzzit.sh
30
fuzzit.sh
|
@ -1,30 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -xe
|
|
||||||
|
|
||||||
# Go-fuzz doesn't support modules yet, so ensure we do everything in the old style GOPATH way
|
|
||||||
export GO111MODULE="off"
|
|
||||||
|
|
||||||
# Install go-fuzz
|
|
||||||
go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
|
|
||||||
|
|
||||||
# Target names on fuzzit.dev
|
|
||||||
TARGETS=("promql-parse-metric" "promql-parse-open-metric" "promql-parse-metric-selector" "promql-parse-expr")
|
|
||||||
|
|
||||||
# Prometheus fuzz functions
|
|
||||||
FUZZ_FUNCTIONS=("FuzzParseMetric" "FuzzParseOpenMetric" "FuzzParseMetricSelector" "FuzzParseExpr")
|
|
||||||
|
|
||||||
# Compiling prometheus fuzz targets in fuzz.go with go-fuzz (https://github.com/dvyukov/go-fuzz) and libFuzzer support
|
|
||||||
for ((i=0;i<${#TARGETS[@]};++i));
|
|
||||||
do
|
|
||||||
go-fuzz-build -libfuzzer -func ${FUZZ_FUNCTIONS[i]} -o ${TARGETS[i]}.a ./promql
|
|
||||||
clang-9 -fsanitize=fuzzer ${TARGETS[i]}.a -o ${TARGETS[i]}
|
|
||||||
done
|
|
||||||
|
|
||||||
# Install fuzzit CLI
|
|
||||||
wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.45/fuzzit_Linux_x86_64
|
|
||||||
chmod a+x fuzzit
|
|
||||||
|
|
||||||
for TARGET in "${TARGETS[@]}"
|
|
||||||
do
|
|
||||||
./fuzzit create job --type $1 prometheus/${TARGET} ${TARGET}
|
|
||||||
done
|
|
Loading…
Reference in a new issue