From 861542801d7f20b8e9745ef208a842f25f2e6272 Mon Sep 17 00:00:00 2001 From: Edoardo Tenani <526307+endorama@users.noreply.github.com> Date: Tue, 21 Jan 2025 22:31:35 +0100 Subject: [PATCH] functionaltests: increase timeout and print error logs (#15305) * increase timeout to 30 minutes * print retrieved error logs * Update functionaltests/8_15_test.go Co-authored-by: Marc Lopez Rubio --------- Co-authored-by: Marc Lopez Rubio --- .github/workflows/functional-tests.yml | 2 +- functionaltests/8_15_test.go | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 9ea70b02991..17ee4f4edbb 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -47,7 +47,7 @@ jobs: - run: | export TF_VAR_CREATED_DATE=$(date +%s) - cd functionaltests && go test -v -timeout=20m -target "${{ matrix.environment }}" ./ + cd functionaltests && go test -v -timeout=30m -target "${{ matrix.environment }}" ./ notify: if: always() diff --git a/functionaltests/8_15_test.go b/functionaltests/8_15_test.go index efc3c07b162..35fa60a5940 100644 --- a/functionaltests/8_15_test.go +++ b/functionaltests/8_15_test.go @@ -148,5 +148,10 @@ func TestUpgrade_8_15_4_to_8_16_0(t *testing.T) { res, err := ecc.GetESErrorLogs(ctx) require.NoError(t, err) - assert.Zero(t, res.Hits.Total.Value) + if !assert.Zero(t, res.Hits.Total.Value, "expected no error logs, but found some") { + t.Log("found error logs:") + for _, h := range res.Hits.Hits { + t.Log(string(h.Source_)) + } + } }