diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index b8d210de4..91f65f06b 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -44,9 +44,9 @@ jobs: steps: - name: Setup namespace name id: setup - run: echo "::set-output name=namespace::benchmark-$(date +"%Y-%m-%d-%s")" + run: echo "namespace=benchmark-$(date +"%Y-%m-%d-%s")" >> $GITHUB_OUTPUT - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true @@ -115,18 +115,27 @@ jobs: - name: Server checks run: | nohup kubectl port-forward -n ${{ steps.setup.outputs.namespace }} service/dragonfly-sample 6379:6379 & + pip install -r tools/requirements.txt python3 tools/benchmark/post_run_checks.py - name: Get Dragonfly logs + uses: nick-fields/retry@v3 if: always() - run: | - kubectl logs -n ${{ steps.setup.outputs.namespace }} dragonfly-sample-0 + with: + timeout_minutes: 1 + max_attempts: 3 + command: | + kubectl logs -n ${{ steps.setup.outputs.namespace }} dragonfly-sample-0 - name: Get Dragonfly replica logs + uses: nick-fields/retry@v3 if: always() - run: | - kubectl logs -n ${{ steps.setup.outputs.namespace }} dragonfly-sample-1 + with: + timeout_minutes: 1 + max_attempts: 3 + command: | + kubectl logs -n ${{ steps.setup.outputs.namespace }} dragonfly-sample-1 - name: Scale down to zero if: always()