Build Information
Successful build of GroqSwift, reference main (3e3e24
), with Swift 6.1 for Linux on 30 Apr 2025 17:19:08 UTC.
Swift 6 data race errors: 0
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
Build Log
========================================
RunAll
========================================
Builder version: 4.61.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/engali94/groq_swift.git
Reference: main
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/engali94/groq_swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3e3e24a Refactor Dockerfile and update Linux URLSession extension
Cloned https://github.com/engali94/groq_swift.git
Revision (git rev-parse @):
3e3e24aadc0a89834f6511208517948d568966a5
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/engali94/groq_swift.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/engali94/groq_swift.git
https://github.com/engali94/groq_swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
},
{
"identity" : "swiftlintplugin",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.2",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/lukepistrol/SwiftLintPlugin"
}
],
"manifest_display_name" : "GroqSwift",
"name" : "GroqSwift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "watchos",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "16.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "GroqSwift",
"targets" : [
"GroqSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GroqSwiftTests",
"module_type" : "SwiftTarget",
"name" : "GroqSwiftTests",
"path" : "Tests/GroqSwiftTests",
"sources" : [
"ChatCompletionTests.swift",
"ModelsTests.swift",
"StreamingTests.swift",
"TestUtils.swift"
],
"target_dependencies" : [
"GroqSwift"
],
"type" : "test"
},
{
"c99name" : "GroqSwift",
"module_type" : "SwiftTarget",
"name" : "GroqSwift",
"path" : "Sources/GroqSwift",
"product_memberships" : [
"GroqSwift"
],
"sources" : [
"Errors.swift",
"GroqClient.swift",
"Message.swift",
"Models.swift",
"URLSession+Linux.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/lukepistrol/SwiftLintPlugin
Fetching https://github.com/apple/swift-docc-plugin
[1/358] Fetching swiftlintplugin
[359/2407] Fetching swiftlintplugin, swift-docc-plugin
Fetched https://github.com/lukepistrol/SwiftLintPlugin from cache (0.36s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.37s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (2.19s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3376] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.37s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.88s)
Computing version for https://github.com/lukepistrol/SwiftLintPlugin
Computed https://github.com/lukepistrol/SwiftLintPlugin at 0.59.1 (0.47s)
Creating working copy for https://github.com/lukepistrol/SwiftLintPlugin
Working copy of https://github.com/lukepistrol/SwiftLintPlugin resolved at 0.59.1
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip
[2747/41085097] Downloading https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip (3.21s)
[1/1] Compiling plugin SwiftLintFix
[2/2] Compiling plugin SwiftLint
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
Building for debugging...
[4/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/12] Compiling GroqSwift Message.swift
[8/12] Compiling GroqSwift GroqClient.swift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:169:38: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
167 |
168 | for try await response in stream {
169 | continuation.yield(response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
170 | }
171 |
[9/12] Compiling GroqSwift Models.swift
[10/12] Compiling GroqSwift URLSession+Linux.swift
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:38:33: warning: capture of 'validate' with non-sendable type '(URLResponse) throws -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
36 | urlResponseCallback: { response in
37 | do {
38 | try validate(response)
| |- warning: capture of 'validate' with non-sendable type '(URLResponse) throws -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
39 | } catch {
40 | continuation.finish(throwing: error)
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:44:43: warning: capture of 'extractNextJSON' with non-sendable type '(inout Data) -> Data?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | },
43 | dataCallback: { buffer in
44 | while let chunk = extractNextJSON(&buffer) {
| |- warning: capture of 'extractNextJSON' with non-sendable type '(inout Data) -> Data?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 | do {
46 | let decodedObject = try decoder.decode(T.self, from: chunk)
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:32:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 | func stream<T: Decodable>(request: URLRequest, with responseType: T.Type, decoder: JSONDecoder, validate: @escaping (URLResponse) throws -> Void, extractNextJSON: @escaping (inout Data) -> Data?) -> AsyncThrowingStream<T, Error> {
31 | return AsyncThrowingStream { continuation in
32 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
33 | let task = self.dataTask(with: request)
34 |
:
42 | },
43 | dataCallback: { buffer in
44 | while let chunk = extractNextJSON(&buffer) {
| `- note: closure captures 'extractNextJSON' which is accessible to code in the current task
45 | do {
46 | let decodedObject = try decoder.decode(T.self, from: chunk)
[11/12] Compiling GroqSwift Errors.swift
[12/12] Emitting module GroqSwift
Build complete! (25.18s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
},
{
"identity" : "swiftlintplugin",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.2",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/lukepistrol/SwiftLintPlugin"
}
],
"manifest_display_name" : "GroqSwift",
"name" : "GroqSwift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "watchos",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "16.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "GroqSwift",
"targets" : [
"GroqSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GroqSwiftTests",
"module_type" : "SwiftTarget",
"name" : "GroqSwiftTests",
"path" : "Tests/GroqSwiftTests",
"sources" : [
"ChatCompletionTests.swift",
"ModelsTests.swift",
"StreamingTests.swift",
"TestUtils.swift"
],
"target_dependencies" : [
"GroqSwift"
],
"type" : "test"
},
{
"c99name" : "GroqSwift",
"module_type" : "SwiftTarget",
"name" : "GroqSwift",
"path" : "Sources/GroqSwift",
"product_memberships" : [
"GroqSwift"
],
"sources" : [
"Errors.swift",
"GroqClient.swift",
"Message.swift",
"Models.swift",
"URLSession+Linux.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.