From a26583de39f0aa1850303d292c706fc78c75ec21 Mon Sep 17 00:00:00 2001 From: mpherman2 Date: Tue, 2 Nov 2021 14:47:21 -0700 Subject: [PATCH 1/3] Add Coverage Report and corpus pruning jobs to test-infra fuzz --- .../test-infra/test-infra-periodics.yaml | 94 ++++++++++++++++++- 1 file changed, 93 insertions(+), 1 deletion(-) diff --git a/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml b/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml index a1394a60c434..4d164d620bab 100644 --- a/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml +++ b/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml @@ -64,7 +64,7 @@ periodics: spec: serviceAccountName: fuzz-test containers: - - image: gcr.io/k8s-testimages/ci_fuzz:v20211028-ca780f7 + - image: gcr.io/k8s-testimages/ci_fuzz:v20211102-77ba931 command: - runner.sh args: @@ -74,6 +74,8 @@ periodics: securityContext: privileged: true env: + - name: MODE + value: batch - name: REPOSITORY value: test-infra - name: PROJECT_SRC_PATH @@ -88,7 +90,97 @@ periodics: value: gsutil - name: CLOUD_BUCKET value: gs://prow-cifuzz-test/ + - name: CFL_PLATFORM + value: prow annotations: testgrid-dashboards: sig-testing-misc testgrid-tab-name: test-infra-fuzz description: Runs clusterfuzzlite every hour + +- name: cfl_coverage_report + labels: + preset-dind-enabled: "true" + decorate: true + extra_refs: + - org: kubernetes + repo: test-infra + base_ref: master + interval: 12h + spec: + serviceAccountName: fuzz-test + containers: + - image: gcr.io/k8s-testimages/ci_fuzz:v20211102-77ba931 + command: + - runner.sh + args: + - python3 + - "/opt/oss-fuzz/infra/cifuzz/cifuzz_combined_entrypoint.py" + # docker-in-docker needs privileged mode + securityContext: + privileged: true + env: + - name: MODE + value: coverage + - name: REPOSITORY + value: test-infra + - name: PROJECT_SRC_PATH + value: . + - name: SANITIZER + value: 'coverage' + - name: WORKSPACE + value: /logs/artifacts + - name: DOCKER_IN_DOCKER + value: "true" + - name: FILESTORE + value: gsutil + - name: CLOUD_BUCKET + value: gs://prow-cifuzz-test/ + - name: CFL_PLATFORM + value: prow + annotations: + testgrid-dashboards: sig-testing-misc + testgrid-tab-name: cfl_coverage_report + description: Runs clusterfuzzlite coverage report every day + +- name: cfl_prune + labels: + preset-dind-enabled: "true" + decorate: true + extra_refs: + - org: kubernetes + repo: test-infra + base_ref: master + interval: 12h + spec: + serviceAccountName: fuzz-test + containers: + - image: gcr.io/k8s-testimages/ci_fuzz:v20211102-77ba931 + command: + - runner.sh + args: + - python3 + - "/opt/oss-fuzz/infra/cifuzz/cifuzz_combined_entrypoint.py" + # docker-in-docker needs privileged mode + securityContext: + privileged: true + env: + - name: MODE + value: prune + - name: REPOSITORY + value: test-infra + - name: PROJECT_SRC_PATH + value: . + - name: WORKSPACE + value: /logs/artifacts + - name: DOCKER_IN_DOCKER + value: "true" + - name: FILESTORE + value: gsutil + - name: CLOUD_BUCKET + value: gs://prow-cifuzz-test/ + - name: CFL_PLATFORM + value: prow + annotations: + testgrid-dashboards: sig-testing-misc + testgrid-tab-name: cfl_coverage_report + description: Runs clusterfuzzlite corpora prune every day From a4c9c072db2fa7462db82cba0428cb69e02f1a2d Mon Sep 17 00:00:00 2001 From: mpherman2 Date: Tue, 2 Nov 2021 15:02:11 -0700 Subject: [PATCH 2/3] Fix testgrid dashboard names --- .../jobs/kubernetes/test-infra/test-infra-periodics.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml b/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml index 4d164d620bab..dd87309e82e4 100644 --- a/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml +++ b/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml @@ -97,7 +97,7 @@ periodics: testgrid-tab-name: test-infra-fuzz description: Runs clusterfuzzlite every hour -- name: cfl_coverage_report +- name: cfl-coverage-report labels: preset-dind-enabled: "true" decorate: true @@ -139,10 +139,10 @@ periodics: value: prow annotations: testgrid-dashboards: sig-testing-misc - testgrid-tab-name: cfl_coverage_report + testgrid-tab-name: cfl-coverage-report description: Runs clusterfuzzlite coverage report every day -- name: cfl_prune +- name: cfl-prune labels: preset-dind-enabled: "true" decorate: true @@ -182,5 +182,5 @@ periodics: value: prow annotations: testgrid-dashboards: sig-testing-misc - testgrid-tab-name: cfl_coverage_report + testgrid-tab-name: cfl-prune description: Runs clusterfuzzlite corpora prune every day From 8fa9900a0e4ae65ccbd02f4e8d0fa845d5d4eb61 Mon Sep 17 00:00:00 2001 From: mpherman2 Date: Tue, 2 Nov 2021 15:51:21 -0700 Subject: [PATCH 3/3] Change name of jobs --- .../jobs/kubernetes/test-infra/test-infra-periodics.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml b/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml index dd87309e82e4..d0e474b382c3 100644 --- a/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml +++ b/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml @@ -97,7 +97,7 @@ periodics: testgrid-tab-name: test-infra-fuzz description: Runs clusterfuzzlite every hour -- name: cfl-coverage-report +- name: test-infra-cfl-coverage-report labels: preset-dind-enabled: "true" decorate: true @@ -139,10 +139,10 @@ periodics: value: prow annotations: testgrid-dashboards: sig-testing-misc - testgrid-tab-name: cfl-coverage-report + testgrid-tab-name: test-infra-cfl-coverage-report description: Runs clusterfuzzlite coverage report every day -- name: cfl-prune +- name: test-infra-cfl-prune labels: preset-dind-enabled: "true" decorate: true @@ -182,5 +182,5 @@ periodics: value: prow annotations: testgrid-dashboards: sig-testing-misc - testgrid-tab-name: cfl-prune + testgrid-tab-name: test-infra-cfl-prune description: Runs clusterfuzzlite corpora prune every day