@@ -266,10 +266,10 @@ extension AllTests.BuildTriggerTests {
266
266
" \( v) could not be converted to a SPIManifest Swift version " )
267
267
}
268
268
// Check the values specifically (which we can't easily do in the loop above)
269
- #expect( BuildPair ( . iOS, . v5_9) . manifestSwiftVersion == . v5_9)
270
269
#expect( BuildPair ( . iOS, . v5_10) . manifestSwiftVersion == . v5_10)
271
270
#expect( BuildPair ( . iOS, . v6_0) . manifestSwiftVersion == . v6_0)
272
271
#expect( BuildPair ( . iOS, . v6_1) . manifestSwiftVersion == . v6_1)
272
+ #expect( BuildPair ( . iOS, . v6_2) . manifestSwiftVersion == . v6_2)
273
273
}
274
274
275
275
@Test func SPIManifest_docPairs( ) throws {
@@ -289,9 +289,9 @@ extension AllTests.BuildTriggerTests {
289
289
configs:
290
290
- documentation_targets: [t0]
291
291
platform: ios
292
- swift_version: 5.9
292
+ swift_version: 5.10
293
293
""" )
294
- #expect( manifest. docPairs == [ . init( . iOS, . v5_9 ) ] )
294
+ #expect( manifest. docPairs == [ . init( . iOS, . v5_10 ) ] )
295
295
}
296
296
do {
297
297
let manifest = try SPIManifest . Manifest ( yml: """
@@ -301,12 +301,12 @@ extension AllTests.BuildTriggerTests {
301
301
configs:
302
302
- documentation_targets: [t0]
303
303
platform: ios
304
- swift_version: 5.9
304
+ swift_version: 5.10
305
305
- documentation_targets: [t0]
306
306
platform: macos-spm
307
- swift_version: 5.10
307
+ swift_version: 6.0
308
308
""" )
309
- #expect( manifest. docPairs == [ . init( . iOS, . v5_9 ) , . init( . macosSpm, . v5_10 ) ] )
309
+ #expect( manifest. docPairs == [ . init( . iOS, . v5_10 ) , . init( . macosSpm, . v6_0 ) ] )
310
310
}
311
311
}
312
312
@@ -389,7 +389,7 @@ extension AllTests.BuildTriggerTests {
389
389
#expect( queries. count == 1 )
390
390
#expect( queries. value. map { $0. variables [ " VERSION_ID " ] } == [ versionId. uuidString] )
391
391
#expect( queries. value. map { $0. variables [ " BUILD_PLATFORM " ] } == [ " ios " ] )
392
- #expect( queries. value. map { $0. variables [ " SWIFT_VERSION " ] } == [ " 5.9 " ] )
392
+ #expect( queries. value. map { $0. variables [ " SWIFT_VERSION " ] } == [ " 5.10 " ] )
393
393
394
394
// ensure the Build stubs is created to prevent re-selection
395
395
let v = try await Version . find ( versionId, on: app. db)
@@ -436,30 +436,30 @@ extension AllTests.BuildTriggerTests {
436
436
437
437
// validate
438
438
// ensure Gitlab requests go out
439
- #expect( queries. count == 30 )
440
- #expect( queries. value. map { $0. variables [ " VERSION_ID " ] } == Array ( repeating: versionId. uuidString, count: 30 ) )
439
+ #expect( queries. count == 32 )
440
+ #expect( queries. value. map { $0. variables [ " VERSION_ID " ] } == Array ( repeating: versionId. uuidString, count: 32 ) )
441
441
let buildPlatforms = queries. value. compactMap { $0. variables [ " BUILD_PLATFORM " ] }
442
442
#expect( Dictionary ( grouping: buildPlatforms, by: { $0 } )
443
- . mapValues ( \. count) == [ " android " : 1 ,
443
+ . mapValues ( \. count) == [ " android " : 2 ,
444
444
" ios " : 4 ,
445
445
" macos-spm " : 4 ,
446
446
" macos-xcodebuild " : 4 ,
447
447
" linux " : 4 ,
448
- " wasm " : 1 ,
448
+ " wasm " : 2 ,
449
449
" watchos " : 4 ,
450
450
" visionos " : 4 ,
451
451
" tvos " : 4 ] )
452
452
let swiftVersions = queries. value. compactMap { $0. variables [ " SWIFT_VERSION " ] }
453
453
#expect( Dictionary ( grouping: swiftVersions, by: { $0 } )
454
454
. mapValues ( \. count) == [ SwiftVersion . v1. description ( droppingZeroes: . patch) : 7 ,
455
455
SwiftVersion . v2. description ( droppingZeroes: . patch) : 7 ,
456
- SwiftVersion . v3. description ( droppingZeroes: . patch) : 7 ,
456
+ SwiftVersion . v3. description ( droppingZeroes: . patch) : 9 ,
457
457
SwiftVersion . v4. description ( droppingZeroes: . patch) : 9 ] )
458
458
459
459
// ensure the Build stubs are created to prevent re-selection
460
460
let v = try await Version . find ( versionId, on: app. db)
461
461
try await v? . $builds. load ( on: app. db)
462
- #expect( v? . builds. count == 30 )
462
+ #expect( v? . builds. count == 32 )
463
463
464
464
// ensure re-selection is empty
465
465
let candidates = try await fetchBuildCandidates ( app. db)
@@ -597,11 +597,11 @@ extension AllTests.BuildTriggerTests {
597
597
try await triggerBuilds ( on: app. db, mode: . packageId( pkgId, force: false ) )
598
598
599
599
// validate
600
- #expect( triggerCount. value == 30 )
600
+ #expect( triggerCount. value == 32 )
601
601
// ensure builds are now in progress
602
602
let v = try await Version . find ( versionId, on: app. db)
603
603
try await v? . $builds. load ( on: app. db)
604
- #expect( v? . builds. count == 30 )
604
+ #expect( v? . builds. count == 32 )
605
605
}
606
606
}
607
607
@@ -622,11 +622,11 @@ extension AllTests.BuildTriggerTests {
622
622
try await triggerBuilds ( on: app. db, mode: . packageId( pkgId, force: true ) )
623
623
624
624
// validate
625
- #expect( triggerCount. value == 30 )
625
+ #expect( triggerCount. value == 32 )
626
626
// ensure builds are now in progress
627
627
let v = try await Version . find ( versionId, on: app. db)
628
628
try await v? . $builds. load ( on: app. db)
629
- #expect( v? . builds. count == 30 )
629
+ #expect( v? . builds. count == 32 )
630
630
}
631
631
}
632
632
}
@@ -671,7 +671,7 @@ extension AllTests.BuildTriggerTests {
671
671
try await triggerBuilds ( on: app. db, mode: . limit( 4 ) )
672
672
673
673
// validate - only the first batch must be allowed to trigger
674
- #expect( triggerCount. value == 30 )
674
+ #expect( triggerCount. value == 32 )
675
675
}
676
676
}
677
677
}
@@ -883,7 +883,7 @@ extension AllTests.BuildTriggerTests {
883
883
try await triggerBuilds ( on: app. db, mode: . packageId( pkgId, force: false ) )
884
884
885
885
// validate
886
- #expect( triggerCount. value == 30 )
886
+ #expect( triggerCount. value == 32 )
887
887
}
888
888
}
889
889
}
@@ -945,7 +945,7 @@ extension AllTests.BuildTriggerTests {
945
945
try await triggerBuilds ( on: app. db, mode: . packageId( pkgId, force: false ) )
946
946
947
947
// validate
948
- #expect( triggerCount. value == 30 )
948
+ #expect( triggerCount. value == 32 )
949
949
}
950
950
}
951
951
}
@@ -986,7 +986,7 @@ extension AllTests.BuildTriggerTests {
986
986
try await triggerBuilds ( on: app. db, mode: . packageId( . id0, force: false ) )
987
987
988
988
// validate
989
- #expect( triggerCount. value == 30 )
989
+ #expect( triggerCount. value == 32 )
990
990
}
991
991
}
992
992
}
@@ -1230,7 +1230,7 @@ extension AllTests.BuildTriggerTests {
1230
1230
1231
1231
@Test func BuildPair_all( ) throws {
1232
1232
// Sanity checks for critical counts used in canadidate selection
1233
- #expect( BuildPair . all. count == 30 )
1233
+ #expect( BuildPair . all. count == 32 )
1234
1234
#expect( BuildPair . all == [
1235
1235
. init( . iOS, . v1) ,
1236
1236
. init( . iOS, . v2) ,
@@ -1260,10 +1260,12 @@ extension AllTests.BuildTriggerTests {
1260
1260
. init( . linux, . v2) ,
1261
1261
. init( . linux, . v3) ,
1262
1262
. init( . linux, . v4) ,
1263
+ . init( . wasm, . v3) ,
1263
1264
. init( . wasm, . v4) ,
1265
+ . init( . android, . v3) ,
1264
1266
. init( . android, . v4) ,
1265
1267
] )
1266
- #expect( BuildPair . allExceptLatestSwiftVersion. count == 21 )
1268
+ #expect( BuildPair . allExceptLatestSwiftVersion. count == 23 )
1267
1269
}
1268
1270
1269
1271
@Test func BuildPair_Equatable( ) throws {
@@ -1308,7 +1310,7 @@ extension AllTests.BuildTriggerTests {
1308
1310
let res = try await findMissingBuilds ( app. db, packageId: pkgId)
1309
1311
#expect( res. count == 1 )
1310
1312
let triggerInfo = try #require( res. first)
1311
- #expect( triggerInfo. buildPairs. count == 29 )
1313
+ #expect( triggerInfo. buildPairs. count == 31 )
1312
1314
#expect( !triggerInfo. buildPairs. contains ( . init( . iOS, . v1) ) )
1313
1315
}
1314
1316
}
0 commit comments