Build Information
Failed to build SwiftTestUtils, reference master (042fbc), with Swift 6.1 for Wasm on 27 May 2025 18:45:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Appsaurus/SwiftTestUtils.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/Appsaurus/SwiftTestUtils
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 042fbc1 bump 0.1.7
Cloned https://github.com/Appsaurus/SwiftTestUtils.git
Revision (git rev-parse @):
042fbc10bfee7101961040aee677e2d4967d6951
SUCCESS checkout https://github.com/Appsaurus/SwiftTestUtils.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Appsaurus/SwiftTestUtils.git
https://github.com/Appsaurus/SwiftTestUtils.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "SwiftTestUtils",
"name" : "SwiftTestUtils",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftTestUtils",
"targets" : [
"SwiftTestUtils"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftTestUtilsTests",
"module_type" : "SwiftTarget",
"name" : "SwiftTestUtilsTests",
"path" : "SwiftTestUtilsTests/Shared",
"sources" : [
"SharedTests.swift"
],
"target_dependencies" : [
"SwiftTestUtils"
],
"type" : "test"
},
{
"c99name" : "SwiftTestUtils",
"module_type" : "SwiftTarget",
"name" : "SwiftTestUtils",
"path" : "Sources/Shared",
"product_memberships" : [
"SwiftTestUtils"
],
"sources" : [
"Assertions.swift",
"BaseTestCase.swift",
"LinuxTestable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling SwiftTestUtils LinuxTestable.swift
/host/spi-builder-workspace/Sources/Shared/LinuxTestable.swift:21:35: error: type 'Self' has no member 'defaultTestSuite'
19 | let thisClass = type(of: self)
20 | let linuxCount = tests.count
21 | let darwinCount = Int(thisClass.defaultTestSuite.testCaseCount)
| `- error: type 'Self' has no member 'defaultTestSuite'
22 | let failureMessage = "\(darwinCount - linuxCount) tests are missing from allTests in \(thisClass)."
23 | XCTAssertEqual(linuxCount, darwinCount,failureMessage)
[4/6] Compiling SwiftTestUtils BaseTestCase.swift
/host/spi-builder-workspace/Sources/Shared/BaseTestCase.swift:14:20: warning: static property 'hasSetup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |
14 | public static var hasSetup: Bool = false
| |- warning: static property 'hasSetup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hasSetup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hasSetup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public var hasSetup: Bool {
16 | get{
[5/6] Emitting module SwiftTestUtils
/host/spi-builder-workspace/Sources/Shared/BaseTestCase.swift:14:20: warning: static property 'hasSetup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |
14 | public static var hasSetup: Bool = false
| |- warning: static property 'hasSetup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hasSetup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hasSetup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public var hasSetup: Bool {
16 | get{
[6/6] Compiling SwiftTestUtils Assertions.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling SwiftTestUtils LinuxTestable.swift
/host/spi-builder-workspace/Sources/Shared/LinuxTestable.swift:21:35: error: type 'Self' has no member 'defaultTestSuite'
19 | let thisClass = type(of: self)
20 | let linuxCount = tests.count
21 | let darwinCount = Int(thisClass.defaultTestSuite.testCaseCount)
| `- error: type 'Self' has no member 'defaultTestSuite'
22 | let failureMessage = "\(darwinCount - linuxCount) tests are missing from allTests in \(thisClass)."
23 | XCTAssertEqual(linuxCount, darwinCount,failureMessage)
[3/5] Compiling SwiftTestUtils BaseTestCase.swift
[4/5] Compiling SwiftTestUtils Assertions.swift
[5/5] Emitting module SwiftTestUtils
BUILD FAILURE 6.1 wasm