From: Stefano Brivio <sbrivio@redhat.com>
To: passt-dev@passt.top
Subject: [PATCH] hooks: Temporarily disable demo generation in pre-push
Date: Wed, 26 Oct 2022 07:12:11 +0200 [thread overview]
Message-ID: <20221026051211.1842082-1-sbrivio@redhat.com> (raw)
The out-of-tree Podman patch needs to be rebased every second week or
so, and I'm currently trying to get that upstream:
https://github.com/containers/podman/pull/16141
Disable demo generation for the moment, so that I avoid wasting time
with those rebases. We'll re-enable it later.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
---
hooks/pre-push | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/hooks/pre-push b/hooks/pre-push
index ebca1f6..89717e7 100755
--- a/hooks/pre-push
+++ b/hooks/pre-push
@@ -21,13 +21,13 @@ BASE="/var/www/passt"
BUILDS="${BASE}/builds"
LATEST="${BUILDS}/latest"
TEMP="${BUILDS}/temp"
-AWAY="${BUILDS}/away"
WEB="${TEMP}/web"
TEST="${TEMP}/test"
ARCH="$(uname -m)"
BIN="${TEMP}/${ARCH}"
+OLD_BIN="${LATEST}/${ARCH}"
ssh "${USER_HOST}" "mkdir -p ${WEB} ${TEST} ${BIN}"
@@ -41,12 +41,15 @@ for f in test_logs/web/*.cast test_logs/web/*.js; do
scp "${f}.gz" "${USER_HOST}:${WEB}/"
done
+# TODO: Re-enable demos once we have pasta support in upstream Podman
+skip() {
./run_demo
for f in test_logs/web/*.cast test_logs/web/*.js; do
gzip -fk9 "${f}"
scp "${f}" "${USER_HOST}:${WEB}/"
scp "${f}.gz" "${USER_HOST}:${WEB}/"
done
+}
cd ..
@@ -68,6 +71,10 @@ for pic in passt_overview pasta_overview; do
done
scp doc/*.html "${USER_HOST}:${WEB}/"
-ssh "${USER_HOST}" "mv ${LATEST} ${AWAY}"
-ssh "${USER_HOST}" "mv ${TEMP} ${LATEST}"
-ssh "${USER_HOST}" "rm -rf ${AWAY}"
+ssh "${USER_HOST}" "cp ${WEB}/* ${LATEST}/web/"
+ssh "${USER_HOST}" "cp ${TEST}/* ${LATEST}/test/"
+
+ssh "${USER_HOST}" "rm -f ${OLD_BIN}/*"
+ssh "${USER_HOST}" "cp ${BIN}/* ${LATEST}/${ARCH}/"
+
+ssh "${USER_HOST}" "rm -rf ${TEMP}"
--
@@ -21,13 +21,13 @@ BASE="/var/www/passt"
BUILDS="${BASE}/builds"
LATEST="${BUILDS}/latest"
TEMP="${BUILDS}/temp"
-AWAY="${BUILDS}/away"
WEB="${TEMP}/web"
TEST="${TEMP}/test"
ARCH="$(uname -m)"
BIN="${TEMP}/${ARCH}"
+OLD_BIN="${LATEST}/${ARCH}"
ssh "${USER_HOST}" "mkdir -p ${WEB} ${TEST} ${BIN}"
@@ -41,12 +41,15 @@ for f in test_logs/web/*.cast test_logs/web/*.js; do
scp "${f}.gz" "${USER_HOST}:${WEB}/"
done
+# TODO: Re-enable demos once we have pasta support in upstream Podman
+skip() {
./run_demo
for f in test_logs/web/*.cast test_logs/web/*.js; do
gzip -fk9 "${f}"
scp "${f}" "${USER_HOST}:${WEB}/"
scp "${f}.gz" "${USER_HOST}:${WEB}/"
done
+}
cd ..
@@ -68,6 +71,10 @@ for pic in passt_overview pasta_overview; do
done
scp doc/*.html "${USER_HOST}:${WEB}/"
-ssh "${USER_HOST}" "mv ${LATEST} ${AWAY}"
-ssh "${USER_HOST}" "mv ${TEMP} ${LATEST}"
-ssh "${USER_HOST}" "rm -rf ${AWAY}"
+ssh "${USER_HOST}" "cp ${WEB}/* ${LATEST}/web/"
+ssh "${USER_HOST}" "cp ${TEST}/* ${LATEST}/test/"
+
+ssh "${USER_HOST}" "rm -f ${OLD_BIN}/*"
+ssh "${USER_HOST}" "cp ${BIN}/* ${LATEST}/${ARCH}/"
+
+ssh "${USER_HOST}" "rm -rf ${TEMP}"
--
2.35.1
reply other threads:[~2022-10-26 5:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221026051211.1842082-1-sbrivio@redhat.com \
--to=sbrivio@redhat.com \
--cc=passt-dev@passt.top \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).