Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
name: Fuzz Tests
run-name: Twice Weekly Fuzzing tests triggered from @${{ github.actor }} of ${{ github.head_ref }}

on:
workflow_dispatch:
schedule:
# Run at 02:36 AM UTC on Mondays and Thursdays
- cron: "36 2 * * 1,4"

permissions:
Expand Down Expand Up @@ -40,12 +42,38 @@ jobs:
include: ${{fromJson(needs.list.outputs.fuzz-tests)}}

steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
- name: Checkout
uses: actions/checkout@v6

- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
- uses: shogo82148/actions-go-fuzz/run@v1

- name: Fuzz
uses: shogo82148/actions-go-fuzz/run@v1
with:
packages: ${{ matrix.package }}
fuzz-regexp: ${{ matrix.func }}
fuzz-time: "1m"

notify-on-failure:
name: Notify Slack on failure
needs: [fuzz]
runs-on: ubuntu-4
if: ${{ failure() }}
env:
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
steps:
- name: Send Slack notification
uses: slackapi/slack-github-action@v2.1.1
with:
errors: true
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
{
"channel": "${{ secrets.SLACK_CHANNEL_ID }}",
"text": "⚠️ Fuzzing job failed! ${{ env.RUN_URL }}"
}

5 changes: 1 addition & 4 deletions arbstate/inbox_fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ func FuzzInboxMultiplexer(f *testing.F) {
daprovider.KeysetValidate,
chaininfo.ArbitrumDevTestChainConfig(),
)
_, err := multiplexer.Pop(context.TODO())
if err != nil {
panic(err)
}
_, _ = multiplexer.Pop(context.TODO())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we ignoring the error? any in-line documentation here would be helpful regarding the fuzzing logic

})
}
2 changes: 2 additions & 0 deletions changelog/jco-fix-fuzz-workflow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Ignored
- Fix fuzz CI workflow YAML syntax errors and fix FuzzInboxMultiplexer panicking on expected errors.
Loading