Build Information
Successful build of Tracery with Swift 6.0 for Linux.
Swift 6 data race errors: 4
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" 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 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/BenziAhamed/Tracery.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/BenziAhamed/Tracery
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 1d34b2c bump to swift-5.0 and minor cleanups
Cloned https://github.com/BenziAhamed/Tracery.git
Revision (git rev-parse @):
1d34b2c2308148333871c19efdcde271be12c240
SUCCESS checkout https://github.com/BenziAhamed/Tracery.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/BenziAhamed/Tracery.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" 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 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling Tracery CyclicReferenceIdentifier.swift
/host/spi-builder-workspace/Common/CyclicReferenceIdentifier.swift:211:13: warning: variable 'g' was never mutated; consider changing to 'let' constant
209 |
210 | var index = 0
211 | var g = graph.map(TarjanVertex.init)
| `- warning: variable 'g' was never mutated; consider changing to 'let' constant
212 | var s = [TarjanVertex<Vertex>]()
213 | var components = [StronglyConnectedComponent<Vertex>]()
[4/17] Compiling Tracery EmptyRulesetDetector.swift
/host/spi-builder-workspace/Common/CyclicReferenceIdentifier.swift:211:13: warning: variable 'g' was never mutated; consider changing to 'let' constant
209 |
210 | var index = 0
211 | var g = graph.map(TarjanVertex.init)
| `- warning: variable 'g' was never mutated; consider changing to 'let' constant
212 | var s = [TarjanVertex<Vertex>]()
213 | var components = [StronglyConnectedComponent<Vertex>]()
[5/17] Emitting module Tracery
/host/spi-builder-workspace/Common/RuleCandidateSelector.swift:18:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |
16 | class PickFirstContentSelector : RuleCandidateSelector {
| `- note: class 'PickFirstContentSelector' does not conform to the 'Sendable' protocol
17 | private init() { }
18 | static let shared = PickFirstContentSelector()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
19 | func pick(count: Int) -> Int {
20 | return 0
/host/spi-builder-workspace/Common/Tracery.Logging.swift:22:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public static var logLevel = LoggingLevel.errors
| |- warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logLevel' 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
23 |
24 | static func log(level: LoggingLevel, message: @autoclosure () -> String) {
/host/spi-builder-workspace/Common/Tracery.swift:37:23: warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |
28 | public class TraceryOptions {
| `- note: class 'TraceryOptions' does not conform to the 'Sendable' protocol
29 | public var tagStorageType = TaggingPolicy.unilevel
30 | public var isRuleAnalysisEnabled = true
:
35 |
36 | extension TraceryOptions {
37 | public static let defaultSet = TraceryOptions()
| |- warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSet' 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
38 | }
39 |
/host/spi-builder-workspace/Common/Tracery.swift:141:23: warning: static property 'maxStackDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
139 | }
140 |
141 | public static var maxStackDepth = 256
| |- warning: static property 'maxStackDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxStackDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'maxStackDepth' 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
142 |
143 | fileprivate(set) var ruleEvaluationLevel: Int = 0
[6/18] Compiling Tracery TagStorage.swift
/host/spi-builder-workspace/Common/Tracery.swift:141:23: warning: static property 'maxStackDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
139 | }
140 |
141 | public static var maxStackDepth = 256
| |- warning: static property 'maxStackDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxStackDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'maxStackDepth' 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
142 |
143 | fileprivate(set) var ruleEvaluationLevel: Int = 0
/host/spi-builder-workspace/Common/Tracery.Logging.swift:22:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public static var logLevel = LoggingLevel.errors
| |- warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logLevel' 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
23 |
24 | static func log(level: LoggingLevel, message: @autoclosure () -> String) {
[7/18] Compiling Tracery Tracery.Eval.swift
/host/spi-builder-workspace/Common/Tracery.swift:141:23: warning: static property 'maxStackDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
139 | }
140 |
141 | public static var maxStackDepth = 256
| |- warning: static property 'maxStackDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxStackDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'maxStackDepth' 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
142 |
143 | fileprivate(set) var ruleEvaluationLevel: Int = 0
/host/spi-builder-workspace/Common/Tracery.Logging.swift:22:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public static var logLevel = LoggingLevel.errors
| |- warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logLevel' 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
23 |
24 | static func log(level: LoggingLevel, message: @autoclosure () -> String) {
[8/18] Compiling Tracery Tracery.Logging.swift
/host/spi-builder-workspace/Common/Tracery.Logging.swift:22:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public static var logLevel = LoggingLevel.errors
| |- warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logLevel' 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
23 |
24 | static func log(level: LoggingLevel, message: @autoclosure () -> String) {
/host/spi-builder-workspace/Common/Tracery.swift:37:23: warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |
28 | public class TraceryOptions {
| `- note: class 'TraceryOptions' does not conform to the 'Sendable' protocol
29 | public var tagStorageType = TaggingPolicy.unilevel
30 | public var isRuleAnalysisEnabled = true
:
35 |
36 | extension TraceryOptions {
37 | public static let defaultSet = TraceryOptions()
| |- warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSet' 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
38 | }
39 |
[9/18] Compiling Tracery Tracery.Text.swift
/host/spi-builder-workspace/Common/Tracery.Logging.swift:22:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public static var logLevel = LoggingLevel.errors
| |- warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logLevel' 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
23 |
24 | static func log(level: LoggingLevel, message: @autoclosure () -> String) {
/host/spi-builder-workspace/Common/Tracery.swift:37:23: warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |
28 | public class TraceryOptions {
| `- note: class 'TraceryOptions' does not conform to the 'Sendable' protocol
29 | public var tagStorageType = TaggingPolicy.unilevel
30 | public var isRuleAnalysisEnabled = true
:
35 |
36 | extension TraceryOptions {
37 | public static let defaultSet = TraceryOptions()
| |- warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSet' 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
38 | }
39 |
[10/18] Compiling Tracery RuleCandidatesProvider.swift
[11/18] Compiling Tracery RuleSelfReferenceIdentifer.swift
[12/18] Compiling Tracery Parser.swift
/host/spi-builder-workspace/Common/RuleCandidateSelector.swift:18:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |
16 | class PickFirstContentSelector : RuleCandidateSelector {
| `- note: class 'PickFirstContentSelector' does not conform to the 'Sendable' protocol
17 | private init() { }
18 | static let shared = PickFirstContentSelector()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
19 | func pick(count: Int) -> Int {
20 | return 0
[13/18] Compiling Tracery RuleCandidateSelector.swift
/host/spi-builder-workspace/Common/RuleCandidateSelector.swift:18:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |
16 | class PickFirstContentSelector : RuleCandidateSelector {
| `- note: class 'PickFirstContentSelector' does not conform to the 'Sendable' protocol
17 | private init() { }
18 | static let shared = PickFirstContentSelector()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
19 | func pick(count: Int) -> Int {
20 | return 0
[14/18] Compiling Tracery Lexer.swift
/host/spi-builder-workspace/Common/Parser.Gen2.swift:22:13: warning: variable 'endIndex' was never mutated; consider changing to 'let' constant
20 |
21 | var index = tokens.startIndex
22 | var endIndex = tokens.endIndex
| `- warning: variable 'endIndex' was never mutated; consider changing to 'let' constant
23 |
24 | func advance() {
[15/18] Compiling Tracery Parser.Gen2.swift
/host/spi-builder-workspace/Common/Parser.Gen2.swift:22:13: warning: variable 'endIndex' was never mutated; consider changing to 'let' constant
20 |
21 | var index = tokens.startIndex
22 | var endIndex = tokens.endIndex
| `- warning: variable 'endIndex' was never mutated; consider changing to 'let' constant
23 |
24 | func advance() {
[16/18] Compiling Tracery RulesetAnalyser.swift
[17/18] Compiling Tracery TagOverrideRuleIdentifier.swift
[18/18] Compiling Tracery Tracery.swift
/host/spi-builder-workspace/Common/Tracery.swift:37:23: warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |
28 | public class TraceryOptions {
| `- note: class 'TraceryOptions' does not conform to the 'Sendable' protocol
29 | public var tagStorageType = TaggingPolicy.unilevel
30 | public var isRuleAnalysisEnabled = true
:
35 |
36 | extension TraceryOptions {
37 | public static let defaultSet = TraceryOptions()
| |- warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSet' 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
38 | }
39 |
/host/spi-builder-workspace/Common/Tracery.swift:141:23: warning: static property 'maxStackDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
139 | }
140 |
141 | public static var maxStackDepth = 256
| |- warning: static property 'maxStackDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxStackDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'maxStackDepth' 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
142 |
143 | fileprivate(set) var ruleEvaluationLevel: Int = 0
Build complete! (11.67s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Tracery",
"name" : "Tracery",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Tracery",
"targets" : [
"Tracery"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "TraceryTests",
"module_type" : "SwiftTarget",
"name" : "TraceryTests",
"path" : "CommonTesting",
"sources" : [
"CandidateProvider.swift",
"CandidateSelector.swift",
"Conditionals.swift",
"CustomProviders.swift",
"CustomSelectors.swift",
"ErrorMessages.swift",
"ExtensionCalls.swift",
"ExtensionMethod.swift",
"ExtensionModifier.swift",
"Helpers.swift",
"InlineRules.swift",
"Keywords.swift",
"Objects.swift",
"Performance.swift",
"RecursiveRules.swift",
"Rules.swift",
"Tags.swift",
"TextFormat.swift",
"TraceryioSamples.swift",
"UniformDistribution.swift",
"WeightedCandidates.swift"
],
"target_dependencies" : [
"Tracery"
],
"type" : "test"
},
{
"c99name" : "Tracery",
"module_type" : "SwiftTarget",
"name" : "Tracery",
"path" : "Common",
"product_memberships" : [
"Tracery"
],
"sources" : [
"CyclicReferenceIdentifier.swift",
"EmptyRulesetDetector.swift",
"Lexer.swift",
"Parser.Gen2.swift",
"Parser.swift",
"RuleCandidateSelector.swift",
"RuleCandidatesProvider.swift",
"RuleSelfReferenceIdentifer.swift",
"RulesetAnalyser.swift",
"TagOverrideRuleIdentifier.swift",
"TagStorage.swift",
"Tracery.Eval.swift",
"Tracery.Logging.swift",
"Tracery.Text.swift",
"Tracery.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Done.