Build Information
Successful build of Reswifq, reference 1.3.0 (26440b
), with Swift 6.0 (beta) for macOS (SPM) on 20 Jul 2024 01:37:14 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.3.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.46.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/reswifq/reswifq.git
Reference: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/reswifq/reswifq.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.3.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version--14728B76ED507284.txt
[5/6] Emitting module Pool
[6/6] Compiling Pool Pool.swift
[7/10] Compiling RedisClient RedisClientResponse.swift
[8/10] Compiling RedisClient RedisClientPool.swift
[9/10] Emitting module RedisClient
[10/10] Compiling RedisClient RedisClient.swift
[11/22] Compiling Reswifq Data+String.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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 | }
/Users/admin/builder/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)
[12/22] Compiling Reswifq String+Data.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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 | }
/Users/admin/builder/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)
[13/22] Compiling Reswifq DataSerialization.swift
/Users/admin/builder/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 |
[14/22] Emitting module Reswifq
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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 | }
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
[15/22] Compiling Reswifq random.swift
[16/22] Compiling Reswifq sleep.swift
[17/23] Compiling Reswifq Queue.swift
[18/23] Compiling Reswifq Reswifq.swift
[19/23] Compiling Reswifq JobBox.swift
[20/23] Compiling Reswifq Job.swift
/Users/admin/builder/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/23] Compiling Reswifq Reswifc.swift
/Users/admin/builder/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)
/Users/admin/builder/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 | }
[22/23] Compiling Reswifq MemQueue.swift
/Users/admin/builder/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) }
/Users/admin/builder/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) }
/Users/admin/builder/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 | /**
/Users/admin/builder/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) }
/Users/admin/builder/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"
/Users/admin/builder/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/23] Compiling Reswifq Worker.swift
Build complete! (10.69s)
Fetching https://github.com/reswifq/redis-client.git
[1/95] Fetching redis-client
Fetched https://github.com/reswifq/redis-client.git from cache (0.75s)
Computing version for https://github.com/reswifq/redis-client.git
Computed https://github.com/reswifq/redis-client.git at 1.3.0 (0.65s)
Fetching https://github.com/reswifq/pool.git
[1/69] Fetching pool
Fetched https://github.com/reswifq/pool.git from cache (0.66s)
Computing version for https://github.com/reswifq/pool.git
Computed https://github.com/reswifq/pool.git at 1.3.0 (0.63s)
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
Creating working copy for https://github.com/reswifq/pool.git
Working copy of https://github.com/reswifq/pool.git resolved at 1.3.0
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" : "/Users/admin/builder/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"
}
Done.