Skip to content

Commit 0afc97f

Browse files
authored
Increase fetch-depth buffer in manual-benchmark.yml (#7363)
1 parent 1670adb commit 0afc97f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/manual-benchmark.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ jobs:
2929
- name: Checkout
3030
uses: actions/[email protected]
3131
with:
32-
# We need at least one commit before master to compare against
33-
fetch-depth: 5
32+
# It's possible that new commits get merged into master since the PR
33+
# was opened. We need a safe buffer to make sure that our use of merge-head
34+
# leter always finds the true parent of the first PR commit.
35+
fetch-depth: 100
3436

3537
- name: React With Rocket
3638
uses: actions/[email protected]

scripts/ci-plutus-benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ echo "[ci-plutus-benchmark]: Running benchmark for PR branch at $PR_BRANCH_REF .
6060
2>&1 cabal bench "$BENCHMARK_NAME" | tee bench-PR.log
6161

6262
echo "[ci-plutus-benchmark]: Switching branches ..."
63+
# merge-base finds the fork point, which is the true parent of the first PR commit.
6364
git checkout "$(git merge-base HEAD origin/master)"
6465
BASE_BRANCH_REF=$(git rev-parse --short HEAD)
6566

0 commit comments

Comments
 (0)