Skip to content

Commit

Permalink
fix: refresh benchmark history
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed May 16, 2024
1 parent a5f1a3b commit 0322bf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/logs/download_base_benchmark_from_s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0322bf0

Please sign in to comment.