File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed
fil-proofs-tooling/scripts Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -175,15 +175,14 @@ jobs:
175175 - checkout
176176 - attach_workspace :
177177 at : " ."
178- - restore_cache :
179- keys :
180- - cargo-v13-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
181- - restore_cache :
182- keys :
183- - parameter-cache-{{ .Revision }}
184178 - run :
185179 name : Install jq
186180 command : apt-get install time jq -yqq
181+ - run :
182+ name : Ensure existence of Groth parameters and keys on remote host
183+ command : |
184+ ./fil-proofs-tooling/scripts/paramcache-remote.sh "${CIRCLE_BRANCH}" "${BENCHMARK_SERVER_SSH_USERNAME}@${BENCHMARK_SERVER_IP_ADDR}" "-z=$((1024*1024*1024))"
185+ no_output_timeout : 60m
187186 - run :
188187 name : Run hash-constraints benchmarks on remote host
189188 command : |
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+
5+ CMDS=$( cat << EOF
6+ cd \$ (mktemp -d)
7+ git clone https://github.com/filecoin-project/rust-fil-proofs.git
8+ cd rust-fil-proofs
9+ git checkout -q $1
10+ export RUST_LOG=info
11+ ./fil-proofs-tooling/scripts/retry.sh 42 10 60000 \
12+ ./fil-proofs-tooling/scripts/with-lock.sh 42 /tmp/benchmark \
13+ ./fil-proofs-tooling/scripts/with-dots.sh \
14+ cargo run --release --package filecoin-proofs --bin=paramcache -- ${@: 3}
15+ EOF
16+ )
17+
18+ ssh -q $2 " $CMDS "
You can’t perform that action at this time.
0 commit comments