diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 1693c5bc5..307ef0b97 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -60,9 +60,13 @@ jobs: run: nohup make runBenchmark & nohup make runZenDisabled & - name: Install K6 uses: grafana/setup-k6-action@ffe7d7290dfa715e48c2ccc924d068444c94bde2 # v1 - - name: Run flask-mysql k6 Benchmark - run: | - k6 run -q ./benchmarks/flask-mysql-benchmarks.js + - name: Run flask-mysql k6 Benchmark (max 3 attempts) + uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0 + with: + timeout_minutes: 20 + max_attempts: 3 + command: | + k6 run -q ./benchmarks/flask-mysql-benchmarks.js wrk_benchmarks: runs-on: ubuntu-latest @@ -93,6 +97,10 @@ jobs: run: | sudo apt-get update sudo apt-get install -y wrk - - name: Run benchmarks - working-directory: ./benchmarks/wrk_benchmark - run: make benchmark_${{ matrix.app }} + - name: Run benchmarks (max 3 attempts) + uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0 + with: + timeout_minutes: 20 + max_attempts: 3 + command: | + cd ./benchmarks/wrk_benchmark && make benchmark_${{ matrix.app }}