The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of SwiftParamTest, reference master (f513e1), with Swift 6.0 for Linux on 28 Nov 2024 21:32:12 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/YusukeHosonuma/SwiftParamTest.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/YusukeHosonuma/SwiftParamTest
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at f513e1d Update README.md
Cloned https://github.com/YusukeHosonuma/SwiftParamTest.git
Revision (git rev-parse @):
f513e1dbbdd86e2ca2b672537f4bcb4417f94c27
SUCCESS checkout https://github.com/YusukeHosonuma/SwiftParamTest.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/YusukeHosonuma/SwiftParamTest.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/YusukeHosonuma/SHList.git
Fetching https://github.com/YusukeHosonuma/Flatten.git
[1/64] Fetching shlist
[65/206] Fetching shlist, flatten
Fetched https://github.com/YusukeHosonuma/SHList.git from cache (0.18s)
Fetched https://github.com/YusukeHosonuma/Flatten.git from cache (0.18s)
Computing version for https://github.com/YusukeHosonuma/SHList.git
Computed https://github.com/YusukeHosonuma/SHList.git at 0.1.0 (0.43s)
Computing version for https://github.com/YusukeHosonuma/Flatten.git
Computed https://github.com/YusukeHosonuma/Flatten.git at 0.1.0 (0.44s)
Creating working copy for https://github.com/YusukeHosonuma/SHList.git
Working copy of https://github.com/YusukeHosonuma/SHList.git resolved at 0.1.0
Creating working copy for https://github.com/YusukeHosonuma/Flatten.git
Working copy of https://github.com/YusukeHosonuma/Flatten.git resolved at 0.1.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/8] Emitting module Flatten
[6/8] Compiling Flatten Flatten.swift
[8/9] Emitting module SHList
[9/9] Compiling SHList SHList.swift
[11/20] Compiling SwiftParamTest ParameterBuilder.swift
[12/21] Compiling SwiftParamTest Operator.swift
[13/21] Compiling SwiftParamTest Row.swift
[14/21] Compiling SwiftParamTest CustomAssertion.swift
[15/21] Compiling SwiftParamTest MarkdownTable.swift
[16/21] Compiling SwiftParamTest ResultBuilderDSLAssert.swift
/host/spi-builder-workspace/Sources/Core/ParameterizedTest.swift:32:23: warning: static property 'option' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |                                              saveTableToAttachement: .none)
31 |
32 |     public static var option = defaultOption
   |                       |- warning: static property 'option' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'option' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'option' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
[17/21] Compiling SwiftParamTest Args.swift
[18/21] Compiling SwiftParamTest BasicDSLAssert.swift
/host/spi-builder-workspace/Sources/Core/ParameterizedTest.swift:32:23: warning: static property 'option' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |                                              saveTableToAttachement: .none)
31 |
32 |     public static var option = defaultOption
   |                       |- warning: static property 'option' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'option' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'option' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
[19/21] Emitting module SwiftParamTest
/host/spi-builder-workspace/Sources/Core/ParameterizedTest.swift:29:23: warning: static property 'defaultOption' is not concurrency-safe because non-'Sendable' type 'ParameterizedTest.Option' may have shared mutable state; this is an error in the Swift 6 language mode
14 |     }
15 |
16 |     public struct Option {
   |                   `- note: consider making struct 'Option' conform to the 'Sendable' protocol
17 |         public var traceTable: TableType
18 |         public var saveTableToAttachement: TableType
   :
27 |     }
28 |
29 |     public static let defaultOption = Option(traceTable: .none,
   |                       |- warning: static property 'defaultOption' is not concurrency-safe because non-'Sendable' type 'ParameterizedTest.Option' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'defaultOption' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |                                              saveTableToAttachement: .none)
31 |
/host/spi-builder-workspace/Sources/Core/ParameterizedTest.swift:32:23: warning: static property 'option' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |                                              saveTableToAttachement: .none)
31 |
32 |     public static var option = defaultOption
   |                       |- warning: static property 'option' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'option' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'option' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
[20/21] Compiling SwiftParamTest ParameterizedTest.swift
/host/spi-builder-workspace/Sources/Core/ParameterizedTest.swift:29:23: warning: static property 'defaultOption' is not concurrency-safe because non-'Sendable' type 'ParameterizedTest.Option' may have shared mutable state; this is an error in the Swift 6 language mode
14 |     }
15 |
16 |     public struct Option {
   |                   `- note: consider making struct 'Option' conform to the 'Sendable' protocol
17 |         public var traceTable: TableType
18 |         public var saveTableToAttachement: TableType
   :
27 |     }
28 |
29 |     public static let defaultOption = Option(traceTable: .none,
   |                       |- warning: static property 'defaultOption' is not concurrency-safe because non-'Sendable' type 'ParameterizedTest.Option' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'defaultOption' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |                                              saveTableToAttachement: .none)
