mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 21:08:32 +00:00
Replace local testnet script with Kurtosis (#5865)
* Kurtosis local testnet.
* Remove unused `lcli` subcommands
* Migrate doppelganger_protection test to kurtosis and further cleanup.
* Fix lint
* Add missing download image step and remove unused `lcli` dependencies.
* doppelganger success case working
* Run tests on hosted runner and improve error handling.
* Start the dp vc only after epoch 1
* Add more logging to test results.
* Fix exit code and speed up docker build.
* Fix incorrect exit codes and split doppelganger tests on CI.
* Missing the escape for double quotes 😫
* Remove unnecessary vc params in kurtosis config.
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# Stop all processes that were started with start_local_testnet.sh
|
||||
|
||||
set -Eeuo pipefail
|
||||
|
||||
source ./vars.env
|
||||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
ENCLAVE_NAME=${1:-local-testnet}
|
||||
LOGS_PATH=$SCRIPT_DIR/logs
|
||||
LOGS_SUBDIR=$LOGS_PATH/$ENCLAVE_NAME
|
||||
|
||||
PID_FILE=$TESTNET_DIR/PIDS.pid
|
||||
./kill_processes.sh $PID_FILE
|
||||
rm -f $PID_FILE
|
||||
# Delete existing logs directory and make sure parent directory exists.
|
||||
rm -rf $LOGS_SUBDIR && mkdir -p $LOGS_PATH
|
||||
kurtosis enclave dump $ENCLAVE_NAME $LOGS_SUBDIR
|
||||
echo "Local testnet logs stored to $LOGS_SUBDIR."
|
||||
|
||||
kurtosis enclave rm -f $ENCLAVE_NAME
|
||||
echo "Local testnet stopped."
|
||||
|
||||
Reference in New Issue
Block a user