Skip to content

Commit 00a1595

Browse files
authored
fix(params): ensure benchmarking server has groth params and keys before running benchmarks (#953)
* fix(params): ensure benchmarking server has groth params and keys * ci(params): ensure benchmarking server has params
1 parent d665961 commit 00a1595

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

.circleci/config.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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: |
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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"

0 commit comments

Comments
 (0)