From 36a5c88a947ffb0b7b5b5e903165ed4524cc8cb3 Mon Sep 17 00:00:00 2001 From: "Jiaxiao (mossaka) Zhou" Date: Wed, 29 Jan 2025 20:18:36 +0000 Subject: [PATCH] fix(ci): fix http latency benchmark on PR The HTTP latency benchmark on PR is not working as expected. It gives a warning saying ./cache/latency_results.json is not found. This commit adds a step to download the cache file from previous run as an attempt to fix the issue. Signed-off-by: Jiaxiao (mossaka) Zhou --- .github/actions/run-hey-load-test/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/actions/run-hey-load-test/action.yml b/.github/actions/run-hey-load-test/action.yml index a36085be3..78713ffb6 100644 --- a/.github/actions/run-hey-load-test/action.yml +++ b/.github/actions/run-hey-load-test/action.yml @@ -55,6 +55,12 @@ runs: # # The workaround is to use the `external-data-json-path` option to tell the action to not # attempt to update the local `gh-pages` branch. + - name: Download previous benchmark data + if : ${{ github.event_name != 'schedule' }} + uses: actions/cache@v4 + with: + path: ./cache + key: ${{ runner.os }}-benchmark - name: Report Latency results if : ${{ github.event_name != 'schedule' }} uses: benchmark-action/github-action-benchmark@v1.20.4