31 |
/host/spi-builder-workspace/Sources/Core/ParameterizedTest.swift:32:23: warning: static property 'option' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |                                              saveTableToAttachement: .none)
31 |
32 |     public static var option = defaultOption
   |                       |- warning: static property 'option' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'option' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'option' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
[21/21] Compiling SwiftParamTest ParameterizedTestRunner.swift
/host/spi-builder-workspace/Sources/Core/ParameterizedTest.swift:29:23: warning: static property 'defaultOption' is not concurrency-safe because non-'Sendable' type 'ParameterizedTest.Option' may have shared mutable state; this is an error in the Swift 6 language mode
14 |     }
15 |
16 |     public struct Option {
   |                   `- note: consider making struct 'Option' conform to the 'Sendable' protocol
17 |         public var traceTable: TableType
18 |         public var saveTableToAttachement: TableType
   :
27 |     }
28 |
29 |     public static let defaultOption = Option(traceTable: .none,
   |                       |- warning: static property 'defaultOption' is not concurrency-safe because non-'Sendable' type 'ParameterizedTest.Option' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'defaultOption' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |                                              saveTableToAttachement: .none)
31 |
/host/spi-builder-workspace/Sources/Core/ParameterizedTest.swift:32:23: warning: static property 'option' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |                                              saveTableToAttachement: .none)
31 |
32 |     public static var option = defaultOption
   |                       |- warning: static property 'option' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'option' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'option' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
Build complete! (29.93s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "flatten",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/YusukeHosonuma/Flatten.git"
    },
    {
      "identity" : "shlist",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/YusukeHosonuma/SHList.git"
    }
  ],
  "manifest_display_name" : "SwiftParamTest",
  "name" : "SwiftParamTest",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftParamTest",
      "targets" : [
        "SwiftParamTest"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftParamTestTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftParamTestTests",
      "path" : "Tests/SwiftParamTestTests",
      "sources" : [
        "Core/ParameterizedTestRunnerTests.swift",
        "DSL/BasicDSLTests.swift",
        "DSL/FunctionBuilderDSLTests.swift",
        "DSL/OperatorTests.swift",
        "MarkdownTableTests.swift",
        "_Asset/Function.swift",
        "_Helper/Assertions.swift",
        "_Helper/SpyCustomAssertion.swift"
      ],
      "target_dependencies" : [
        "SwiftParamTest"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftParamTest",
      "module_type" : "SwiftTarget",
      "name" : "SwiftParamTest",
      "path" : "Sources",
      "product_dependencies" : [
        "Flatten",
        "SHList"
      ],
      "product_memberships" : [
        "SwiftParamTest"
      ],
      "sources" : [
        "Core/ParameterizedTest.swift",
        "Core/ParameterizedTestRunner.swift",
        "Core/Row.swift",
        "CustomAssertion.swift",
        "DSL/Args.swift",
        "DSL/Basic/BasicDSLAssert.swift",
        "DSL/Operator.swift",
        "DSL/ResultBuilder/ParameterBuilder.swift",
        "DSL/ResultBuilder/ResultBuilderDSLAssert.swift",
        "Util/MarkdownTable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.