Skip to content

Commit c41bc40

Browse files
Merge pull request #4885 from justinsb/cleanup_fuzz_tests
tests: move fuzz tests to standard dev/ci/presubmits
2 parents 4b36c33 + 9f038a2 commit c41bc40

File tree

3 files changed

+21
-49
lines changed

3 files changed

+21
-49
lines changed

.github/workflows/ci-presubmit.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,26 @@ on:
3434

3535
jobs:
3636

37+
fuzz-roundtrippers:
38+
runs-on: ubuntu-latest
39+
timeout-minutes: 60
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: actions/setup-go@v5
43+
with:
44+
go-version-file: 'go.mod'
45+
- name: "Run dev/ci/presubmits/fuzz-roundtrippers"
46+
run: |
47+
./dev/ci/presubmits/fuzz-roundtrippers
48+
env:
49+
ARTIFACTS: /tmp/artifacts
50+
- name: "Upload artifacts"
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: artifacts-fuzz-roundtrippers
54+
path: /tmp/artifacts/
55+
56+
3757
test-mockgcp:
3858
runs-on: ubuntu-latest
3959
timeout-minutes: 60

.github/workflows/fuzz.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ cd ${REPO_ROOT}
2222

2323
go test -v ./pkg/fuzztesting/fuzztests/ -fuzz=FuzzAllMappers -fuzztime 600s # fuzz for 10 minutes because we are fuzzing all the registered mappers
2424

25+
# Please do not add more fuzzers here; register them so they are run with FuzzAllMappers (or a similar approach)
2526
go test -v ./pkg/controller/direct/apigee/ -fuzz=FuzzApigeeEndpointAttachmentSpec -fuzztime 60s
2627
go test -v ./pkg/controller/direct/apigee/ -fuzz=FuzzApigeeEndpointAttachmentObservedState -fuzztime 60s
2728
go test -v ./pkg/controller/direct/apigee/ -fuzz=FuzzApigeeEnvgroupSpec -fuzztime 60s

0 commit comments

Comments
 (0)