The Swift Package Index logo.Swift Package Index

Build Information

Successful build of EventReduce, reference v8.0.0 (5d885c), with Swift 6.1 for Wasm on 14 Nov 2026 17:09:52 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi -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: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pubkey/event-reduce.git
Reference: v8.0.0
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/pubkey/event-reduce
 * tag               v8.0.0     -> FETCH_HEAD
HEAD is now at 5d885ca release: v8.0.0
Cloned https://github.com/pubkey/event-reduce.git
Revision (git rev-parse @):
5d885ca7855565dac443b828fbb296c27928d96f
SUCCESS checkout https://github.com/pubkey/event-reduce.git at v8.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/pubkey/event-reduce.git
https://github.com/pubkey/event-reduce.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:0034c02a984097e8bef091e8149ee5bab070831958674652bcea48eef7e72457
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Emitting module EventReduce
/host/spi-builder-workspace/swift/Sources/EventReduce/Actions.swift:11:12: warning: let 'orderedActionList' is not concurrency-safe because non-'Sendable' type '[ActionName]' may have shared mutable state; this is an error in the Swift 6 language mode
  9 | /// All actions, in the same order as the JavaScript implementation.
 10 | /// The BDD references the actions by their index in this list.
 11 | public let orderedActionList: [ActionName] = ActionName.allCases
    |            |- warning: let 'orderedActionList' is not concurrency-safe because non-'Sendable' type '[ActionName]' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: add '@MainActor' to make let 'orderedActionList' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 12 |
 13 | /// Returns the function of the given action.
