Skip to content

Commit

Permalink
ci(dql): add workflow for fuzz testing (#8874)
Browse files Browse the repository at this point in the history
Description: updates the fuzz testing to use the go fuzz framework
Closes: DGRAPHCORE-107
  • Loading branch information
mangalaman93 authored Jun 15, 2023
1 parent 4543aab commit fe90b32
Show file tree
Hide file tree
Showing 213 changed files with 133 additions and 1,870 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci-dgraph-fuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci-dgraph-fuzz
on:
push:
branches:
- main
- 'release/**'
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
- 'release/**'
schedule:
- cron: "0 */8 * * *" # every 8hrs
jobs:
fuzz-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Get Go Version
run: |
#!/bin/bash
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GOVERSION }}
- name: Run fuzz tests
run: |
#!/bin/bash
# go env settings
export GOPATH=~/go
go test ./dql -fuzz="Fuzz" -fuzztime="300s" -fuzzminimizetime="120s"
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
/dgraph-bulk-loader
/osx-docker-gopath

# fuzzing output
dql/dql-fuzz.zip
dql/fuzz-data/crashers
dql/fuzz-data/suppressions

# goland project folder
.idea
dgraph.iml
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions dql/fuzz-data/corpus/3d40bd6c0f24308dc0883d3ff50b556c97e0af82

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions dql/fuzz-data/corpus/95c6c7b3b84fcb805642d68fd5b80a824e2c11d8

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions dql/fuzz-data/corpus/e3442b591fb989e018ffdd34bd994e3fccde19f0

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions dql/fuzz-data/corpus/test001.in

This file was deleted.

10 changes: 0 additions & 10 deletions dql/fuzz-data/corpus/test002.in

This file was deleted.

8 changes: 0 additions & 8 deletions dql/fuzz-data/corpus/test003.in

This file was deleted.

6 changes: 0 additions & 6 deletions dql/fuzz-data/corpus/test004.in

This file was deleted.

6 changes: 0 additions & 6 deletions dql/fuzz-data/corpus/test005.in

This file was deleted.

16 changes: 0 additions & 16 deletions dql/fuzz-data/corpus/test006.in

This file was deleted.

19 changes: 0 additions & 19 deletions dql/fuzz-data/corpus/test007.in

This file was deleted.

12 changes: 0 additions & 12 deletions dql/fuzz-data/corpus/test008.in

This file was deleted.

8 changes: 0 additions & 8 deletions dql/fuzz-data/corpus/test009.in

This file was deleted.

16 changes: 0 additions & 16 deletions dql/fuzz-data/corpus/test010.in

This file was deleted.

13 changes: 0 additions & 13 deletions dql/fuzz-data/corpus/test011.in

This file was deleted.

13 changes: 0 additions & 13 deletions dql/fuzz-data/corpus/test012.in

This file was deleted.

15 changes: 0 additions & 15 deletions dql/fuzz-data/corpus/test013.in

This file was deleted.

15 changes: 0 additions & 15 deletions dql/fuzz-data/corpus/test014.in

This file was deleted.

17 changes: 0 additions & 17 deletions dql/fuzz-data/corpus/test015.in

This file was deleted.

15 changes: 0 additions & 15 deletions dql/fuzz-data/corpus/test016.in

This file was deleted.

17 changes: 0 additions & 17 deletions dql/fuzz-data/corpus/test017.in

This file was deleted.

15 changes: 0 additions & 15 deletions dql/fuzz-data/corpus/test018.in

This file was deleted.

Loading

0 comments on commit fe90b32

Please sign in to comment.