Build Information
Successful build of Sovran, reference 1.1.2 (24867f), with Swift 6.1 for Android on 29 May 2025 10:00:39 UTC.
Swift 6 data race errors: 2
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/segmentio/Sovran-Swift.git
Reference: 1.1.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/segmentio/Sovran-Swift
* tag 1.1.2 -> FETCH_HEAD
HEAD is now at 24867f3 Version 1.1.2
Cloned https://github.com/segmentio/Sovran-Swift.git
Revision (git rev-parse @):
24867f3e4ac62027db9827112135e6531b6f4051
SUCCESS checkout https://github.com/segmentio/Sovran-Swift.git at 1.1.2
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/segmentio/Sovran-Swift.git
https://github.com/segmentio/Sovran-Swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Sovran",
"name" : "Sovran",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "7.1"
}
],
"products" : [
{
"name" : "Sovran",
"targets" : [
"Sovran"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SovranTests",
"module_type" : "SwiftTarget",
"name" : "SovranTests",
"path" : "Tests/SovranTests",
"sources" : [
"ExampleStates.swift",
"SovranTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Sovran"
],
"type" : "test"
},
{
"c99name" : "Sovran",
"module_type" : "SwiftTarget",
"name" : "Sovran",
"path" : "Sources/Sovran",
"product_memberships" : [
"Sovran"
],
"sources" : [
"Action.swift",
"State.swift",
"Store.swift",
"Subscriber.swift",
"Testing.swift",
"Version.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Sovran Version.swift
[4/9] Compiling Sovran Testing.swift
/host/spi-builder-workspace/Sources/Sovran/Testing.swift:12:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | /// Inquire as to whether we are within a Unit Testing environment.
11 | #if DEBUG
12 | internal var isUnitTesting: Bool = {
| |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // this will work on apple platforms, but fail on linux.
14 | if NSClassFromString("XCTestCase") != nil {
[5/9] Compiling Sovran Subscriber.swift
[6/9] Compiling Sovran Store.swift
/host/spi-builder-workspace/Sources/Sovran/Store.swift:206:28: warning: static property 'nextSubscriptionID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
204 | let subscriptionID = createNextSubscriptionID()
205 |
206 | fileprivate static var nextSubscriptionID = 1
| |- warning: static property 'nextSubscriptionID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextSubscriptionID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'nextSubscriptionID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 | fileprivate static func createNextSubscriptionID() -> SubscriptionID {
208 | let result = nextSubscriptionID
/host/spi-builder-workspace/Sources/Sovran/Store.swift:258:21: warning: capture of 'handler' with non-sendable type 'Handler<T>' (aka '(T) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
256 | // call the handlers asynchronously.
257 | sub.queue.async {
258 | handler(state)
| |- warning: capture of 'handler' with non-sendable type 'Handler<T>' (aka '(T) -> ()') 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'
259 | }
260 | }
/host/spi-builder-workspace/Sources/Sovran/Store.swift:258:29: warning: capture of 'state' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
249 | extension Store {
250 | /// Notify any subscribers with the new state.
251 | internal func notify<T: State>(subscribers: [Subscription], state: T) {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
252 | for sub in subscribers {
253 | guard let handler = sub.handler as? Handler<T> else { continue }
:
256 | // call the handlers asynchronously.
257 | sub.queue.async {
258 | handler(state)
| `- warning: capture of 'state' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
259 | }
260 | }
[7/9] Compiling Sovran State.swift
[8/9] Emitting module Sovran
/host/spi-builder-workspace/Sources/Sovran/Store.swift:206:28: warning: static property 'nextSubscriptionID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
204 | let subscriptionID = createNextSubscriptionID()
205 |
206 | fileprivate static var nextSubscriptionID = 1
| |- warning: static property 'nextSubscriptionID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextSubscriptionID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'nextSubscriptionID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 | fileprivate static func createNextSubscriptionID() -> SubscriptionID {
208 | let result = nextSubscriptionID
/host/spi-builder-workspace/Sources/Sovran/Testing.swift:12:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | /// Inquire as to whether we are within a Unit Testing environment.
11 | #if DEBUG
12 | internal var isUnitTesting: Bool = {
| |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // this will work on apple platforms, but fail on linux.
14 | if NSClassFromString("XCTestCase") != nil {
[9/9] Compiling Sovran Action.swift
Build complete! (8.61s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Sovran",
"name" : "Sovran",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "7.1"
}
],
"products" : [
{
"name" : "Sovran",
"targets" : [
"Sovran"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SovranTests",
"module_type" : "SwiftTarget",
"name" : "SovranTests",
"path" : "Tests/SovranTests",
"sources" : [
"ExampleStates.swift",
"SovranTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Sovran"
],
"type" : "test"
},
{
"c99name" : "Sovran",
"module_type" : "SwiftTarget",
"name" : "Sovran",
"path" : "Sources/Sovran",
"product_memberships" : [
"Sovran"
],
"sources" : [
"Action.swift",
"State.swift",
"Store.swift",
"Subscriber.swift",
"Testing.swift",
"Version.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.