Build Information
Successful build of Reswifq, reference 1.3.0 (26440b
), with Swift 6.0 (beta) for Linux on 20 Jul 2024 01:37:03 UTC.
Swift 6 data race errors: 1
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.46.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/reswifq/reswifq.git
Reference: 1.3.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/reswifq/reswifq
* tag 1.3.0 -> FETCH_HEAD
HEAD is now at 26440bc updated redis-client to 1.3.0 (#4)
Cloned https://github.com/reswifq/reswifq.git
Revision (git rev-parse @):
26440bc01da2ee2438309914420e7ad6efd9cf2d
SUCCESS checkout https://github.com/reswifq/reswifq.git at 1.3.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/reswifq/reswifq.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:2437f24e80aef9b25b1058900b2010a68c7690bc33114243769a5a7e8e97de91
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/reswifq/redis-client.git
[1/95] Fetching redis-client
Fetched https://github.com/reswifq/redis-client.git from cache (0.18s)
Computing version for https://github.com/reswifq/redis-client.git
Computed https://github.com/reswifq/redis-client.git at 1.3.0 (0.43s)
Fetching https://github.com/reswifq/pool.git
[1/69] Fetching pool
Fetched https://github.com/reswifq/pool.git from cache (0.16s)
Computing version for https://github.com/reswifq/pool.git
Computed https://github.com/reswifq/pool.git at 1.3.0 (0.42s)
Creating working copy for https://github.com/reswifq/pool.git
Working copy of https://github.com/reswifq/pool.git resolved at 1.3.0
Creating working copy for https://github.com/reswifq/redis-client.git
Working copy of https://github.com/reswifq/redis-client.git resolved at 1.3.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/6] Compiling Pool Pool.swift
[6/6] Emitting module Pool
[8/11] Compiling RedisClient RedisClientResponse.swift
[9/11] Compiling RedisClient RedisClientPool.swift
[10/11] Compiling RedisClient RedisClient.swift
[11/11] Emitting module RedisClient
[13/24] Compiling Reswifq Data+String.swift
/host/spi-builder-workspace/Sources/Reswifq/Helpers/Data+String.swift:26:5: warning: 'public' modifier is redundant for enum declared in a public extension
24 | public extension Data {
25 |
26 | public enum ConversionError: Error {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
27 | case stringConversionError
28 | }
/host/spi-builder-workspace/Sources/Reswifq/Helpers/Data+String.swift:30:5: warning: 'public' modifier is redundant for instance method declared in a public extension
28 | }
29 |
30 | public func string(using encoding: String.Encoding) throws -> String {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
31 | guard let result = String(data: self, encoding: encoding) else {
32 | throw ConversionError.stringConversionError
/host/spi-builder-workspace/Sources/Reswifq/Helpers/String+Data.swift:26:5: warning: 'public' modifier is redundant for enum declared in a public extension
24 | public extension String {
25 |
26 | public enum ConversionError: Error {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
27 | case dataConversionError
28 | }
/host/spi-builder-workspace/Sources/Reswifq/Helpers/String+Data.swift:30:5: warning: 'public' modifier is redundant for instance method declared in a public extension
28 | }
29 |
30 | public func data(using encoding: Encoding) throws -> Data {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
31 |
32 | #if os(Linux)
[14/24] Compiling Reswifq String+Data.swift
/host/spi-builder-workspace/Sources/Reswifq/Helpers/Data+String.swift:26:5: warning: 'public' modifier is redundant for enum declared in a public extension
24 | public extension Data {
25 |
26 | public enum ConversionError: Error {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
27 | case stringConversionError
28 | }
/host/spi-builder-workspace/Sources/Reswifq/Helpers/Data+String.swift:30:5: warning: 'public' modifier is redundant for instance method declared in a public extension
28 | }
29 |
30 | public func string(using encoding: String.Encoding) throws -> String {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
31 | guard let result = String(data: self, encoding: encoding) else {
32 | throw ConversionError.stringConversionError
/host/spi-builder-workspace/Sources/Reswifq/Helpers/String+Data.swift:26:5: warning: 'public' modifier is redundant for enum declared in a public extension
24 | public extension String {
25 |
26 | public enum ConversionError: Error {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
27 | case dataConversionError
28 | }
/host/spi-builder-workspace/Sources/Reswifq/Helpers/String+Data.swift:30:5: warning: 'public' modifier is redundant for instance method declared in a public extension
28 | }
29 |
30 | public func data(using encoding: Encoding) throws -> Data {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
31 |
32 | #if os(Linux)
[15/25] Emitting module Reswifq
/host/spi-builder-workspace/Sources/Reswifq/Helpers/Data+String.swift:26:5: warning: 'public' modifier is redundant for enum declared in a public extension
24 | public extension Data {
25 |
26 | public enum ConversionError: Error {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
27 | case stringConversionError
28 | }
/host/spi-builder-workspace/Sources/Reswifq/Helpers/Data+String.swift:30:5: warning: 'public' modifier is redundant for instance method declared in a public extension
28 | }
29 |
30 | public func string(using encoding: String.Encoding) throws -> String {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
31 | guard let result = String(data: self, encoding: encoding) else {
32 | throw ConversionError.stringConversionError
/host/spi-builder-workspace/Sources/Reswifq/Helpers/String+Data.swift:26:5: warning: 'public' modifier is redundant for enum declared in a public extension
24 | public extension String {
25 |
26 | public enum ConversionError: Error {
| `- warning: 'public' modifier is redundant for enum declared in a public extension
27 | case dataConversionError
28 | }
/host/spi-builder-workspace/Sources/Reswifq/Helpers/String+Data.swift:30:5: warning: 'public' modifier is redundant for instance method declared in a public extension
28 | }
29 |
30 | public func data(using encoding: Encoding) throws -> Data {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
31 |
32 | #if os(Linux)
/host/spi-builder-workspace/Sources/Reswifq/Job/DataSerialization.swift:32:10: warning: associated value 'cannotEncodeType' of 'Sendable'-conforming enum 'DataEncodableError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 | public enum DataEncodableError: Error {
32 | case cannotEncodeType(Any)
| `- warning: associated value 'cannotEncodeType' of 'Sendable'-conforming enum 'DataEncodableError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | }
34 |
/host/spi-builder-workspace/Sources/Reswifq/Job/Job.swift:67:5: warning: 'public' modifier is redundant for property declared in a public extension
65 | }
66 |
67 | public var timeToLive: TimeInterval {
| `- warning: 'public' modifier is redundant for property declared in a public extension
68 | return 3600.0 // 1 hour
69 | }
[16/25] Compiling Reswifq Reswifc.swift
/host/spi-builder-workspace/Sources/Reswifq/Reswifc.swift:67:24: warning: capture of 'self' with non-sendable type 'Reswifc' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | Each process will run in its own thread, at the interval it specifies.
35 | */
36 | public final class Reswifc {
| `- note: class 'Reswifc' does not conform to the 'Sendable' protocol
37 |
38 | // MARK: Initialization
:
65 | self.dispatchQueue.async {
66 |
67 | while !self.isCancelled {
| `- warning: capture of 'self' with non-sendable type 'Reswifc' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | process.process()
69 | sleep(process.interval)
/host/spi-builder-workspace/Sources/Reswifq/Reswifc.swift:68:21: warning: capture of 'process' with non-sendable type 'any ReswifcProcess' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | import Dispatch
24 |
25 | public protocol ReswifcProcess {
| `- note: protocol 'ReswifcProcess' does not conform to the 'Sendable' protocol
26 |
27 | var interval: UInt32 { get }
:
66 |
67 | while !self.isCancelled {
68 | process.process()
| `- warning: capture of 'process' with non-sendable type 'any ReswifcProcess' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | sleep(process.interval)
70 | }
[17/25] Compiling Reswifq Queue.swift
[18/25] Compiling Reswifq Reswifq.swift
[19/25] Compiling Reswifq Worker.swift
[20/25] Compiling Reswifq DataSerialization.swift
/host/spi-builder-workspace/Sources/Reswifq/Job/DataSerialization.swift:32:10: warning: associated value 'cannotEncodeType' of 'Sendable'-conforming enum 'DataEncodableError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 | public enum DataEncodableError: Error {
32 | case cannotEncodeType(Any)
| `- warning: associated value 'cannotEncodeType' of 'Sendable'-conforming enum 'DataEncodableError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | }
34 |
/host/spi-builder-workspace/Sources/Reswifq/Job/Job.swift:67:5: warning: 'public' modifier is redundant for property declared in a public extension
65 | }
66 |
67 | public var timeToLive: TimeInterval {
| `- warning: 'public' modifier is redundant for property declared in a public extension
68 | return 3600.0 // 1 hour
69 | }
[21/25] Compiling Reswifq Job.swift
/host/spi-builder-workspace/Sources/Reswifq/Job/DataSerialization.swift:32:10: warning: associated value 'cannotEncodeType' of 'Sendable'-conforming enum 'DataEncodableError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 | public enum DataEncodableError: Error {
32 | case cannotEncodeType(Any)
| `- warning: associated value 'cannotEncodeType' of 'Sendable'-conforming enum 'DataEncodableError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | }
34 |
/host/spi-builder-workspace/Sources/Reswifq/Job/Job.swift:67:5: warning: 'public' modifier is redundant for property declared in a public extension
65 | }
66 |
67 | public var timeToLive: TimeInterval {
| `- warning: 'public' modifier is redundant for property declared in a public extension
68 | return 3600.0 // 1 hour
69 | }
[22/25] Compiling Reswifq JobBox.swift
/host/spi-builder-workspace/Sources/Reswifq/MemQueue.swift:83:13: warning: capture of 'self' with non-sendable type 'MemQueue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | It doesn't implement the Reliable Queue Pattern.
32 | */
33 | public class MemQueue: Queue {
| `- note: class 'MemQueue' does not conform to the 'Sendable' protocol
34 |
35 | // MARK: Setting and Getting Attributes
:
81 | let identifier = UUID().uuidString
82 |
83 | self.jobs[identifier] = (job: job, priority: priority, scheduleAt: scheduleAt)
| `- warning: capture of 'self' with non-sendable type 'MemQueue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 |
85 | self.queueStorage(for: priority, isDelayed: scheduleAt != nil) { $0.append(identifier) }
/host/spi-builder-workspace/Sources/Reswifq/MemQueue.swift:83:43: warning: capture of 'job' with non-sendable type 'any Job' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | let identifier = UUID().uuidString
82 |
83 | self.jobs[identifier] = (job: job, priority: priority, scheduleAt: scheduleAt)
| `- warning: capture of 'job' with non-sendable type 'any Job' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 |
85 | self.queueStorage(for: priority, isDelayed: scheduleAt != nil) { $0.append(identifier) }
/host/spi-builder-workspace/Sources/Reswifq/Job/Job.swift:24:17: note: protocol 'Job' does not conform to the 'Sendable' protocol
22 | import Foundation
23 |
24 | public protocol Job: DataEncodable, DataDecodable {
| `- note: protocol 'Job' does not conform to the 'Sendable' protocol
25 |
26 | /**
/host/spi-builder-workspace/Sources/Reswifq/MemQueue.swift:83:58: warning: capture of 'priority' with non-sendable type 'QueuePriority' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | let identifier = UUID().uuidString
82 |
83 | self.jobs[identifier] = (job: job, priority: priority, scheduleAt: scheduleAt)
| `- warning: capture of 'priority' with non-sendable type 'QueuePriority' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 |
85 | self.queueStorage(for: priority, isDelayed: scheduleAt != nil) { $0.append(identifier) }
/host/spi-builder-workspace/Sources/Reswifq/Queue.swift:41:13: note: consider making enum 'QueuePriority' conform to the 'Sendable' protocol
39 | }
40 |
41 | public enum QueuePriority: String {
| `- note: consider making enum 'QueuePriority' conform to the 'Sendable' protocol
42 |
43 | case high = "high"
/host/spi-builder-workspace/Sources/Reswifq/MemQueue.swift:163:13: warning: capture of 'self' with non-sendable type 'MemQueue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | It doesn't implement the Reliable Queue Pattern.
32 | */
33 | public class MemQueue: Queue {
| `- note: class 'MemQueue' does not conform to the 'Sendable' protocol
34 |
35 | // MARK: Setting and Getting Attributes
:
161 | public func complete(_ job: JobID) throws {
162 | self.queue.async {
163 | self.jobs[job] = nil
| `- warning: capture of 'self' with non-sendable type 'MemQueue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | }
165 | }
[23/25] Compiling Reswifq MemQueue.swift
/host/spi-builder-workspace/Sources/Reswifq/MemQueue.swift:83:13: warning: capture of 'self' with non-sendable type 'MemQueue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | It doesn't implement the Reliable Queue Pattern.
32 | */
33 | public class MemQueue: Queue {
| `- note: class 'MemQueue' does not conform to the 'Sendable' protocol
34 |
35 | // MARK: Setting and Getting Attributes
:
81 | let identifier = UUID().uuidString
82 |
83 | self.jobs[identifier] = (job: job, priority: priority, scheduleAt: scheduleAt)
| `- warning: capture of 'self' with non-sendable type 'MemQueue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 |
85 | self.queueStorage(for: priority, isDelayed: scheduleAt != nil) { $0.append(identifier) }
/host/spi-builder-workspace/Sources/Reswifq/MemQueue.swift:83:43: warning: capture of 'job' with non-sendable type 'any Job' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | let identifier = UUID().uuidString
82 |
83 | self.jobs[identifier] = (job: job, priority: priority, scheduleAt: scheduleAt)
| `- warning: capture of 'job' with non-sendable type 'any Job' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 |
85 | self.queueStorage(for: priority, isDelayed: scheduleAt != nil) { $0.append(identifier) }
/host/spi-builder-workspace/Sources/Reswifq/Job/Job.swift:24:17: note: protocol 'Job' does not conform to the 'Sendable' protocol
22 | import Foundation
23 |
24 | public protocol Job: DataEncodable, DataDecodable {
| `- note: protocol 'Job' does not conform to the 'Sendable' protocol
25 |
26 | /**
/host/spi-builder-workspace/Sources/Reswifq/MemQueue.swift:83:58: warning: capture of 'priority' with non-sendable type 'QueuePriority' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | let identifier = UUID().uuidString
82 |
83 | self.jobs[identifier] = (job: job, priority: priority, scheduleAt: scheduleAt)
| `- warning: capture of 'priority' with non-sendable type 'QueuePriority' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 |
85 | self.queueStorage(for: priority, isDelayed: scheduleAt != nil) { $0.append(identifier) }
/host/spi-builder-workspace/Sources/Reswifq/Queue.swift:41:13: note: consider making enum 'QueuePriority' conform to the 'Sendable' protocol
39 | }
40 |
41 | public enum QueuePriority: String {
| `- note: consider making enum 'QueuePriority' conform to the 'Sendable' protocol
42 |
43 | case high = "high"
/host/spi-builder-workspace/Sources/Reswifq/MemQueue.swift:163:13: warning: capture of 'self' with non-sendable type 'MemQueue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | It doesn't implement the Reliable Queue Pattern.
32 | */
33 | public class MemQueue: Queue {
| `- note: class 'MemQueue' does not conform to the 'Sendable' protocol
34 |
35 | // MARK: Setting and Getting Attributes
:
161 | public func complete(_ job: JobID) throws {
162 | self.queue.async {
163 | self.jobs[job] = nil
| `- warning: capture of 'self' with non-sendable type 'MemQueue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | }
165 | }
[24/25] Compiling Reswifq random.swift
[25/25] Compiling Reswifq sleep.swift
Build complete! (12.50s)
Build complete.
{
"dependencies" : [
{
"identity" : "redis-client",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/reswifq/redis-client.git"
}
],
"manifest_display_name" : "Reswifq",
"name" : "Reswifq",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Reswifq",
"targets" : [
"Reswifq"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ReswifqTests",
"module_type" : "SwiftTarget",
"name" : "ReswifqTests",
"path" : "Tests/ReswifqTests",
"sources" : [
"Helpers/DataStringTests.swift",
"Helpers/StringDataTests.swift",
"Helpers/randomTests.swift",
"Helpers/sleepTests.swift",
"Job/JobBoxTests.swift",
"Job/JobTests.swift",
"MemQueueTests.swift",
"ReswifcKituraTests.swift",
"ReswifcVaporTests.swift",
"ReswifqKituraTests.swift",
"ReswifqVaporTests.swift",
"WorkerTests.swift"
],
"target_dependencies" : [
"Reswifq"
],
"type" : "test"
},
{
"c99name" : "Reswifq",
"module_type" : "SwiftTarget",
"name" : "Reswifq",
"path" : "Sources/Reswifq",
"product_dependencies" : [
"RedisClient"
],
"product_memberships" : [
"Reswifq"
],
"sources" : [
"Helpers/Data+String.swift",
"Helpers/String+Data.swift",
"Helpers/random.swift",
"Helpers/sleep.swift",
"Job/DataSerialization.swift",
"Job/Job.swift",
"Job/JobBox.swift",
"MemQueue.swift",
"Queue.swift",
"Reswifc.swift",
"Reswifq.swift",
"Worker.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:2437f24e80aef9b25b1058900b2010a68c7690bc33114243769a5a7e8e97de91
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.