From 20f8cb10ebebaa1e8062b2b8289d4459f4f8de39 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Wed, 17 May 2023 02:48:15 +0200 Subject: [PATCH] Revert "Automatically add the comment about executions when a new PR triggers (#1270)" (#1271) This reverts commit d2e4b9f206307db0898caac707c0d2687079bfb1. --- .github/workflows/build_and_test.yml | 25 ++----------------------- scripts/executions-check.sh | 15 ++++----------- 2 files changed, 6 insertions(+), 34 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 144455d26a..bcc9e58084 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -230,8 +230,6 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} - outputs: - output_new_executions: ${steps.} steps: - uses: actions-rs/toolchain@v1 with: @@ -249,28 +247,9 @@ jobs: - name: Build and run libfuzzer_libpng (Linux) if: runner.os == 'Linux' run: ./scripts/executions-check.sh - - name: Build and run libfuzzer_libpng (macOS) + - name: Build and run libfuzzer_libpng (macOS) if: runner.os == 'macOS' - run: /usr/local/bin/bash -c './scripts/executions-check.sh' - - name: Post the execution count in a new PR (linux) - if: runner.os == 'Linux' - uses: wow-actions/auto-comment@v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - pullRequestOpened: | - On the Linux platform: - the execution count of the new fuzzer is ${{env.linux_new_executions}} - the execution count of the last fuzzer is ${{env.linux_last_executions}} - - name: Post the execution count in a new PR (macOS) - if: runner.os == 'macOS' - uses: wow-actions/auto-comment@v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - pullRequestOpened: | - On the MacOS platform: - the execution count of the new fuzzer is ${{env.macos_new_executions}} - the execution count of the last fuzzer is ${{env.macos_last_executions}} - + run: /usr/local/bin/bash -c './scripts/executions-check.sh' nostd-build: runs-on: ubuntu-latest diff --git a/scripts/executions-check.sh b/scripts/executions-check.sh index 76f2b421f0..2d3df11ee8 100755 --- a/scripts/executions-check.sh +++ b/scripts/executions-check.sh @@ -40,24 +40,17 @@ main(){ install_libpng build_libpng - #start to run the new fuzzer + echo "start to run the new fuzzer" new_executions=$(build_run_fuzzer) git_checkout build_libpng - #start to run the last fuzzer + echo "start to run the last fuzzer" last_executions=$(build_run_fuzzer) - prefix="" - if [ "$(uname)" == "Darwin" ]; then - prefix="macos" - else - prefix="linux" - fi - - echo "${prefix}_new_executions=$new_executions" >> "$GITHUB_ENV" - echo "${prefix}_last_executions=$last_executions" >> "$GITHUB_ENV" + echo "the execution count of the new fuzzer is $new_executions" + echo "the execution count of the last fuzzer is $last_executions" } main