Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(hcc): capture readiness bootstrap failures

Alfredo Lopez85865e903476
diff --git a/scripts/e2e/e2e-hcc-readiness-bootstrap.sh b/scripts/e2e/e2e-hcc-readiness-bootstrap.sh
index 0f2381085..29a00de63 100644
--- a/scripts/e2e/e2e-hcc-readiness-bootstrap.sh
+++ b/scripts/e2e/e2e-hcc-readiness-bootstrap.sh
@@ -47,6 +47,10 @@ HCC_MUTATED=0
BLOCKER_CREATED=0
die() {
+ if [ -n "${new_hcc_pod:-}" ]; then
+ echo "Recent HCC logs from ${new_hcc_pod}:" >&2
+ kctl logs "pod/${new_hcc_pod}" -n "$HCC_NS" -c host-context-controller --tail=300 >&2 || true
+ fi
fail "$*"
exit 1
}