The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftConcurrency, reference 1.0.0 (d2035e), with Swift 6.1 for Android on 28 May 2025 06:33:06 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xiiagency/SwiftConcurrency.git
Reference: 1.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/xiiagency/SwiftConcurrency
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at d2035ef [SC-4] Make SwiftConcurrency package public (#5)
Cloned https://github.com/xiiagency/SwiftConcurrency.git
Revision (git rev-parse @):
d2035ef57f80ddf12e8fcbc29a16fa2fcd7874a3
SUCCESS checkout https://github.com/xiiagency/SwiftConcurrency.git at 1.0.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/xiiagency/SwiftConcurrency.git
https://github.com/xiiagency/SwiftConcurrency.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftConcurrency",
  "name" : "SwiftConcurrency",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftConcurrency",
      "targets" : [
        "SwiftConcurrency"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftConcurrency",
      "module_type" : "SwiftTarget",
      "name" : "SwiftConcurrency",
      "path" : "Sources/SwiftConcurrency",
      "product_memberships" : [
        "SwiftConcurrency"
      ],
      "sources" : [
        "ParallelProcessing.swift",
        "Task+Extensions.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: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/5] Emitting module SwiftConcurrency
[4/5] Compiling SwiftConcurrency ParallelProcessing.swift
/host/spi-builder-workspace/Sources/SwiftConcurrency/ParallelProcessing.swift:30:35: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 15 |    NOTE: The default level of parallelism is `Self.DEFAULT_MAX_PARALLEL_TASKS`.
 16 |    */
 17 |   public static func processItemsInParallel<Item, Result>(
    |                                                   `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
 18 |     items: [Item],
 19 |     maxParallelTasks: Int = DEFAULT_MAX_PARALLEL_TASKS,
    :
 28 |     // Process items in a single task group, with up to the max parallel tasks,
 29 |     // combining individual task results into one long list.
 30 |     let results: [Result] = await withTaskGroup(of: [Result].self) { taskGroup in
    |                                   `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 31 |       for _ in (0..<maxParallelTasks) {
 32 |         let _ = taskGroup.addTaskUnlessCancelled {
/host/spi-builder-workspace/Sources/SwiftConcurrency/ParallelProcessing.swift:32:27: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 15 |    NOTE: The default level of parallelism is `Self.DEFAULT_MAX_PARALLEL_TASKS`.
 16 |    */
 17 |   public static func processItemsInParallel<Item, Result>(
    |                                                   `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
 18 |     items: [Item],
 19 |     maxParallelTasks: Int = DEFAULT_MAX_PARALLEL_TASKS,
    :
 30 |     let results: [Result] = await withTaskGroup(of: [Result].self) { taskGroup in
 31 |       for _ in (0..<maxParallelTasks) {
 32 |         let _ = taskGroup.addTaskUnlessCancelled {
    |                           `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 33 |           // Continue processing until the queue is empty, checking for cancellation along the way.
 34 |           var taskResults: [Result] = []
/host/spi-builder-workspace/Sources/SwiftConcurrency/ParallelProcessing.swift:53:30: warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 15 |    NOTE: The default level of parallelism is `Self.DEFAULT_MAX_PARALLEL_TASKS`.
 16 |    */
 17 |   public static func processItemsInParallel<Item, Result>(
    |                                                   `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
 18 |     items: [Item],
 19 |     maxParallelTasks: Int = DEFAULT_MAX_PARALLEL_TASKS,
    :
 51 |
 52 |       // Combine all task result lists into one long list.
 53 |       return await taskGroup.reduce([]) { allResults, taskResults in
    |                              `- warning: type 'Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 54 |         allResults + taskResults
 55 |       }
/host/spi-builder-workspace/Sources/SwiftConcurrency/ParallelProcessing.swift:35:44: warning: non-sendable result type 'Item?' cannot be sent from actor-isolated context in call to instance method 'incrementAndGetNextItem()'; this is an error in the Swift 6 language mode
 15 |    NOTE: The default level of parallelism is `Self.DEFAULT_MAX_PARALLEL_TASKS`.
 16 |    */
 17 |   public static func processItemsInParallel<Item, Result>(
    |                                             `- note: consider making generic parameter 'Item' conform to the 'Sendable' protocol
 18 |     items: [Item],
 19 |     maxParallelTasks: Int = DEFAULT_MAX_PARALLEL_TASKS,
    :
 33 |           // Continue processing until the queue is empty, checking for cancellation along the way.
 34 |           var taskResults: [Result] = []
 35 |           while let nextItem = await queue.incrementAndGetNextItem() {
    |                                            `- warning: non-sendable result type 'Item?' cannot be sent from actor-isolated context in call to instance method 'incrementAndGetNextItem()'; this is an error in the Swift 6 language mode
 36 |             guard !Task.isCancelled else {
 37 |               break
/host/spi-builder-workspace/Sources/SwiftConcurrency/ParallelProcessing.swift:24:17: warning: sending 'items' risks causing data races; this is an error in the Swift 6 language mode
 22 |   ) async -> [Result] {
 23 |     // Initialize the processing queue, shuffling the items into random order if requested.
 24 |     let queue = OrderedParallelProcessingQueue(
    |                 |- warning: sending 'items' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: sending task-isolated 'items' to actor-isolated initializer 'init(items:)' risks causing data races between actor-isolated and task-isolated uses
 25 |       items: processInRandomOrder ? items.shuffled() : items
 26 |     )
/host/spi-builder-workspace/Sources/SwiftConcurrency/ParallelProcessing.swift:32:50: 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 |     let results: [Result] = await withTaskGroup(of: [Result].self) { taskGroup in
 31 |       for _ in (0..<maxParallelTasks) {
 32 |         let _ = taskGroup.addTaskUnlessCancelled {
    |                                                  `- 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 |           // Continue processing until the queue is empty, checking for cancellation along the way.
 34 |           var taskResults: [Result] = []
    :
 38 |             }
 39 |
 40 |             guard let result = await processItem(nextItem) else {
    |                                      `- note: closure captures 'processItem' which is accessible to code in the current task
 41 |               continue
 42 |             }
[5/5] Compiling SwiftConcurrency Task+Extensions.swift
Build complete! (8.98s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftConcurrency",
  "name" : "SwiftConcurrency",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftConcurrency",
      "targets" : [
        "SwiftConcurrency"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftConcurrency",
      "module_type" : "SwiftTarget",
      "name" : "SwiftConcurrency",
      "path" : "Sources/SwiftConcurrency",
      "product_memberships" : [
        "SwiftConcurrency"
      ],
      "sources" : [
        "ParallelProcessing.swift",
        "Task+Extensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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.