From 0322bf030c554c3cde5bee5158feeadbea5ac4cc Mon Sep 17 00:00:00 2001 From: Alex Gherghisan Date: Thu, 16 May 2024 14:39:15 +0000 Subject: [PATCH] fix: refresh benchmark history --- scripts/logs/download_base_benchmark_from_s3.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/logs/download_base_benchmark_from_s3.sh b/scripts/logs/download_base_benchmark_from_s3.sh index dfe5d631ab47..6da6eb2a6bb5 100755 --- a/scripts/logs/download_base_benchmark_from_s3.sh +++ b/scripts/logs/download_base_benchmark_from_s3.sh @@ -12,6 +12,8 @@ BASE_BENCHMARK_FILE_JSON="${BENCH_FOLDER}/base-benchmark.json" # If on a pull request, get the data from the most recent commit on master where it's available to generate a comment comparing them if [ -n "${PULL_REQUEST:-}" ]; then MASTER_COMMIT_HASH=$(curl -s "https://api.github.com/repos/AztecProtocol/aztec-packages/pulls/${PULL_REQUEST##*/}" | jq -r '.base.sha') + # master could have diverged since starting this job, refresh history + git fetch --depth 50 origin master MASTER_COMMIT_HASHES=($(git log $MASTER_COMMIT_HASH --format="%H" -n 50)) mkdir -p $BENCH_FOLDER