Skip to content

Commit

Permalink
pause failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan4th committed Jul 13, 2024
1 parent d8559ce commit ef96bfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/systest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
go-version-file: "go.mod"

- name: Run tests
timeout-minutes: 75
timeout-minutes: 150
env:
test_id: systest-${{ steps.vars.outputs.sha_short }}
label: sanity
Expand Down
4 changes: 4 additions & 0 deletions systest/testcontext/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ func New(t *testing.T, opts ...Opt) *Context {
require.NoError(t, err)
if !cctx.Keep {
cleanup(t, func() {
if t.Failed() {
t.Logf("QQQQQ: FAIL: pausing failed test! namespace: %s", cctx.Namespace)
time.Sleep(7200)
}
if err := deleteNamespace(cctx); err != nil {
cctx.Log.Errorw("cleanup failed", "error", err)
return
Expand Down

0 comments on commit ef96bfd

Please sign in to comment.