From 26672899189184a385bce02d2c0e87cd7c491c06 Mon Sep 17 00:00:00 2001 From: Adam0Brien Date: Tue, 26 Nov 2024 14:06:13 +0000 Subject: [PATCH] print test logs always --- .github/workflows/e2e-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 1208b079..c32ef4d4 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -17,6 +17,7 @@ jobs: - name: View Test Pod Logs run: | + TEST_POD=$(kubectl get pods --selector=job-name=e2e-inventory-http-tests -o jsonpath='{.items[0].metadata.name}') for i in {1..50}; do STATUS=$(kubectl get pods --selector=job-name=e2e-inventory-http-tests -o jsonpath='{.items[0].status.containerStatuses[0].state.terminated.reason}') TEST_POD=$(kubectl get pods --selector=job-name=e2e-inventory-http-tests -o jsonpath='{.items[0].metadata.name}') @@ -34,6 +35,7 @@ jobs: fi sleep 3 done + kubectl logs $TEST_POD - name: Inventory Down - Kind Cluster run: make inventory-down-kind