From aa19b7113ee4e7cee37124e3e1d5c644e9f47a19 Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Tue, 17 Sep 2024 11:28:01 +0100 Subject: [PATCH 1/5] Fuzz debugging --- .github/workflows/fuzz.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 18eceaf77a..1906284e3c 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -3,7 +3,8 @@ name: Fuzz on: schedule: - cron: '0 0 * * *' # daily - workflow_dispatch: + workflow_dispatch: { } + pull_request: { } jobs: fuzz: From ad457dbf85f1a360c563b97f0799af5573054bf4 Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Tue, 17 Sep 2024 11:30:13 +0100 Subject: [PATCH 2/5] two --- .github/workflows/fuzz.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 1906284e3c..af6ec5722f 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -20,10 +20,12 @@ jobs: shell: bash run: | aws s3 cp s3://vortex-fuzz-corpus/array_ops_corpus.tar.zst . --endpoint-url https://01e9655179bbec953276890b183039bc.r2.cloudflarestorage.com - tar -xf array_ops_corpus.tar.zst env: AWS_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }} + - name: Unpack corpus + shell: bash + run: tar -xf array_ops_corpus.tar.zst - name: Run fuzzing target run: RUST_BACKTRACE=1 cargo fuzz run array_ops -- -max_total_time=1800 continue-on-error: true From c839280c027c411f3355060c3c09939220b1fcbf Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Tue, 17 Sep 2024 11:32:55 +0100 Subject: [PATCH 3/5] debug --- .github/workflows/fuzz.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index af6ec5722f..e23ea24034 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -19,13 +19,11 @@ jobs: - name: Restore corpus shell: bash run: | - aws s3 cp s3://vortex-fuzz-corpus/array_ops_corpus.tar.zst . --endpoint-url https://01e9655179bbec953276890b183039bc.r2.cloudflarestorage.com + aws --debug s3 cp s3://vortex-fuzz-corpus/array_ops_corpus.tar.zst . --endpoint-url https://01e9655179bbec953276890b183039bc.r2.cloudflarestorage.com + tar -xf array_ops_corpus.tar.zst env: AWS_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }} - - name: Unpack corpus - shell: bash - run: tar -xf array_ops_corpus.tar.zst - name: Run fuzzing target run: RUST_BACKTRACE=1 cargo fuzz run array_ops -- -max_total_time=1800 continue-on-error: true From 319883ac4d0dba2b6ed749241665efa5eeb422a9 Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Tue, 17 Sep 2024 11:36:24 +0100 Subject: [PATCH 4/5] region --- .github/workflows/fuzz.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index e23ea24034..b9502a122c 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -24,6 +24,7 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }} + AWS_REGION: 'us-east-1' - name: Run fuzzing target run: RUST_BACKTRACE=1 cargo fuzz run array_ops -- -max_total_time=1800 continue-on-error: true @@ -40,3 +41,4 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }} + AWS_REGION: 'us-east-1' From aec7ae48a27abe660ef0eaf4cfe87e7fdcf1b10c Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Tue, 17 Sep 2024 12:28:47 +0100 Subject: [PATCH 5/5] Add region --- .github/workflows/fuzz.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index b9502a122c..dbda37a279 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -3,8 +3,7 @@ name: Fuzz on: schedule: - cron: '0 0 * * *' # daily - workflow_dispatch: { } - pull_request: { } + workflow_dispatch: jobs: fuzz: @@ -19,7 +18,7 @@ jobs: - name: Restore corpus shell: bash run: | - aws --debug s3 cp s3://vortex-fuzz-corpus/array_ops_corpus.tar.zst . --endpoint-url https://01e9655179bbec953276890b183039bc.r2.cloudflarestorage.com + aws s3 cp s3://vortex-fuzz-corpus/array_ops_corpus.tar.zst . --endpoint-url https://01e9655179bbec953276890b183039bc.r2.cloudflarestorage.com tar -xf array_ops_corpus.tar.zst env: AWS_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }}