Build Information
Successful build of smoke-http, reference main (060537), with Swift 6.1 for Android on 30 May 2025 06:29:34 UTC.
Swift 6 data race errors: 2
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1Build Log
140 | case .clientError, .clientRetryableError:
141 | invocationContext.reporting.failure4XXCounter?.increment()
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
142 | case .serverError:
143 | invocationContext.reporting.failure5XXCounter?.increment()
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:152:44: warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
150 |
151 | return future.flatMap { output in
152 | if let durationMetricDetails = durationMetricDetails {
| `- warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
153 | let timeInterval = Date().timeIntervalSince(durationMetricDetails.0)
154 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientCoreInvocationReporting.swift:39:17: note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
37 | This is really a stop-gap measure until distributed tracing comes along and we can do this in a more standardised way.
38 | */
39 | public protocol OutwardsRequestAggregator {
| `- note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
40 |
41 | func recordOutwardsRequest(outputRequestRecord: OutputRequestRecord, onCompletion: @escaping () -> ())
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:168:32: warning: capture of 'output' with non-sendable type 'OutputType' in a '@Sendable' closure
94 | - Returns: A future that will produce the execution result or failure.
95 | */
96 | internal func executeAsEventLoopFutureWithOutputWithWrappedInvocationContext< OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
97 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>(
98 | endpointOverride: URL? = nil,
:
166 |
167 | return promise.futureResult.map {
168 | return output
| `- warning: capture of 'output' with non-sendable type 'OutputType' in a '@Sendable' closure
169 | }
170 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:33:17: warning: capture of 'completion' with non-sendable type '(ErrorType?) -> ()' in a '@Sendable' closure
31 | switch result {
32 | case .success:
33 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '(ErrorType?) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
34 | case .failure(let error):
35 | completion(typedErrorProvider(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:35:28: warning: capture of 'typedErrorProvider' with non-sendable type '(any Error) -> ErrorType' in a '@Sendable' closure
33 | completion(nil)
34 | case .failure(let error):
35 | completion(typedErrorProvider(error))
| |- warning: capture of 'typedErrorProvider' with non-sendable type '(any Error) -> ErrorType' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 | }
37 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:119:21: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
117 | invocationContext: invocationContext)
118 | .map { _ -> Void in
119 | invocationContext.reporting.successCounter?.increment()
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
120 | } .flatMapErrorThrowing { error in
121 | if let typedError = error as? HTTPClientError {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:125:29: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
123 | switch typedError.category {
124 | case .clientError, .clientRetryableError:
125 | invocationContext.reporting.failure4XXCounter?.increment()
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
126 | case .serverError:
127 | invocationContext.reporting.failure5XXCounter?.increment()
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:136:48: warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
134 |
135 | return future.flatMap { _ in
136 | if let durationMetricDetails = durationMetricDetails {
| `- warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
137 | let timeInterval = Date().timeIntervalSince(durationMetricDetails.0)
138 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientCoreInvocationReporting.swift:39:17: note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
37 | This is really a stop-gap measure until distributed tracing comes along and we can do this in a more standardised way.
38 | */
39 | public protocol OutwardsRequestAggregator {
| `- note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
40 |
41 | func recordOutwardsRequest(outputRequestRecord: OutputRequestRecord, onCompletion: @escaping () -> ())
[1056/1075] Compiling SmokeHTTPClient HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:91:60: warning: type 'OutputType' does not conform to the 'Sendable' protocol
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
89 | endpointOverride: endpointOverride,
90 | requestComponents: requestComponents, httpMethod: httpMethod,
91 | invocationContext: innerInvocationContext).flatMapError { error -> EventLoopFuture<OutputType> in
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
92 | let httpClientError: HTTPClientError
93 | if let typedError = error as? HTTPClientError {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:103:27: warning: type 'OutputType' does not conform to the 'Sendable' protocol
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
101 | }
102 |
103 | return future.flatMap { result in
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
104 | return self.onSuccess().map { result }
105 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:100:24: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: generic class 'ExecuteAsEventLoopFutureWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
98 | }
99 |
100 | return self.getNextFuture(error: httpClientError)
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
101 | }
102 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:104:24: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: generic class 'ExecuteAsEventLoopFutureWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
102 |
103 | return future.flatMap { result in
104 | return self.onSuccess().map { result }
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
105 | }
106 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:104:47: warning: capture of 'result' with non-sendable type 'OutputType' in a '@Sendable' closure
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
102 |
103 | return future.flatMap { result in
104 | return self.onSuccess().map { result }
| `- warning: capture of 'result' with non-sendable type 'OutputType' in a '@Sendable' closure
105 | }
106 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:150:29: warning: type 'OutputType' does not conform to the 'Sendable' protocol
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
148 | let nextFuture = self.executeAsEventLoopFutureWithOutput()
149 |
150 | promise.completeWith(nextFuture)
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
151 | }
152 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:154:37: warning: type 'OutputType' does not conform to the 'Sendable' protocol
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
152 |
153 | // return the future that will be completed with the future retry.
154 | return recordFuture.flatMap { promise.futureResult }
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
155 | }
156 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:176:33: warning: type 'OutputType' does not conform to the 'Sendable' protocol
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
174 | let reportFuture = onComplete()
175 |
176 | return reportFuture.flatMap { promise.futureResult }
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
177 | }
178 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:148:38: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: generic class 'ExecuteAsEventLoopFutureWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
146 | logger.trace("Reattempting request due to remaining retries: \(currentRetriesRemaining)")
147 |
148 | let nextFuture = self.executeAsEventLoopFutureWithOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
149 |
150 | promise.completeWith(nextFuture)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithoutOutput.swift:99:24: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: generic class 'ExecuteAsEventLoopFutureWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | let endpointOverride: URL?
32 | let requestComponents: HTTPRequestComponents
:
97 | }
98 |
99 | return self.getNextFuture(error: httpClientError)
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
100 | }
101 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithoutOutput.swift:103:24: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: generic class 'ExecuteAsEventLoopFutureWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | let endpointOverride: URL?
32 | let requestComponents: HTTPRequestComponents
:
101 |
102 | return future.flatMap {
103 | return self.onSuccess()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
104 | }
105 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithoutOutput.swift:148:38: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: generic class 'ExecuteAsEventLoopFutureWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | let endpointOverride: URL?
32 | let requestComponents: HTTPRequestComponents
:
146 | logger.trace("Reattempting request due to remaining retries: \(currentRetriesRemaining)")
147 |
148 | let nextFuture = self.executeAsEventLoopFutureWithoutOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
149 |
150 | promise.completeWith(nextFuture)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:33:17: warning: capture of 'completion' with non-sendable type '(Result<Value, ErrorType>) -> ()' in a '@Sendable' closure
31 | switch result {
32 | case .success(let output):
33 | completion(.success(output))
| |- warning: capture of 'completion' with non-sendable type '(Result<Value, ErrorType>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
34 | case .failure(let error):
35 | completion(.failure(typedErrorProvider(error)))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:35:37: warning: capture of 'typedErrorProvider' with non-sendable type '(any Error) -> ErrorType' in a '@Sendable' closure
33 | completion(.success(output))
34 | case .failure(let error):
35 | completion(.failure(typedErrorProvider(error)))
| |- warning: capture of 'typedErrorProvider' with non-sendable type '(any Error) -> ErrorType' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 | }
37 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:151:23: warning: type 'OutputType' does not conform to the 'Sendable' protocol
94 | - Returns: A future that will produce the execution result or failure.
95 | */
96 | internal func executeAsEventLoopFutureWithOutputWithWrappedInvocationContext< OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
97 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>(
98 | endpointOverride: URL? = nil,
:
149 | }
150 |
151 | return future.flatMap { output in
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
152 | if let durationMetricDetails = durationMetricDetails {
153 | let timeInterval = Date().timeIntervalSince(durationMetricDetails.0)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:173:37: warning: type 'OutputType' does not conform to the 'Sendable' protocol
94 | - Returns: A future that will produce the execution result or failure.
95 | */
96 | internal func executeAsEventLoopFutureWithOutputWithWrappedInvocationContext< OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
97 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>(
98 | endpointOverride: URL? = nil,
:
171 | }
172 |
173 | return future.eventLoop.makeSucceededFuture(output)
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
174 | }
175 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:122:50: warning: capture of 'requestDelegate' with non-sendable type 'any HTTPClientDelegate' in a '@Sendable' closure
120 | do {
121 | // decode the provided body into the desired type
122 | let output: OutputType = try requestDelegate.decodeOutput(
| `- warning: capture of 'requestDelegate' with non-sendable type 'any HTTPClientDelegate' in a '@Sendable' closure
123 | output: response.body,
124 | headers: response.headers,
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientDelegate.swift:29:17: note: protocol 'HTTPClientDelegate' does not conform to the 'Sendable' protocol
27 | Delegate protocol that handles client-specific logic.
28 | */
29 | public protocol HTTPClientDelegate {
| `- note: protocol 'HTTPClientDelegate' does not conform to the 'Sendable' protocol
30 |
31 | /// Gets the error corresponding to a client response body on the response head and body data.
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:125:46: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
123 | output: response.body,
124 | headers: response.headers,
125 | invocationReporting: invocationContext.reporting)
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
126 |
127 | // report success metric
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:141:25: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
139 | switch typedError.category {
140 | case .clientError, .clientRetryableError:
141 | invocationContext.reporting.failure4XXCounter?.increment()
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
142 | case .serverError:
143 | invocationContext.reporting.failure5XXCounter?.increment()
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:152:44: warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
150 |
151 | return future.flatMap { output in
152 | if let durationMetricDetails = durationMetricDetails {
| `- warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
153 | let timeInterval = Date().timeIntervalSince(durationMetricDetails.0)
154 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientCoreInvocationReporting.swift:39:17: note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
37 | This is really a stop-gap measure until distributed tracing comes along and we can do this in a more standardised way.
38 | */
39 | public protocol OutwardsRequestAggregator {
| `- note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
40 |
41 | func recordOutwardsRequest(outputRequestRecord: OutputRequestRecord, onCompletion: @escaping () -> ())
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:168:32: warning: capture of 'output' with non-sendable type 'OutputType' in a '@Sendable' closure
94 | - Returns: A future that will produce the execution result or failure.
95 | */
96 | internal func executeAsEventLoopFutureWithOutputWithWrappedInvocationContext< OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
97 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>(
98 | endpointOverride: URL? = nil,
:
166 |
167 | return promise.futureResult.map {
168 | return output
| `- warning: capture of 'output' with non-sendable type 'OutputType' in a '@Sendable' closure
169 | }
170 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:33:17: warning: capture of 'completion' with non-sendable type '(ErrorType?) -> ()' in a '@Sendable' closure
31 | switch result {
32 | case .success:
33 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '(ErrorType?) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
34 | case .failure(let error):
35 | completion(typedErrorProvider(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:35:28: warning: capture of 'typedErrorProvider' with non-sendable type '(any Error) -> ErrorType' in a '@Sendable' closure
33 | completion(nil)
34 | case .failure(let error):
35 | completion(typedErrorProvider(error))
| |- warning: capture of 'typedErrorProvider' with non-sendable type '(any Error) -> ErrorType' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 | }
37 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:119:21: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
117 | invocationContext: invocationContext)
118 | .map { _ -> Void in
119 | invocationContext.reporting.successCounter?.increment()
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
120 | } .flatMapErrorThrowing { error in
121 | if let typedError = error as? HTTPClientError {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:125:29: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
123 | switch typedError.category {
124 | case .clientError, .clientRetryableError:
125 | invocationContext.reporting.failure4XXCounter?.increment()
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
126 | case .serverError:
127 | invocationContext.reporting.failure5XXCounter?.increment()
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:136:48: warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
134 |
135 | return future.flatMap { _ in
136 | if let durationMetricDetails = durationMetricDetails {
| `- warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
137 | let timeInterval = Date().timeIntervalSince(durationMetricDetails.0)
138 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientCoreInvocationReporting.swift:39:17: note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
37 | This is really a stop-gap measure until distributed tracing comes along and we can do this in a more standardised way.
38 | */
39 | public protocol OutwardsRequestAggregator {
| `- note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
40 |
41 | func recordOutwardsRequest(outputRequestRecord: OutputRequestRecord, onCompletion: @escaping () -> ())
[1057/1075] Compiling SmokeHTTPClient HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:91:60: warning: type 'OutputType' does not conform to the 'Sendable' protocol
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
89 | endpointOverride: endpointOverride,
90 | requestComponents: requestComponents, httpMethod: httpMethod,
91 | invocationContext: innerInvocationContext).flatMapError { error -> EventLoopFuture<OutputType> in
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
92 | let httpClientError: HTTPClientError
93 | if let typedError = error as? HTTPClientError {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:103:27: warning: type 'OutputType' does not conform to the 'Sendable' protocol
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
101 | }
102 |
103 | return future.flatMap { result in
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
104 | return self.onSuccess().map { result }
105 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:100:24: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: generic class 'ExecuteAsEventLoopFutureWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
98 | }
99 |
100 | return self.getNextFuture(error: httpClientError)
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
101 | }
102 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:104:24: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: generic class 'ExecuteAsEventLoopFutureWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
102 |
103 | return future.flatMap { result in
104 | return self.onSuccess().map { result }
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
105 | }
106 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:104:47: warning: capture of 'result' with non-sendable type 'OutputType' in a '@Sendable' closure
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
102 |
103 | return future.flatMap { result in
104 | return self.onSuccess().map { result }
| `- warning: capture of 'result' with non-sendable type 'OutputType' in a '@Sendable' closure
105 | }
106 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:150:29: warning: type 'OutputType' does not conform to the 'Sendable' protocol
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
148 | let nextFuture = self.executeAsEventLoopFutureWithOutput()
149 |
150 | promise.completeWith(nextFuture)
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
151 | }
152 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:154:37: warning: type 'OutputType' does not conform to the 'Sendable' protocol
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
152 |
153 | // return the future that will be completed with the future retry.
154 | return recordFuture.flatMap { promise.futureResult }
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
155 | }
156 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:176:33: warning: type 'OutputType' does not conform to the 'Sendable' protocol
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
174 | let reportFuture = onComplete()
175 |
176 | return reportFuture.flatMap { promise.futureResult }
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
177 | }
178 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift:148:38: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithOutputRetriable<OutputType,
| `- note: generic class 'ExecuteAsEventLoopFutureWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where OutputType: HTTPResponseOutputProtocol {
:
146 | logger.trace("Reattempting request due to remaining retries: \(currentRetriesRemaining)")
147 |
148 | let nextFuture = self.executeAsEventLoopFutureWithOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithOutputRetriable<OutputType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
149 |
150 | promise.completeWith(nextFuture)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithoutOutput.swift:99:24: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: generic class 'ExecuteAsEventLoopFutureWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | let endpointOverride: URL?
32 | let requestComponents: HTTPRequestComponents
:
97 | }
98 |
99 | return self.getNextFuture(error: httpClientError)
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
100 | }
101 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithoutOutput.swift:103:24: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: generic class 'ExecuteAsEventLoopFutureWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | let endpointOverride: URL?
32 | let requestComponents: HTTPRequestComponents
:
101 |
102 | return future.flatMap {
103 | return self.onSuccess()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
104 | }
105 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureRetriableWithoutOutput.swift:148:38: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: generic class 'ExecuteAsEventLoopFutureWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | let endpointOverride: URL?
32 | let requestComponents: HTTPRequestComponents
:
146 | logger.trace("Reattempting request due to remaining retries: \(currentRetriesRemaining)")
147 |
148 | let nextFuture = self.executeAsEventLoopFutureWithoutOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsEventLoopFutureWithoutOutputRetriable<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
149 |
150 | promise.completeWith(nextFuture)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:33:17: warning: capture of 'completion' with non-sendable type '(Result<Value, ErrorType>) -> ()' in a '@Sendable' closure
31 | switch result {
32 | case .success(let output):
33 | completion(.success(output))
| |- warning: capture of 'completion' with non-sendable type '(Result<Value, ErrorType>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
34 | case .failure(let error):
35 | completion(.failure(typedErrorProvider(error)))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:35:37: warning: capture of 'typedErrorProvider' with non-sendable type '(any Error) -> ErrorType' in a '@Sendable' closure
33 | completion(.success(output))
34 | case .failure(let error):
35 | completion(.failure(typedErrorProvider(error)))
| |- warning: capture of 'typedErrorProvider' with non-sendable type '(any Error) -> ErrorType' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 | }
37 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:151:23: warning: type 'OutputType' does not conform to the 'Sendable' protocol
94 | - Returns: A future that will produce the execution result or failure.
95 | */
96 | internal func executeAsEventLoopFutureWithOutputWithWrappedInvocationContext< OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
97 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>(
98 | endpointOverride: URL? = nil,
:
149 | }
150 |
151 | return future.flatMap { output in
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
152 | if let durationMetricDetails = durationMetricDetails {
153 | let timeInterval = Date().timeIntervalSince(durationMetricDetails.0)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:173:37: warning: type 'OutputType' does not conform to the 'Sendable' protocol
94 | - Returns: A future that will produce the execution result or failure.
95 | */
96 | internal func executeAsEventLoopFutureWithOutputWithWrappedInvocationContext< OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
97 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>(
98 | endpointOverride: URL? = nil,
:
171 | }
172 |
173 | return future.eventLoop.makeSucceededFuture(output)
| `- warning: type 'OutputType' does not conform to the 'Sendable' protocol
174 | }
175 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:122:50: warning: capture of 'requestDelegate' with non-sendable type 'any HTTPClientDelegate' in a '@Sendable' closure
120 | do {
121 | // decode the provided body into the desired type
122 | let output: OutputType = try requestDelegate.decodeOutput(
| `- warning: capture of 'requestDelegate' with non-sendable type 'any HTTPClientDelegate' in a '@Sendable' closure
123 | output: response.body,
124 | headers: response.headers,
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientDelegate.swift:29:17: note: protocol 'HTTPClientDelegate' does not conform to the 'Sendable' protocol
27 | Delegate protocol that handles client-specific logic.
28 | */
29 | public protocol HTTPClientDelegate {
| `- note: protocol 'HTTPClientDelegate' does not conform to the 'Sendable' protocol
30 |
31 | /// Gets the error corresponding to a client response body on the response head and body data.
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:125:46: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
123 | output: response.body,
124 | headers: response.headers,
125 | invocationReporting: invocationContext.reporting)
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
126 |
127 | // report success metric
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:141:25: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
139 | switch typedError.category {
140 | case .clientError, .clientRetryableError:
141 | invocationContext.reporting.failure4XXCounter?.increment()
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
142 | case .serverError:
143 | invocationContext.reporting.failure5XXCounter?.increment()
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:152:44: warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
150 |
151 | return future.flatMap { output in
152 | if let durationMetricDetails = durationMetricDetails {
| `- warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
153 | let timeInterval = Date().timeIntervalSince(durationMetricDetails.0)
154 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientCoreInvocationReporting.swift:39:17: note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
37 | This is really a stop-gap measure until distributed tracing comes along and we can do this in a more standardised way.
38 | */
39 | public protocol OutwardsRequestAggregator {
| `- note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
40 |
41 | func recordOutwardsRequest(outputRequestRecord: OutputRequestRecord, onCompletion: @escaping () -> ())
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift:168:32: warning: capture of 'output' with non-sendable type 'OutputType' in a '@Sendable' closure
94 | - Returns: A future that will produce the execution result or failure.
95 | */
96 | internal func executeAsEventLoopFutureWithOutputWithWrappedInvocationContext< OutputType,
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
97 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>(
98 | endpointOverride: URL? = nil,
:
166 |
167 | return promise.futureResult.map {
168 | return output
| `- warning: capture of 'output' with non-sendable type 'OutputType' in a '@Sendable' closure
169 | }
170 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:33:17: warning: capture of 'completion' with non-sendable type '(ErrorType?) -> ()' in a '@Sendable' closure
31 | switch result {
32 | case .success:
33 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '(ErrorType?) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
34 | case .failure(let error):
35 | completion(typedErrorProvider(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:35:28: warning: capture of 'typedErrorProvider' with non-sendable type '(any Error) -> ErrorType' in a '@Sendable' closure
33 | completion(nil)
34 | case .failure(let error):
35 | completion(typedErrorProvider(error))
| |- warning: capture of 'typedErrorProvider' with non-sendable type '(any Error) -> ErrorType' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 | }
37 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:119:21: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
117 | invocationContext: invocationContext)
118 | .map { _ -> Void in
119 | invocationContext.reporting.successCounter?.increment()
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
120 | } .flatMapErrorThrowing { error in
121 | if let typedError = error as? HTTPClientError {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:125:29: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
123 | switch typedError.category {
124 | case .clientError, .clientRetryableError:
125 | invocationContext.reporting.failure4XXCounter?.increment()
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
126 | case .serverError:
127 | invocationContext.reporting.failure5XXCounter?.increment()
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift:136:48: warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
134 |
135 | return future.flatMap { _ in
136 | if let durationMetricDetails = durationMetricDetails {
| `- warning: capture of 'durationMetricDetails' with non-sendable type '(Date, Timer?, (any OutwardsRequestAggregator)?)?' in a '@Sendable' closure
137 | let timeInterval = Date().timeIntervalSince(durationMetricDetails.0)
138 |
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientCoreInvocationReporting.swift:39:17: note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
37 | This is really a stop-gap measure until distributed tracing comes along and we can do this in a more standardised way.
38 | */
39 | public protocol OutwardsRequestAggregator {
| `- note: protocol 'OutwardsRequestAggregator' does not conform to the 'Sendable' protocol
40 |
41 | func recordOutwardsRequest(outputRequestRecord: OutputRequestRecord, onCompletion: @escaping () -> ())
[1058/1075] Compiling SmokeHTTPClient AsyncResponseInvocationStrategy.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:13: warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| |- warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' 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'
35 | }
36 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:24: warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
22 | DispatchQueue.global().
23 | */
24 | public struct GlobalDispatchQueueAsyncResponseInvocationStrategy<OutputType>: AsyncResponseInvocationStrategy {
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
25 | let queue = DispatchQueue.global()
26 |
:
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| `- warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
35 | }
36 | }
[1059/1075] Compiling SmokeHTTPClient BodyHTTPRequestInput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:13: warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| |- warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' 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'
35 | }
36 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:24: warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
22 | DispatchQueue.global().
23 | */
24 | public struct GlobalDispatchQueueAsyncResponseInvocationStrategy<OutputType>: AsyncResponseInvocationStrategy {
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
25 | let queue = DispatchQueue.global()
26 |
:
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| `- warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
35 | }
36 | }
[1060/1075] Compiling SmokeHTTPClient GlobalDispatchQueueAsyncResponseInvocationStrategy.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:13: warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| |- warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' 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'
35 | }
36 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:24: warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
22 | DispatchQueue.global().
23 | */
24 | public struct GlobalDispatchQueueAsyncResponseInvocationStrategy<OutputType>: AsyncResponseInvocationStrategy {
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
25 | let queue = DispatchQueue.global()
26 |
:
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| `- warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
35 | }
36 | }
[1061/1075] Compiling SmokeHTTPClient HTTPClientCoreInvocationReporting.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:13: warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| |- warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' 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'
35 | }
36 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:24: warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
22 | DispatchQueue.global().
23 | */
24 | public struct GlobalDispatchQueueAsyncResponseInvocationStrategy<OutputType>: AsyncResponseInvocationStrategy {
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
25 | let queue = DispatchQueue.global()
26 |
:
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| `- warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
35 | }
36 | }
[1062/1075] Compiling SmokeHTTPClient HTTPClientDelegate.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:13: warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| |- warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' 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'
35 | }
36 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:24: warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
22 | DispatchQueue.global().
23 | */
24 | public struct GlobalDispatchQueueAsyncResponseInvocationStrategy<OutputType>: AsyncResponseInvocationStrategy {
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
25 | let queue = DispatchQueue.global()
26 |
:
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| `- warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
35 | }
36 | }
[1063/1075] Compiling SmokeHTTPClient HTTPClientInnerRetryInvocationReporting.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:13: warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| |- warning: capture of 'completion' with non-sendable type '(OutputType) -> ()' 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'
35 | }
36 | }
/host/spi-builder-workspace/Sources/SmokeHTTPClient/GlobalDispatchQueueAsyncResponseInvocationStrategy.swift:34:24: warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
22 | DispatchQueue.global().
23 | */
24 | public struct GlobalDispatchQueueAsyncResponseInvocationStrategy<OutputType>: AsyncResponseInvocationStrategy {
| `- note: consider making generic parameter 'OutputType' conform to the 'Sendable' protocol
25 | let queue = DispatchQueue.global()
26 |
:
32 | completion: @escaping (OutputType) -> ()) {
33 | queue.async {
34 | completion(response)
| `- warning: capture of 'response' with non-sendable type 'OutputType' in a '@Sendable' closure; this is an error in the Swift 6 language mode
35 | }
36 | }
[1064/1075] Compiling SmokeHTTPClient HTTPOperationsClient+executeAsyncRetriableWithoutOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsyncRetriableWithoutOutput.swift:123:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
121 | do {
122 | // execute again
123 | try self.executeAsyncWithoutOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
124 | return
125 | } catch {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:96:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
94 | clientDelegate: HTTPClientDelegate,
95 | connectionTimeoutSeconds: Int64 = 10,
96 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
97 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
98 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:131:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
129 | clientDelegate: HTTPClientDelegate,
130 | timeoutConfiguration: HTTPClient.Configuration.Timeout,
131 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
132 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
133 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:46: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:93: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:219:98: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
219 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
220 | result: result)
221 | completion(.success(responseComponents))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:221:17: warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
221 | completion(.success(responseComponents))
| |- warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
222 | } catch let error as HTTPClientError {
223 | completion(.failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:250:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
250 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
251 | result: .success(successResult))
252 | } .flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:262:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
262 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
263 | result: .failure(error))
264 | }
[1065/1075] Compiling SmokeHTTPClient HTTPOperationsClient+executeRetriableWithOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsyncRetriableWithoutOutput.swift:123:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
121 | do {
122 | // execute again
123 | try self.executeAsyncWithoutOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
124 | return
125 | } catch {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:96:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
94 | clientDelegate: HTTPClientDelegate,
95 | connectionTimeoutSeconds: Int64 = 10,
96 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
97 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
98 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:131:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
129 | clientDelegate: HTTPClientDelegate,
130 | timeoutConfiguration: HTTPClient.Configuration.Timeout,
131 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
132 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
133 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:46: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:93: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:219:98: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
219 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
220 | result: result)
221 | completion(.success(responseComponents))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:221:17: warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
221 | completion(.success(responseComponents))
| |- warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
222 | } catch let error as HTTPClientError {
223 | completion(.failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:250:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
250 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
251 | result: .success(successResult))
252 | } .flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:262:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
262 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
263 | result: .failure(error))
264 | }
[1066/1075] Compiling SmokeHTTPClient HTTPOperationsClient+executeRetriableWithoutOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsyncRetriableWithoutOutput.swift:123:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
121 | do {
122 | // execute again
123 | try self.executeAsyncWithoutOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
124 | return
125 | } catch {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:96:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
94 | clientDelegate: HTTPClientDelegate,
95 | connectionTimeoutSeconds: Int64 = 10,
96 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
97 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
98 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:131:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
129 | clientDelegate: HTTPClientDelegate,
130 | timeoutConfiguration: HTTPClient.Configuration.Timeout,
131 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
132 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
133 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:46: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:93: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:219:98: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
219 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
220 | result: result)
221 | completion(.success(responseComponents))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:221:17: warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
221 | completion(.success(responseComponents))
| |- warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
222 | } catch let error as HTTPClientError {
223 | completion(.failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:250:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
250 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
251 | result: .success(successResult))
252 | } .flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:262:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
262 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
263 | result: .failure(error))
264 | }
[1067/1075] Compiling SmokeHTTPClient HTTPOperationsClient+executeWithOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsyncRetriableWithoutOutput.swift:123:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
121 | do {
122 | // execute again
123 | try self.executeAsyncWithoutOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
124 | return
125 | } catch {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:96:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
94 | clientDelegate: HTTPClientDelegate,
95 | connectionTimeoutSeconds: Int64 = 10,
96 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
97 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
98 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:131:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
129 | clientDelegate: HTTPClientDelegate,
130 | timeoutConfiguration: HTTPClient.Configuration.Timeout,
131 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
132 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
133 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:46: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:93: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:219:98: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
219 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
220 | result: result)
221 | completion(.success(responseComponents))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:221:17: warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
221 | completion(.success(responseComponents))
| |- warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
222 | } catch let error as HTTPClientError {
223 | completion(.failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:250:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
250 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
251 | result: .success(successResult))
252 | } .flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:262:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
262 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
263 | result: .failure(error))
264 | }
[1068/1075] Compiling SmokeHTTPClient HTTPOperationsClient+executeWithoutOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsyncRetriableWithoutOutput.swift:123:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
121 | do {
122 | // execute again
123 | try self.executeAsyncWithoutOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
124 | return
125 | } catch {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:96:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
94 | clientDelegate: HTTPClientDelegate,
95 | connectionTimeoutSeconds: Int64 = 10,
96 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
97 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
98 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:131:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
129 | clientDelegate: HTTPClientDelegate,
130 | timeoutConfiguration: HTTPClient.Configuration.Timeout,
131 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
132 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
133 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:46: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:93: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:219:98: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
219 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
220 | result: result)
221 | completion(.success(responseComponents))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:221:17: warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
221 | completion(.success(responseComponents))
| |- warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
222 | } catch let error as HTTPClientError {
223 | completion(.failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:250:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
250 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
251 | result: .success(successResult))
252 | } .flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:262:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
262 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
263 | result: .failure(error))
264 | }
[1069/1075] Compiling SmokeHTTPClient HTTPOperationsClient.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient+executeAsyncRetriableWithoutOutput.swift:123:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithoutOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
121 | do {
122 | // execute again
123 | try self.executeAsyncWithoutOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithoutOutputRetriable<InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
124 | return
125 | } catch {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:96:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
94 | clientDelegate: HTTPClientDelegate,
95 | connectionTimeoutSeconds: Int64 = 10,
96 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
97 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
98 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:131:73: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
129 | clientDelegate: HTTPClientDelegate,
130 | timeoutConfiguration: HTTPClient.Configuration.Timeout,
131 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
132 | connectionPoolConfiguration connectionPoolConfigurationOptional: HTTPClient.Configuration.ConnectionPool? = nil,
133 | enableAHCLogging: Bool = false) {
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:46: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:218:93: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
216 | responseFuture.whenComplete { result in
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:219:98: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
217 | do {
218 | let responseComponents = try self.handleCompleteResponse(invocationContext: invocationContext,
219 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
220 | result: result)
221 | completion(.success(responseComponents))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:221:17: warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
219 | outwardsRequestContext: outwardsRequestContext,
220 | result: result)
221 | completion(.success(responseComponents))
| |- warning: capture of 'completion' with non-sendable type '(Result<HTTPResponseComponents, HTTPClientError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
222 | } catch let error as HTTPClientError {
223 | completion(.failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:249:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
247 | // and generate a `HTTPResponseComponents` instance or be a failure response and cause
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
250 | outwardsRequestContext: outwardsRequestContext,
251 | result: .success(successResult))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:250:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
248 | // a SmokeHTTPClient.HTTPClientError error to be thrown
249 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
250 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
251 | result: .success(successResult))
252 | } .flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:28: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
45 | A wrapper around a `HTTPClient` instance that handles operation request and responses.
46 | */
47 | public struct HTTPOperationsClient {
| `- note: consider making struct 'HTTPOperationsClient' conform to the 'Sendable' protocol
48 | /// The server hostname to contact for requests from this client.
49 | public let endpointHostName: String
:
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:261:94: warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
259 | // a response wasn't even able to be generated (for example due to a connection error)
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
| `- warning: capture of 'invocationContext' with non-sendable type 'HTTPClientInvocationContext<InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure
262 | outwardsRequestContext: outwardsRequestContext,
263 | result: .failure(error))
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPClientInvocationContext.swift:29:15: note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
27 | A context related to the invocation of the HTTPClient.
28 | */
29 | public struct HTTPClientInvocationContext<InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate> {
| `- note: consider making generic struct 'HTTPClientInvocationContext' conform to the 'Sendable' protocol
30 | public let reporting: InvocationReportingType
31 | public let handlerDelegate: HandlerDelegateType
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient.swift:262:99: warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
260 | // make sure this error is thrown correctly as a SmokeHTTPClient.HTTPClientError
261 | return try self.handleCompleteResponseThrowingClientError(invocationContext: invocationContext,
262 | outwardsRequestContext: outwardsRequestContext,
| `- warning: capture of 'outwardsRequestContext' with non-sendable type 'InvocationReportingType.TraceContextType.OutwardsRequestContext' in a '@Sendable' closure
263 | result: .failure(error))
264 | }
[1070/1075] Compiling SmokeHTTPClient HTTPInvocationClient.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPInvocationClient.swift:75:65: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
73 | connect: .seconds(10), read: .seconds(10)),
74 | connectionPoolConfiguration: HTTPClient.Configuration.ConnectionPool? = nil,
75 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
76 | retryConfiguration: HTTPClientRetryConfiguration = .default,
77 | retryOnErrorProvider: @escaping (SmokeHTTPClient.HTTPClientError) -> Bool = { error in error.isRetriable() },
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient +executeAsyncRetriableWithOutput.swift:129:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
127 | do {
128 | // execute again
129 | try self.executeAsyncWithOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | return
131 | } catch {
[1071/1075] Compiling SmokeHTTPClient HTTPOperationsClient +executeAsyncRetriableWithOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPInvocationClient.swift:75:65: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
73 | connect: .seconds(10), read: .seconds(10)),
74 | connectionPoolConfiguration: HTTPClient.Configuration.ConnectionPool? = nil,
75 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
76 | retryConfiguration: HTTPClientRetryConfiguration = .default,
77 | retryOnErrorProvider: @escaping (SmokeHTTPClient.HTTPClientError) -> Bool = { error in error.isRetriable() },
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient +executeAsyncRetriableWithOutput.swift:129:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
127 | do {
128 | // execute again
129 | try self.executeAsyncWithOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | return
131 | } catch {
[1072/1075] Compiling SmokeHTTPClient HTTPOperationsClient +executeAsyncWithOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPInvocationClient.swift:75:65: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
73 | connect: .seconds(10), read: .seconds(10)),
74 | connectionPoolConfiguration: HTTPClient.Configuration.ConnectionPool? = nil,
75 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
76 | retryConfiguration: HTTPClientRetryConfiguration = .default,
77 | retryOnErrorProvider: @escaping (SmokeHTTPClient.HTTPClientError) -> Bool = { error in error.isRetriable() },
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient +executeAsyncRetriableWithOutput.swift:129:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
127 | do {
128 | // execute again
129 | try self.executeAsyncWithOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | return
131 | } catch {
[1073/1075] Compiling SmokeHTTPClient HTTPOperationsClient +executeAsyncWithoutOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPInvocationClient.swift:75:65: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
73 | connect: .seconds(10), read: .seconds(10)),
74 | connectionPoolConfiguration: HTTPClient.Configuration.ConnectionPool? = nil,
75 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
76 | retryConfiguration: HTTPClientRetryConfiguration = .default,
77 | retryOnErrorProvider: @escaping (SmokeHTTPClient.HTTPClientError) -> Bool = { error in error.isRetriable() },
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient +executeAsyncRetriableWithOutput.swift:129:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
127 | do {
128 | // execute again
129 | try self.executeAsyncWithOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | return
131 | } catch {
[1074/1075] Compiling SmokeHTTPClient HTTPOperationsClient +executeSyncRetriableWithOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPInvocationClient.swift:75:65: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
73 | connect: .seconds(10), read: .seconds(10)),
74 | connectionPoolConfiguration: HTTPClient.Configuration.ConnectionPool? = nil,
75 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
76 | retryConfiguration: HTTPClientRetryConfiguration = .default,
77 | retryOnErrorProvider: @escaping (SmokeHTTPClient.HTTPClientError) -> Bool = { error in error.isRetriable() },
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient +executeAsyncRetriableWithOutput.swift:129:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
127 | do {
128 | // execute again
129 | try self.executeAsyncWithOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | return
131 | } catch {
[1075/1075] Compiling SmokeHTTPClient HTTPOperationsClient +executeSyncRetriableWithoutOutput.swift
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPInvocationClient.swift:75:65: warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
73 | connect: .seconds(10), read: .seconds(10)),
74 | connectionPoolConfiguration: HTTPClient.Configuration.ConnectionPool? = nil,
75 | eventLoopProvider: HTTPClient.EventLoopGroupProvider = .createNew,
| |- warning: 'createNew' is deprecated: Please use the singleton EventLoopGroup explicitly
| `- note: use 'singleton' instead
76 | retryConfiguration: HTTPClientRetryConfiguration = .default,
77 | retryOnErrorProvider: @escaping (SmokeHTTPClient.HTTPClientError) -> Bool = { error in error.isRetriable() },
/host/spi-builder-workspace/Sources/SmokeHTTPClient/HTTPOperationsClient +executeAsyncRetriableWithOutput.swift:129:37: warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
28 | Helper type that manages the state of a retriable async request.
29 | */
30 | private class ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType,
| `- note: generic class 'ExecuteAsyncWithOutputRetriable' does not conform to the 'Sendable' protocol
31 | InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>
32 | where InvocationStrategyType: AsyncResponseInvocationStrategy,
:
127 | do {
128 | // execute again
129 | try self.executeAsyncWithOutput()
| `- warning: capture of 'self' with non-sendable type 'HTTPOperationsClient.ExecuteAsyncWithOutputRetriable<OutputType, InvocationStrategyType, InvocationReportingType, HandlerDelegateType>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | return
131 | } catch {
[1077/1078] Compiling _SmokeHTTPClientConcurrency Export.swift
[1078/1078] Emitting module _SmokeHTTPClientConcurrency
Build complete! (318.35s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.33.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-nio-ssl",
"requirement" : {
"range" : [
{
"lower_bound" : "2.14.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio-ssl.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-metrics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-metrics.git"
},
{
"identity" : "async-http-client",
"requirement" : {
"range" : [
{
"lower_bound" : "1.6.4",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/async-http-client.git"
},
{
"identity" : "swift-distributed-tracing",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-distributed-tracing.git"
}
],
"manifest_display_name" : "smoke-http",
"name" : "smoke-http",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "SmokeHTTPClient",
"targets" : [
"SmokeHTTPClient"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "_SmokeHTTPClientConcurrency",
"targets" : [
"_SmokeHTTPClientConcurrency"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "QueryCoding",
"targets" : [
"QueryCoding"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "HTTPHeadersCoding",
"targets" : [
"HTTPHeadersCoding"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "HTTPPathCoding",
"targets" : [
"HTTPPathCoding"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "ShapeCoding",
"targets" : [
"ShapeCoding"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "_SmokeHTTPClientConcurrency",
"module_type" : "SwiftTarget",
"name" : "_SmokeHTTPClientConcurrency",
"path" : "Sources/_SmokeHTTPClientConcurrency",
"product_memberships" : [
"_SmokeHTTPClientConcurrency"
],
"sources" : [
"Export.swift"
],
"target_dependencies" : [
"SmokeHTTPClient"
],
"type" : "library"
},
{
"c99name" : "SmokeHTTPClientTests",
"module_type" : "SwiftTarget",
"name" : "SmokeHTTPClientTests",
"path" : "Tests/SmokeHTTPClientTests",
"sources" : [
"MockHTTPClientInvocationClientTests.swift",
"SmokeHTTPClientTests.swift"
],
"target_dependencies" : [
"SmokeHTTPClient"
],
"type" : "test"
},
{
"c99name" : "SmokeHTTPClient",
"module_type" : "SwiftTarget",
"name" : "SmokeHTTPClient",
"path" : "Sources/SmokeHTTPClient",
"product_dependencies" : [
"Logging",
"Metrics",
"NIO",
"NIOHTTP1",
"NIOFoundationCompat",
"NIOSSL",
"AsyncHTTPClient",
"Tracing"
],
"product_memberships" : [
"SmokeHTTPClient",
"_SmokeHTTPClientConcurrency"
],
"sources" : [
"AsyncResponseInvocationStrategy.swift",
"BodyHTTPRequestInput.swift",
"GlobalDispatchQueueAsyncResponseInvocationStrategy.swift",
"HTTPClientCoreInvocationReporting.swift",
"HTTPClientDelegate.swift",
"HTTPClientInnerRetryInvocationReporting.swift",
"HTTPClientInvocationContext.swift",
"HTTPClientInvocationDelegate.swift",
"HTTPClientInvocationReporting.swift",
"HTTPClientReportingConfiguration.swift",
"HTTPClientRetryConfiguration.swift",
"HTTPError.swift",
"HTTPInvocationClient.swift",
"HTTPOperationsClient +executeAsyncRetriableWithOutput.swift",
"HTTPOperationsClient +executeAsyncWithOutput.swift",
"HTTPOperationsClient +executeAsyncWithoutOutput.swift",
"HTTPOperationsClient +executeSyncRetriableWithOutput.swift",
"HTTPOperationsClient +executeSyncRetriableWithoutOutput.swift",
"HTTPOperationsClient +executeSyncWithOutput.swift",
"HTTPOperationsClient +executeSyncWithoutOutput.swift",
"HTTPOperationsClient+executeAsEventLoopFutureRetriableWithOutput.swift",
"HTTPOperationsClient+executeAsEventLoopFutureRetriableWithoutOutput.swift",
"HTTPOperationsClient+executeAsEventLoopFutureWithOutput.swift",
"HTTPOperationsClient+executeAsEventLoopFutureWithoutOutput.swift",
"HTTPOperationsClient+executeAsyncRetriableWithoutOutput.swift",
"HTTPOperationsClient+executeRetriableWithOutput.swift",
"HTTPOperationsClient+executeRetriableWithoutOutput.swift",
"HTTPOperationsClient+executeWithOutput.swift",
"HTTPOperationsClient+executeWithoutOutput.swift",
"HTTPOperationsClient.swift",
"HTTPRequestComponents.swift",
"HTTPRequestInput.swift",
"HTTPRequestInputProtocol.swift",
"HTTPResponseComponents.swift",
"HTTPResponseOutputProtocol.swift",
"HttpClientError.swift",
"InvocationTraceContext.swift",
"MockCoreInvocationReporting.swift",
"MockHTTPClient.swift",
"MockHTTPInvocationClient.swift",
"MockInvocationTraceContext.swift",
"NoHTTPRequestInput.swift",
"QueryHTTPRequestInput.swift",
"RetriableOutwardsRequestLatencyAggregator.swift",
"SameThreadAsyncResponseInvocationStrategy.swift",
"StandardHTTPClientCoreInvocationReporting.swift",
"StandardHTTPClientInvocationReporting.swift",
"TestEventLoopProvider.swift"
],
"target_dependencies" : [
"HTTPHeadersCoding"
],
"type" : "library"
},
{
"c99name" : "ShapeCodingTests",
"module_type" : "SwiftTarget",
"name" : "ShapeCodingTests",
"path" : "Tests/ShapeCodingTests",
"sources" : [
"ShapeSingleValueEncodingContainerTests.swift",
"StandardShapeParserTests.swift"
],
"target_dependencies" : [
"ShapeCoding"
],
"type" : "test"
},
{
"c99name" : "ShapeCoding",
"module_type" : "SwiftTarget",
"name" : "ShapeCoding",
"path" : "Sources/ShapeCoding",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"SmokeHTTPClient",
"_SmokeHTTPClientConcurrency",
"QueryCoding",
"HTTPHeadersCoding",
"HTTPPathCoding",
"ShapeCoding"
],
"sources" : [
"DateISO8601Extensions.swift",
"DecodingErrorExtension.swift",
"MutableShape.swift",
"RawShape.swift",
"ShapeCodingKey.swift",
"ShapeDecoder+unbox.swift",
"ShapeDecoder.swift",
"ShapeDecoderDelegate.swift",
"ShapeDecodingStorage.swift",
"ShapeElement.swift",
"ShapeKeyedDecodingContainer+KeyedDecodingContainerProtocol.swift",
"ShapeKeyedDecodingContainer.swift",
"ShapeKeyedEncodingContainer.swift",
"ShapeSingleValueEncodingContainer.swift",
"ShapeSingleValueEncodingContainerDelegate.swift",
"ShapeUnkeyedDecodingContainer.swift",
"ShapeUnkeyedEncodingContainer.swift",
"StandardDecodingOptions.swift",
"StandardEncodingOptions.swift",
"StandardShapeDecoderDelegate.swift",
"StandardShapeParser.swift",
"StandardShapeSingleValueEncodingContainerDelegate.swift"
],
"type" : "library"
},
{
"c99name" : "QueryCodingTests",
"module_type" : "SwiftTarget",
"name" : "QueryCodingTests",
"path" : "Tests/QueryCodingTests",
"sources" : [
"QueryCodingTestInput.swift",
"QueryEncoderTests.swift"
],
"target_dependencies" : [
"QueryCoding"
],
"type" : "test"
},
{
"c99name" : "QueryCoding",
"module_type" : "SwiftTarget",
"name" : "QueryCoding",
"path" : "Sources/QueryCoding",
"product_memberships" : [
"QueryCoding"
],
"sources" : [
"QueryDecoder.swift",
"QueryEncoder.swift"
],
"target_dependencies" : [
"ShapeCoding"
],
"type" : "library"
},
{
"c99name" : "HTTPPathCodingTests",
"module_type" : "SwiftTarget",
"name" : "HTTPPathCodingTests",
"path" : "Tests/HTTPPathCodingTests",
"sources" : [
"GetShapeForTemplateTests.swift",
"HTTPPathCoderTestInput.swift",
"HTTPPathEncoderTests.swift",
"HTTPPathSegmentTests.swift",
"HTTPPathTokenTests.swift"
],
"target_dependencies" : [
"HTTPPathCoding"
],
"type" : "test"
},
{
"c99name" : "HTTPPathCoding",
"module_type" : "SwiftTarget",
"name" : "HTTPPathCoding",
"path" : "Sources/HTTPPathCoding",
"product_memberships" : [
"HTTPPathCoding"
],
"sources" : [
"Array+getShapeForTemplate.swift",
"HTTPPathDecoder.swift",
"HTTPPathEncoder.swift",
"HTTPPathSegment.swift",
"HTTPPathToken.swift"
],
"target_dependencies" : [
"ShapeCoding"
],
"type" : "library"
},
{
"c99name" : "HTTPHeadersCodingTests",
"module_type" : "SwiftTarget",
"name" : "HTTPHeadersCodingTests",
"path" : "Tests/HTTPHeadersCodingTests",
"sources" : [
"HTTPHeadersCodingTestInput.swift",
"HTTPHeadersEncoderTests.swift"
],
"target_dependencies" : [
"HTTPHeadersCoding"
],
"type" : "test"
},
{
"c99name" : "HTTPHeadersCoding",
"module_type" : "SwiftTarget",
"name" : "HTTPHeadersCoding",
"path" : "Sources/HTTPHeadersCoding",
"product_memberships" : [
"SmokeHTTPClient",
"_SmokeHTTPClientConcurrency",
"HTTPHeadersCoding"
],
"sources" : [
"HTTPHeadersDecoder.swift",
"HTTPHeadersEncoder.swift"
],
"target_dependencies" : [
"ShapeCoding"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.