From: Matthew Newton Date: Thu, 13 Oct 2022 14:02:19 +0000 (+0100) Subject: CI: move fuzzer tests to separate composite action X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=add5527ae7ddb251ef85f21a906fc1b796a6e5a9;p=thirdparty%2Ffreeradius-server.git CI: move fuzzer tests to separate composite action --- diff --git a/.github/actions/fuzzer/action.yml b/.github/actions/fuzzer/action.yml new file mode 100644 index 00000000000..71c985f8880 --- /dev/null +++ b/.github/actions/fuzzer/action.yml @@ -0,0 +1,26 @@ +name: ci-tests-fuzzer + +runs: + using: composite + + steps: + + # Fuzz in parallel, aiming to keep to overall runtime of this job in line + # with other jobs in the CI workflow + - name: Run fuzzer tests + if: ${{ matrix.env.TEST_TYPE == 'fuzzing' }} + shell: bash + run: | + # For fuzzing we won't be needing eapol_test + mkdir -p build/tests/eapol_test + : > build/tests/eapol_test/eapol_test.mk + make -j `nproc` test.fuzzer FUZZER_TIMEOUT=720 + find build/fuzzer -type f ! -path 'build/fuzzer/*.log' | grep . && exit 1 || : + + - name: "Clang libFuzzer: Store assets on failure" + uses: actions/upload-artifact@v2 + with: + name: clang-fuzzer + path: build/fuzzer + retention-days: 30 + if: ${{ matrix.env.TEST_TYPE == 'fuzzing' && failure() }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6469a36864d..05d0dae38db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -177,24 +177,8 @@ jobs: rest_test_port: 8080 rest_test_ssl_port: 8443 - # Fuzz in parallel, aiming to keep to overall runtime of this job in line - # with other jobs in the CI workflow - - name: Run fuzzer tests - if: ${{ matrix.env.TEST_TYPE == 'fuzzing' }} - run: | - # For fuzzing we won't be needing eapol_test - mkdir -p build/tests/eapol_test - : > build/tests/eapol_test/eapol_test.mk - make -j `nproc` test.fuzzer FUZZER_TIMEOUT=720 - find build/fuzzer -type f ! -path 'build/fuzzer/*.log' | grep . && exit 1 || : - - - name: "Clang libFuzzer: Store assets on failure" - uses: actions/upload-artifact@v2 - with: - name: clang-fuzzer - path: build/fuzzer - retention-days: 30 - if: ${{ matrix.env.TEST_TYPE == 'fuzzing' && failure() }} + - name: Run fuzzer + uses: ./.github/actions/fuzzer # # If the CI has failed and the branch is ci-debug then we start a tmate