osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ci/+/40167?usp=email )
Change subject: jobs/ttcn3-testsuites: display load at start/end
......................................................................
jobs/ttcn3-testsuites: display load at start/end
Display the load average line from uptime at the start and end of
testsuite runs, e.g.:
load average: 0.77, 0.68, 0.68
Change-Id: I5f891ae5d9b501e2e111e61d3aaa55ae24cb663b
---
M jobs/ttcn3-testsuites-testenv.yml
M jobs/ttcn3-testsuites.yml
2 files changed, 20 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/67/40167/1
diff --git a/jobs/ttcn3-testsuites-testenv.yml b/jobs/ttcn3-testsuites-testenv.yml
index f6a7798..ac1b00e 100644
--- a/jobs/ttcn3-testsuites-testenv.yml
+++ b/jobs/ttcn3-testsuites-testenv.yml
@@ -533,18 +533,26 @@
export TESTENV_COREDUMP_FROM_LXC_HOST=1
set -x
- ./testenv.py run \
+ uptime | grep --color=always -o "load.*"
+
+ RC=0
+ if ! ./testenv.py run \
{testsuite} \
--podman \
--cache "$PWD"/_cache \
--ccache ~/ccache/testenv \
--log-dir "$PWD"/logs \
- {args}
+ {args}; then
+ RC=1
+ fi
# Free up space from downloaded apt packages, build artifacts etc.
# The osmo-ttcn3-hacks deps dir and ccache are persistent.
rm -rf _cache .linux
+ uptime | grep --color=always -o "load.*"
+ exit $RC
+
scm:
- git:
branches:
diff --git a/jobs/ttcn3-testsuites.yml b/jobs/ttcn3-testsuites.yml
index d842fff..6d76961 100644
--- a/jobs/ttcn3-testsuites.yml
+++ b/jobs/ttcn3-testsuites.yml
@@ -165,7 +165,16 @@
esac
cd "$DIR"
- ./jenkins.sh
+
+ uptime | grep --color=always -o "load.*"
+
+ RC=0
+ if ! ./jenkins.sh; then
+ RC=1
+ fi
+
+ uptime | grep --color=always -o "load.*"
+ exit $RC
scm:
- git:
branches:
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ci/+/40167?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I5f891ae5d9b501e2e111e61d3aaa55ae24cb663b
Gerrit-Change-Number: 40167
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>