From 126ddca1a63f12225d2fcb3d9506c2858ba20283 Mon Sep 17 00:00:00 2001 From: Zach Ramsay Date: Wed, 23 May 2018 08:01:07 -0400 Subject: [PATCH] remove debora scripts (#1610) --- .gitignore | 2 -- scripts/debora/unsafe_debug_net.sh | 13 ------------- scripts/debora/unsafe_reset_net.sh | 11 ----------- scripts/debora/unsafe_start_group.sh | 10 ---------- scripts/debora/unsafe_stop_group.sh | 9 --------- scripts/debora/unsafe_upgrade_barak.sh | 19 ------------------- scripts/debora/unsafe_upgrade_group.sh | 9 --------- 7 files changed, 73 deletions(-) delete mode 100755 scripts/debora/unsafe_debug_net.sh delete mode 100755 scripts/debora/unsafe_reset_net.sh delete mode 100755 scripts/debora/unsafe_start_group.sh delete mode 100755 scripts/debora/unsafe_stop_group.sh delete mode 100755 scripts/debora/unsafe_upgrade_barak.sh delete mode 100755 scripts/debora/unsafe_upgrade_group.sh diff --git a/.gitignore b/.gitignore index e76fb1fc5..616cbc687 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,6 @@ .DS_Store build/* rpc/test/.tendermint -.debora .tendermint remote_dump .revision @@ -13,7 +12,6 @@ vendor .vagrant test/p2p/data/ test/logs -.glide coverage.txt docs/_build docs/tools diff --git a/scripts/debora/unsafe_debug_net.sh b/scripts/debora/unsafe_debug_net.sh deleted file mode 100755 index b8e9d0b42..000000000 --- a/scripts/debora/unsafe_debug_net.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -euo pipefail -IFS=$'\n\t' - -debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; killall tendermint" -debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint unsafe_reset_priv_validator; rm -rf ~/.tendermint/data" -debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make" -debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; mkdir -p ~/.tendermint/logs" -debora run --bg --label tendermint -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint node 2>&1 | stdinwriter -outpath ~/.tendermint/logs/tendermint.log" -printf "\n\nSleeping for a minute\n" -sleep 60 -debora download tendermint "logs/async$1" -debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; killall tendermint" diff --git a/scripts/debora/unsafe_reset_net.sh b/scripts/debora/unsafe_reset_net.sh deleted file mode 100755 index 3698e5ace..000000000 --- a/scripts/debora/unsafe_reset_net.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -set -euo pipefail -IFS=$'\n\t' - -debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; killall tendermint; killall logjack" -debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint unsafe_reset_priv_validator; rm -rf ~/.tendermint/data; rm ~/.tendermint/config/genesis.json; rm ~/.tendermint/logs/*" -debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make" -debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; mkdir -p ~/.tendermint/logs" -debora run --bg --label tendermint -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint node 2>&1 | stdinwriter -outpath ~/.tendermint/logs/tendermint.log" -debora run --bg --label logjack -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; logjack -chopSize='10M' -limitSize='1G' ~/.tendermint/logs/tendermint.log" -printf "Done\n" diff --git a/scripts/debora/unsafe_start_group.sh b/scripts/debora/unsafe_start_group.sh deleted file mode 100755 index a53669203..000000000 --- a/scripts/debora/unsafe_start_group.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -set -euo pipefail -IFS=$'\n\t' - -printf "Starting group $1...\n" -sleep 3 - -debora --group "$1" run --bg --label tendermint -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint node 2>&1 | stdinwriter -outpath ~/.tendermint/logs/tendermint.log" -debora --group "$1" run --bg --label logjack -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; logjack -chopSize='10M' -limitSize='1G' ~/.tendermint/logs/tendermint.log" -printf "Done\n" diff --git a/scripts/debora/unsafe_stop_group.sh b/scripts/debora/unsafe_stop_group.sh deleted file mode 100755 index cc1c61350..000000000 --- a/scripts/debora/unsafe_stop_group.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -euo pipefail -IFS=$'\n\t' - -printf "Stopping group $1...\n" -sleep 3 - -debora --group "$1" run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; killall tendermint; killall logjack" -printf "Done\n" diff --git a/scripts/debora/unsafe_upgrade_barak.sh b/scripts/debora/unsafe_upgrade_barak.sh deleted file mode 100755 index f7e9a2042..000000000 --- a/scripts/debora/unsafe_upgrade_barak.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -set -euo pipefail -IFS=$'\n\t' - -debora open "[::]:46661" -debora --group default.upgrade status -printf "\n\nShutting down barak default port...\n\n" -sleep 3 -debora --group default.upgrade close "[::]:46660" -debora --group default.upgrade run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make" -debora --group default.upgrade run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; mkdir -p ~/.barak/logs" -debora --group default.upgrade run --bg --label barak -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; barak --config=cmd/barak/seed 2>&1 | stdinwriter -outpath ~/.barak/logs/barak.log" -printf "\n\nTesting new barak...\n\n" -sleep 3 -debora status -printf "\n\nShutting down old barak...\n\n" -sleep 3 -debora --group default.upgrade quit -printf "Done!\n" diff --git a/scripts/debora/unsafe_upgrade_group.sh b/scripts/debora/unsafe_upgrade_group.sh deleted file mode 100755 index 814e6c60b..000000000 --- a/scripts/debora/unsafe_upgrade_group.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -euo pipefail -IFS=$'\n\t' - -printf "Upgrading group $1...\n" -sleep 3 - -debora --group "$1" run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make" -printf "Done\n"