Skip to content

Commit 0fccc00

Browse files
Merge pull request #3829 from SwiftPackageIndex/maintenance-updates
Maintenance updates
2 parents 15f6e4f + 728e49e commit 0fccc00

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

Package.resolved

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/App/Commands/Alerting.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

Tests/AppTests/AlertingTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

mon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)