From 26614eb0016c212b3a10cd3a6e0d2069478c2d7b Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Tue, 5 Sep 2023 14:29:24 +0200 Subject: [PATCH] chore: dump cluster logs in tests (#1959) Signed-off-by: Matej Vasek --- .github/workflows/test-e2e-oncluster-runtime.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/test-e2e-oncluster-runtime.yaml b/.github/workflows/test-e2e-oncluster-runtime.yaml index ced3c3898f..fd09f34e53 100644 --- a/.github/workflows/test-e2e-oncluster-runtime.yaml +++ b/.github/workflows/test-e2e-oncluster-runtime.yaml @@ -32,6 +32,16 @@ jobs: FUNC_REPO_REF: ${{ github.event.pull_request.head.repo.full_name }} FUNC_REPO_BRANCH_REF: ${{ github.head_ref }} run: make test-e2e-on-cluster + - name: Dump Cluster Logs + if: always() + run: | + echo "::group::cluster events" + kubectl get events -A + echo "::endgroup::" + + echo "::group::cluster containers logs" + stern '.*' --all-namespaces --no-follow + echo "::endgroup::" - uses: codecov/codecov-action@v3 with: files: ./coverage.txt