chore(fuzzing): Meet required check expectation

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
This commit is contained in:
Julien Pivotto 2026-01-13 10:02:58 +01:00
parent de0a864b5c
commit 802e959ec2

View File

@ -1,4 +1,4 @@
name: Fuzzing
name: fuzzing
on:
workflow_call:
permissions:
@ -30,3 +30,18 @@ jobs:
with:
name: fuzz-artifacts-${{ matrix.fuzz_test }}
path: promql/testdata/fuzz/${{ matrix.fuzz_test }}
fuzzing_status:
# This status check aggregates the individual matrix jobs of the fuzzing
# step into a final status. Fails if a single matrix job fails, succeeds if
# all matrix jobs succeed.
name: Fuzzing
runs-on: ubuntu-latest
needs: [fuzzing]
if: always()
steps:
- name: Successful fuzzing
if: ${{ !(contains(needs.*.result, 'failure')) && !(contains(needs.*.result, 'cancelled')) }}
run: exit 0
- name: Failing or cancelled fuzzing
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1