fix(ci): collect the package manager logs before the slow node probes

diagnostics.sh runs under a 900-second deadline that the sweep deadline
can shorten further. The package manager section came last, after the NFS,
ganesha backtrace and controller probes, so a cut-off run would have lost
exactly the log this collection exists for. It now runs first.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5.5 committed 2026-10-21 21:12:04 +02:00
1 parent 93ef1c73f4
commit 9c687fe7e4
1 file changed
+6 -6
@@ -32,6 +32,12 @@ dexec() {
timeout 30 docker exec "$@"
}
sep "node-package-manager" "package manager logs (a failed download names the mirror, the URL and the status)"
for node in "${MGR}" "${WRK1}" "${WRK2}" "${NFS_SERVER}" "${BACKUP_NODE}"; do
echo "=== ${node} ==="
dexec "${node}" sh -c "tail -n 3000 /var/log/dnf5.log /var/log/dnf.librepo.log 2>&1"
done
for node in "${MGR}" "${WRK1}" "${WRK2}"; do
sep "compose-tree" "${node}: /opt/compose tree"
dexec "${node}" find /opt/compose -maxdepth 3 -type f -name '*.yml' 2>/dev/null
@@ -183,12 +189,6 @@ for node in "${MGR}" "${WRK1}" "${WRK2}" "${NFS_SERVER}" "${BACKUP_NODE}"; do
dexec "${node}" sh -c "ls -l /dev/loop* 2>&1" || echo "(no loop nodes in /dev)"
done
sep "node-package-manager" "package manager logs (a failed download names the mirror, the URL and the status)"
for node in "${MGR}" "${WRK1}" "${WRK2}" "${NFS_SERVER}" "${BACKUP_NODE}"; do
echo "=== ${node} ==="
dexec "${node}" sh -c "tail -n 3000 /var/log/dnf5.log /var/log/dnf.librepo.log 2>&1"
done
if [ -n "${OUT}" ] && [ "$(find "${OUT}" -type f 2>/dev/null | wc -l)" -eq 0 ]; then
echo "stack diagnostics: captured no files under ${OUT}" >&9
fi