From 1bd288f56de71ddc83f69a18532cd1c628211519 Mon Sep 17 00:00:00 2001 From: Mihaela Balutoiu Date: Mon, 7 Aug 2023 10:47:34 +0300 Subject: [PATCH 1/2] Set pipefail to the script Signed-off-by: Mihaela Balutoiu --- .github/workflows/integration-tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 95b44b71..338da877 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -59,7 +59,10 @@ jobs: run: sudo mkdir -p /artifacts-logs && sudo chmod 777 /artifacts-logs - name: Run integration tests - run: go run ./test/integration/e2e.go 2>&1 | tee /artifacts-logs/e2e.log + run: | + set -o pipefail + set -o errexit + go run ./test/integration/e2e.go 2>&1 | tee /artifacts-logs/e2e.log env: GARM_BASE_URL: ${{ steps.ngrok.outputs.tunnel-url }} GARM_USERNAME: admin From 191d44fb3fc4628e8810b5ea67e911964e662d2b Mon Sep 17 00:00:00 2001 From: Mihaela Balutoiu Date: Mon, 7 Aug 2023 10:51:46 +0300 Subject: [PATCH 2/2] Log `org/repo` details on timeout exceeded Signed-off-by: Mihaela Balutoiu --- test/integration/e2e.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/integration/e2e.go b/test/integration/e2e.go index fa539284..14eca76a 100644 --- a/test/integration/e2e.go +++ b/test/integration/e2e.go @@ -657,6 +657,10 @@ func WaitRepoInstance(timeout time.Duration) { time.Sleep(5 * time.Second) timeWaited += 5 } + repo, err := getRepo(cli, authToken, repoID) + handleError(err) + printResponse(repo) + instanceDetails, err := getInstance(cli, authToken, instance.Name) handleError(err) printResponse(instanceDetails) @@ -823,6 +827,10 @@ func WaitOrgInstance(timeout time.Duration) { time.Sleep(5 * time.Second) timeWaited += 5 } + org, err := getOrg(cli, authToken, orgID) + handleError(err) + printResponse(org) + instanceDetails, err := getInstance(cli, authToken, instance.Name) handleError(err) printResponse(instanceDetails)