Skip to content

Commit 6b591eb

Browse files
Increase watcher in upgrade tests to timeout after 10m (#5270)
Increase watcher in upgrade tests to timeout after 10m to catch any regressions for the agent upgrade watcher.
1 parent adcfd51 commit 6b591eb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.agent-versions.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"8.15.0-SNAPSHOT",
55
"8.14.4-SNAPSHOT",
66
"8.14.3",
7-
"7.17.24-SNAPSHOT",
8-
"7.17.23"
7+
"7.17.24-SNAPSHOT"
98
]
109
}

testing/upgradetest/upgrader.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,11 @@ func PerformUpgrade(
382382
}
383383

384384
// it is unstable to continue until the watcher is done
385-
// the maximum wait time is 1 minutes (2 minutes for grace) some older versions
385+
// the maximum wait time is 10 minutes (12 minutes for grace) some older versions
386386
// do not respect the `ConfigureFastWatcher` so we have to kill the watcher after the
387-
// 1 minute window (1 min 15 seconds for grace) has passed.
387+
// 10 minute window (10 min 15 seconds for grace) has passed.
388388
logger.Logf("waiting for upgrade watcher to finish")
389-
err = WaitForNoWatcher(ctx, 2*time.Minute, 10*time.Second, 1*time.Minute+15*time.Second)
389+
err = WaitForNoWatcher(ctx, 12*time.Minute, 10*time.Second, 10*time.Minute+15*time.Second)
390390
if err != nil {
391391
return fmt.Errorf("watcher never stopped running: %w", err)
392392
}

0 commit comments

Comments
 (0)