Skip to content

Commit d5ac0df

Browse files
Merge pull request #4033 from SwiftPackageIndex/update-CHECK_MON_001-window
Update checkMon001TimePeriod to reflect increased amount of time it takes to visit all packages
2 parents 9fb1467 + f105251 commit d5ac0df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/App/Commands/Alerting.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import Vapor
2222
enum Alerting {
2323
static let defaultLimit = 2000
2424
static let defaultTimePeriod = 2
25-
// CHECK_MON_001 has to run on a longer time period, because it currently takes ~4h to visit every package
25+
// CHECK_MON_001 has to run on a longer time period, because it currently takes ~8h to visit every package
2626
// during analysis. With a window shorter than that, they query will always report errors.
27-
static let checkMon001TimePeriod: TimeAmount = .hours(6)
27+
static let checkMon001TimePeriod: TimeAmount = .hours(9)
2828

2929
struct Command: AsyncCommand {
3030
var help: String { "Application level alerting" }

Tests/AppTests/QueryPerformanceTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ struct QueryPerformanceTests {
180180
JOIN versions v ON v.package_id = p.id
181181
WHERE v.reference ->> 'branch' = r.default_branch
182182
""")
183-
try await assertQueryPerformance(query, expectedCost: 220_000, variation: 10000)
183+
try await assertQueryPerformance(query, expectedCost: 240_000, variation: 10000)
184184
}
185185
}
186186

0 commit comments

Comments
 (0)