commit: 9fe325b4317d3d8777fd845c26975192359e0ff0
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 13 01:41:26 2024 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri Sep 13 01:43:24 2024 +0000
URL: https://gitweb.gentoo.org/proj/binhost.git/commit/?id=9fe325b4
enhanced logging for the base update script
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
builders/milou/binhost-update | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/builders/milou/binhost-update b/builders/milou/binhost-update
index d48e15e..2f69534 100755
--- a/builders/milou/binhost-update
+++ b/builders/milou/binhost-update
@@ -113,6 +113,9 @@ emerge --sync -q &>> ${TMPFILE}
anyfail=0
+exec {BASH_XTRACEFD}>> ${TMPFILE}
+set -x
+
nspawn_command=(systemd-nspawn --bind /var/cache/distfiles --bind-ro
/var/db/repos/gentoo --tmpfs=/var/tmp:mode=1777,size=${TMPFS_SIZE}g)
for n in ${NSPAWN_NAMES} ; do
machinedir=/var/lib/machines/${n}
@@ -127,13 +130,16 @@ for n in ${NSPAWN_NAMES} ; do
let "anyfail+=${ret}"
if [[ ${ret} = 0 ]]; then
builder=$(readlink ${machinedir}/etc/portage)
+ echo "Starting variant builds for ${machinedir}/${builder}..."
&>> ${TMPFILE}
for variant in ${machinedir}/${builder}/variants/*; do
[[ -d ${variant} ]] || break
+ echo "Variant: ${variant}" &>> ${TMPFILE}
"${nspawn_command[@]}" --ephemeral --bind
${machinedir}/var/cache/binpkgs -M ${n} /root/bin/run-update ${variant##*/} &>>
${TMPFILE}
let "anyfail+=$?"
done
fi
done
+set +x
cp ${TMPFILE}
/var/lib/machines/binhost-amd64-x86-64-kde-23/var/cache/binpkgs/last-build.log