Skip to content

Commit 248685a

Browse files
committed
increase intervals for image policy update event buffers
All of the other intervals are around 10 minutes. These events are triggered by MCP rollout, which happens for each of the image policy tests. 10 minutes is actually on the lower end for MCP rollout (which is given 20 minutes before timing out), but let's start with this and increase in the future if necessary Signed-off-by: Peter Hunt <pehunt@redhat.com>
1 parent 3befae9 commit 248685a

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

pkg/monitortestlibrary/pathologicaleventlibrary/duplicated_event_patterns.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,9 +1271,10 @@ func newConfigDriftMonitorStoppedTooOftenEventMatcher(finalIntervals monitorapi.
12711271
return eventInterval.Source == monitorapi.SourceE2ETest &&
12721272
strings.Contains(eventInterval.Locator.Keys[monitorapi.LocatorE2ETestKey], "SigstoreImageVerification")
12731273
})
1274+
12741275
for i := range configDriftMonitorStoppedIntervals {
1275-
configDriftMonitorStoppedIntervals[i].To = configDriftMonitorStoppedIntervals[i].To.Add(time.Second * 30)
1276-
configDriftMonitorStoppedIntervals[i].From = configDriftMonitorStoppedIntervals[i].From.Add(time.Second * -30)
1276+
configDriftMonitorStoppedIntervals[i].To = configDriftMonitorStoppedIntervals[i].To.Add(time.Minute * 10)
1277+
configDriftMonitorStoppedIntervals[i].From = configDriftMonitorStoppedIntervals[i].From.Add(time.Minute * -10)
12771278
}
12781279

12791280
return &OverlapOtherIntervalsPathologicalEventMatcher{
@@ -1291,9 +1292,10 @@ func newAddSigtermProtectionEventMatcher(finalIntervals monitorapi.Intervals) Ev
12911292
return eventInterval.Source == monitorapi.SourceE2ETest &&
12921293
strings.Contains(eventInterval.Locator.Keys[monitorapi.LocatorE2ETestKey], "SigstoreImageVerification")
12931294
})
1295+
12941296
for i := range AddSigtermProtectionIntervals {
1295-
AddSigtermProtectionIntervals[i].To = AddSigtermProtectionIntervals[i].To.Add(time.Second * 30)
1296-
AddSigtermProtectionIntervals[i].From = AddSigtermProtectionIntervals[i].From.Add(time.Second * -30)
1297+
AddSigtermProtectionIntervals[i].To = AddSigtermProtectionIntervals[i].To.Add(time.Minute * 10)
1298+
AddSigtermProtectionIntervals[i].From = AddSigtermProtectionIntervals[i].From.Add(time.Minute * -10)
12971299
}
12981300
return &OverlapOtherIntervalsPathologicalEventMatcher{
12991301
delegate: &SimplePathologicalEventMatcher{
@@ -1310,9 +1312,10 @@ func newRemoveSigtermProtectionEventMatcher(finalIntervals monitorapi.Intervals)
13101312
return eventInterval.Source == monitorapi.SourceE2ETest &&
13111313
strings.Contains(eventInterval.Locator.Keys[monitorapi.LocatorE2ETestKey], "SigstoreImageVerification")
13121314
})
1315+
13131316
for i := range RemoveSigtermProtectionIntervals {
1314-
RemoveSigtermProtectionIntervals[i].To = RemoveSigtermProtectionIntervals[i].To.Add(time.Second * 30)
1315-
RemoveSigtermProtectionIntervals[i].From = RemoveSigtermProtectionIntervals[i].From.Add(time.Second * -30)
1317+
RemoveSigtermProtectionIntervals[i].To = RemoveSigtermProtectionIntervals[i].To.Add(time.Minute * 10)
1318+
RemoveSigtermProtectionIntervals[i].From = RemoveSigtermProtectionIntervals[i].From.Add(time.Minute * -10)
13161319
}
13171320
return &OverlapOtherIntervalsPathologicalEventMatcher{
13181321
delegate: &SimplePathologicalEventMatcher{

0 commit comments

Comments
 (0)