Build Information
Successful build of swift-w3c-trace-context, reference 0.6.0 (9913eb
), with Swift 6.0 for Linux on 5 Nov 2024 06:15:53 UTC.
Swift 6 data race errors: 1
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/slashmo/swift-w3c-trace-context.git
Reference: 0.6.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/slashmo/swift-w3c-trace-context
* tag 0.6.0 -> FETCH_HEAD
HEAD is now at 9913eb7 Use 0.6.0 🔖 in installation instructions 📖 (#12)
Cloned https://github.com/slashmo/swift-w3c-trace-context.git
Revision (git rev-parse @):
9913eb786060af7c5699af86857e2292fe32acf8
SUCCESS checkout https://github.com/slashmo/swift-w3c-trace-context.git at 0.6.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/slashmo/swift-w3c-trace-context.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling W3CTraceContext TraceState.swift
[4/8] Compiling W3CTraceContext TraceParent.swift
[5/8] Compiling W3CTraceContext TraceID.swift
[6/8] Compiling W3CTraceContext TraceFlags.swift
/host/spi-builder-workspace/Sources/W3CTraceContext/TraceFlags.swift:23:23: warning: static property 'sampled' is not concurrency-safe because non-'Sendable' type 'TraceFlags' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Represents an 8-bit field that controls tracing flags such as sampling.
15 | public struct TraceFlags: OptionSet {
| `- note: consider making struct 'TraceFlags' conform to the 'Sendable' protocol
16 | public let rawValue: UInt8
17 |
:
21 |
22 | /// [W3C TraceContext: Sampled flag](https://www.w3.org/TR/2020/REC-trace-context-1-20200206/#sampled-flag)
23 | public static let sampled = TraceFlags(rawValue: 1 << 0)
| |- warning: static property 'sampled' is not concurrency-safe because non-'Sendable' type 'TraceFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sampled' 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
24 | }
25 |
[7/8] Emitting module W3CTraceContext
/host/spi-builder-workspace/Sources/W3CTraceContext/TraceFlags.swift:23:23: warning: static property 'sampled' is not concurrency-safe because non-'Sendable' type 'TraceFlags' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Represents an 8-bit field that controls tracing flags such as sampling.
15 | public struct TraceFlags: OptionSet {
| `- note: consider making struct 'TraceFlags' conform to the 'Sendable' protocol
16 | public let rawValue: UInt8
17 |
:
21 |
22 | /// [W3C TraceContext: Sampled flag](https://www.w3.org/TR/2020/REC-trace-context-1-20200206/#sampled-flag)
23 | public static let sampled = TraceFlags(rawValue: 1 << 0)
| |- warning: static property 'sampled' is not concurrency-safe because non-'Sendable' type 'TraceFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sampled' 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
24 | }
25 |
[8/8] Compiling W3CTraceContext TraceContext.swift
/host/spi-builder-workspace/Sources/W3CTraceContext/TraceFlags.swift:23:23: warning: static property 'sampled' is not concurrency-safe because non-'Sendable' type 'TraceFlags' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Represents an 8-bit field that controls tracing flags such as sampling.
15 | public struct TraceFlags: OptionSet {
| `- note: consider making struct 'TraceFlags' conform to the 'Sendable' protocol
16 | public let rawValue: UInt8
17 |
:
21 |
22 | /// [W3C TraceContext: Sampled flag](https://www.w3.org/TR/2020/REC-trace-context-1-20200206/#sampled-flag)
23 | public static let sampled = TraceFlags(rawValue: 1 << 0)
| |- warning: static property 'sampled' is not concurrency-safe because non-'Sendable' type 'TraceFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sampled' 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
24 | }
25 |
Build complete! (6.56s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swift-w3c-trace-context",
"name" : "swift-w3c-trace-context",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "W3CTraceContext",
"targets" : [
"W3CTraceContext"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "W3CTraceContextTests",
"module_type" : "SwiftTarget",
"name" : "W3CTraceContextTests",
"path" : "Tests/W3CTraceContextTests",
"sources" : [
"TestRandomNumberGenerator.swift",
"TraceContextTests.swift",
"TraceIDTests.swift",
"TraceParentTests.swift",
"TraceStateTests.swift"
],
"target_dependencies" : [
"W3CTraceContext"
],
"type" : "test"
},
{
"c99name" : "W3CTraceContext",
"module_type" : "SwiftTarget",
"name" : "W3CTraceContext",
"path" : "Sources/W3CTraceContext",
"product_memberships" : [
"W3CTraceContext"
],
"sources" : [
"TraceContext.swift",
"TraceFlags.swift",
"TraceID.swift",
"TraceParent.swift",
"TraceState.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.