Build Information
Successful build of swift-aws-lambda-runtime, reference 0.5.2 (699ada), with Swift 6.2 for macOS (SPM) on 13 Jul 2025 11:51:53 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git
Reference: 0.5.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/andrea-scuderi/swift-aws-lambda-runtime
* tag 0.5.2 -> FETCH_HEAD
HEAD is now at 699ada1 Add guards for code that relies on _Concurrency (#237)
Cloned https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git
Revision (git rev-parse @):
699ada1724459582303c15aae64fa12ca4d33809
SUCCESS checkout https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git at 0.5.2
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/60] Write sources
[0/60] Copying PrivacyInfo.xcprivacy
[0/60] Write sources
[11/60] Write StringSample-entitlement.plist
[11/60] Write sources
[17/60] Write MockServer-entitlement.plist
[17/60] Write sources
[20/60] Write CodableSample-entitlement.plist
[22/60] Write swift-version-1EA4D86E10B52AF.txt
[23/60] Compiling CNIOWindows WSAStartup.c
[23/60] Compiling CNIOWASI CNIOWASI.c
[23/60] Compiling CNIOWindows shim.c
[26/60] Compiling CNIOLinux shim.c
[26/60] Compiling CNIOLinux liburing_shims.c
[28/85] Compiling _AtomicsShims.c
[29/85] Compiling CNIOLLHTTP c_nio_http.c
[30/85] Compiling CBacktrace state.c
[31/85] Compiling CBacktrace sort.c
[32/85] Compiling CBacktrace simple.c
[33/85] Compiling CNIOLLHTTP c_nio_api.c
[34/85] Compiling CBacktrace print.c
[35/85] Compiling CBacktrace posix.c
[36/85] Compiling CBacktrace mmapio.c
[37/85] Compiling CBacktrace mmap.c
[38/85] Compiling CBacktrace fileline.c
[39/85] Compiling CBacktrace elf.c
[40/85] Compiling CBacktrace dwarf.c
[41/85] Compiling CBacktrace backtrace.c
[42/85] Write sources
[45/85] Compiling CBacktrace atomic.c
[46/85] Write sources
[47/85] Compiling CNIOLLHTTP c_nio_llhttp.c
[48/121] Compiling CNIODarwin shim.c
[50/121] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[51/122] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[52/122] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[53/122] Compiling InternalCollectionsUtilities Debugging.swift
[54/122] Compiling InternalCollectionsUtilities Descriptions.swift
[55/122] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[56/122] Compiling _NIODataStructures _TinyArray.swift
[57/122] Compiling _NIODataStructures PriorityQueue.swift
[58/122] Emitting module InternalCollectionsUtilities
[59/122] Compiling AWSLambdaEvents ALB.swift
[60/122] Compiling AWSLambdaEvents APIGateway+V2.swift
[61/122] Compiling Backtrace Demangle.swift
[62/122] Compiling AWSLambdaEvents APIGateway.swift
[63/122] Compiling AWSLambdaEvents AWSRegion.swift
[64/122] Compiling _NIOBase64 Base64.swift
[65/122] Emitting module _NIOBase64
[66/122] Compiling Backtrace Backtrace.swift
[67/122] Emitting module Backtrace
[68/122] Compiling AWSLambdaEvents DynamoDB.swift
[69/122] Compiling AWSLambdaEvents S3.swift
[70/122] Compiling AWSLambdaEvents AppSync.swift
[71/122] Compiling AWSLambdaEvents Cloudwatch.swift
[72/122] Compiling Logging MetadataProvider.swift
[73/122] Emitting module _NIODataStructures
[74/122] Compiling _NIODataStructures Heap.swift
[75/138] Compiling DequeModule _DequeBuffer.swift
[76/138] Compiling DequeModule _DequeSlot.swift
[77/138] Compiling DequeModule _DequeBufferHeader.swift
[78/139] Compiling Atomics ManagedAtomicLazyReference.swift
[79/139] Compiling Atomics UnsafeAtomic.swift
[80/139] Compiling Atomics DoubleWord.swift
[81/139] Compiling Atomics ManagedAtomic.swift
[82/139] Compiling DequeModule Deque+Equatable.swift
[83/139] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[84/139] Compiling Atomics UnsafeAtomicLazyReference.swift
[85/139] Compiling Atomics IntegerOperations.swift
[86/140] Compiling DequeModule Deque._UnsafeHandle.swift
[87/140] Compiling DequeModule Deque.swift
[88/140] Compiling DequeModule Deque+Testing.swift
[89/140] Compiling DequeModule Deque._Storage.swift
[90/140] Compiling Atomics Unmanaged extensions.swift
[91/140] Compiling DequeModule Deque+Extras.swift
[92/140] Compiling DequeModule Deque+Hashable.swift
[93/140] Compiling DequeModule Deque+Codable.swift
[94/140] Compiling DequeModule Deque+Collection.swift
[95/140] Compiling DequeModule Deque+CustomReflectable.swift
[96/140] Compiling DequeModule Deque+Descriptions.swift
[97/140] Compiling DequeModule _UnsafeWrappedBuffer.swift
[100/140] Compiling Logging Locks.swift
[101/140] Compiling Logging LogHandler.swift
[102/140] Compiling Logging Logging.swift
[103/140] Emitting module Logging
[104/140] Emitting module Atomics
[115/140] Emitting module DequeModule
[115/140] Compiling c-nioatomics.c
[116/140] Compiling c-atomics.c
[118/146] Compiling NIOConcurrencyHelpers lock.swift
[119/146] Compiling NIOConcurrencyHelpers NIOLock.swift
[120/146] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[121/146] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[122/146] Compiling NIOConcurrencyHelpers atomics.swift
[123/146] Emitting module NIOConcurrencyHelpers
[124/209] Compiling AWSLambdaEvents DateWrappers.swift
[125/209] Compiling AWSLambdaEvents SQS.swift
[126/209] Compiling AWSLambdaEvents Base64.swift
[127/210] Compiling AWSLambdaEvents SNS.swift
[128/210] Compiling NIOCore ByteBuffer-multi-int.swift
[129/210] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[130/210] Compiling AWSLambdaEvents SES.swift
[131/210] Compiling NIOCore ByteBuffer-views.swift
[132/210] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[133/210] Compiling NIOCore ByteBuffer-core.swift
[134/210] Compiling NIOCore ByteBuffer-hex.swift
[135/210] Compiling NIOCore ByteBuffer-int.swift
[136/210] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[137/210] Emitting module AWSLambdaEvents
[138/210] Compiling AWSLambdaEvents HTTP.swift
[139/210] Compiling NIOCore GlobalSingletons.swift
[140/210] Compiling NIOCore IO.swift
[141/210] Compiling NIOCore IOData.swift
[142/210] Compiling NIOCore IPProtocol.swift
[143/210] Compiling NIOCore IntegerBitPacking.swift
[144/210] Compiling NIOCore IntegerTypes.swift
[145/210] Compiling NIOCore Interfaces.swift
[146/210] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[147/210] Compiling NIOCore EventLoopFuture+Deprecated.swift
[148/210] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[149/210] Compiling NIOCore EventLoopFuture.swift
[150/210] Compiling NIOCore FileDescriptor.swift
[151/210] Compiling NIOCore FileHandle.swift
[152/210] Compiling NIOCore FileRegion.swift
[153/210] Compiling NIOCore AddressedEnvelope.swift
[154/210] Compiling NIOCore AsyncAwaitSupport.swift
[155/210] Compiling NIOCore AsyncChannel.swift
[156/210] Compiling NIOCore AsyncChannelHandler.swift
[157/210] Compiling NIOCore AsyncChannelInboundStream.swift
[158/210] Compiling NIOCore AsyncChannelOutboundWriter.swift
[159/210] Compiling NIOCore NIOAsyncSequenceProducer.swift
[160/216] Compiling NIOCore Linux.swift
[161/216] Compiling NIOCore MarkedCircularBuffer.swift
[162/216] Compiling NIOCore MulticastChannel.swift
[163/216] Compiling NIOCore NIOAny.swift
[164/216] Compiling NIOCore NIOCloseOnErrorHandler.swift
[165/216] Compiling NIOCore NIOCoreSendableMetatype.swift
[166/216] Compiling NIOCore NIOLoopBound.swift
[167/216] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[168/216] Compiling NIOCore NIOScheduledCallback.swift
[169/216] Compiling NIOCore NIOSendable.swift
[170/216] Compiling NIOCore RecvByteBufferAllocator.swift
[171/216] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[172/216] Compiling NIOCore SocketAddresses.swift
[173/216] Compiling NIOCore Codec.swift
[174/216] Compiling NIOCore ConvenienceOptionSupport.swift
[175/216] Compiling NIOCore DeadChannel.swift
[176/216] Compiling NIOCore DispatchQueue+WithFuture.swift
[177/216] Compiling NIOCore EventLoop+Deprecated.swift
[178/216] Compiling NIOCore EventLoop+SerialExecutor.swift
[179/216] Compiling NIOCore EventLoop.swift
[180/216] Compiling NIOCore SocketOptionProvider.swift
[181/216] Compiling NIOCore SystemCallHelpers.swift
[182/216] Compiling NIOCore TimeAmount+Duration.swift
[183/216] Compiling NIOCore TypeAssistedChannelHandler.swift
[184/216] Compiling NIOCore UniversalBootstrapSupport.swift
[185/216] Compiling NIOCore Utilities.swift
[186/216] Compiling NIOCore Channel.swift
[187/216] Compiling NIOCore ChannelHandler.swift
[188/216] Compiling NIOCore ChannelHandlers.swift
[189/216] Compiling NIOCore ChannelInvoker.swift
[190/216] Compiling NIOCore ChannelOption.swift
[191/216] Compiling NIOCore ChannelPipeline.swift
[192/216] Compiling NIOCore CircularBuffer.swift
[194/216] Compiling NIOCore NIOAsyncWriter.swift
[195/216] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[196/216] Compiling NIOCore BSDSocketAPI.swift
[197/216] Compiling NIOCore ByteBuffer-aux.swift
[198/216] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[199/216] Compiling NIOCore ByteBuffer-conversions.swift
[207/216] Emitting module NIOCore
[208/269] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[209/269] Compiling NIOEmbedded AsyncTestingChannel.swift
[210/269] Emitting module NIOEmbedded
[211/269] Compiling NIOEmbedded Embedded.swift
[212/269] Compiling NIOPosix LinuxCPUSet.swift
[213/269] Compiling NIOPosix LinuxUring.swift
[214/269] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[215/269] Compiling NIOPosix NIOPosixSendableMetatype.swift
[216/269] Compiling NIOPosix NIOThreadPool.swift
[217/269] Compiling NIOPosix Pool.swift
[218/269] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[219/269] Compiling NIOPosix PosixSingletons.swift
[220/269] Compiling NIOPosix RawSocketBootstrap.swift
[221/269] Compiling NIOPosix Resolver.swift
[222/274] Compiling NIOPosix GetaddrinfoResolver.swift
[223/274] Compiling NIOPosix HappyEyeballs.swift
[224/274] Compiling NIOPosix IO.swift
[225/274] Compiling NIOPosix IntegerBitPacking.swift
[226/274] Compiling NIOPosix IntegerTypes.swift
[227/274] Compiling NIOPosix Linux.swift
[228/274] Compiling NIOPosix Selectable.swift
[229/274] Compiling NIOPosix SelectableChannel.swift
[230/274] Compiling NIOPosix SelectableEventLoop.swift
[231/274] Compiling NIOPosix SelectorEpoll.swift
[232/274] Compiling NIOPosix SelectorGeneric.swift
[233/274] Compiling NIOPosix UnsafeTransfer.swift
[234/274] Compiling NIOPosix Utilities.swift
[235/274] Compiling NIOPosix VsockAddress.swift
[236/274] Compiling NIOPosix VsockChannelEvents.swift
[237/274] Compiling NIOPosix resource_bundle_accessor.swift
[238/274] Emitting module NIOPosix
[239/274] Compiling NIOPosix BSDSocketAPICommon.swift
[240/274] Compiling NIOPosix BSDSocketAPIPosix.swift
[241/274] Compiling NIOPosix BSDSocketAPIWindows.swift
[242/274] Compiling NIOPosix BaseSocket.swift
[243/274] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[244/274] Compiling NIOPosix BaseSocketChannel.swift
[245/274] Compiling NIOPosix BaseStreamSocketChannel.swift
[246/274] Compiling NIOPosix Bootstrap.swift
[247/274] Compiling NIOPosix ControlMessage.swift
[248/274] Compiling NIOPosix DatagramVectorReadManager.swift
[249/274] Compiling NIOPosix Errors+Any.swift
[250/274] Compiling NIOPosix FileDescriptor.swift
[251/274] Compiling NIOPosix SelectorKqueue.swift
[252/274] Compiling NIOPosix SelectorUring.swift
[253/274] Compiling NIOPosix ServerSocket.swift
[254/274] Compiling NIOPosix Socket.swift
[255/274] Compiling NIOPosix SocketChannel.swift
[256/274] Compiling NIOPosix SocketProtocols.swift
[257/274] Compiling NIOPosix System.swift
[258/274] Compiling NIOPosix Thread.swift
[259/274] Compiling NIOPosix ThreadPosix.swift
[260/274] Compiling NIOPosix ThreadWindows.swift
[261/274] Compiling NIOPosix NonBlockingFileIO.swift
[262/274] Compiling NIOPosix PendingDatagramWritesManager.swift
[263/274] Compiling NIOPosix PendingWritesManager.swift
[264/274] Compiling NIOPosix PipeChannel.swift
[265/274] Compiling NIOPosix PipePair.swift
[266/276] Compiling NIO Exports.swift
[267/276] Emitting module NIO
[268/300] Emitting module _NIOConcurrency
[269/300] Compiling _NIOConcurrency Empty.swift
[270/300] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[271/300] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[272/300] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[273/301] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[274/301] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[275/301] Emitting module NIOFoundationCompat
[276/301] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[277/301] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[278/301] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[279/301] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[280/301] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[281/301] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[282/301] Compiling NIOHTTP1 ByteCollectionUtils.swift
[283/301] Compiling NIOHTTP1 HTTPDecoder.swift
[284/301] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[285/301] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[286/301] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[287/301] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[288/301] Compiling NIOHTTP1 HTTPEncoder.swift
[289/301] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[290/301] Emitting module NIOHTTP1
[291/301] Compiling NIOHTTP1 HTTPTypes.swift
[292/301] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[293/314] Compiling AWSLambdaRuntimeCore LambdaContext.swift
[294/314] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
[295/314] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
[296/314] Compiling AWSLambdaRuntimeCore LambdaHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:13: warning: capture of non-sendable type 'Self.Type' in an isolated closure
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
63 | }
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:58:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
56 | /// Performance sensitive Lambdas should be based on `EventLoopLambdaHandler` which does not offload.
57 | @inlinable
58 | public func handle(context: Lambda.Context, event: In) -> EventLoopFuture<Out> {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
59 | let promise = context.eventLoop.makePromise(of: Out.self)
60 | // FIXME: reusable DispatchQueue
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:73:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure
71 | self.offloadQueue.async {
72 | do {
73 | try self.syncShutdown(context: context)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
74 | promise.succeed(())
75 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:69:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
67 |
68 | extension LambdaHandler {
69 | public func shutdown(context: Lambda.ShutdownContext) -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
70 | let promise = context.eventLoop.makePromise(of: Void.self)
71 | self.offloadQueue.async {
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:119:23: warning: capture of non-sendable type 'Self.Type' in an isolated closure
117 | let promise = context.eventLoop.makePromise(of: Out.self)
118 | promise.completeWithTask {
119 | try await self.handle(event: event, context: context)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
120 | }
121 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:116:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
114 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
115 | extension AsyncLambdaHandler {
116 | public func handle(context: Lambda.Context, event: In) -> EventLoopFuture<Out> {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
117 | let promise = context.eventLoop.makePromise(of: Out.self)
118 | promise.completeWithTask {
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:131:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure
129 | let promise = context.eventLoop.makePromise(of: ByteBufferLambdaHandler.self)
130 | promise.completeWithTask {
131 | try await Self(context: context)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
132 | }
133 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:195:28: warning: capture of non-sendable type 'Self.Type' in an isolated closure
193 | return self.handle(context: context, event: input).flatMapThrowing { output in
194 | do {
195 | return try self.encode(allocator: context.allocator, value: output)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
196 | } catch {
197 | throw CodecError.responseEncoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:185:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
183 | /// Driver for `ByteBuffer` -> `In` decoding and `Out` -> `ByteBuffer` encoding
184 | @inlinable
185 | public func handle(context: Lambda.Context, event: ByteBuffer) -> EventLoopFuture<ByteBuffer?> {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
186 | let input: In
187 | do {
[297/314] Compiling AWSLambdaRuntimeCore LambdaRunner.swift
[298/314] Compiling AWSLambdaRuntimeCore LambdaLifecycle.swift
[299/315] Compiling MockServer main.swift
[300/315] Emitting module MockServer
[300/315] Write Objects.LinkFileList
[302/315] Compiling AWSLambdaRuntimeCore Lambda.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:105:23: warning: 'install()' is deprecated: This is no longer needed in Swift 5.9 [#DeprecatedDeclaration]
103 | internal static func run(configuration: Configuration = .init(), factory: @escaping HandlerFactory) -> Result<Int, Error> {
104 | let _run = { (configuration: Configuration, factory: @escaping HandlerFactory) -> Result<Int, Error> in
105 | Backtrace.install()
| `- warning: 'install()' is deprecated: This is no longer needed in Swift 5.9 [#DeprecatedDeclaration]
106 | var logger = Logger(label: "Lambda")
107 | logger.logLevel = configuration.general.logLevel
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[303/315] Emitting module AWSLambdaRuntimeCore
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:13: warning: capture of non-sendable type 'Self.Type' in an isolated closure
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
63 | }
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:58:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
56 | /// Performance sensitive Lambdas should be based on `EventLoopLambdaHandler` which does not offload.
57 | @inlinable
58 | public func handle(context: Lambda.Context, event: In) -> EventLoopFuture<Out> {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
59 | let promise = context.eventLoop.makePromise(of: Out.self)
60 | // FIXME: reusable DispatchQueue
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:195:28: warning: capture of non-sendable type 'Self.Type' in an isolated closure
193 | return self.handle(context: context, event: input).flatMapThrowing { output in
194 | do {
195 | return try self.encode(allocator: context.allocator, value: output)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
196 | } catch {
197 | throw CodecError.responseEncoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:185:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure
183 | /// Driver for `ByteBuffer` -> `In` decoding and `Out` -> `ByteBuffer` encoding
184 | @inlinable
185 | public func handle(context: Lambda.Context, event: ByteBuffer) -> EventLoopFuture<ByteBuffer?> {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
186 | let input: In
187 | do {
[304/315] Compiling AWSLambdaRuntimeCore Lambda+String.swift
[305/315] Compiling AWSLambdaRuntimeCore HTTPClient.swift
[306/315] Compiling AWSLambdaRuntimeCore Lambda+LocalServer.swift
[307/315] Compiling AWSLambdaRuntimeCore Utils.swift
[308/318] Compiling AWSLambdaRuntime Lambda+Codable.swift
[309/318] Compiling AWSLambdaRuntime Context+Foundation.swift
[310/318] Emitting module AWSLambdaRuntime
[310/324] Linking MockServer
[311/324] Applying MockServer
[313/324] Compiling StringSample main.swift
[314/324] Emitting module StringSample
[315/324] Compiling AWSLambdaTesting Lambda+Testing.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:110:13: warning: capture of non-sendable type 'Handler.Type' in an isolated closure
108 |
109 | return try eventLoop.flatSubmit {
110 | handler.handle(context: context, event: event)
| `- warning: capture of non-sendable type 'Handler.Type' in an isolated closure
111 | }.wait()
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:91:11: warning: capture of non-sendable type 'Handler.Type' in an isolated closure
89 |
90 | public static func test<In, Out, Handler: EventLoopLambdaHandler>(
91 | _ handler: Handler,
| `- warning: capture of non-sendable type 'Handler.Type' in an isolated closure
92 | with event: In,
93 | using config: TestConfig = .init()
[316/324] Emitting module AWSLambdaTesting
[316/324] Write Objects.LinkFileList
[318/324] Compiling CodableSample main.swift
[319/324] Emitting module CodableSample
[319/324] Write Objects.LinkFileList
[320/324] Linking StringSample
[321/324] Applying StringSample
[322/324] Linking CodableSample
[323/324] Applying CodableSample
Build complete! (27.56s)
Fetching https://github.com/swift-server/swift-backtrace.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
[1/631] Fetching swift-backtrace
[52/4485] Fetching swift-backtrace, swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.00s)
[1/76579] Fetching swift-nio
Fetched https://github.com/swift-server/swift-backtrace.git from cache (3.75s)
Fetched https://github.com/apple/swift-nio.git from cache (3.75s)
Computing version for https://github.com/swift-server/swift-backtrace.git
Computed https://github.com/swift-server/swift-backtrace.git at 1.3.5 (4.31s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.42s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.84.0 (0.61s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/1808] Fetching swift-atomics
[92/6465] Fetching swift-atomics, swift-system
[1408/23211] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.69s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.69s)
Fetched https://github.com/apple/swift-system.git from cache (1.69s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.14s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.41s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.50s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.84.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/swift-server/swift-backtrace.git
Working copy of https://github.com/swift-server/swift-backtrace.git resolved at 1.3.5
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.32.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-backtrace",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/swift-backtrace.git"
}
],
"manifest_display_name" : "swift-aws-lambda-runtime",
"name" : "swift-aws-lambda-runtime",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "AWSLambdaRuntime",
"targets" : [
"AWSLambdaRuntime"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaRuntimeCore",
"targets" : [
"AWSLambdaRuntimeCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaEvents",
"targets" : [
"AWSLambdaEvents"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaTesting",
"targets" : [
"AWSLambdaTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "StringSample",
"targets" : [
"StringSample"
],
"type" : {
"executable" : null
}
},
{
"name" : "MockServer",
"targets" : [
"MockServer"
],
"type" : {
"executable" : null
}
},
{
"name" : "CodableSample",
"targets" : [
"CodableSample"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "StringSample",
"module_type" : "SwiftTarget",
"name" : "StringSample",
"path" : "Sources/StringSample",
"product_memberships" : [
"StringSample"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"AWSLambdaRuntime"
],
"type" : "executable"
},
{
"c99name" : "MockServer",
"module_type" : "SwiftTarget",
"name" : "MockServer",
"path" : "Sources/MockServer",
"product_dependencies" : [
"NIOHTTP1",
"NIO"
],
"product_memberships" : [
"MockServer"
],
"sources" : [
"main.swift"
],
"type" : "executable"
},
{
"c99name" : "CodableSample",
"module_type" : "SwiftTarget",
"name" : "CodableSample",
"path" : "Sources/CodableSample",
"product_memberships" : [
"CodableSample"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"AWSLambdaRuntime"
],
"type" : "executable"
},
{
"c99name" : "AWSLambdaTestingTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaTestingTests",
"path" : "Tests/AWSLambdaTestingTests",
"sources" : [
"Tests.swift"
],
"target_dependencies" : [
"AWSLambdaTesting"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaTesting",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaTesting",
"path" : "Sources/AWSLambdaTesting",
"product_dependencies" : [
"NIO"
],
"product_memberships" : [
"AWSLambdaTesting"
],
"sources" : [
"Lambda+Testing.swift"
],
"target_dependencies" : [
"AWSLambdaRuntime"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaRuntimeTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeTests",
"path" : "Tests/AWSLambdaRuntimeTests",
"sources" : [
"Lambda+CodeableTest.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore",
"AWSLambdaRuntime"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaRuntimeCoreTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeCoreTests",
"path" : "Tests/AWSLambdaRuntimeCoreTests",
"product_dependencies" : [
"NIOTestUtils",
"NIOFoundationCompat"
],
"sources" : [
"LambdaHandlerTest.swift",
"LambdaLifecycleTest.swift",
"LambdaRunnerTest.swift",
"LambdaRuntimeClientTest.swift",
"LambdaTest.swift",
"MockLambdaServer.swift",
"Utils.swift",
"UtilsTest.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaRuntimeCore",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeCore",
"path" : "Sources/AWSLambdaRuntimeCore",
"product_dependencies" : [
"Logging",
"Backtrace",
"NIOHTTP1",
"NIO",
"_NIOConcurrency"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaRuntimeCore",
"AWSLambdaTesting",
"StringSample",
"CodableSample"
],
"sources" : [
"HTTPClient.swift",
"Lambda+LocalServer.swift",
"Lambda+String.swift",
"Lambda.swift",
"LambdaConfiguration.swift",
"LambdaContext.swift",
"LambdaHandler.swift",
"LambdaLifecycle.swift",
"LambdaRunner.swift",
"LambdaRuntimeClient.swift",
"Utils.swift"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaRuntime",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntime",
"path" : "Sources/AWSLambdaRuntime",
"product_dependencies" : [
"NIO",
"NIOFoundationCompat"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaTesting",
"StringSample",
"CodableSample"
],
"sources" : [
"Context+Foundation.swift",
"Lambda+Codable.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaEventsTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaEventsTests",
"path" : "Tests/AWSLambdaEventsTests",
"sources" : [
"ALBTests.swift",
"APIGateway+V2Tests.swift",
"APIGatewayTests.swift",
"AppSyncTests.swift",
"CloudwatchTests.swift",
"DynamoDBTests.swift",
"S3Tests.swift",
"SESTests.swift",
"SNSTests.swift",
"SQSTests.swift",
"Utils/Base64Tests.swift",
"Utils/DateWrapperTests.swift"
],
"target_dependencies" : [
"AWSLambdaEvents"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaEvents",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaEvents",
"path" : "Sources/AWSLambdaEvents",
"product_memberships" : [
"AWSLambdaEvents"
],
"sources" : [
"ALB.swift",
"APIGateway+V2.swift",
"APIGateway.swift",
"AWSRegion.swift",
"AppSync.swift",
"Cloudwatch.swift",
"DynamoDB.swift",
"S3.swift",
"SES.swift",
"SNS.swift",
"SQS.swift",
"Utils/Base64.swift",
"Utils/DateWrappers.swift",
"Utils/HTTP.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.