The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TestCommons, reference 0.4.2 (342059), with Swift 6.4 for Wasm on 24 Oct 2026 03:36:28 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/maniramezan/SwiftTestCommons.git
Reference: 0.4.2
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/maniramezan/SwiftTestCommons
 * tag               0.4.2      -> FETCH_HEAD
HEAD is now at 3420590 Merge pull request #13 from maniramezan/fix/dependabot-automation
Cloned https://github.com/maniramezan/SwiftTestCommons.git
Revision (git rev-parse @):
3420590635e3c3bf869116679177051406d3b3a8
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/maniramezan/SwiftTestCommons.git at 0.4.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/maniramezan/SwiftTestCommons.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:0ad19d16955074ecc72bbe910025b19c4e4614184c1a48afc82660d4c7620121
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Provisioning 3 / 7]
[Pre-planning 1 / 182]
[Planning deferred tasks]
[30 / 54]
[36 / 61] TestCommons
[40 / 69] TestCommons
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/TestCommons/RouteTable.swift:9:36: error: cannot find type 'URLRequest' in scope
 7 | /// Slot bookkeeping for stubbed sessions, kept separate from the global pool for testing.
 8 | struct RouteTable {
 9 |     typealias Handler = @Sendable (URLRequest) throws -> StubResponse
   |                                    `- error: cannot find type 'URLRequest' in scope
10 |     private struct Route {
11 |         let owner: UUID
/host/spi-builder-workspace/Sources/TestCommons/RouteTable.swift:19:51: error: '@escaping' only applies to function types
17 |     init(capacity: Int) { routes = Array(repeating: nil, count: capacity) }
18 |
19 |     mutating func acquire(owner: UUID, _ handler: @escaping Handler) -> Int? {
   |                                                   `- error: '@escaping' only applies to function types
20 |         guard let slot = routes.firstIndex(where: { $0 == nil }) else {
21 |             return nil
/host/spi-builder-workspace/Sources/TestCommons/StubURLProtocol.swift:34:49: error: '@escaping' only applies to function types
32 |     class var slot: Int { -1 }
33 |
34 |     static func acquire(owner: UUID, _ handler: @escaping Handler) -> Int? {
   |                                                 `- error: '@escaping' only applies to function types
35 |         routes.withLock { $0.acquire(owner: owner, handler) }
36 |     }
/host/spi-builder-workspace/Sources/TestCommons/StubURLProtocol.swift:46:47: error: cannot find type 'URLRequest' in scope
44 |     }
45 |
46 |     override class func canInit(with request: URLRequest) -> Bool { true }
   |                                               `- error: cannot find type 'URLRequest' in scope
47 |
48 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
/host/spi-builder-workspace/Sources/TestCommons/StubURLProtocol.swift:48:70: error: cannot find type 'URLRequest' in scope
46 |     override class func canInit(with request: URLRequest) -> Bool { true }
47 |
48 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
   |                                                                      `- error: cannot find type 'URLRequest' in scope
49 |
50 |     override func startLoading() {
/host/spi-builder-workspace/Sources/TestCommons/StubURLProtocol.swift:48:55: error: cannot find type 'URLRequest' in scope
46 |     override class func canInit(with request: URLRequest) -> Bool { true }
47 |
48 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
   |                                                       `- error: cannot find type 'URLRequest' in scope
49 |
50 |     override func startLoading() {
/host/spi-builder-workspace/Sources/TestCommons/StubURLProtocol.swift:50:19: error: method does not override any method from its superclass
48 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
49 |
50 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
51 |         guard let handler = Self.handler(for: type(of: self).slot) else {
52 |             client?.urlProtocol(self, didFailWithError: URLError(.unsupportedURL))
/host/spi-builder-workspace/Sources/TestCommons/StubURLProtocol.swift:75:19: error: method does not override any method from its superclass
73 |     }
74 |
75 |     override func stopLoading() {}
   |                   `- error: method does not override any method from its superclass
76 |
77 |     static func recordable(_ request: URLRequest) -> URLRequest {
/host/spi-builder-workspace/Sources/TestCommons/StubURLProtocol.swift:77:54: error: cannot find type 'URLRequest' in scope
75 |     override func stopLoading() {}
76 |
77 |     static func recordable(_ request: URLRequest) -> URLRequest {
   |                                                      `- error: cannot find type 'URLRequest' in scope
78 |         var copy = request
79 |         if copy.httpBody == nil, let stream = copy.httpBodyStream {
/host/spi-builder-workspace/Sources/TestCommons/StubURLProtocol.swift:77:39: error: cannot find type 'URLRequest' in scope
75 |     override func stopLoading() {}
76 |
77 |     static func recordable(_ request: URLRequest) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
78 |         var copy = request
79 |         if copy.httpBody == nil, let stream = copy.httpBodyStream {
/host/spi-builder-workspace/Sources/TestCommons/StubURLProtocol.swift:10:24: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | // FoundationNetworking gives custom protocols neither the session's headers nor its task,
 9 | // so each live stub owns a distinct protocol class; the class identifies the route.
10 | class StubURLProtocol: URLProtocol {
   |                        `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     typealias Handler = RouteTable.Handler
12 |     static let pool: [StubURLProtocol.Type] = [
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TestCommons/StubbedURLSession.swift:53:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |
 52 |     /// The session to inject into the code under test.
 53 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     private let owner = UUID()
 55 |     private let recorded = TestValueBox<[URLRequest]>([])
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TestCommons/StubbedURLSession.swift:55:42: error: cannot find type 'URLRequest' in scope
 53 |     public let session: URLSession
 54 |     private let owner = UUID()
 55 |     private let recorded = TestValueBox<[URLRequest]>([])
    |                                          `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |     private final class SessionDelegate: NSObject, URLSessionDelegate {
/host/spi-builder-workspace/Sources/TestCommons/StubbedURLSession.swift:57:52: error: cannot find type 'URLSessionDelegate' in scope
 55 |     private let recorded = TestValueBox<[URLRequest]>([])
 56 |
 57 |     private final class SessionDelegate: NSObject, URLSessionDelegate {
    |                                                    `- error: cannot find type 'URLSessionDelegate' in scope
 58 |         private let slot: Int
 59 |         private let owner: UUID
/host/spi-builder-workspace/Sources/TestCommons/StubbedURLSession.swift:66:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         }
 65 |
 66 |         func urlSession(_ session: URLSession, didBecomeInvalidWithError error: (any Error)?) {
    |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |             StubURLProtocol.release(slot, owner: owner)
 68 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TestCommons/StubbedURLSession.swift:81:39: error: cannot find type 'URLRequest' in scope
 79 |     public init(
 80 |         configuration: URLSessionConfiguration = .ephemeral,
 81 |         handler: @escaping @Sendable (URLRequest) throws -> StubResponse
    |                                       `- error: cannot find type 'URLRequest' in scope
 82 |     ) throws {
 83 |         let recorded = recorded
/host/spi-builder-workspace/Sources/TestCommons/StubbedURLSession.swift:80:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     /// - Throws: ``PoolExhausted`` when too many stubbed sessions are alive.
 79 |     public init(
 80 |         configuration: URLSessionConfiguration = .ephemeral,
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         handler: @escaping @Sendable (URLRequest) throws -> StubResponse
 82 |     ) throws {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TestCommons/StubbedURLSession.swift:80:51: error: value of type '_' expected to be instance of class or class-constrained type
 78 |     /// - Throws: ``PoolExhausted`` when too many stubbed sessions are alive.
 79 |     public init(
 80 |         configuration: URLSessionConfiguration = .ephemeral,
    |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 81 |         handler: @escaping @Sendable (URLRequest) throws -> StubResponse
 82 |     ) throws {
/host/spi-builder-workspace/Sources/TestCommons/StubbedURLSession.swift:80:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 78 |     /// - Throws: ``PoolExhausted`` when too many stubbed sessions are alive.
 79 |     public init(
 80 |         configuration: URLSessionConfiguration = .ephemeral,
    |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 81 |         handler: @escaping @Sendable (URLRequest) throws -> StubResponse
 82 |     ) throws {
/host/spi-builder-workspace/Sources/TestCommons/StubbedURLSession.swift:120:27: error: cannot find type 'URLRequest' in scope
118 |
119 |     /// The requests received so far in arrival order.
120 |     public var requests: [URLRequest] { recorded.get() }
    |                           `- error: cannot find type 'URLRequest' in scope
121 |
122 |     /// Cancels outstanding tasks and stops routing requests to the handler.
/host/spi-builder-workspace/Sources/TestCommons/StubbedURLSession.swift:53:16: error: stored property 'session' of 'Sendable'-conforming class 'StubbedURLSession' has non-Sendable type 'AnyObject'
 51 |
 52 |     /// The session to inject into the code under test.
 53 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming class 'StubbedURLSession' has non-Sendable type 'AnyObject'
 54 |     private let owner = UUID()
 55 |     private let recorded = TestValueBox<[URLRequest]>([])
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/TestCommons/AsyncGate.swift /host/spi-builder-workspace/Sources/TestCommons/CallRecorder.swift /host/spi-builder-workspace/Sources/TestCommons/ContainedFileURL.swift /host/spi-builder-workspace/Sources/TestCommons/FixtureDirectory.swift /host/spi-builder-workspace/Sources/TestCommons/FixtureEnvironment.swift /host/spi-builder-workspace/Sources/TestCommons/FrameGeometry.swift /host/spi-builder-workspace/Sources/TestCommons/JSONRoundTrip.swift /host/spi-builder-workspace/Sources/TestCommons/ManualClock.swift /host/spi-builder-workspace/Sources/TestCommons/ObservationTimeout.swift /host/spi-builder-workspace/Sources/TestCommons/ObserveStream.swift /host/spi-builder-workspace/Sources/TestCommons/ReadingDirection.swift /host/spi-builder-workspace/Sources/TestCommons/ReadingOrder.swift /host/spi-builder-workspace/Sources/TestCommons/RouteTable.swift /host/spi-builder-workspace/Sources/TestCommons/ScriptedResponder.swift /host/spi-builder-workspace/Sources/TestCommons/ScriptedValues.swift /host/spi-builder-workspace/Sources/TestCommons/SnapshotReferenceDirectory.swift /host/spi-builder-workspace/Sources/TestCommons/StreamObservation.swift /host/spi-builder-workspace/Sources/TestCommons/StubResponse.swift /host/spi-builder-workspace/Sources/TestCommons/StubURLProtocol.swift /host/spi-builder-workspace/Sources/TestCommons/StubURLProtocolPool.swift /host/spi-builder-workspace/Sources/TestCommons/StubbedURLSession.swift /host/spi-builder-workspace/Sources/TestCommons/TemporaryDirectory.swift /host/spi-builder-workspace/Sources/TestCommons/TemporaryUserDefaults.swift /host/spi-builder-workspace/Sources/TestCommons/TestError.swift /host/spi-builder-workspace/Sources/TestCommons/TestValueBox.swift /host/spi-builder-workspace/Sources/TestCommons/WaitUntil.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TestCommons.build/Debug-webassembly-wasm32/TestCommons-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TestCommons.build/Debug-webassembly-wasm32/TestCommons-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TestCommons.build/Debug-webassembly-wasm32/TestCommons-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name TestCommons -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/TestCommons.build/Debug-webassembly-wasm32/TestCommons-t.build/Objects-normal/wasm32/TestCommons_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TestCommons.build/Debug-webassembly-wasm32/TestCommons-t.build/Objects-normal/wasm32/Modules/TestCommons.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TestCommons.build/Debug-webassembly-wasm32/TestCommons-t.build/Objects-normal/wasm32/Modules/TestCommons.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TestCommons.build/Debug-webassembly-wasm32/TestCommons-t.build/Objects-normal/wasm32/TestCommons-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TestCommons.build/Debug-webassembly-wasm32/TestCommons-t.build/Objects-normal/wasm32/TestCommons-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TestCommons.build/Debug-webassembly-wasm32/TestCommons-t.build/Objects-normal/wasm32/TestCommons-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/TestCommons.build/Debug-webassembly-wasm32/TestCommons-t.build/Objects-normal/wasm32/Modules/TestCommons.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm