[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-grid5k] 69/73: update plotter script
From: |
gnunet |
Subject: |
[taler-grid5k] 69/73: update plotter script |
Date: |
Tue, 14 Dec 2021 15:10:51 +0100 |
This is an automated email from the git hooks/post-receive script.
marco-boss pushed a commit to branch master
in repository grid5k.
commit d2513305c569e3c67d489107d7d794c5cde280c1
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Sun Dec 12 16:52:39 2021 +0100
update plotter script
---
additional/plots/plot.sh | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/additional/plots/plot.sh b/additional/plots/plot.sh
index b89a516..12a1a17 100755
--- a/additional/plots/plot.sh
+++ b/additional/plots/plot.sh
@@ -1,5 +1,6 @@
#!/bin/bash
# Create plots from the grafana dashboard
+# $1: [optional] name of the experiment
set -eu
PLOTTER_DIR=plotter
@@ -33,6 +34,23 @@ else
python3 plots.py --from=${FROM} --to=${TO}
fi
-tar -czvf ../plots-${TO}.tar.gz plots
+NAME=${1:-${TO}}
+
+# Slugify the name
+NAME=$(\
+ echo "$NAME" | \
+ sed -r s/[~\^]+//g | \
+ sed -r s/[^a-zA-Z0-9]+/-/g | \
+ sed -r s/^-+\|-+$//g | \
+ tr A-Z a-z \
+)
+
+N=1
+while [ -f ../plots-${NAME}.tar.gz ]; do
+ NAME="${NAME}-${N}"
+ ((N++))
+done
+
+tar -czvf ../plots-${NAME}.tar.gz plots
rm -rf plots
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-grid5k] 56/73: fix startup, (continued)
- [taler-grid5k] 56/73: fix startup, gnunet, 2021/12/14
- [taler-grid5k] 45/73: take postgres config to seperate file, gnunet, 2021/12/14
- [taler-grid5k] 38/73: speedup image build, gnunet, 2021/12/14
- [taler-grid5k] 40/73: document variables, gnunet, 2021/12/14
- [taler-grid5k] 70/73: update plotter README and dashboards, gnunet, 2021/12/14
- [taler-grid5k] 65/73: filter wallet getRecord messages - they spam the logs, gnunet, 2021/12/14
- [taler-grid5k] 51/73: add auto explain - not tested yet, gnunet, 2021/12/14
- [taler-grid5k] 67/73: update dashboards, gnunet, 2021/12/14
- [taler-grid5k] 53/73: add more description about huge pages, gnunet, 2021/12/14
- [taler-grid5k] 71/73: remove unused rpecs and handled notes, gnunet, 2021/12/14
- [taler-grid5k] 69/73: update plotter script,
gnunet <=
- [taler-grid5k] 72/73: add possibility to define grid5k repo branch for experiments, gnunet, 2021/12/14
- [taler-grid5k] 66/73: update dashboard exports, gnunet, 2021/12/14
- [taler-grid5k] 64/73: comment scripts and add help, gnunet, 2021/12/14
- [taler-grid5k] 73/73: scripts documented and commented, gnunet, 2021/12/14
- [taler-grid5k] 68/73: update grafana dashboards, add option for ram mount in db, gnunet, 2021/12/14