[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-grid5k] 186/189: rebuild on all nodes
From: |
gnunet |
Subject: |
[taler-grid5k] 186/189: rebuild on all nodes |
Date: |
Thu, 28 Apr 2022 10:49:16 +0200 |
This is an automated email from the git hooks/post-receive script.
marco-boss pushed a commit to branch master
in repository grid5k.
commit 8a52139a6ff996477c229d8d69ef9eea1c17c2cd
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Sat Apr 23 20:31:38 2022 +0200
rebuild on all nodes
---
additional/persist.sh | 2 +-
experiment/scripts/install.sh | 6 ++++--
experiment/scripts/taler-perf.sh | 32 ++++++++++++++++++++++----------
3 files changed, 27 insertions(+), 13 deletions(-)
diff --git a/additional/persist.sh b/additional/persist.sh
index 49987fc..83448b9 100755
--- a/additional/persist.sh
+++ b/additional/persist.sh
@@ -84,7 +84,7 @@ function backup() {
function delete() {
echo "Cleaning up g5k storage"
- ssh g5k 'rm grenoble/g5k.tar.gz && $(find . -type l -exec rm -rf
{}/exp-logs/ {}/exp-data {}/espec-times \;)' &
+ ssh g5k 'rm grenoble/g5k.tar.gz || true && $(find . -type l -exec rm -rf
{}/exp-logs/ {}/exp-data {}/espec-times \;)' &
PID=$!
while kill -0 $PID > /dev/null 2>&1; do
diff --git a/experiment/scripts/install.sh b/experiment/scripts/install.sh
index 74d535c..0f2e38f 100755
--- a/experiment/scripts/install.sh
+++ b/experiment/scripts/install.sh
@@ -11,6 +11,8 @@ Optionally, CFLAGS can be passed with:
<LIBMICROHTTD|GNUNET|EXCHANGE|MERCHANT>_CFLAGS
"
+
+set -e
TALER_HOME=~/taler
# Prepare the repository
@@ -36,7 +38,7 @@ function build() {
./contrib/gana.sh
fi
CFLAGS="$1" ./configure --enable-logging=verbose --prefix=/usr ||
CFLAGS="$1" ./configure
- make
+ make -j $(nproc)
}
# Install from a git repo
@@ -47,7 +49,7 @@ function install_repo() {
prepare_repo "$1" "$2"
build "$3"
echo "INFO installing"
- make install_repo
+ make install
ldconfig
}
diff --git a/experiment/scripts/taler-perf.sh b/experiment/scripts/taler-perf.sh
index aec9b68..9e3340c 100644
--- a/experiment/scripts/taler-perf.sh
+++ b/experiment/scripts/taler-perf.sh
@@ -112,39 +112,39 @@ function rebuild() {
while [[ $# -gt 0 ]]; do
case "$1" in
--libmicrohttpd|-m)
- LIBMICROHTTPD_COMMIT_SHA=$2
+ LIBMICROHTTPD_COMMIT_SHA="$2"
shift 2
;;
--libmicro-cflags|-lc)
- LIBMICROHTTPD_CFLAGS=$2
+ LIBMICROHTTPD_CFLAGS="$2"
shift 2
;;
--exchange|-e)
- EXCHANGE_COMMIT_SHA=$2
+ EXCHANGE_COMMIT_SHA="$2"
shift 2
;;
--exch-cflags|-ec)
- EXCHANGE_CFLAGS=$2
+ EXCHANGE_CFLAGS="$2"
shift 2
;;
--gnunet|-g)
- GNUNET_COMMIT_SHA=$2
+ GNUNET_COMMIT_SHA="$2"
shift 2
;;
--gnunet-cflags|-gc)
- GNUNET_CFLAGS=$2
+ GNUNET_CFLAGS="$2"
shift 2
;;
--wallet|-w)
- WALLET_COMMIT_SHA=$2
+ WALLET_COMMIT_SHA="$2"
shift 2
;;
--merchant|-m)
- MERCHANT_COMMIT_SHA=$2
+ MERCHANT_COMMIT_SHA="$2"
shift 2
;;
--merch-cflags|-mc)
- MERCHANT_CFLAGS=$2
+ MERCHANT_CFLAGS="$2"
shift 2
;;
*)
@@ -166,6 +166,14 @@ function rebuild() {
exec ~/scripts/install.sh
}
+function rebuild_all() {
+ for NODE in $(dig -t AXFR ${DNS_ZONE} | grep "\<A\>" | awk 'print substr($1,
1, length($1)-1)}'); do
+ if [[ $NODE == $EXCHANGE_GW_DOMAIN ]]; then continue; fi
+ ssh ${NODE} "taler-perf build $(printf "%q " "$@")" &
+ done
+ wait
+}
+
case "$1" in
start)
shift
@@ -177,7 +185,11 @@ case "$1" in
;;
rebuild)
shift
- rebuild
+ rebuild_all "$@"
+ ;;
+ build)
+ shift
+ rebuild "$@"
;;
*)
echo "Usage:"
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-grid5k] 127/189: adjust database logs, (continued)
- [taler-grid5k] 127/189: adjust database logs, gnunet, 2022/04/28
- [taler-grid5k] 166/189: use centos for db only, gnunet, 2022/04/28
- [taler-grid5k] 141/189: update recovery script, gnunet, 2022/04/28
- [taler-grid5k] 160/189: update image, disable mitigations, gnunet, 2022/04/28
- [taler-grid5k] 154/189: more dynamic rsyslog ports, add some info in setup.sh, gnunet, 2022/04/28
- [taler-grid5k] 189/189: Commented and Documented, gnunet, 2022/04/28
- [taler-grid5k] 144/189: possible to provide the complete tar archive for recovery, gnunet, 2022/04/28
- [taler-grid5k] 149/189: update proxy configuration for merchant and bank, gnunet, 2022/04/28
- [taler-grid5k] 145/189: add some doc, gnunet, 2022/04/28
- [taler-grid5k] 162/189: add centos image, gnunet, 2022/04/28
- [taler-grid5k] 186/189: rebuild on all nodes,
gnunet <=
- [taler-grid5k] 176/189: fix node-exporter, gnunet, 2022/04/28
- [taler-grid5k] 155/189: experiment with two postgresql instances, gnunet, 2022/04/28
- [taler-grid5k] 157/189: fix persist script, delete manually, gnunet, 2022/04/28
- [taler-grid5k] 151/189: add progress for archiving, gnunet, 2022/04/28
- [taler-grid5k] 135/189: add loki to recover setup, gnunet, 2022/04/28
- [taler-grid5k] 175/189: postgresql not loaded per default, gnunet, 2022/04/28
- [taler-grid5k] 159/189: 'cluster' (db) scripts added, gnunet, 2022/04/28
- [taler-grid5k] 132/189: fix regex, gnunet, 2022/04/28
- [taler-grid5k] 128/189: fix yaml, gnunet, 2022/04/28
- [taler-grid5k] 147/189: add proxy for fakebank, gnunet, 2022/04/28