From 00a1595784deb9af961539a9209e7b43d7aee1f1 Mon Sep 17 00:00:00 2001 From: Erin Swenson-Healey Date: Wed, 20 Nov 2019 09:47:08 -0800 Subject: [PATCH] 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 --- .circleci/config.yml | 11 +++++------ .../scripts/paramcache-remote.sh | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100755 fil-proofs-tooling/scripts/paramcache-remote.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 61c87a3ba..339483948 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -175,15 +175,14 @@ jobs: - checkout - attach_workspace: at: "." - - restore_cache: - keys: - - cargo-v13-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }} - - restore_cache: - keys: - - parameter-cache-{{ .Revision }} - run: name: Install jq command: apt-get install time jq -yqq + - run: + name: Ensure existence of Groth parameters and keys on remote host + command: | + ./fil-proofs-tooling/scripts/paramcache-remote.sh "${CIRCLE_BRANCH}" "${BENCHMARK_SERVER_SSH_USERNAME}@${BENCHMARK_SERVER_IP_ADDR}" "-z=$((1024*1024*1024))" + no_output_timeout: 60m - run: name: Run hash-constraints benchmarks on remote host command: | diff --git a/fil-proofs-tooling/scripts/paramcache-remote.sh b/fil-proofs-tooling/scripts/paramcache-remote.sh new file mode 100755 index 000000000..b1f942e02 --- /dev/null +++ b/fil-proofs-tooling/scripts/paramcache-remote.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -e + +CMDS=$(cat <