From 84991483105867b45f0d50b2114f1ab3a00e1983 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Fri, 17 May 2024 20:07:23 +0530 Subject: [PATCH] store benchmark results as artifacts --- .github/workflows/bench.yml | 15 ++++++++------- wrk/caliban_bench.sh | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) delete mode 100755 wrk/caliban_bench.sh diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 23ac924b..eb3d8f7d 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -25,11 +25,6 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }} -# - name: Set up Git -# run: | -# git config --global user.email "github-actions[bot]@users.noreply.github.com" -# git config --global user.name "github-actions[bot]" - - name: Build devcontainer and run benchmarks uses: devcontainers/ci@v0.3 with: @@ -42,12 +37,18 @@ jobs: - name: Print benchmark results run: cat ./results.md + - name: "Upload Artifact" + uses: actions/upload-artifact@v4 + with: + path: *.txt + retention-days: 120 + - name: Comment benchmark results on PR if: github.event_name == 'pull_request_target' uses: peter-evans/commit-comment@v3 with: - sha : ${{ github.event.pull_request.head.sha }} - body-path: 'results.md' + sha: ${{ github.event.pull_request.head.sha }} + body-path: "results.md" reactions: eyes - name: Commit and push changes (on main branch) diff --git a/wrk/caliban_bench.sh b/wrk/caliban_bench.sh deleted file mode 100755 index 235194b5..00000000 --- a/wrk/caliban_bench.sh +++ /dev/null @@ -1 +0,0 @@ -wrk -d 10 -t 4 -c 100 -s $(pwd)/wrk/wrk.lua http://localhost:8084/graphql