Skip to content

Commit

Permalink
ci-plutus-benchmark: use separate nix-shells (IntersectMBO#3460)
Browse files Browse the repository at this point in the history
Run the 'cabal bench' commands in nix-shells to ensure that potentially
different haskell dependencies are being actually used.
  • Loading branch information
gilligan authored Jul 1, 2021
1 parent 4f2a9e3 commit 8c42e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ci-plutus-benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ echo "[ci-plutus-benchmark]: Updating cabal database ..."
cabal update

echo "[ci-plutus-benchmark]: Running benchmark for PR branch ..."
cabal bench plutus-benchmark:validation >bench-PR.log 2>&1
nix-shell --run "cabal bench plutus-benchmark:validation >bench-PR.log 2>&1"

echo "[ci-plutus-benchmark]: Switching branches ..."
git checkout "$(git merge-base HEAD master)"
BASE_BRANCH_REF=$(git show-ref -s HEAD)

echo "[ci-plutus-benchmark]: Running benchmark for base branch ..."
cabal bench plutus-benchmark:validation >bench-base.log 2>&1
nix-shell --run "cabal bench plutus-benchmark:validation >bench-base.log 2>&1"

echo "[ci-plutus-benchmark]: Comparing results ..."
echo -e "Comparing benchmark results of '$BASE_BRANCH_REF' (base) and '$PR_BRANCH_REF' (PR)\n" >bench-compare-result.log
Expand Down

0 comments on commit 8c42e1f

Please sign in to comment.