Skip to content

Commit ed63cd4

Browse files
committed
chore: add slack notification if fuzzing fails
1 parent a905503 commit ed63cd4

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/fuzzing.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,17 @@ jobs:
6262
run: |
6363
mkdir -p ~/fuzzing-corpus/ArgumentsMutatorFuzzTest
6464
bazelisk run ${{env.BUILD_BUDDY_CONFIG}} --java_runtime_version=remotejdk_${{ matrix.jdk }} ${{ matrix.bazel_args }} ${{ matrix.extra_bazel_args }} //selffuzz/src/test/java/com/code_intelligence/selffuzz/mutation:ArgumentsMutatorFuzzTest --jvmopt=-Xmx8000m -- -runs=1000000 ~/fuzzing-corpus/ArgumentsMutatorFuzzTest
65+
66+
# Notification job that runs after all matrix jobs complete
67+
notification:
68+
needs: build_and_test
69+
runs-on: ubuntu-24.04
70+
if: failure() # Run regardless of build_and_test outcome
71+
steps:
72+
- name: Slack notification on failure
73+
run: |
74+
curl -X POST -H 'Content-type: application/json' \
75+
--data '{
76+
"workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
77+
}' \
78+
${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)