Skip to content

Commit a2c00b9

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. By observation, MCP rollouts can take upwards of 30 minutes, so we need to ignore for that duration Signed-off-by: Peter Hunt <pehunt@redhat.com>
1 parent 7da3e1c commit a2c00b9

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 * 30)
1277+
configDriftMonitorStoppedIntervals[i].From = configDriftMonitorStoppedIntervals[i].From.Add(time.Minute * -30)
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 * 30)
1298+
AddSigtermProtectionIntervals[i].From = AddSigtermProtectionIntervals[i].From.Add(time.Minute * -30)
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 * 30)
1318+
RemoveSigtermProtectionIntervals[i].From = RemoveSigtermProtectionIntervals[i].From.Add(time.Minute * -30)
13161319
}
13171320
return &OverlapOtherIntervalsPathologicalEventMatcher{
13181321
delegate: &SimplePathologicalEventMatcher{

0 commit comments

Comments
 (0)