/host/spi-builder-workspace/swift/Sources/EventReduce/Types.swift:132:13: note: consider making enum 'ActionName' conform to the 'Sendable' protocol
130 | }
131 |
132 | public enum ActionName: String, CaseIterable {
    |             `- note: consider making enum 'ActionName' conform to the 'Sendable' protocol
133 |     case doNothing
134 |     case insertFirst
/host/spi-builder-workspace/swift/Sources/EventReduce/ResultWindowBuffer.swift:84:13: warning: let 'actionsThatDropARow' is not concurrency-safe because non-'Sendable' type 'Set<ActionName>' may have shared mutable state; this is an error in the Swift 6 language mode
 82 | /// Actions that keep the length of the result by dropping its first or last row.
 83 | /// The slice rule can keep that row instead.
 84 | private let actionsThatDropARow: Set<ActionName> = [
    |             |- warning: let 'actionsThatDropARow' is not concurrency-safe because non-'Sendable' type 'Set<ActionName>' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'actionsThatDropARow' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 85 |     .removeFirstItem,
 86 |     .removeLastItem,
/host/spi-builder-workspace/swift/Sources/EventReduce/Types.swift:132:13: note: consider making enum 'ActionName' conform to the 'Sendable' protocol
130 | }
131 |
132 | public enum ActionName: String, CaseIterable {
    |             `- note: consider making enum 'ActionName' conform to the 'Sendable' protocol
133 |     case doNothing
134 |     case insertFirst
/host/spi-builder-workspace/swift/Sources/EventReduce/States.swift:3:12: warning: let 'orderedStateList' is not concurrency-safe because non-'Sendable' type '[StateName]' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// All states, in the same order as the JavaScript implementation.
  2 | /// The BDD references the states by their index in this list.
  3 | public let orderedStateList: [StateName] = StateName.allCases
    |            |- warning: let 'orderedStateList' is not concurrency-safe because non-'Sendable' type '[StateName]' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: add '@MainActor' to make let 'orderedStateList' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  4 |
  5 | public func hasLimit<D>(_ input: StateResolveFunctionInput<D>) -> Bool {
/host/spi-builder-workspace/swift/Sources/EventReduce/Types.swift:155:13: note: consider making enum 'StateName' conform to the 'Sendable' protocol
153 | }
154 |
155 | public enum StateName: String, CaseIterable {
    |             `- note: consider making enum 'StateName' conform to the 'Sendable' protocol
156 |     case isInsert
157 |     case isUpdate
[4/11] Compiling EventReduce States.swift
/host/spi-builder-workspace/swift/Sources/EventReduce/States.swift:3:12: warning: let 'orderedStateList' is not concurrency-safe because non-'Sendable' type '[StateName]' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// All states, in the same order as the JavaScript implementation.
  2 | /// The BDD references the states by their index in this list.
  3 | public let orderedStateList: [StateName] = StateName.allCases
    |            |- warning: let 'orderedStateList' is not concurrency-safe because non-'Sendable' type '[StateName]' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: add '@MainActor' to make let 'orderedStateList' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  4 |
  5 | public func hasLimit<D>(_ input: StateResolveFunctionInput<D>) -> Bool {
/host/spi-builder-workspace/swift/Sources/EventReduce/Types.swift:155:13: note: consider making enum 'StateName' conform to the 'Sendable' protocol
153 | }
154 |
155 | public enum StateName: String, CaseIterable {
    |             `- note: consider making enum 'StateName' conform to the 'Sendable' protocol
156 |     case isInsert
157 |     case isUpdate
[5/11] Compiling EventReduce Util.swift
[6/11] Compiling EventReduce EventReduce.swift
[7/11] Compiling EventReduce Bdd.swift
[8/11] Compiling EventReduce Types.swift
[9/11] Compiling EventReduce Actions.swift
/host/spi-builder-workspace/swift/Sources/EventReduce/Actions.swift:11:12: warning: let 'orderedActionList' is not concurrency-safe because non-'Sendable' type '[ActionName]' may have shared mutable state; this is an error in the Swift 6 language mode
  9 | /// All actions, in the same order as the JavaScript implementation.
 10 | /// The BDD references the actions by their index in this list.
 11 | public let orderedActionList: [ActionName] = ActionName.allCases
    |            |- warning: let 'orderedActionList' is not concurrency-safe because non-'Sendable' type '[ActionName]' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: add '@MainActor' to make let 'orderedActionList' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 12 |
 13 | /// Returns the function of the given action.
/host/spi-builder-workspace/swift/Sources/EventReduce/Types.swift:132:13: note: consider making enum 'ActionName' conform to the 'Sendable' protocol
130 | }
131 |
132 | public enum ActionName: String, CaseIterable {
    |             `- note: consider making enum 'ActionName' conform to the 'Sendable' protocol
133 |     case doNothing
134 |     case insertFirst
[10/11] Compiling EventReduce BddGenerated.swift
[11/11] Compiling EventReduce ResultWindowBuffer.swift
/host/spi-builder-workspace/swift/Sources/EventReduce/ResultWindowBuffer.swift:84:13: warning: let 'actionsThatDropARow' is not concurrency-safe because non-'Sendable' type 'Set<ActionName>' may have shared mutable state; this is an error in the Swift 6 language mode
 82 | /// Actions that keep the length of the result by dropping its first or last row.
 83 | /// The slice rule can keep that row instead.
 84 | private let actionsThatDropARow: Set<ActionName> = [
    |             |- warning: let 'actionsThatDropARow' is not concurrency-safe because non-'Sendable' type 'Set<ActionName>' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'actionsThatDropARow' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 85 |     .removeFirstItem,
 86 |     .removeLastItem,
/host/spi-builder-workspace/swift/Sources/EventReduce/Types.swift:132:13: note: consider making enum 'ActionName' conform to the 'Sendable' protocol
130 | }
131 |
132 | public enum ActionName: String, CaseIterable {
    |             `- note: consider making enum 'ActionName' conform to the 'Sendable' protocol
133 |     case doNothing
134 |     case insertFirst
Build complete! (3.18s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EventReduce",
  "name" : "EventReduce",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "EventReduce",
      "targets" : [
        "EventReduce"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EventReduceTests",
      "module_type" : "SwiftTarget",
      "name" : "EventReduceTests",
      "path" : "swift/Tests/EventReduceTests",
      "sources" : [
        "DocumentIdTests.swift",
        "HugeLimitTests.swift",
        "KeyDocumentMapTests.swift",
        "LimitTests.swift",
        "RecommendedBufferSizeTests.swift",
        "TestSuiteTests.swift"
      ],
      "target_dependencies" : [
        "EventReduce"
      ],
      "type" : "test"
    },
    {
      "c99name" : "EventReduce",
      "module_type" : "SwiftTarget",
      "name" : "EventReduce",
      "path" : "swift/Sources/EventReduce",
      "product_memberships" : [
        "EventReduce"
      ],
      "sources" : [
        "Actions.swift",
        "Bdd.swift",
        "BddGenerated.swift",
        "EventReduce.swift",
        "ResultWindowBuffer.swift",
        "States.swift",
        "Types.swift",
        "Util.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:0034c02a984097e8bef091e8149ee5bab070831958674652bcea48eef7e72457
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Done.