@@ -266,10 +266,10 @@ extension AllTests.BuildTriggerTests {
266266 " \( v) could not be converted to a SPIManifest Swift version " )
267267 }
268268 // Check the values specifically (which we can't easily do in the loop above)
269- #expect( BuildPair ( . iOS, . v5_9) . manifestSwiftVersion == . v5_9)
270269 #expect( BuildPair ( . iOS, . v5_10) . manifestSwiftVersion == . v5_10)
271270 #expect( BuildPair ( . iOS, . v6_0) . manifestSwiftVersion == . v6_0)
272271 #expect( BuildPair ( . iOS, . v6_1) . manifestSwiftVersion == . v6_1)
272+ #expect( BuildPair ( . iOS, . v6_2) . manifestSwiftVersion == . v6_2)
273273 }
274274
275275 @Test func SPIManifest_docPairs( ) throws {
@@ -289,9 +289,9 @@ extension AllTests.BuildTriggerTests {
289289 configs:
290290 - documentation_targets: [t0]
291291 platform: ios
292- swift_version: 5.9
292+ swift_version: 5.10
293293 """ )
294- #expect( manifest. docPairs == [ . init( . iOS, . v5_9 ) ] )
294+ #expect( manifest. docPairs == [ . init( . iOS, . v5_10 ) ] )
295295 }
296296 do {
297297 let manifest = try SPIManifest . Manifest ( yml: """
@@ -301,12 +301,12 @@ extension AllTests.BuildTriggerTests {
301301 configs:
302302 - documentation_targets: [t0]
303303 platform: ios
304- swift_version: 5.9
304+ swift_version: 5.10
305305 - documentation_targets: [t0]
306306 platform: macos-spm
307- swift_version: 5.10
307+ swift_version: 6.0
308308 """ )
309- #expect( manifest. docPairs == [ . init( . iOS, . v5_9 ) , . init( . macosSpm, . v5_10 ) ] )
309+ #expect( manifest. docPairs == [ . init( . iOS, . v5_10 ) , . init( . macosSpm, . v6_0 ) ] )
310310 }
311311 }
312312
@@ -389,7 +389,7 @@ extension AllTests.BuildTriggerTests {
389389 #expect( queries. count == 1 )
390390 #expect( queries. value. map { $0. variables [ " VERSION_ID " ] } == [ versionId. uuidString] )
391391 #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 " ] )
393393
394394 // ensure the Build stubs is created to prevent re-selection
395395 let v = try await Version . find ( versionId, on: app. db)
@@ -436,30 +436,30 @@ extension AllTests.BuildTriggerTests {
436436
437437 // validate
438438 // 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 ) )
441441 let buildPlatforms = queries. value. compactMap { $0. variables [ " BUILD_PLATFORM " ] }
442442 #expect( Dictionary ( grouping: buildPlatforms, by: { $0 } )
443- . mapValues ( \. count) == [ " android " : 1 ,
443+ . mapValues ( \. count) == [ " android " : 2 ,
444444 " ios " : 4 ,
445445 " macos-spm " : 4 ,
446446 " macos-xcodebuild " : 4 ,
447447 " linux " : 4 ,
448- " wasm " : 1 ,
448+ " wasm " : 2 ,
449449 " watchos " : 4 ,
450450 " visionos " : 4 ,
451451 " tvos " : 4 ] )
452452 let swiftVersions = queries. value. compactMap { $0. variables [ " SWIFT_VERSION " ] }
453453 #expect( Dictionary ( grouping: swiftVersions, by: { $0 } )
454454 . mapValues ( \. count) == [ SwiftVersion . v1. description ( droppingZeroes: . patch) : 7 ,
455455 SwiftVersion . v2. description ( droppingZeroes: . patch) : 7 ,
456- SwiftVersion . v3. description ( droppingZeroes: . patch) : 7 ,
456+ SwiftVersion . v3. description ( droppingZeroes: . patch) : 9 ,
457457 SwiftVersion . v4. description ( droppingZeroes: . patch) : 9 ] )
458458
459459 // ensure the Build stubs are created to prevent re-selection
460460 let v = try await Version . find ( versionId, on: app. db)
461461 try await v? . $builds. load ( on: app. db)
462- #expect( v? . builds. count == 30 )
462+ #expect( v? . builds. count == 32 )
463463
464464 // ensure re-selection is empty
465465 let candidates = try await fetchBuildCandidates ( app. db)
@@ -597,11 +597,11 @@ extension AllTests.BuildTriggerTests {
597597 try await triggerBuilds ( on: app. db, mode: . packageId( pkgId, force: false ) )
598598
599599 // validate
600- #expect( triggerCount. value == 30 )
600+ #expect( triggerCount. value == 32 )
601601 // ensure builds are now in progress
602602 let v = try await Version . find ( versionId, on: app. db)
603603 try await v? . $builds. load ( on: app. db)
604- #expect( v? . builds. count == 30 )
604+ #expect( v? . builds. count == 32 )
605605 }
606606 }
607607
@@ -622,11 +622,11 @@ extension AllTests.BuildTriggerTests {
622622 try await triggerBuilds ( on: app. db, mode: . packageId( pkgId, force: true ) )
623623
624624 // validate
625- #expect( triggerCount. value == 30 )
625+ #expect( triggerCount. value == 32 )
626626 // ensure builds are now in progress
627627 let v = try await Version . find ( versionId, on: app. db)
628628 try await v? . $builds. load ( on: app. db)
629- #expect( v? . builds. count == 30 )
629+ #expect( v? . builds. count == 32 )
630630 }
631631 }
632632 }
@@ -671,7 +671,7 @@ extension AllTests.BuildTriggerTests {
671671 try await triggerBuilds ( on: app. db, mode: . limit( 4 ) )
672672
673673 // validate - only the first batch must be allowed to trigger
674- #expect( triggerCount. value == 30 )
674+ #expect( triggerCount. value == 32 )
675675 }
676676 }
677677 }
@@ -883,7 +883,7 @@ extension AllTests.BuildTriggerTests {
883883 try await triggerBuilds ( on: app. db, mode: . packageId( pkgId, force: false ) )
884884
885885 // validate
886- #expect( triggerCount. value == 30 )
886+ #expect( triggerCount. value == 32 )
887887 }
888888 }
889889 }
@@ -945,7 +945,7 @@ extension AllTests.BuildTriggerTests {
945945 try await triggerBuilds ( on: app. db, mode: . packageId( pkgId, force: false ) )
946946
947947 // validate
948- #expect( triggerCount. value == 30 )
948+ #expect( triggerCount. value == 32 )
949949 }
950950 }
951951 }
@@ -986,7 +986,7 @@ extension AllTests.BuildTriggerTests {
986986 try await triggerBuilds ( on: app. db, mode: . packageId( . id0, force: false ) )
987987
988988 // validate
989- #expect( triggerCount. value == 30 )
989+ #expect( triggerCount. value == 32 )
990990 }
991991 }
992992 }
@@ -1230,7 +1230,7 @@ extension AllTests.BuildTriggerTests {
12301230
12311231 @Test func BuildPair_all( ) throws {
12321232 // Sanity checks for critical counts used in canadidate selection
1233- #expect( BuildPair . all. count == 30 )
1233+ #expect( BuildPair . all. count == 32 )
12341234 #expect( BuildPair . all == [
12351235 . init( . iOS, . v1) ,
12361236 . init( . iOS, . v2) ,
@@ -1260,10 +1260,12 @@ extension AllTests.BuildTriggerTests {
12601260 . init( . linux, . v2) ,
12611261 . init( . linux, . v3) ,
12621262 . init( . linux, . v4) ,
1263+ . init( . wasm, . v3) ,
12631264 . init( . wasm, . v4) ,
1265+ . init( . android, . v3) ,
12641266 . init( . android, . v4) ,
12651267 ] )
1266- #expect( BuildPair . allExceptLatestSwiftVersion. count == 21 )
1268+ #expect( BuildPair . allExceptLatestSwiftVersion. count == 23 )
12671269 }
12681270
12691271 @Test func BuildPair_Equatable( ) throws {
@@ -1308,7 +1310,7 @@ extension AllTests.BuildTriggerTests {
13081310 let res = try await findMissingBuilds ( app. db, packageId: pkgId)
13091311 #expect( res. count == 1 )
13101312 let triggerInfo = try #require( res. first)
1311- #expect( triggerInfo. buildPairs. count == 29 )
1313+ #expect( triggerInfo. buildPairs. count == 31 )
13121314 #expect( !triggerInfo. buildPairs. contains ( . init( . iOS, . v1) ) )
13131315 }
13141316 }
0 commit comments