From 1ebc62b594fdf5e4da7fa207d4fcbc1c390a9ba3 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 13 Mar 2026 19:56:38 +0100 Subject: [PATCH] fix: adjust acceptance test action [skip ci] --- .github/actions/acc_test/action.yaml | 2 +- stackit/internal/wait/postgresflexalpha/wait.go | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/actions/acc_test/action.yaml b/.github/actions/acc_test/action.yaml index b57dc558..edaade8b 100644 --- a/.github/actions/acc_test/action.yaml +++ b/.github/actions/acc_test/action.yaml @@ -4,7 +4,7 @@ description: "Acceptance Testing pipeline" inputs: test_timeout_string: description: "string that determines the timeout (default: 45m)" - default: '45m' + default: '90m' required: true go-version: diff --git a/stackit/internal/wait/postgresflexalpha/wait.go b/stackit/internal/wait/postgresflexalpha/wait.go index 3d80ffd5..c40b26af 100644 --- a/stackit/internal/wait/postgresflexalpha/wait.go +++ b/stackit/internal/wait/postgresflexalpha/wait.go @@ -144,7 +144,11 @@ func CreateInstanceWaitHandler( time.Sleep(5 * time.Second) return false, nil, nil } - return true, s, fmt.Errorf("update got status FAILURE for instance with id %s", instanceId) + return true, s, fmt.Errorf( + "update got status FAILURE for instance with id %s after %d retries", + failedCount, + instanceId, + ) // API responds with FAILURE for some seconds and then the instance goes to READY // return true, s, fmt.Errorf("create failed for instance with id %s", instanceId) } @@ -216,7 +220,11 @@ func PartialUpdateInstanceWaitHandler( time.Sleep(5 * time.Second) return false, nil, nil } - return true, s, fmt.Errorf("update got status FAILURE for instance with id %s", instanceID) + return true, s, fmt.Errorf( + "update got status FAILURE for instance with id %s after %d retries", + failedCount, + instanceID, + ) } }, )