File tree Expand file tree Collapse file tree 4 files changed +26
-26
lines changed
Expand file tree Collapse file tree 4 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ extension [Alerting.BuildInfo] {
275275 func validateSuccessRateInRange( ) -> Alerting . Validation {
276276 let successRate = Double ( filter { $0. status == . ok } . count) / Double( count)
277277 // Success rate has been around 30% generally
278- if 0.2 <= successRate && successRate <= 0.4 {
278+ if 0.15 <= successRate && successRate <= 0.45 {
279279 return . ok
280280 } else {
281281 let percentSuccessRate = ( successRate * 1000 ) . rounded ( ) / 10
Original file line number Diff line number Diff line change @@ -109,20 +109,20 @@ extension AllTests.AlertingTests {
109109 #expect( all. validateSuccessRateInRange ( ) == . ok)
110110 }
111111 do {
112- let okCount = 199
112+ let okCount = 149
113113 let failedCount = 1000 - okCount
114114 let okBuilds = ( 0 ..< okCount) . map { _ in Alerting . BuildInfo. mock ( status: . ok) }
115115 let failedBuilds = ( 0 ..< failedCount) . map { _ in Alerting . BuildInfo. mock ( status: . failed) }
116116 let all = okBuilds + failedBuilds
117- #expect( all. validateSuccessRateInRange ( ) == . failed( reasons: [ " Global success rate of 19 .9% out of bounds " ] ) )
117+ #expect( all. validateSuccessRateInRange ( ) == . failed( reasons: [ " Global success rate of 14 .9% out of bounds " ] ) )
118118 }
119119 do {
120- let okCount = 401
120+ let okCount = 451
121121 let failedCount = 1000 - okCount
122122 let okBuilds = ( 0 ..< okCount) . map { _ in Alerting . BuildInfo. mock ( status: . ok) }
123123 let failedBuilds = ( 0 ..< failedCount) . map { _ in Alerting . BuildInfo. mock ( status: . failed) }
124124 let all = okBuilds + failedBuilds
125- #expect( all. validateSuccessRateInRange ( ) == . failed( reasons: [ " Global success rate of 40 .1% out of bounds " ] ) )
125+ #expect( all. validateSuccessRateInRange ( ) == . failed( reasons: [ " Global success rate of 45 .1% out of bounds " ] ) )
126126 }
127127 }
128128
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ services:
2020
2121 grafana :
2222 # https://github.com/grafana/grafana/releases
23- image : grafana/grafana:11.6 .2
23+ image : grafana/grafana:12.0 .2
2424 environment :
2525 GF_SECURITY_ADMIN_PASSWORD : ${GF_SECURITY_ADMIN_PASSWORD}
2626 GF_USERS_ALLOW_SIGN_UP : ' false'
You can’t perform that action at this time.
0 commit comments