Build Information
Successful build of Benchmark, reference main (87b08b
), with Swift 6.0 for macOS (SPM) on 15 Nov 2024 18:07:42 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.57.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-benchmark.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ordo-one/package-benchmark
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 87b08bf chore: Fix test compilation on Ubuntu Noble (#300)
Cloned https://github.com/ordo-one/package-benchmark.git
Revision (git rev-parse @):
87b08bf1fb2f7e4d9dd2fca5d7dd3e0ff8125c1b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ordo-one/package-benchmark.git at main
Fetching https://github.com/ordo-one/TextTable
Fetching https://github.com/ordo-one/package-jemalloc
Fetching https://github.com/apple/swift-system
Fetching https://github.com/HdrHistogram/hdrhistogram-swift
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-numerics
[5/203] Fetching texttable
[28/238] Fetching texttable, package-jemalloc
[60/1807] Fetching texttable, package-jemalloc, swift-atomics
[92/5708] Fetching texttable, package-jemalloc, swift-atomics, swift-system
Fetched https://github.com/ordo-one/TextTable from cache (0.72s)
[175/6087] Fetching package-jemalloc, swift-atomics, swift-system, hdrhistogram-swift
[1106/11663] Fetching package-jemalloc, swift-atomics, swift-system, hdrhistogram-swift, swift-numerics
[4181/24034] Fetching package-jemalloc, swift-atomics, swift-system, hdrhistogram-swift, swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-system from cache (1.01s)
Fetched https://github.com/ordo-one/package-jemalloc from cache (1.01s)
[4173/20098] Fetching swift-atomics, hdrhistogram-swift, swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-atomics from cache (1.61s)
Fetched https://github.com/HdrHistogram/hdrhistogram-swift from cache (1.61s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.61s)
Computing version for https://github.com/ordo-one/package-jemalloc
Fetched https://github.com/apple/swift-numerics from cache (1.61s)
Computed https://github.com/ordo-one/package-jemalloc at 1.0.0 (0.62s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.51s)
Computing version for https://github.com/HdrHistogram/hdrhistogram-swift
Computed https://github.com/HdrHistogram/hdrhistogram-swift at 0.1.2 (0.60s)
Computing version for https://github.com/ordo-one/TextTable
Computed https://github.com/ordo-one/TextTable at 0.0.2 (0.59s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.50s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.3.2 (0.50s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.54s)
Creating working copy for https://github.com/HdrHistogram/hdrhistogram-swift
Working copy of https://github.com/HdrHistogram/hdrhistogram-swift resolved at 0.1.2
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.3.2
Creating working copy for https://github.com/ordo-one/package-jemalloc
Working copy of https://github.com/ordo-one/package-jemalloc resolved at 1.0.0
Creating working copy for https://github.com/ordo-one/TextTable
Working copy of https://github.com/ordo-one/TextTable resolved at 0.0.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "package-benchmark",
"name": "Benchmark",
"url": "https://github.com/ordo-one/package-benchmark.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/package-benchmark",
"dependencies": [
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
},
{
"identity": "swift-argument-parser",
"name": "swift-argument-parser",
"url": "https://github.com/apple/swift-argument-parser",
"version": "1.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
"dependencies": [
]
},
{
"identity": "texttable",
"name": "TextTable",
"url": "https://github.com/ordo-one/TextTable",
"version": "0.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TextTable",
"dependencies": [
]
},
{
"identity": "hdrhistogram-swift",
"name": "package-histogram",
"url": "https://github.com/HdrHistogram/hdrhistogram-swift",
"version": "0.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/hdrhistogram-swift",
"dependencies": [
{
"identity": "swift-numerics",
"name": "swift-numerics",
"url": "https://github.com/apple/swift-numerics",
"version": "1.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-numerics",
"dependencies": [
]
}
]
},
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "package-jemalloc",
"name": "jemalloc",
"url": "https://github.com/ordo-one/package-jemalloc",
"version": "1.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/package-jemalloc",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/ordo-one/package-benchmark.git
[1/5588] Fetching package-benchmark
Fetched https://github.com/ordo-one/package-benchmark.git from cache (1.17s)
Fetching https://github.com/ordo-one/package-jemalloc from cache
Fetching https://github.com/HdrHistogram/hdrhistogram-swift from cache
Fetching https://github.com/apple/swift-system from cache
Fetching https://github.com/apple/swift-atomics from cache
Fetching https://github.com/apple/swift-argument-parser from cache
Fetching https://github.com/ordo-one/TextTable from cache
Fetched https://github.com/ordo-one/package-jemalloc from cache (0.48s)
Fetched https://github.com/apple/swift-atomics from cache (0.49s)
Fetched https://github.com/apple/swift-system from cache (0.57s)
Fetched https://github.com/HdrHistogram/hdrhistogram-swift from cache (0.57s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.57s)
Fetched https://github.com/ordo-one/TextTable from cache (0.57s)
Computing version for https://github.com/ordo-one/package-jemalloc
Computed https://github.com/ordo-one/package-jemalloc at 1.0.0 (0.02s)
Computing version for https://github.com/ordo-one/TextTable
Computed https://github.com/ordo-one/TextTable at 0.0.2 (0.02s)
Computing version for https://github.com/HdrHistogram/hdrhistogram-swift
Computed https://github.com/HdrHistogram/hdrhistogram-swift at 0.1.2 (0.02s)
Fetching https://github.com/apple/swift-numerics from cache
Fetched https://github.com/apple/swift-numerics from cache (0.44s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.02s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.03s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.4.0 (0.51s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.03s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/ordo-one/TextTable
Working copy of https://github.com/ordo-one/TextTable resolved at 0.0.2
Creating working copy for https://github.com/ordo-one/package-jemalloc
Working copy of https://github.com/ordo-one/package-jemalloc resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.4.0
Creating working copy for https://github.com/HdrHistogram/hdrhistogram-swift
Working copy of https://github.com/HdrHistogram/hdrhistogram-swift resolved at 0.1.2
Creating working copy for https://github.com/ordo-one/package-benchmark.git
Working copy of https://github.com/ordo-one/package-benchmark.git resolved at main (87b08bf)
Found 6 product dependencies
- swift-system
- swift-argument-parser
- TextTable
- package-histogram
- swift-atomics
- jemalloc
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/ordo-one/package-benchmark.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin BenchmarkCommandPlugin
[2/2] Compiling plugin BenchmarkPlugin
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/34] Write sources
[13/34] Write BenchmarkTool-entitlement.plist
[14/34] Write BenchmarkHelpGenerator-entitlement.plist
[16/34] Write sources
[17/34] Write BenchmarkBoilerplateGenerator-entitlement.plist
[17/34] Write sources
[19/34] Compiling CSystem shims.c
[20/34] Compiling _NumericsShims _NumericsShims.c
[21/34] Compiling CDarwinOperatingSystemStats CDarwinOperatingSystemStats.c
[22/34] Write swift-version--7754E27361AE5C74.txt
[23/34] Compiling _AtomicsShims.c
[24/34] Compiling SwiftRuntimeHooks shims.c
[26/98] Emitting module SystemPackage
[27/100] Compiling RealModule ApproximateEquality.swift
[28/100] Emitting module RealModule
[29/101] Compiling RealModule Real.swift
[30/101] Compiling RealModule AugmentedArithmetic.swift
[31/101] Compiling RealModule ElementaryFunctions.swift
[32/101] Compiling RealModule Float80+Real.swift
[33/101] Compiling RealModule Float+Real.swift
[34/101] Compiling RealModule Float16+Real.swift
[35/101] Compiling RealModule AlgebraicField.swift
[36/101] Compiling RealModule Double+Real.swift
[37/101] Compiling RealModule RealFunctions.swift
[38/106] Compiling Atomics AtomicMemoryOrderings.swift
[39/106] Compiling Atomics DoubleWord.swift
[40/106] Compiling Atomics ManagedAtomic.swift
[41/106] Compiling Atomics ManagedAtomicLazyReference.swift
[42/106] Compiling Atomics UnsafeAtomic.swift
[43/106] Compiling Atomics UnsafeAtomicLazyReference.swift
[44/108] Emitting module ArgumentParserToolInfo
[45/108] Compiling ArgumentParserToolInfo ToolInfo.swift
[46/147] Compiling ArgumentParser ArgumentVisibility.swift
[47/147] Compiling ArgumentParser CompletionKind.swift
[48/147] Compiling ArgumentParser Argument.swift
[49/147] Compiling ArgumentParser CommandConfiguration.swift
[50/147] Compiling ArgumentParser CommandGroup.swift
[51/147] Compiling ArgumentParser EnumerableFlag.swift
[52/147] Compiling ArgumentParser FishCompletionsGenerator.swift
[53/147] Compiling ArgumentParser ZshCompletionsGenerator.swift
[56/147] Compiling ArgumentParser ExpressibleByArgument.swift
[57/147] Compiling ArgumentParser ArgumentHelp.swift
[58/147] Compiling ArgumentParser HelpCommand.swift
[59/147] Compiling ArgumentParser NameSpecification.swift
[60/147] Compiling ArgumentParser Option.swift
[61/147] Compiling ComplexModule Differentiable.swift
[62/147] Compiling ComplexModule Complex.swift
[63/147] Compiling ComplexModule ElementaryFunctions.swift
[64/147] Compiling ArgumentParser OptionGroup.swift
[65/147] Compiling ArgumentParser AsyncParsableCommand.swift
[66/147] Compiling ArgumentParser BashCompletionsGenerator.swift
[67/147] Compiling ArgumentParser CompletionsGenerator.swift
[68/147] Compiling ArgumentParser ParserError.swift
[69/147] Compiling ArgumentParser SplitArguments.swift
[70/147] Compiling ArgumentParser DumpHelpGenerator.swift
[71/147] Emitting module ComplexModule
[72/147] Compiling ComplexModule Arithmetic.swift
[73/149] Compiling Numerics Numerics.swift
[74/149] Emitting module Numerics
[75/151] Compiling ArgumentParser ParsableArguments.swift
[76/151] Compiling ArgumentParser ParsableArgumentsValidation.swift
[77/151] Compiling ArgumentParser ParsableCommand.swift
[78/151] Compiling ArgumentParser ArgumentDecoder.swift
[79/155] Emitting module ArgumentParser
[80/155] Compiling ArgumentParser Errors.swift
[81/155] Compiling ArgumentParser Flag.swift
[92/155] Emitting module Atomics
[95/155] Compiling ArgumentParser InputOrigin.swift
[96/155] Compiling ArgumentParser Name.swift
[97/155] Compiling ArgumentParser Parsed.swift
[98/155] Compiling ArgumentParser ParsedValues.swift
[99/155] Compiling ArgumentParser ArgumentDefinition.swift
[100/155] Compiling ArgumentParser ArgumentSet.swift
[101/155] Compiling ArgumentParser CommandParser.swift
[102/155] Compiling ArgumentParser InputKey.swift
[103/155] Compiling ArgumentParser Platform.swift
[104/155] Compiling ArgumentParser SequenceExtensions.swift
[105/155] Compiling ArgumentParser StringExtensions.swift
[106/155] Compiling ArgumentParser Tree.swift
[107/155] Compiling TextTable String+Util.swift
[126/156] Compiling ArgumentParser HelpGenerator.swift
[127/156] Compiling ArgumentParser MessageInfo.swift
[128/156] Compiling ArgumentParser UsageGenerator.swift
[129/156] Compiling ArgumentParser CollectionExtensions.swift
[134/156] Compiling TextTable RstFormat.swift
[135/156] Compiling TextTable SimpleFormat.swift
[136/156] Compiling TextTable PlainFormat.swift
[137/156] Compiling TextTable PsqlFormat.swift
[138/156] Compiling TextTable OrgFormat.swift
[139/156] Compiling TextTable PipeFormat.swift
[142/156] Emitting module TextTable
[145/161] Compiling TextTable TextTable.swift
[146/161] Compiling Histogram Histogram.swift
[147/161] Emitting module Histogram
[148/189] Compiling Benchmark MallocStats.swift
[149/189] Compiling Benchmark MallocStatsProducer+jemalloc.swift
[150/189] Compiling Benchmark NIOLock.swift
[151/191] Compiling BenchmarkBoilerplateGenerator BenchmarkBoilerplateGenerator.swift
[152/191] Emitting module BenchmarkBoilerplateGenerator
[152/191] Write Objects.LinkFileList
[154/191] Compiling Benchmark OperatingSystemStatsProducer+Linux.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Progress/Progress.swift:72:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | let configuration: [ProgressElementType]?
71 |
72 | public static var defaultConfiguration: [ProgressElementType] = [ProgressIndex(), ProgressBarLine(), ProgressTimeEstimates()]
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
73 |
74 | var printer: ProgressBarPrinter
[155/191] Compiling Benchmark Progress.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Progress/Progress.swift:72:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | let configuration: [ProgressElementType]?
71 |
72 | public static var defaultConfiguration: [ProgressElementType] = [ProgressIndex(), ProgressBarLine(), ProgressTimeEstimates()]
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
73 |
74 | var printer: ProgressBarPrinter
[156/191] Compiling Benchmark ProgressElements.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Progress/Progress.swift:72:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | let configuration: [ProgressElementType]?
71 |
72 | public static var defaultConfiguration: [ProgressElementType] = [ProgressIndex(), ProgressBarLine(), ProgressTimeEstimates()]
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
73 |
74 | var printer: ProgressBarPrinter
[157/191] Emitting module BenchmarkHelpGenerator
/Users/admin/builder/spi-builder-workspace/Plugins/BenchmarkHelpGenerator/BenchmarkHelpGenerator.swift:54:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @main
53 | struct Benchmark: AsyncParsableCommand {
54 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' 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
55 | abstract: "Run benchmarks or update, compare or check performance baselines",
56 | usage: """
[158/191] Compiling BenchmarkHelpGenerator Command+Helpers.swift
[159/191] Compiling BenchmarkHelpGenerator BenchmarkHelpGenerator.swift
/Users/admin/builder/spi-builder-workspace/Plugins/BenchmarkHelpGenerator/BenchmarkHelpGenerator.swift:54:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @main
53 | struct Benchmark: AsyncParsableCommand {
54 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' 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
55 | abstract: "Run benchmarks or update, compare or check performance baselines",
56 | usage: """
[159/191] Write Objects.LinkFileList
[160/191] Linking BenchmarkBoilerplateGenerator
[161/191] Applying BenchmarkBoilerplateGenerator
[162/191] Linking BenchmarkHelpGenerator
[163/191] Applying BenchmarkHelpGenerator
[165/191] Compiling Benchmark Benchmark.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' 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
50 |
51 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' 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
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' 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
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' 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
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' 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
67 |
68 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' 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
72 |
73 | /// The name of the benchmark without any of the tags appended
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
143 | tags: [:],
144 | timeUnits: .automatic,
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:152:16: warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
150 | thresholds: nil)
151 |
152 | static var testSkipBenchmarkRegistrations = false // true in test to avoid bench registration fail
| |- warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSkipBenchmarkRegistrations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSkipBenchmarkRegistrations' 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
153 | var measurementCompleted = false // Keep track so we skip multiple 'end of measurement'
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') 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'
359 | self._stopMeasurement(false)
360 |
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
359 | self._stopMeasurement(false)
360 |
[166/191] Compiling Benchmark BenchmarkClock.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' 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
50 |
51 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' 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
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' 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
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' 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
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' 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
67 |
68 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' 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
72 |
73 | /// The name of the benchmark without any of the tags appended
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
143 | tags: [:],
144 | timeUnits: .automatic,
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:152:16: warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
150 | thresholds: nil)
151 |
152 | static var testSkipBenchmarkRegistrations = false // true in test to avoid bench registration fail
| |- warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSkipBenchmarkRegistrations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSkipBenchmarkRegistrations' 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
153 | var measurementCompleted = false // Keep track so we skip multiple 'end of measurement'
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') 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'
359 | self._stopMeasurement(false)
360 |
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
359 | self._stopMeasurement(false)
360 |
[167/191] Compiling Benchmark BenchmarkExecutor+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' 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
50 |
51 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' 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
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' 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
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' 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
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' 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
67 |
68 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' 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
72 |
73 | /// The name of the benchmark without any of the tags appended
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
143 | tags: [:],
144 | timeUnits: .automatic,
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:152:16: warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
150 | thresholds: nil)
151 |
152 | static var testSkipBenchmarkRegistrations = false // true in test to avoid bench registration fail
| |- warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSkipBenchmarkRegistrations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSkipBenchmarkRegistrations' 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
153 | var measurementCompleted = false // Keep track so we skip multiple 'end of measurement'
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') 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'
359 | self._stopMeasurement(false)
360 |
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
359 | self._stopMeasurement(false)
360 |
[168/191] Compiling Benchmark lock.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/OperatingSystemStats/OperatingSystemStatsProducer+Darwin.swift:100:21: warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import Dispatch
16 |
17 | final class OperatingSystemStatsProducer {
| `- note: class 'OperatingSystemStatsProducer' does not conform to the 'Sendable' protocol
18 | var nsPerMachTick: Double
19 | var nsPerSchedulerTick: Int
:
98 |
99 | DispatchQueue.global(qos: .userInitiated).async {
100 | self.lock.lock()
| `- warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 | let rate = self.sampleRate
102 | self.peakThreads = 0
[169/191] Compiling Benchmark OperatingSystemStats.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/OperatingSystemStats/OperatingSystemStatsProducer+Darwin.swift:100:21: warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import Dispatch
16 |
17 | final class OperatingSystemStatsProducer {
| `- note: class 'OperatingSystemStatsProducer' does not conform to the 'Sendable' protocol
18 | var nsPerMachTick: Double
19 | var nsPerSchedulerTick: Int
:
98 |
99 | DispatchQueue.global(qos: .userInitiated).async {
100 | self.lock.lock()
| `- warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 | let rate = self.sampleRate
102 | self.peakThreads = 0
[170/191] Compiling Benchmark OperatingSystemStatsProducer+Darwin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/OperatingSystemStats/OperatingSystemStatsProducer+Darwin.swift:100:21: warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import Dispatch
16 |
17 | final class OperatingSystemStatsProducer {
| `- note: class 'OperatingSystemStatsProducer' does not conform to the 'Sendable' protocol
18 | var nsPerMachTick: Double
19 | var nsPerSchedulerTick: Int
:
98 |
99 | DispatchQueue.global(qos: .userInitiated).async {
100 | self.lock.lock()
| `- warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 | let rate = self.sampleRate
102 | self.peakThreads = 0
[171/191] Compiling Benchmark Utilities.swift
[172/191] Compiling Benchmark Statistics.swift
[173/191] Compiling Benchmark BenchmarkRunner.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:44:16: warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | /// Internal type that will be hidden from documentation when upgrading doc generation to Swift 5.8+
43 | public struct BenchmarkRunner: AsyncParsableCommand, BenchmarkRunnerReadWrite {
44 | static var testReadWrite: BenchmarkRunnerReadWrite?
| |- warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testReadWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testReadWrite' 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
45 |
46 | public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:90:23: warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
88 | do {
89 | var command = Self.parseOrExit()
90 | Benchmark.checkAbsoluteThresholds = command.checkAbsolute
| `- warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
91 | registerBenchmarks()
92 | try await command.run()
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' 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
67 |
68 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' 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
50 |
51 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' 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
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' 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
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' 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
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' 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
72 |
73 | /// The name of the benchmark without any of the tags appended
[174/191] Compiling Benchmark BenchmarkThresholds+Defaults.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:44:16: warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | /// Internal type that will be hidden from documentation when upgrading doc generation to Swift 5.8+
43 | public struct BenchmarkRunner: AsyncParsableCommand, BenchmarkRunnerReadWrite {
44 | static var testReadWrite: BenchmarkRunnerReadWrite?
| |- warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testReadWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testReadWrite' 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
45 |
46 | public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:90:23: warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
88 | do {
89 | var command = Self.parseOrExit()
90 | Benchmark.checkAbsoluteThresholds = command.checkAbsolute
| `- warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
91 | registerBenchmarks()
92 | try await command.run()
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' 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
67 |
68 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' 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
50 |
51 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' 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
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' 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
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' 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
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' 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
72 |
73 | /// The name of the benchmark without any of the tags appended
[175/191] Compiling Benchmark BenchmarkThresholds.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:44:16: warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | /// Internal type that will be hidden from documentation when upgrading doc generation to Swift 5.8+
43 | public struct BenchmarkRunner: AsyncParsableCommand, BenchmarkRunnerReadWrite {
44 | static var testReadWrite: BenchmarkRunnerReadWrite?
| |- warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testReadWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testReadWrite' 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
45 |
46 | public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:90:23: warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
88 | do {
89 | var command = Self.parseOrExit()
90 | Benchmark.checkAbsoluteThresholds = command.checkAbsolute
| `- warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
91 | registerBenchmarks()
92 | try await command.run()
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' 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
67 |
68 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' 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
50 |
51 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' 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
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' 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
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' 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
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' 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
72 |
73 | /// The name of the benchmark without any of the tags appended
[176/191] Emitting module Benchmark
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:19:16: warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | typealias SwiftRuntimeHook = @convention(c) (UnsafeRawPointer?, UnsafeMutableRawPointer?) -> Void
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allocCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allocCount' 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
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:20:16: warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainCount' 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
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:21:16: warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'releaseCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'releaseCount' 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
22 |
23 | static func hook() {
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
143 | tags: [:],
144 | timeUnits: .automatic,
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' 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
50 |
51 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' 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
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' 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
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' 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
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' 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
67 |
68 | #if swift(>=5.8)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' 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
72 |
73 | /// The name of the benchmark without any of the tags appended
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:152:16: warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
150 | thresholds: nil)
151 |
152 | static var testSkipBenchmarkRegistrations = false // true in test to avoid bench registration fail
| |- warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSkipBenchmarkRegistrations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSkipBenchmarkRegistrations' 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
153 | var measurementCompleted = false // Keep track so we skip multiple 'end of measurement'
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:44:16: warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | /// Internal type that will be hidden from documentation when upgrading doc generation to Swift 5.8+
43 | public struct BenchmarkRunner: AsyncParsableCommand, BenchmarkRunnerReadWrite {
44 | static var testReadWrite: BenchmarkRunnerReadWrite?
| |- warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testReadWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testReadWrite' 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
45 |
46 | public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Progress/Progress.swift:72:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | let configuration: [ProgressElementType]?
71 |
72 | public static var defaultConfiguration: [ProgressElementType] = [ProgressIndex(), ProgressBarLine(), ProgressTimeEstimates()]
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
73 |
74 | var printer: ProgressBarPrinter
[177/191] Compiling Benchmark BenchmarkExecutor.swift
[178/191] Compiling Benchmark BenchmarkInternals.swift
[179/191] Compiling Benchmark BenchmarkMetric+Defaults.swift
[180/191] Compiling Benchmark ARCStats.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:19:16: warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | typealias SwiftRuntimeHook = @convention(c) (UnsafeRawPointer?, UnsafeMutableRawPointer?) -> Void
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allocCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allocCount' 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
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:20:16: warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainCount' 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
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:21:16: warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'releaseCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'releaseCount' 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
22 |
23 | static func hook() {
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
143 | tags: [:],
144 | timeUnits: .automatic,
[181/191] Compiling Benchmark ARCStatsProducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:19:16: warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | typealias SwiftRuntimeHook = @convention(c) (UnsafeRawPointer?, UnsafeMutableRawPointer?) -> Void
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allocCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allocCount' 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
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:20:16: warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainCount' 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
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:21:16: warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'releaseCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'releaseCount' 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
22 |
23 | static func hook() {
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
143 | tags: [:],
144 | timeUnits: .automatic,
[182/191] Compiling Benchmark Benchmark+ConvenienceInitializers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:19:16: warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | typealias SwiftRuntimeHook = @convention(c) (UnsafeRawPointer?, UnsafeMutableRawPointer?) -> Void
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allocCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allocCount' 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
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:20:16: warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainCount' 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
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:21:16: warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'releaseCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'releaseCount' 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
22 |
23 | static func hook() {
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
143 | tags: [:],
144 | timeUnits: .automatic,
[183/191] Compiling Benchmark Blackhole.swift
[184/191] Compiling Benchmark Int+Extensions.swift
[185/191] Compiling Benchmark MallocStats+jemalloc-support.swift
[186/191] Compiling Benchmark BenchmarkMetric.swift
[187/191] Compiling Benchmark BenchmarkResult.swift
[188/191] Compiling Benchmark BenchmarkRunner+ReadWrite.swift
[189/208] Compiling BenchmarkTool FilePath+Additions.swift
[190/208] Compiling BenchmarkTool FilePath+DirectoryView.swift
[191/209] Compiling BenchmarkTool String+Additions.swift
[192/209] Compiling BenchmarkTool BenchmarkTool+ReadP90AbsoluteThresholds.swift
[193/209] Compiling BenchmarkTool BenchmarkTool+Thresholds.swift
[194/209] Compiling BenchmarkTool BenchmarkTool+Operations.swift
[195/209] Compiling BenchmarkTool BenchmarkTool+PrettyPrinting.swift
[196/209] Compiling BenchmarkTool BenchmarkTool+JSON.swift
[197/209] Compiling BenchmarkTool BenchmarkTool+Machine.swift
[198/209] Compiling BenchmarkTool BenchmarkTool+Export+JMHFormatter.swift
[199/209] Compiling BenchmarkTool BenchmarkTool+Export.swift
[200/209] Compiling BenchmarkTool BenchmarkTool+Export+InfluxCSVFormatter.swift
[201/209] Compiling BenchmarkTool BenchmarkTool+Export+JMHElement.swift
[202/209] Emitting module BenchmarkTool
/Users/admin/builder/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:38:1: warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
36 | extension BaselineOperation: ExpressibleByArgument {}
37 | extension ThresholdsOperation: ExpressibleByArgument {}
38 | extension BenchmarkMetric: ExpressibleByArgument {}
| |- warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
39 |
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
/Users/admin/builder/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:42:17: warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
41 |
42 | fileprivate var failedBenchmarkRuns = 0
| |- warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'failedBenchmarkRuns' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'failedBenchmarkRuns' 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
43 |
44 | @main
[203/209] Compiling BenchmarkTool BenchmarkTool+Baselines.swift
[204/209] Compiling BenchmarkTool BenchmarkTool+CreateBenchmark.swift
[205/209] Compiling BenchmarkTool BenchmarkTool.swift
/Users/admin/builder/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:38:1: warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
36 | extension BaselineOperation: ExpressibleByArgument {}
37 | extension ThresholdsOperation: ExpressibleByArgument {}
38 | extension BenchmarkMetric: ExpressibleByArgument {}
| |- warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
39 |
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
/Users/admin/builder/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:42:17: warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
41 |
42 | fileprivate var failedBenchmarkRuns = 0
| |- warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'failedBenchmarkRuns' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'failedBenchmarkRuns' 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
43 |
44 | @main
[206/209] Compiling BenchmarkTool Command+Helpers.swift
/Users/admin/builder/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:38:1: warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
36 | extension BaselineOperation: ExpressibleByArgument {}
37 | extension ThresholdsOperation: ExpressibleByArgument {}
38 | extension BenchmarkMetric: ExpressibleByArgument {}
| |- warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
39 |
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
/Users/admin/builder/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:42:17: warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
41 |
42 | fileprivate var failedBenchmarkRuns = 0
| |- warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'failedBenchmarkRuns' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'failedBenchmarkRuns' 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
43 |
44 | @main
[206/209] Write Objects.LinkFileList
[207/209] Linking BenchmarkTool
[208/209] Applying BenchmarkTool
Build complete! (46.84s)
warning: 'spi-builder-workspace': Building for SPI@macOS, disabling Jemalloc
Build complete.
{
"dependencies" : [
{
"identity" : "swift-system",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-system"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
},
{
"identity" : "texttable",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ordo-one/TextTable"
},
{
"identity" : "hdrhistogram-swift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/HdrHistogram/hdrhistogram-swift"
},
{
"identity" : "swift-atomics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-atomics"
},
{
"identity" : "package-jemalloc",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ordo-one/package-jemalloc"
}
],
"manifest_display_name" : "Benchmark",
"name" : "Benchmark",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "BenchmarkCommandPlugin",
"targets" : [
"BenchmarkCommandPlugin"
],
"type" : {
"plugin" : null
}
},
{
"name" : "BenchmarkPlugin",
"targets" : [
"BenchmarkPlugin"
],
"type" : {
"plugin" : null
}
},
{
"name" : "Benchmark",
"targets" : [
"Benchmark"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "BenchmarkTool",
"targets" : [
"BenchmarkTool"
],
"type" : {
"executable" : null
}
},
{
"name" : "BenchmarkHelpGenerator",
"targets" : [
"BenchmarkHelpGenerator"
],
"type" : {
"executable" : null
}
},
{
"name" : "BenchmarkBoilerplateGenerator",
"targets" : [
"BenchmarkBoilerplateGenerator"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftRuntimeHooks",
"module_type" : "ClangTarget",
"name" : "SwiftRuntimeHooks",
"path" : "Sources/SwiftRuntimeHooks",
"product_memberships" : [
"BenchmarkCommandPlugin",
"Benchmark",
"BenchmarkTool"
],
"sources" : [
"shims.c"
],
"type" : "library"
},
{
"c99name" : "CLinuxOperatingSystemStats",
"module_type" : "ClangTarget",
"name" : "CLinuxOperatingSystemStats",
"path" : "Platform/CLinuxOperatingSystemStats",
"product_memberships" : [
"BenchmarkCommandPlugin",
"Benchmark",
"BenchmarkTool"
],
"sources" : [
"CLinuxOperatingSystemStats.c"
],
"type" : "library"
},
{
"c99name" : "CDarwinOperatingSystemStats",
"module_type" : "ClangTarget",
"name" : "CDarwinOperatingSystemStats",
"path" : "Platform/CDarwinOperatingSystemStats",
"product_memberships" : [
"BenchmarkCommandPlugin",
"Benchmark",
"BenchmarkTool"
],
"sources" : [
"CDarwinOperatingSystemStats.c"
],
"type" : "library"
},
{
"c99name" : "BenchmarkTool",
"module_type" : "SwiftTarget",
"name" : "BenchmarkTool",
"path" : "Plugins/BenchmarkTool",
"product_dependencies" : [
"ArgumentParser",
"SystemPackage",
"TextTable"
],
"product_memberships" : [
"BenchmarkCommandPlugin",
"BenchmarkTool"
],
"sources" : [
"BenchmarkTool+Baselines.swift",
"BenchmarkTool+CreateBenchmark.swift",
"BenchmarkTool+Export+InfluxCSVFormatter.swift",
"BenchmarkTool+Export+JMHElement.swift",
"BenchmarkTool+Export+JMHFormatter.swift",
"BenchmarkTool+Export.swift",
"BenchmarkTool+JSON.swift",
"BenchmarkTool+Machine.swift",
"BenchmarkTool+Operations.swift",
"BenchmarkTool+PrettyPrinting.swift",
"BenchmarkTool+ReadP90AbsoluteThresholds.swift",
"BenchmarkTool+Thresholds.swift",
"BenchmarkTool.swift",
"Command+Helpers.swift",
"FilePath+Additions.swift",
"FilePath+DirectoryView.swift",
"String+Additions.swift"
],
"target_dependencies" : [
"Benchmark"
],
"type" : "executable"
},
{
"c99name" : "BenchmarkTests",
"module_type" : "SwiftTarget",
"name" : "BenchmarkTests",
"path" : "Tests/BenchmarkTests",
"sources" : [
"AdditionalTests.swift",
"BenchmarkMetricsTests.swift",
"BenchmarkResultTests.swift",
"BenchmarkRunnerTests.swift",
"BenchmarkTests.swift",
"OperatingSystemAndMallocTests.swift",
"StatisticsTests.swift"
],
"target_dependencies" : [
"Benchmark"
],
"type" : "test"
},
{
"c99name" : "BenchmarkPlugin",
"module_type" : "PluginTarget",
"name" : "BenchmarkPlugin",
"path" : "Plugins/BenchmarkPlugin",
"plugin_capability" : {
"type" : "buildTool"
},
"product_memberships" : [
"BenchmarkPlugin"
],
"sources" : [
"BenchmarkSupportPlugin.swift"
],
"target_dependencies" : [
"BenchmarkBoilerplateGenerator"
],
"type" : "plugin"
},
{
"c99name" : "BenchmarkHelpGenerator",
"module_type" : "SwiftTarget",
"name" : "BenchmarkHelpGenerator",
"path" : "Plugins/BenchmarkHelpGenerator",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"BenchmarkHelpGenerator"
],
"sources" : [
"BenchmarkHelpGenerator.swift",
"Command+Helpers.swift"
],
"type" : "executable"
},
{
"c99name" : "BenchmarkCommandPlugin",
"module_type" : "PluginTarget",
"name" : "BenchmarkCommandPlugin",
"path" : "Plugins/BenchmarkCommandPlugin",
"plugin_capability" : {
"intent" : {
"description" : "Run the Benchmark performance test suite.",
"type" : "custom",
"verb" : "benchmark"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"BenchmarkCommandPlugin"
],
"sources" : [
"ArgumentExtractor+Extensions.swift",
"BenchmarkCommandPlugin.swift",
"BenchmarkPlugin+Help.swift",
"Command+Helpers.swift"
],
"target_dependencies" : [
"BenchmarkTool"
],
"type" : "plugin"
},
{
"c99name" : "BenchmarkBoilerplateGenerator",
"module_type" : "SwiftTarget",
"name" : "BenchmarkBoilerplateGenerator",
"path" : "Plugins/BenchmarkBoilerplateGenerator",
"product_dependencies" : [
"ArgumentParser",
"SystemPackage"
],
"product_memberships" : [
"BenchmarkPlugin",
"BenchmarkBoilerplateGenerator"
],
"sources" : [
"BenchmarkBoilerplateGenerator.swift"
],
"type" : "executable"
},
{
"c99name" : "Benchmark",
"module_type" : "SwiftTarget",
"name" : "Benchmark",
"path" : "Sources/Benchmark",
"product_dependencies" : [
"Histogram",
"ArgumentParser",
"SystemPackage",
"Atomics",
"jemalloc"
],
"product_memberships" : [
"BenchmarkCommandPlugin",
"Benchmark",
"BenchmarkTool"
],
"sources" : [
"ARCStats/ARCStats.swift",
"ARCStats/ARCStatsProducer.swift",
"Benchmark+ConvenienceInitializers.swift",
"Benchmark.swift",
"BenchmarkClock.swift",
"BenchmarkExecutor+Extensions.swift",
"BenchmarkExecutor.swift",
"BenchmarkInternals.swift",
"BenchmarkMetric+Defaults.swift",
"BenchmarkMetric.swift",
"BenchmarkResult.swift",
"BenchmarkRunner+ReadWrite.swift",
"BenchmarkRunner.swift",
"BenchmarkThresholds+Defaults.swift",
"BenchmarkThresholds.swift",
"Blackhole.swift",
"Int+Extensions.swift",
"MallocStats/MallocStats+jemalloc-support.swift",
"MallocStats/MallocStats.swift",
"MallocStats/MallocStatsProducer+jemalloc.swift",
"NIOConcurrencyHelpers/NIOLock.swift",
"NIOConcurrencyHelpers/lock.swift",
"OperatingSystemStats/OperatingSystemStats.swift",
"OperatingSystemStats/OperatingSystemStatsProducer+Darwin.swift",
"OperatingSystemStats/OperatingSystemStatsProducer+Linux.swift",
"Progress/Progress.swift",
"Progress/ProgressElements.swift",
"Progress/Utilities.swift",
"Statistics.swift"
],
"target_dependencies" : [
"CDarwinOperatingSystemStats",
"CLinuxOperatingSystemStats",
"SwiftRuntimeHooks"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.