File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ extension Alerting {
102
102
builds. validateSwiftVersionsSuccessful ( ) . log ( check: " CHECK_BUILDS_SWIFT_VERSIONS_SUCCESSFUL " )
103
103
builds. validateRunnerIdsPresent ( ) . log ( check: " CHECK_BUILDS_RUNNER_IDS_PRESENT " )
104
104
builds. validateRunnerIdsSuccessful ( ) . log ( check: " CHECK_BUILDS_RUNNER_IDS_SUCCESSFUL " )
105
- builds. validateSuccessRateInRange ( ) . log ( check: " CHECK_BUILDS_SUCCESS_RATE_IN_RANGE " )
105
+ if builds. count >= 1000 { // only run this test if we have a decent number of builds
106
+ builds. validateSuccessRateInRange ( ) . log ( check: " CHECK_BUILDS_SUCCESS_RATE_IN_RANGE " )
107
+ }
106
108
}
107
109
108
110
static func fetchBuilds( on database: Database , timePeriod: TimeAmount , limit: Int ) async throws -> [ Alerting . BuildInfo ] {
You can’t perform that action at this time.
0 commit comments