Build Information
Successful build of swift-concurrency-primitives, reference main (d7c711
), with Swift 6.1 for Linux on 29 Apr 2025 15:54:08 UTC.
Swift 6 data race errors: 6
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Genaro-Chris/swift-concurrency-primitives.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/Genaro-Chris/swift-concurrency-primitives
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d7c711d V0.1.0
Cloned https://github.com/Genaro-Chris/swift-concurrency-primitives.git
Revision (git rev-parse @):
d7c711d397f144ac4e15726b8f1775cc314d42d7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Genaro-Chris/swift-concurrency-primitives.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/Genaro-Chris/swift-concurrency-primitives.git
https://github.com/Genaro-Chris/swift-concurrency-primitives.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "swift-concurrency-primitives",
"name" : "swift-concurrency-primitives",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "Primitives",
"targets" : [
"Primitives"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Primitives_Tests",
"module_type" : "SwiftTarget",
"name" : "Primitives-Tests",
"path" : "Tests/PrimitivesTests",
"sources" : [
"ChannelTests.swift",
"PrimitivesTests.swift",
"SynchronizationTests.swift",
"ThreadPoolTests.swift"
],
"target_dependencies" : [
"Primitives"
],
"type" : "test"
},
{
"c99name" : "Primitives",
"module_type" : "SwiftTarget",
"name" : "Primitives",
"path" : "Sources/Primitives",
"product_memberships" : [
"Primitives"
],
"sources" : [
"ArrayStorage.swift",
"Barrier.swift",
"BoundedChannel.swift",
"Buffers.swift",
"Channel.swift",
"Condition.swift",
"ConditionLock.swift",
"Latch.swift",
"Lock.swift",
"Locked.swift",
"Mutex.swift",
"Once.swift",
"OnceState.swift",
"OneShotChannel.swift",
"Operators.swift",
"Queue.swift",
"Semaphore.swift",
"SingleElementStorage.swift",
"Storage.swift",
"TaskChannel.swift",
"ThreadParker.swift",
"ThreadPool.swift",
"TimeDuration.swift",
"Timespec.swift",
"UnboundedChannel.swift",
"UnbufferedChannel.swift",
"WaitGroup.swift",
"WaitType.swift",
"WorkerPool.swift",
"WorkerThread.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/30] Emitting module Primitives
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public static let nanoseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nanoseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | TimeDuration(duration: .nanoseconds, value: value)
22 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static let microseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'microseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | TimeDuration(duration: .microseconds, value: value)
26 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public static let milliseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'milliseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | TimeDuration(duration: .milliseconds, value: value)
30 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | public static let seconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | TimeDuration(duration: .seconds, value: value)
34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 | }
35 |
36 | public static let minutes = { (value: Double) -> TimeDuration in
| |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'minutes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | TimeDuration(duration: .minutes, value: value)
38 | }
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// }
16 | /// ```
17 | public final class WorkerPool {
| `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
18 |
19 | let taskChannels: [TaskChannel]
:
27 | let waitType: WaitType
28 |
29 | static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Initialises an instance of the `WorkerPool` type
[4/33] Compiling Primitives ThreadParker.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public static let nanoseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nanoseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | TimeDuration(duration: .nanoseconds, value: value)
22 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static let microseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'microseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | TimeDuration(duration: .microseconds, value: value)
26 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public static let milliseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'milliseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | TimeDuration(duration: .milliseconds, value: value)
30 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | public static let seconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | TimeDuration(duration: .seconds, value: value)
34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 | }
35 |
36 | public static let minutes = { (value: Double) -> TimeDuration in
| |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'minutes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | TimeDuration(duration: .minutes, value: value)
38 | }
[5/33] Compiling Primitives ThreadPool.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public static let nanoseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nanoseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | TimeDuration(duration: .nanoseconds, value: value)
22 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static let microseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'microseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | TimeDuration(duration: .microseconds, value: value)
26 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public static let milliseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'milliseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | TimeDuration(duration: .milliseconds, value: value)
30 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | public static let seconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | TimeDuration(duration: .seconds, value: value)
34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 | }
35 |
36 | public static let minutes = { (value: Double) -> TimeDuration in
| |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'minutes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | TimeDuration(duration: .minutes, value: value)
38 | }
[6/33] Compiling Primitives TimeDuration.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public static let nanoseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nanoseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | TimeDuration(duration: .nanoseconds, value: value)
22 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static let microseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'microseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | TimeDuration(duration: .microseconds, value: value)
26 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public static let milliseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'milliseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | TimeDuration(duration: .milliseconds, value: value)
30 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | public static let seconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | TimeDuration(duration: .seconds, value: value)
34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 | }
35 |
36 | public static let minutes = { (value: Double) -> TimeDuration in
| |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'minutes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | TimeDuration(duration: .minutes, value: value)
38 | }
[7/33] Compiling Primitives Timespec.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public static let nanoseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nanoseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | TimeDuration(duration: .nanoseconds, value: value)
22 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static let microseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'microseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | TimeDuration(duration: .microseconds, value: value)
26 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public static let milliseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'milliseconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | TimeDuration(duration: .milliseconds, value: value)
30 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | public static let seconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seconds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | TimeDuration(duration: .seconds, value: value)
34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 | }
35 |
36 | public static let minutes = { (value: Double) -> TimeDuration in
| |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'minutes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | TimeDuration(duration: .minutes, value: value)
38 | }
[8/33] Compiling Primitives Channel.swift
[9/33] Compiling Primitives Condition.swift
[10/33] Compiling Primitives ConditionLock.swift
[11/33] Compiling Primitives Latch.swift
[12/33] Compiling Primitives OnceState.swift
[13/33] Compiling Primitives OneShotChannel.swift
[14/33] Compiling Primitives Operators.swift
[15/33] Compiling Primitives Queue.swift
[16/33] Compiling Primitives Lock.swift
[17/33] Compiling Primitives Locked.swift
[18/33] Compiling Primitives Mutex.swift
[19/33] Compiling Primitives Once.swift
[20/33] Compiling Primitives Semaphore.swift
[21/33] Compiling Primitives SingleElementStorage.swift
[22/33] Compiling Primitives Storage.swift
[23/33] Compiling Primitives TaskChannel.swift
[24/33] Compiling Primitives UnboundedChannel.swift
[25/33] Compiling Primitives UnbufferedChannel.swift
[26/33] Compiling Primitives WaitGroup.swift
[27/33] Compiling Primitives WaitType.swift
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// }
16 | /// ```
17 | public final class WorkerPool {
| `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
18 |
19 | let taskChannels: [TaskChannel]
:
27 | let waitType: WaitType
28 |
29 | static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Initialises an instance of the `WorkerPool` type
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:74:38: warning: capture of 'channel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
72 | taskChannels.forEach { channel in
73 | Thread { [channel] in
74 | while let task = channel.dequeue() { task() }
| `- warning: capture of 'channel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
75 | }.start()
76 | }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
/host/spi-builder-workspace/Sources/Primitives/WorkerThread.swift:52:34: warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | onceFlag.runOnce {
51 | Thread { [taskChannel] in
52 | while let task = taskChannel.dequeue() { task() }
| `- warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
53 | }.start()
54 | }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
[28/33] Compiling Primitives WorkerPool.swift
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// }
16 | /// ```
17 | public final class WorkerPool {
| `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
18 |
19 | let taskChannels: [TaskChannel]
:
27 | let waitType: WaitType
28 |
29 | static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Initialises an instance of the `WorkerPool` type
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:74:38: warning: capture of 'channel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
72 | taskChannels.forEach { channel in
73 | Thread { [channel] in
74 | while let task = channel.dequeue() { task() }
| `- warning: capture of 'channel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
75 | }.start()
76 | }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
/host/spi-builder-workspace/Sources/Primitives/WorkerThread.swift:52:34: warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | onceFlag.runOnce {
51 | Thread { [taskChannel] in
52 | while let task = taskChannel.dequeue() { task() }
| `- warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
53 | }.start()
54 | }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
[29/33] Compiling Primitives WorkerThread.swift
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// }
16 | /// ```
17 | public final class WorkerPool {
| `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
18 |
19 | let taskChannels: [TaskChannel]
:
27 | let waitType: WaitType
28 |
29 | static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Initialises an instance of the `WorkerPool` type
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:74:38: warning: capture of 'channel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
72 | taskChannels.forEach { channel in
73 | Thread { [channel] in
74 | while let task = channel.dequeue() { task() }
| `- warning: capture of 'channel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
75 | }.start()
76 | }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
/host/spi-builder-workspace/Sources/Primitives/WorkerThread.swift:52:34: warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | onceFlag.runOnce {
51 | Thread { [taskChannel] in
52 | while let task = taskChannel.dequeue() { task() }
| `- warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a '@Sendable' closure; this is an error in the Swift 6 language mode
53 | }.start()
54 | }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
[30/33] Compiling Primitives ArrayStorage.swift
[31/33] Compiling Primitives Barrier.swift
[32/33] Compiling Primitives BoundedChannel.swift
[33/33] Compiling Primitives Buffers.swift
Build complete! (11.46s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swift-concurrency-primitives",
"name" : "swift-concurrency-primitives",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "Primitives",
"targets" : [
"Primitives"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Primitives_Tests",
"module_type" : "SwiftTarget",
"name" : "Primitives-Tests",
"path" : "Tests/PrimitivesTests",
"sources" : [
"ChannelTests.swift",
"PrimitivesTests.swift",
"SynchronizationTests.swift",
"ThreadPoolTests.swift"
],
"target_dependencies" : [
"Primitives"
],
"type" : "test"
},
{
"c99name" : "Primitives",
"module_type" : "SwiftTarget",
"name" : "Primitives",
"path" : "Sources/Primitives",
"product_memberships" : [
"Primitives"
],
"sources" : [
"ArrayStorage.swift",
"Barrier.swift",
"BoundedChannel.swift",
"Buffers.swift",
"Channel.swift",
"Condition.swift",
"ConditionLock.swift",
"Latch.swift",
"Lock.swift",
"Locked.swift",
"Mutex.swift",
"Once.swift",
"OnceState.swift",
"OneShotChannel.swift",
"Operators.swift",
"Queue.swift",
"Semaphore.swift",
"SingleElementStorage.swift",
"Storage.swift",
"TaskChannel.swift",
"ThreadParker.swift",
"ThreadPool.swift",
"TimeDuration.swift",
"Timespec.swift",
"UnboundedChannel.swift",
"UnbufferedChannel.swift",
"WaitGroup.swift",
"WaitType.swift",
"WorkerPool.swift",
"WorkerThread.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
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.