]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
no need to dump out the entire fuzzing to the main actions log
authorAlan T. DeKok <aland@freeradius.org>
Fri, 15 Oct 2021 11:52:56 +0000 (07:52 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 15 Oct 2021 12:02:19 +0000 (08:02 -0400)
.github/workflows/ci-scheduled-fuzzing.yml

index 9a589ad9c8d4b7d5628cec48253a8bc3637eba39..e80b673408df1cd124ab98afa63c95e529efad80 100644 (file)
@@ -154,8 +154,12 @@ jobs:
         REMAINING_TIME=$(( $TOTAL_RUNTIME + `cat ~/start_timestamp` - `date +%s` ))
         echo "Fuzzing ${{ steps.pick_commit.outputs.commit_id }}:$PROTOCOL for $REMAINING_TIME secs"
         [[ "$REMAINING_TIME" -lt 1 ]] && exit 1
-        timeout "$REMAINING_TIME" make test.fuzzer.$PROTOCOL FUZZER_TIMEOUT=300 FUZZER_ARGUMENTS="-jobs=10000 -workers=`nproc`" || :
-        cp fuzz-*.log build/fuzzer
+       echo "Fuzzing $(PROTOCOL) for 300s"
+       mkdir -p build/fuzzer
+        timeout "$REMAINING_TIME" make test.fuzzer.$PROTOCOL FUZZER_TIMEOUT=300 FUZZER_ARGUMENTS="-jobs=10000 -workers=`nproc`" > build/fuzzer/$(PROTOCOL).log || :
+       tail -30 build/fuzzer/$(PROTOCOL).log
+       echo "FAILED fuzzing $(PROTOCOL)"
+       cp fuzz-*.log build/fuzzer
         find build/fuzzer -type f ! -name 'fuzz-*.log' | grep . && exit 1 || :
       env:
         GITHUB_REF: "${{ github.ref }}"