Build Information
Successful build of Resyncer, reference master (77343d
), with Swift 6.1 for Linux on 1 May 2025 06:35:10 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/danielepantaleone/Resyncer.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/danielepantaleone/Resyncer
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 77343dc Fix running unit tests on GitHub actions
Cloned https://github.com/danielepantaleone/Resyncer.git
Revision (git rev-parse @):
77343dc8862f4cb252f9daf6989e4762986fab6e
SUCCESS checkout https://github.com/danielepantaleone/Resyncer.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/danielepantaleone/Resyncer.git
https://github.com/danielepantaleone/Resyncer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Resyncer",
"name" : "Resyncer",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "Resyncer",
"targets" : [
"Resyncer"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ResyncerTests",
"module_type" : "SwiftTarget",
"name" : "ResyncerTests",
"path" : "Tests/ResyncerTests",
"sources" : [
"ResyncerTests.swift"
],
"target_dependencies" : [
"Resyncer"
],
"type" : "test"
},
{
"c99name" : "Resyncer",
"module_type" : "SwiftTarget",
"name" : "Resyncer",
"path" : "Sources/Resyncer",
"product_memberships" : [
"Resyncer"
],
"sources" : [
"Resyncer.swift",
"ResyncerBox.swift",
"ResyncerError.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling Resyncer ResyncerBox.swift
[4/6] Compiling Resyncer ResyncerError.swift
[5/6] Compiling Resyncer Resyncer.swift
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:107:13: warning: capture of 'work' with non-sendable type '(@escaping (Result<T, any Error>) -> Void) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 | var result: Result<T, Error>?
106 | let operation: BlockOperation = .init {
107 | work { r in
| |- warning: capture of 'work' with non-sendable type '(@escaping (Result<T, any Error>) -> Void) -> 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'
108 | condition.withLock {
109 | completed = true
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:110:21: warning: capture of 'result' with non-sendable type 'Result<T, any Error>?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
95 | /// - Returns: The result of type `T` from the asynchronous operation if it completes successfully.
96 | /// - Important: This method must not be called from the main thread, as it utilizes a condition variable to block the current thread's execution while waiting for the asynchronous operation to finish.
97 | public func synchronize<T>(timeout: TimeInterval = 10.0, work: @escaping (@escaping (Result<T, Error>) -> Void) -> Void) throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
98 |
99 | guard !raiseErrorIfOnMainThread || !Thread.isMainThread else {
:
108 | condition.withLock {
109 | completed = true
110 | result = r
| `- warning: capture of 'result' with non-sendable type 'Result<T, any Error>?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
111 | condition.signal()
112 | }
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:110:21: warning: capture of 'result' with non-sendable type 'Result<T, any Error>?' in an isolated closure; this is an error in the Swift 6 language mode
95 | /// - Returns: The result of type `T` from the asynchronous operation if it completes successfully.
96 | /// - Important: This method must not be called from the main thread, as it utilizes a condition variable to block the current thread's execution while waiting for the asynchronous operation to finish.
97 | public func synchronize<T>(timeout: TimeInterval = 10.0, work: @escaping (@escaping (Result<T, Error>) -> Void) -> Void) throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
98 |
99 | guard !raiseErrorIfOnMainThread || !Thread.isMainThread else {
:
108 | condition.withLock {
109 | completed = true
110 | result = r
| `- warning: capture of 'result' with non-sendable type 'Result<T, any Error>?' in an isolated closure; this is an error in the Swift 6 language mode
111 | condition.signal()
112 | }
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:110:21: warning: capture of 'result' with non-sendable type 'Result<T, any Error>?' in an isolated closure; this is an error in the Swift 6 language mode
95 | /// - Returns: The result of type `T` from the asynchronous operation if it completes successfully.
96 | /// - Important: This method must not be called from the main thread, as it utilizes a condition variable to block the current thread's execution while waiting for the asynchronous operation to finish.
97 | public func synchronize<T>(timeout: TimeInterval = 10.0, work: @escaping (@escaping (Result<T, Error>) -> Void) -> Void) throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
98 |
99 | guard !raiseErrorIfOnMainThread || !Thread.isMainThread else {
:
108 | condition.withLock {
109 | completed = true
110 | result = r
| `- warning: capture of 'result' with non-sendable type 'Result<T, any Error>?' in an isolated closure; this is an error in the Swift 6 language mode
111 | condition.signal()
112 | }
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:109:21: warning: mutation of captured var 'completed' in concurrently-executing code; this is an error in the Swift 6 language mode
107 | work { r in
108 | condition.withLock {
109 | completed = true
| `- warning: mutation of captured var 'completed' in concurrently-executing code; this is an error in the Swift 6 language mode
110 | result = r
111 | condition.signal()
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:110:21: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
108 | condition.withLock {
109 | completed = true
110 | result = r
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
111 | condition.signal()
112 | }
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:172:14: 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
170 | let box: ResyncerBox<T> = .init()
171 |
172 | 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
173 | let r: Result<T, Error>
174 | do {
175 | r = .success(try await work())
| `- note: closure captures non-Sendable 'work'
176 | } catch {
177 | r = .failure(error)
178 | }
179 | condition.withLock {
180 | box.completed = true
| `- note: closure captures non-Sendable 'box'
181 | box.result = r
182 | condition.signal()
[6/6] Emitting module Resyncer
Build complete! (5.48s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Resyncer",
"name" : "Resyncer",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "Resyncer",
"targets" : [
"Resyncer"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ResyncerTests",
"module_type" : "SwiftTarget",
"name" : "ResyncerTests",
"path" : "Tests/ResyncerTests",
"sources" : [
"ResyncerTests.swift"
],
"target_dependencies" : [
"Resyncer"
],
"type" : "test"
},
{
"c99name" : "Resyncer",
"module_type" : "SwiftTarget",
"name" : "Resyncer",
"path" : "Sources/Resyncer",
"product_memberships" : [
"Resyncer"
],
"sources" : [
"Resyncer.swift",
"ResyncerBox.swift",
"ResyncerError.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.