Skip to content

Commit

Permalink
Merge pull request #28644 from neisw/trt-1538-wait-cleanup-bump-timeo…
Browse files Browse the repository at this point in the history
…ut-2

trt-1538: additional timeout bumps
  • Loading branch information
openshift-merge-bot[bot] committed Mar 12, 2024
2 parents 3bf7a4a + 7e4a1ab commit 09489e4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/openshift-tests/monitor/run/run_monitor_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (o *RunMonitorOptions) Run() error {

<-ctx.Done()

fmt.Fprintf(o.Out, "Monitor shutting down, this may take up to five minutes...\n")
fmt.Fprintf(o.Out, "Monitor shutting down, this may take up to twenty minutes...\n")

cleanupContext, cleanupCancel := context.WithTimeout(context.Background(), 20*time.Minute)
defer cleanupCancel()
Expand Down
4 changes: 2 additions & 2 deletions pkg/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ func (m *Monitor) Stop(ctx context.Context) (ResultState, error) {
ctx,
m.recorder.Intervals(time.Time{}, time.Time{}), // compute intervals based on *all* the intervals.
m.recorder.CurrentResourceState(),
m.startTime, // still allow computation to understand the begining and end for bounding.
m.stopTime) // still allow computation to understand the begining and end for bounding.
m.startTime, // still allow computation to understand the beginning and end for bounding.
m.stopTime) // still allow computation to understand the beginning and end for bounding.
if err != nil {
// these errors are represented as junit, always continue to the next step
fmt.Fprintf(os.Stderr, "Error computing intervals, continuing, junit will reflect this. %v\n", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (w *availability) Cleanup(ctx context.Context) error {
}

startTime := time.Now()
err = wait.PollUntilContextTimeout(ctx, 15*time.Second, 15*time.Minute, true, w.routeDeleted)
err = wait.PollUntilContextTimeout(ctx, 15*time.Second, 20*time.Minute, true, w.routeDeleted)
if err != nil {
return err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func (pna *podNetworkAvalibility) Cleanup(ctx context.Context) error {
}

startTime := time.Now()
err := wait.PollUntilContextTimeout(ctx, 15*time.Second, 15*time.Minute, true, pna.namespaceDeleted)
err := wait.PollUntilContextTimeout(ctx, 15*time.Second, 20*time.Minute, true, pna.namespaceDeleted)
if err != nil {
return err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (w *availability) Cleanup(ctx context.Context) error {
}

startTime := time.Now()
err := wait.PollUntilContextTimeout(ctx, 15*time.Second, 15*time.Minute, true, w.namespaceDeleted)
err := wait.PollUntilContextTimeout(ctx, 15*time.Second, 20*time.Minute, true, w.namespaceDeleted)
if err != nil {
return err
}
Expand Down

0 comments on commit 09489e4

Please sign in to comment.