Skip to content
Permalink
Browse files

Add nightly ci job for the chain-sync benchmark

  • Loading branch information
jbgi committed Jan 14, 2020
1 parent 6f92a0c commit 715697d163d21d889feaabc4f19abff94ba141ad
Showing with 44 additions and 0 deletions.
  1. +18 −0 .buildkite/nightly.yml
  2. +1 −0 .gitignore
  3. +25 −0 benchmarking/chain-sync/ci.sh
@@ -0,0 +1,18 @@
steps:
- label: 'Chain-sync benchmark Mainnet'
command:
- ./benchmarking/chain-sync/ci.sh mainnet
timeout_in_minutes: 65
artifact_paths:
- "benchmark-results.log"
agents:
system: x86_64-linux

- label: 'Chain-sync benchmark Testnet'
command:
- ./benchmarking/chain-sync/ci.sh testnet
timeout_in_minutes: 65
artifact_paths:
- "benchmark-results.log"
agents:
system: x86_64-linux
@@ -18,6 +18,7 @@ logs/
/launch_*
/state-*
/cluster*.log*
/benchmark*.log*

/benchmarking/chain-sync/state-node-mainnet/

@@ -0,0 +1,25 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p yj

set -euo pipefail

BASEDIR="$(dirname $0)"

# >> cpu time limit in seconds
CPU_TIME_LIMIT=$((1*60*60))

CLUSTER="$1"

LOG_CONFIG="$(yj < $BASEDIR/configuration/log-configuration.yaml)"

CUSTOM_CONFIG="{nodeConfig = builtins.fromJSON ''$LOG_CONFIG'';}"

nix build --out-link ./launch_node -f $BASEDIR/../.. scripts.$CLUSTER.node --arg customConfig "$CUSTOM_CONFIG"

rm -rf "./state-node-$CLUSTER"

ulimit -t $CPU_TIME_LIMIT

./launch_node || true

$BASEDIR/analyse-logs.sh | tee benchmark-results.log

0 comments on commit 715697d

Please sign in to comment.
You can’t perform that action at this time.