Restore the ability to run tests/simulation/start.sh manually
This commit is contained in:
parent
1bcd045a2f
commit
43b70c0330
|
@ -1,9 +1,9 @@
|
|||
import
|
||||
# Standard library
|
||||
net, sequtils, tables, osproc, random, strutils, times, strformat,
|
||||
os, net, sequtils, tables, osproc, random, strutils, times, strformat,
|
||||
|
||||
# Nimble packages
|
||||
stew/shims/os, stew/[objects, bitseqs],
|
||||
stew/[objects, bitseqs],
|
||||
chronos, chronicles, confutils, metrics,
|
||||
json_serialization/std/[options, sets], serialization/errors,
|
||||
eth/trie/db, eth/trie/backends/rocksdb_backend, eth/async_utils,
|
||||
|
|
|
@ -40,6 +40,6 @@ $BEACON_NODE_BIN \
|
|||
--depositContractAddress=$DEPOSIT_CONTRACT_ADDRESS \
|
||||
--metricsServer=true \
|
||||
--metricsServerAddress="127.0.0.1" \
|
||||
--metricsServerPort="$(( $BASE_METRICS_PORT + $NODE_ID ))"
|
||||
--metricsServerPort="$(( $BASE_METRICS_PORT + $NODE_ID ))" \
|
||||
"$@"
|
||||
|
||||
|
|
|
@ -86,6 +86,12 @@ scrape_configs:
|
|||
static_configs:
|
||||
EOF
|
||||
|
||||
PROCESS_DASHBOARD_BIN="${SIM_ROOT}/../../build/process_dashboard"
|
||||
|
||||
if [ ! -f "$PROCESS_DASHBOARD_BIN" ]; then
|
||||
nim c -d:release --outdir:build tests/simulation/process_dashboard.nim
|
||||
fi
|
||||
|
||||
# use the exported Grafana dashboard for a single node to create one for all nodes
|
||||
"${SIM_ROOT}/../../build/process_dashboard" \
|
||||
--nodes=${NUM_NODES} \
|
||||
|
|
Loading…
Reference in New Issue