Build Information
Successful build of swift-aws-lambda-runtime, reference 0.5.2 (699ada
), with Swift 6.0 for Linux on 26 Nov 2024 22:50:53 UTC.
Swift 6 data race errors: 10
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -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>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-server/swift-aws-lambda-runtime.git
Reference: 0.5.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/swift-server/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/swift-server/swift-aws-lambda-runtime.git
Revision (git rev-parse @):
699ada1724459582303c15aae64fa12ca4d33809
SUCCESS checkout https://github.com/swift-server/swift-aws-lambda-runtime.git at 0.5.2
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/swift-server/swift-aws-lambda-runtime.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -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>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/swift-server/swift-backtrace.git
[1/631] Fetching swift-backtrace
[632/4329] Fetching swift-backtrace, swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.35s)
[1/71935] Fetching swift-nio
Fetched https://github.com/swift-server/swift-backtrace.git from cache (4.51s)
Fetched https://github.com/apple/swift-nio.git from cache (4.63s)
Computing version for https://github.com/swift-server/swift-backtrace.git
Computed https://github.com/swift-server/swift-backtrace.git at 1.3.5 (1.17s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.40s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.76.1 (0.66s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/1569] Fetching swift-atomics
[645/5488] Fetching swift-atomics, swift-system
[5489/21085] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.39s)
Fetched https://github.com/apple/swift-system.git from cache (0.40s)
[1716/15597] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.01s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.46s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.43s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.71s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.76.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.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.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Building for debugging...
[0/73] Write sources
[17/73] Compiling CNIOWASI CNIOWASI.c
[17/73] Compiling CNIOWindows shim.c
[19/73] Compiling CNIOWindows WSAStartup.c
[20/73] Compiling CNIOLinux liburing_shims.c
[21/73] Compiling CNIODarwin shim.c
[22/73] Compiling CNIOLLHTTP c_nio_http.c
[23/73] Compiling CNIOLinux shim.c
[24/73] Compiling CBacktrace state.c
[25/73] Compiling CBacktrace sort.c
[26/73] Compiling CNIOLLHTTP c_nio_api.c
[27/73] Compiling CBacktrace simple.c
[28/73] Compiling CBacktrace print.c
[29/73] Compiling CBacktrace posix.c
[30/73] Compiling CBacktrace mmapio.c
[31/73] Compiling _AtomicsShims.c
[32/73] Write swift-version-24593BA9C3E375BF.txt
[33/73] Compiling CBacktrace mmap.c
[34/73] Compiling CBacktrace backtrace.c
[35/73] Compiling CBacktrace fileline.c
[35/73] Compiling CNIOLLHTTP c_nio_llhttp.c
[37/73] Compiling CBacktrace dwarf.c
[38/73] Compiling CBacktrace elf.c
[39/73] Write sources
[41/73] Compiling CBacktrace atomic.c
[42/123] Compiling c-nioatomics.c
[43/123] Write sources
[46/137] Compiling c-atomics.c
[48/143] Compiling Backtrace Demangle.swift
[49/143] Emitting module Backtrace
[50/143] Compiling Backtrace Backtrace.swift
[51/144] Compiling _NIOBase64 Base64.swift
[52/144] Compiling AWSLambdaEvents DynamoDB.swift
[53/144] Compiling AWSLambdaEvents S3.swift
[54/144] Emitting module _NIOBase64
[55/144] Emitting module InternalCollectionsUtilities
[56/147] Compiling AWSLambdaEvents APIGateway.swift
[57/147] Compiling AWSLambdaEvents AWSRegion.swift
[58/147] Compiling AWSLambdaEvents ALB.swift
[59/147] Compiling AWSLambdaEvents APIGateway+V2.swift
[60/147] Compiling AWSLambdaEvents AppSync.swift
[61/147] Compiling AWSLambdaEvents Cloudwatch.swift
[62/147] Compiling AWSLambdaEvents SES.swift
[63/147] Compiling AWSLambdaEvents SNS.swift
[64/147] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[65/147] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[67/147] Compiling AWSLambdaEvents SQS.swift
[68/147] Compiling AWSLambdaEvents Base64.swift
[69/147] Compiling Atomics AtomicMemoryOrderings.swift
[70/147] Compiling Atomics DoubleWord.swift
[74/147] Compiling Atomics ManagedAtomic.swift
[75/147] Compiling Atomics ManagedAtomicLazyReference.swift
[82/147] Compiling _NIODataStructures PriorityQueue.swift
[83/147] Compiling _NIODataStructures _TinyArray.swift
[89/149] Emitting module Atomics
[92/149] Wrapping AST for Backtrace for debugging
[93/149] Wrapping AST for _NIOBase64 for debugging
[95/149] Emitting module NIOConcurrencyHelpers
[98/150] Compiling Atomics IntegerOperations.swift
[99/150] Compiling Atomics Unmanaged extensions.swift
[101/151] Wrapping AST for InternalCollectionsUtilities for debugging
[102/151] Wrapping AST for Atomics for debugging
[104/166] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[105/166] Compiling NIOConcurrencyHelpers NIOLock.swift
[106/166] Compiling NIOConcurrencyHelpers lock.swift
[107/166] Compiling DequeModule Deque+CustomReflectable.swift
[108/166] Compiling DequeModule Deque+Descriptions.swift
[109/168] Compiling Logging MetadataProvider.swift
[110/168] Compiling _NIODataStructures Heap.swift
[111/168] Emitting module _NIODataStructures
[112/169] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[113/169] Compiling NIOConcurrencyHelpers atomics.swift
[114/170] Compiling Logging LogHandler.swift
[115/170] Compiling Logging Logging.swift
[116/170] Compiling Logging Locks.swift
[117/170] Emitting module Logging
[118/171] Compiling DequeModule _DequeBuffer.swift
[119/171] Compiling DequeModule _DequeBufferHeader.swift
[123/171] Compiling DequeModule Deque+Equatable.swift
[124/171] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[124/171] Wrapping AST for _NIODataStructures for debugging
[125/171] Wrapping AST for Logging for debugging
[126/171] Wrapping AST for NIOConcurrencyHelpers for debugging
[128/171] Compiling DequeModule Deque+Extras.swift
[129/171] Compiling DequeModule Deque+Hashable.swift
[130/171] Compiling DequeModule _DequeSlot.swift
[131/171] Compiling DequeModule _UnsafeWrappedBuffer.swift
[132/171] Compiling DequeModule Deque._UnsafeHandle.swift
[133/171] Compiling DequeModule Deque.swift
[134/171] Compiling DequeModule Deque+Testing.swift
[135/171] Compiling DequeModule Deque._Storage.swift
[136/171] Compiling DequeModule Deque+Codable.swift
[137/171] Compiling DequeModule Deque+Collection.swift
[138/171] Emitting module DequeModule
[139/172] Wrapping AST for DequeModule for debugging
[141/232] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[142/232] Compiling NIOCore ByteBuffer-views.swift
[143/232] Compiling AWSLambdaEvents DateWrappers.swift
[144/233] Compiling NIOCore AddressedEnvelope.swift
/host/spi-builder-workspace/Sources/AWSLambdaEvents/AWSRegion.swift:28:16: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | static var all: [AWSRegion] = [
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | Self.ap_northeast_1,
30 | Self.ap_northeast_2,
[145/233] Compiling NIOCore AsyncAwaitSupport.swift
/host/spi-builder-workspace/Sources/AWSLambdaEvents/AWSRegion.swift:28:16: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | static var all: [AWSRegion] = [
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | Self.ap_northeast_1,
30 | Self.ap_northeast_2,
[146/233] Compiling NIOCore NIOAsyncWriter.swift
[147/233] Compiling NIOCore ByteBuffer-multi-int.swift
[148/233] Emitting module AWSLambdaEvents
/host/spi-builder-workspace/Sources/AWSLambdaEvents/AWSRegion.swift:28:16: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | static var all: [AWSRegion] = [
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | Self.ap_northeast_1,
30 | Self.ap_northeast_2,
/host/spi-builder-workspace/Sources/AWSLambdaEvents/Cloudwatch.swift:127:13: warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
125 | struct DetailTypeMismatch: Error {
126 | let name: String
127 | let type: Any
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
128 | }
129 | }
[149/233] Compiling NIOCore AsyncChannel.swift
[150/233] Compiling NIOCore AsyncChannelHandler.swift
[151/233] Compiling NIOCore NIOAsyncSequenceProducer.swift
[152/233] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[153/233] Compiling NIOCore AsyncChannelInboundStream.swift
/host/spi-builder-workspace/Sources/AWSLambdaEvents/Cloudwatch.swift:127:13: warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
125 | struct DetailTypeMismatch: Error {
126 | let name: String
127 | let type: Any
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
128 | }
129 | }
[154/233] Compiling NIOCore AsyncChannelOutboundWriter.swift
/host/spi-builder-workspace/Sources/AWSLambdaEvents/Cloudwatch.swift:127:13: warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
125 | struct DetailTypeMismatch: Error {
126 | let name: String
127 | let type: Any
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
128 | }
129 | }
[155/233] Compiling AWSLambdaEvents HTTP.swift
[157/234] Compiling NIOCore MulticastChannel.swift
[158/234] Compiling NIOCore NIOAny.swift
[159/234] Compiling NIOCore NIOCloseOnErrorHandler.swift
[160/234] Compiling NIOCore NIOLoopBound.swift
[161/234] Compiling NIOCore NIOScheduledCallback.swift
[162/234] Compiling NIOCore NIOSendable.swift
[163/234] Compiling NIOCore PointerHelpers.swift
[164/234] Compiling NIOCore RecvByteBufferAllocator.swift
[165/242] Compiling NIOCore IO.swift
[166/242] Compiling NIOCore IOData.swift
[167/242] Compiling NIOCore IPProtocol.swift
[168/242] Compiling NIOCore IntegerBitPacking.swift
[169/242] Compiling NIOCore IntegerTypes.swift
[170/242] Compiling NIOCore Interfaces.swift
[171/242] Compiling NIOCore Linux.swift
[172/242] Compiling NIOCore MarkedCircularBuffer.swift
[173/242] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[174/242] Compiling NIOCore EventLoopFuture+Deprecated.swift
[175/242] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[176/242] Compiling NIOCore EventLoopFuture.swift
[177/242] Compiling NIOCore FileDescriptor.swift
[178/242] Compiling NIOCore FileHandle.swift
[179/242] Compiling NIOCore FileRegion.swift
[180/242] Compiling NIOCore GlobalSingletons.swift
[181/242] Compiling NIOCore CircularBuffer.swift
[182/242] Compiling NIOCore Codec.swift
[183/242] Compiling NIOCore ConvenienceOptionSupport.swift
[184/242] Compiling NIOCore DeadChannel.swift
[185/242] Compiling NIOCore DispatchQueue+WithFuture.swift
[186/242] Compiling NIOCore EventLoop+Deprecated.swift
[187/242] Compiling NIOCore EventLoop+SerialExecutor.swift
[188/242] Compiling NIOCore EventLoop.swift
[189/242] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[190/242] Compiling NIOCore SocketAddresses.swift
[191/242] Compiling NIOCore SocketOptionProvider.swift
[192/242] Compiling NIOCore SystemCallHelpers.swift
[193/242] Compiling NIOCore TimeAmount+Duration.swift
[194/242] Compiling NIOCore TypeAssistedChannelHandler.swift
[195/242] Compiling NIOCore UniversalBootstrapSupport.swift
[196/242] Compiling NIOCore Utilities.swift
[197/242] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[198/242] Compiling NIOCore BSDSocketAPI.swift
[199/242] Compiling NIOCore ByteBuffer-aux.swift
[200/242] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[201/242] Compiling NIOCore ByteBuffer-conversions.swift
[202/242] Compiling NIOCore ByteBuffer-core.swift
[203/242] Compiling NIOCore ByteBuffer-hex.swift
[204/242] Compiling NIOCore ByteBuffer-int.swift
[205/242] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[218/242] Compiling NIOCore Channel.swift
[219/242] Compiling NIOCore ChannelHandler.swift
[220/242] Compiling NIOCore ChannelHandlers.swift
[221/242] Compiling NIOCore ChannelInvoker.swift
[222/242] Compiling NIOCore ChannelOption.swift
[223/242] Compiling NIOCore ChannelPipeline.swift
[224/242] Emitting module NIOCore
[225/243] Wrapping AST for NIOCore for debugging
[227/295] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[228/295] Emitting module NIOEmbedded
[229/295] Compiling NIOEmbedded AsyncTestingChannel.swift
[230/295] Compiling NIOEmbedded Embedded.swift
[231/296] Wrapping AST for NIOEmbedded for debugging
[233/296] Compiling NIOPosix Pool.swift
[234/296] Compiling NIOPosix PooledRecvBufferAllocator.swift
[235/296] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[236/296] Compiling NIOPosix PosixSingletons.swift
[237/296] Compiling NIOPosix RawSocketBootstrap.swift
[238/296] Compiling NIOPosix Resolver.swift
[239/296] Compiling NIOPosix Selectable.swift
[240/302] Compiling NIOPosix ServerSocket.swift
[241/302] Compiling NIOPosix Socket.swift
[242/302] Compiling NIOPosix SocketChannel.swift
[243/302] Compiling NIOPosix SocketProtocols.swift
[244/302] Compiling NIOPosix System.swift
[245/302] Compiling NIOPosix Thread.swift
[246/302] Compiling NIOPosix SelectableChannel.swift
[247/302] Compiling NIOPosix SelectableEventLoop.swift
[248/302] Compiling NIOPosix SelectorEpoll.swift
[249/302] Compiling NIOPosix SelectorGeneric.swift
[250/302] Compiling NIOPosix SelectorKqueue.swift
[251/302] Compiling NIOPosix SelectorUring.swift
[252/302] Compiling NIOPosix ThreadPosix.swift
[253/302] Compiling NIOPosix ThreadWindows.swift
[254/302] Compiling NIOPosix UnsafeTransfer.swift
[255/302] Compiling NIOPosix Utilities.swift
[256/302] Compiling NIOPosix VsockAddress.swift
[257/302] Compiling NIOPosix VsockChannelEvents.swift
[258/302] Emitting module NIOPosix
[259/302] Compiling NIOPosix BSDSocketAPICommon.swift
[260/302] Compiling NIOPosix BSDSocketAPIPosix.swift
[261/302] Compiling NIOPosix BSDSocketAPIWindows.swift
[262/302] Compiling NIOPosix BaseSocket.swift
[263/302] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[264/302] Compiling NIOPosix BaseSocketChannel.swift
[265/302] Compiling NIOPosix BaseStreamSocketChannel.swift
[266/302] Compiling NIOPosix Bootstrap.swift
[267/302] Compiling NIOPosix ControlMessage.swift
[268/302] Compiling NIOPosix DatagramVectorReadManager.swift
[269/302] Compiling NIOPosix Errors+Any.swift
[270/302] Compiling NIOPosix FileDescriptor.swift
[271/302] Compiling NIOPosix GetaddrinfoResolver.swift
[272/302] Compiling NIOPosix HappyEyeballs.swift
[273/302] Compiling NIOPosix IO.swift
[274/302] Compiling NIOPosix IntegerBitPacking.swift
[275/302] Compiling NIOPosix IntegerTypes.swift
[276/302] Compiling NIOPosix Linux.swift
[277/302] Compiling NIOPosix LinuxCPUSet.swift
[278/302] Compiling NIOPosix LinuxUring.swift
[279/302] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[280/302] Compiling NIOPosix NIOThreadPool.swift
[281/302] Compiling NIOPosix NonBlockingFileIO.swift
[282/302] Compiling NIOPosix PendingDatagramWritesManager.swift
[283/302] Compiling NIOPosix PendingWritesManager.swift
[284/302] Compiling NIOPosix PipeChannel.swift
[285/302] Compiling NIOPosix PipePair.swift
[286/302] Compiling NIOPosix PointerHelpers.swift
[287/303] Wrapping AST for NIOPosix for debugging
[289/305] Emitting module NIO
[290/305] Compiling NIO Exports.swift
[291/306] Wrapping AST for NIO for debugging
[293/328] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[294/328] Compiling _NIOConcurrency Empty.swift
[295/328] Emitting module _NIOConcurrency
[296/329] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[297/329] Wrapping AST for _NIOConcurrency for debugging
[299/329] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[300/329] Emitting module NIOFoundationCompat
[301/330] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[302/330] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[303/332] Wrapping AST for NIOFoundationCompat for debugging
[305/332] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[306/332] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[307/332] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[308/332] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[309/332] Emitting module NIOHTTP1
[310/332] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[311/332] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[312/332] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[313/332] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[314/332] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[315/332] Compiling NIOHTTP1 HTTPTypes.swift
[316/332] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[317/332] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[318/332] Compiling NIOHTTP1 ByteCollectionUtils.swift
[319/332] Compiling NIOHTTP1 HTTPDecoder.swift
[320/332] Compiling NIOHTTP1 HTTPEncoder.swift
[321/341] Wrapping AST for NIOHTTP1 for debugging
[323/346] Compiling AWSLambdaRuntimeCore LambdaRunner.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:49:18: warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | // This can happen if the factory uses a library (let's say a database client) that manages its own threads/loops
48 | // for whatever reason and returns a future that originated from that foreign EventLoop.
49 | .hop(to: self.eventLoop)
| `- warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
50 | .peekError { error in
51 | self.runtimeClient.reportInitializationError(logger: logger, error: error).peekError { reportingError in
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:67:17: warning: capture of 'self' with non-sendable type 'Lambda.Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | extension Lambda {
20 | /// LambdaRunner manages the Lambda runtime workflow, or business logic.
21 | internal final class Runner {
| `- note: class 'Runner' does not conform to the 'Sendable' protocol
22 | private let runtimeClient: RuntimeClient
23 | private let eventLoop: EventLoop
:
65 | }.flatMap { invocation, event in
66 | // 2. send invocation to handler
67 | self.isGettingNextInvocation = false
| `- warning: capture of 'self' with non-sendable type 'Lambda.Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | let context = Context(logger: logger,
69 | eventLoop: self.eventLoop,
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:72:70: warning: capture of 'handler' with non-sendable type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | allocator: self.allocator,
71 | invocation: invocation)
72 | logger.debug("sending invocation to lambda handler \(handler)")
| `- warning: capture of 'handler' with non-sendable type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | return handler.handle(context: context, event: event)
74 | // Hopping back to "our" EventLoop is important in case the handler returns a future that
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:72:70: warning: implicit capture of 'handler' requires that 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') conforms to `Sendable`; this is an error in the Swift 6 language mode
70 | allocator: self.allocator,
71 | invocation: invocation)
72 | logger.debug("sending invocation to lambda handler \(handler)")
| `- warning: implicit capture of 'handler' requires that 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') conforms to `Sendable`; this is an error in the Swift 6 language mode
73 | return handler.handle(context: context, event: event)
74 | // Hopping back to "our" EventLoop is important in case the handler returns a future that
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:87:17: warning: capture of 'self' with non-sendable type 'Lambda.Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | extension Lambda {
20 | /// LambdaRunner manages the Lambda runtime workflow, or business logic.
21 | internal final class Runner {
| `- note: class 'Runner' does not conform to the 'Sendable' protocol
22 | private let runtimeClient: RuntimeClient
23 | private let eventLoop: EventLoop
:
85 | }.flatMap { invocation, result in
86 | // 3. report results to runtime engine
87 | self.runtimeClient.reportResults(logger: logger, invocation: invocation, result: result).peekError { error in
| `- warning: capture of 'self' with non-sendable type 'Lambda.Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | logger.error("could not report results to lambda runtime engine: \(error)")
89 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:121:14: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
119 | // callback does not have side effects, failing with original result
120 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
121 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
122 | callback(error)
123 | return self
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:122:13: warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
121 | self.flatMapError { error in
122 | callback(error)
| |- warning: capture of 'callback' with non-sendable type '(any Error) -> Void' 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'
123 | return self
124 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:129:14: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
127 | // callback does not have side effects, failing with original result
128 | func peekError(_ callback: @escaping (Error) -> EventLoopFuture<Void>) -> EventLoopFuture<Value> {
129 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | let promise = self.eventLoop.makePromise(of: Value.self)
131 | callback(error).whenComplete { _ in
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:132:25: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | let promise = self.eventLoop.makePromise(of: Value.self)
131 | callback(error).whenComplete { _ in
132 | promise.completeWith(self)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
133 | }
134 | return promise.futureResult
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:131:13: warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | self.flatMapError { error in
130 | let promise = self.eventLoop.makePromise(of: Value.self)
131 | callback(error).whenComplete { _ in
| |- warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' 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'
132 | promise.completeWith(self)
133 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:140:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | func mapResult<NewValue>(_ callback: @escaping (Result<Value, Error>) -> NewValue) -> EventLoopFuture<NewValue> {
139 | self.map { value in
140 | callback(.success(value))
| |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' 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'
141 | }.flatMapErrorThrowing { error in
142 | callback(.failure(error))
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:142:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | callback(.success(value))
141 | }.flatMapErrorThrowing { error in
142 | callback(.failure(error))
| |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' 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'
143 | }
144 | }
[324/347] Compiling AWSLambdaRuntimeCore LambdaHandler.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:75: warning: type 'Self.Out' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: type 'Self.Out' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | }
64 | return promise.futureResult
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | }
64 | return promise.futureResult
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:34: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | }
64 | return promise.futureResult
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:50: warning: capture of 'event' with non-sendable type 'Self.In' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'event' with non-sendable type 'Self.In' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | }
64 | return promise.futureResult
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:73:21: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | self.offloadQueue.async {
72 | do {
73 | try self.syncShutdown(context: context)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | promise.succeed(())
75 | } catch {
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:73:48: warning: capture of 'context' with non-sendable type 'Lambda.ShutdownContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | self.offloadQueue.async {
72 | do {
73 | try self.syncShutdown(context: context)
| `- warning: capture of 'context' with non-sendable type 'Lambda.ShutdownContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | promise.succeed(())
75 | } catch {
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:132:24: note: class 'ShutdownContext' does not conform to the 'Sendable' protocol
130 | /// Lambda runtime shutdown context.
131 | /// The Lambda runtime generates and passes the `ShutdownContext` to the Lambda handler as an argument.
132 | public final class ShutdownContext {
| `- note: class 'ShutdownContext' does not conform to the 'Sendable' protocol
133 | /// `Logger` to log with
134 | ///
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:118:17: warning: type 'Self.Out' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
116 | public func handle(context: Lambda.Context, event: In) -> EventLoopFuture<Out> {
117 | let promise = context.eventLoop.makePromise(of: Out.self)
118 | promise.completeWithTask {
| `- warning: type 'Self.Out' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
119 | try await self.handle(event: event, context: context)
120 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:119:23: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | let promise = context.eventLoop.makePromise(of: Out.self)
118 | promise.completeWithTask {
119 | try await self.handle(event: event, context: context)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | return promise.futureResult
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:119:42: warning: capture of 'event' with non-sendable type 'Self.In' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | let promise = context.eventLoop.makePromise(of: Out.self)
118 | promise.completeWithTask {
119 | try await self.handle(event: event, context: context)
| `- warning: capture of 'event' with non-sendable type 'Self.In' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | return promise.futureResult
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:119:58: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | let promise = context.eventLoop.makePromise(of: Out.self)
118 | promise.completeWithTask {
119 | try await self.handle(event: event, context: context)
| `- warning: capture of 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | return promise.futureResult
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:130:21: warning: type 'any ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
128 | Lambda.run { context -> EventLoopFuture<ByteBufferLambdaHandler> in
129 | let promise = context.eventLoop.makePromise(of: ByteBufferLambdaHandler.self)
130 | promise.completeWithTask {
| `- warning: type 'any ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
131 | try await Self(context: context)
132 | }
:
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:131:41: warning: capture of 'context' with non-sendable type 'Lambda.InitializationContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | let promise = context.eventLoop.makePromise(of: ByteBufferLambdaHandler.self)
130 | promise.completeWithTask {
131 | try await Self(context: context)
| `- warning: capture of 'context' with non-sendable type 'Lambda.InitializationContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | }
133 | return promise.futureResult
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:24:24: note: class 'InitializationContext' does not conform to the 'Sendable' protocol
22 | /// Lambda runtime initialization context.
23 | /// The Lambda runtime generates and passes the `InitializationContext` to the Lambda factory as an argument.
24 | public final class InitializationContext {
| `- note: class 'InitializationContext' does not conform to the 'Sendable' protocol
25 | /// `Logger` to log with
26 | ///
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:195:28: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | } catch {
197 | throw CodecError.responseEncoding(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:195:51: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | } catch {
197 | throw CodecError.responseEncoding(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
[325/347] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
[326/347] Compiling AWSLambdaRuntimeCore LambdaContext.swift
[327/347] Compiling AWSLambdaRuntimeCore Lambda+String.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:82:72: warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
80 | // for testing and internal use
81 | internal static func run(configuration: Configuration = .init(), handler: Handler) -> Result<Int, Error> {
82 | self.run(configuration: configuration, factory: { $0.eventLoop.makeSucceededFuture(handler) })
| `- warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | }
84 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:93:29: warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
91 | Lambda.defaultOffloadQueue.async {
92 | do {
93 | promise.succeed(try factory(context))
| `- warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
94 | } catch {
95 | promise.fail(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:93:41: warning: capture of 'factory' with non-sendable type '(Lambda.InitializationContext) throws -> any Lambda.Handler' (aka '(Lambda.InitializationContext) throws -> any ByteBufferLambdaHandler') in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | Lambda.defaultOffloadQueue.async {
92 | do {
93 | promise.succeed(try factory(context))
| |- warning: capture of 'factory' with non-sendable type '(Lambda.InitializationContext) throws -> any Lambda.Handler' (aka '(Lambda.InitializationContext) throws -> any ByteBufferLambdaHandler') 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'
94 | } catch {
95 | promise.fail(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:93:49: warning: capture of 'context' with non-sendable type 'Lambda.InitializationContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | Lambda.defaultOffloadQueue.async {
92 | do {
93 | promise.succeed(try factory(context))
| `- warning: capture of 'context' with non-sendable type 'Lambda.InitializationContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | } catch {
95 | promise.fail(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:24:24: note: class 'InitializationContext' does not conform to the 'Sendable' protocol
22 | /// Lambda runtime initialization context.
23 | /// The Lambda runtime generates and passes the `InitializationContext` to the Lambda factory as an argument.
24 | public final class InitializationContext {
| `- note: class 'InitializationContext' does not conform to the 'Sendable' protocol
25 | /// `Logger` to log with
26 | ///
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:105:23: warning: 'install()' is deprecated: This is no longer needed in Swift 5.9
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
106 | var logger = Logger(label: "Lambda")
107 | logger.logLevel = configuration.general.logLevel
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:120:21: warning: capture of 'lifecycle' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 |
119 | lifecycle.start().flatMap {
120 | lifecycle.shutdownFuture
| `- warning: capture of 'lifecycle' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { lifecycleResult in
122 | #if DEBUG
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:23:24: note: class 'Lifecycle' does not conform to the 'Sendable' protocol
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:123:21: warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { lifecycleResult in
122 | #if DEBUG
123 | signalSource.cancel()
| `- warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | #endif
125 | eventLoop.shutdownGracefully { error in
Dispatch.DispatchSourceSignal:1:17: note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
1 | public protocol DispatchSourceSignal : DispatchSourceProtocol {
| `- note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
2 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:130:21: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
128 | }
129 | }
130 | result = lifecycleResult
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
131 | }
132 | }
[328/347] Compiling AWSLambdaRuntimeCore Lambda.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:82:72: warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
80 | // for testing and internal use
81 | internal static func run(configuration: Configuration = .init(), handler: Handler) -> Result<Int, Error> {
82 | self.run(configuration: configuration, factory: { $0.eventLoop.makeSucceededFuture(handler) })
| `- warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | }
84 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:93:29: warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
91 | Lambda.defaultOffloadQueue.async {
92 | do {
93 | promise.succeed(try factory(context))
| `- warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
94 | } catch {
95 | promise.fail(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:93:41: warning: capture of 'factory' with non-sendable type '(Lambda.InitializationContext) throws -> any Lambda.Handler' (aka '(Lambda.InitializationContext) throws -> any ByteBufferLambdaHandler') in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | Lambda.defaultOffloadQueue.async {
92 | do {
93 | promise.succeed(try factory(context))
| |- warning: capture of 'factory' with non-sendable type '(Lambda.InitializationContext) throws -> any Lambda.Handler' (aka '(Lambda.InitializationContext) throws -> any ByteBufferLambdaHandler') 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'
94 | } catch {
95 | promise.fail(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:93:49: warning: capture of 'context' with non-sendable type 'Lambda.InitializationContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | Lambda.defaultOffloadQueue.async {
92 | do {
93 | promise.succeed(try factory(context))
| `- warning: capture of 'context' with non-sendable type 'Lambda.InitializationContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | } catch {
95 | promise.fail(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:24:24: note: class 'InitializationContext' does not conform to the 'Sendable' protocol
22 | /// Lambda runtime initialization context.
23 | /// The Lambda runtime generates and passes the `InitializationContext` to the Lambda factory as an argument.
24 | public final class InitializationContext {
| `- note: class 'InitializationContext' does not conform to the 'Sendable' protocol
25 | /// `Logger` to log with
26 | ///
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:105:23: warning: 'install()' is deprecated: This is no longer needed in Swift 5.9
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
106 | var logger = Logger(label: "Lambda")
107 | logger.logLevel = configuration.general.logLevel
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:120:21: warning: capture of 'lifecycle' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 |
119 | lifecycle.start().flatMap {
120 | lifecycle.shutdownFuture
| `- warning: capture of 'lifecycle' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { lifecycleResult in
122 | #if DEBUG
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:23:24: note: class 'Lifecycle' does not conform to the 'Sendable' protocol
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:123:21: warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { lifecycleResult in
122 | #if DEBUG
123 | signalSource.cancel()
| `- warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | #endif
125 | eventLoop.shutdownGracefully { error in
Dispatch.DispatchSourceSignal:1:17: note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
1 | public protocol DispatchSourceSignal : DispatchSourceProtocol {
| `- note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
2 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:130:21: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
128 | }
129 | }
130 | result = lifecycleResult
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
131 | }
132 | }
[329/347] Compiling AWSLambdaRuntimeCore LambdaLifecycle.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:84:27: warning: type 'any ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
82 |
83 | let startupFuture = runner.initialize(logger: logger, factory: self.factory)
84 | startupFuture.flatMap { handler -> EventLoopFuture<(ByteBufferLambdaHandler, Result<Int, Error>)> in
| `- warning: type 'any ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
85 | // after the startup future has succeeded, we have a handler that we can use
86 | // to `run` the lambda.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:87:39: warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
85 | // after the startup future has succeeded, we have a handler that we can use
86 | // to `run` the lambda.
87 | let finishedPromise = self.eventLoop.makePromise(of: Int.self)
| `- warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | self.state = .active(runner, handler)
89 | self.run(promise: finishedPromise)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:88:38: warning: capture of 'runner' with non-sendable type 'Lambda.Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | // to `run` the lambda.
87 | let finishedPromise = self.eventLoop.makePromise(of: Int.self)
88 | self.state = .active(runner, handler)
| `- warning: capture of 'runner' with non-sendable type 'Lambda.Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | self.run(promise: finishedPromise)
90 | return finishedPromise.futureResult.mapResult { (handler, $0) }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:21:26: note: class 'Runner' does not conform to the 'Sendable' protocol
19 | extension Lambda {
20 | /// LambdaRunner manages the Lambda runtime workflow, or business logic.
21 | internal final class Runner {
| `- note: class 'Runner' does not conform to the 'Sendable' protocol
22 | private let runtimeClient: RuntimeClient
23 | private let eventLoop: EventLoop
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:95:82: warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
93 | // after the lambda finishPromise has succeeded or failed we need to
94 | // shutdown the handler
95 | let shutdownContext = ShutdownContext(logger: logger, eventLoop: self.eventLoop)
| `- warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | return handler.shutdown(context: shutdownContext).flatMapErrorThrowing { error in
97 | // if, we had an error shuting down the lambda, we want to concatenate it with
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:95:63: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
93 | // after the lambda finishPromise has succeeded or failed we need to
94 | // shutdown the handler
95 | let shutdownContext = ShutdownContext(logger: logger, eventLoop: self.eventLoop)
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
96 | return handler.shutdown(context: shutdownContext).flatMapErrorThrowing { error in
97 | // if, we had an error shuting down the lambda, we want to concatenate it with
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:99:21: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
97 | // if, we had an error shuting down the lambda, we want to concatenate it with
98 | // the runner result
99 | logger.error("Error shutting down handler: \(error)")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
100 | throw RuntimeError.shutdownError(shutdownError: error, runnerResult: runnerResult)
101 | }.flatMapResult { (_) -> Result<Int, Error> in
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:107:17: warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
105 | }.always { _ in
106 | // triggered when the Lambda has finished its last run or has a startup failure.
107 | self.markShutdown()
| `- warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | }.cascade(to: self.shutdownPromise)
109 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:120:32: warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
118 | // make this method thread safe by dispatching onto the eventloop
119 | self.eventLoop.execute {
120 | let oldState = self.state
| `- warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | self.state = .shuttingdown
122 | if case .active(let runner, _) = oldState {
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:148:29: warning: capture of '_run' with non-sendable type '(Int) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | logger.log(level: .debug, "lambda invocation sequence completed successfully")
147 | // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
148 | _run(count + 1)
| |- warning: capture of '_run' with non-sendable type '(Int) -> ()' 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'
149 | case .failure(HTTPClient.Errors.cancelled):
150 | if case .shuttingdown = self.state {
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:150:53: warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
148 | _run(count + 1)
149 | case .failure(HTTPClient.Errors.cancelled):
150 | if case .shuttingdown = self.state {
| `- warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | // if we ware shutting down, we expect to that the get next
152 | // invocation request might have been cancelled. For this reason we
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:146:29: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | switch result {
145 | case .success:
146 | logger.log(level: .debug, "lambda invocation sequence completed successfully")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
148 | _run(count + 1)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:135:18: warning: concurrently-executed local function '_run' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
133 | @inline(__always)
134 | private func run(promise: EventLoopPromise<Int>) {
135 | func _run(_ count: Int) {
| `- warning: concurrently-executed local function '_run' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
136 | switch self.state {
137 | case .active(let runner, let handler):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:154:33: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
152 | // invocation request might have been cancelled. For this reason we
153 | // succeed the promise here.
154 | logger.log(level: .info, "lambda invocation sequence has been cancelled for shutdown")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
155 | return promise.succeed(count)
156 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:157:29: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
155 | return promise.succeed(count)
156 | }
157 | logger.log(level: .error, "lambda invocation sequence has been cancelled unexpectedly")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
158 | promise.fail(HTTPClient.Errors.cancelled)
159 | case .failure(let error):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:160:29: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
158 | promise.fail(HTTPClient.Errors.cancelled)
159 | case .failure(let error):
160 | logger.log(level: .error, "lambda invocation sequence completed with error: \(error)")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
161 | promise.fail(error)
162 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:167:63: warning: implicit capture of 'self' requires that 'Lambda.Lifecycle' conforms to `Sendable`; this is an error in the Swift 6 language mode
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
165 | promise.succeed(count)
166 | default:
167 | preconditionFailure("invalid run state: \(self.state)")
| `- warning: implicit capture of 'self' requires that 'Lambda.Lifecycle' conforms to `Sendable`; this is an error in the Swift 6 language mode
168 | }
169 | }
[330/347] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
[331/347] Compiling MockServer main.swift
/host/spi-builder-workspace/Sources/MockServer/main.swift:117:22: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 |
50 | internal final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
51 | public typealias InboundIn = HTTPServerRequestPart
52 | public typealias OutboundOut = HTTPServerResponsePart
:
115 |
116 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
117 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
/host/spi-builder-workspace/Sources/MockServer/main.swift:124:26: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 |
50 | internal final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
51 | public typealias InboundIn = HTTPServerRequestPart
52 | public typealias OutboundOut = HTTPServerResponsePart
:
122 | buffer.writeString(b)
123 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
124 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | }
/host/spi-builder-workspace/Sources/MockServer/main.swift:130:26: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 |
50 | internal final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
51 | public typealias InboundIn = HTTPServerRequestPart
52 | public typealias OutboundOut = HTTPServerResponsePart
:
128 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
129 | if case .failure(let error) = result {
130 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 | }
132 | }
[332/347] Emitting module MockServer
[333/348] Compiling AWSLambdaRuntimeCore Utils.swift
[334/348] Wrapping AST for MockServer for debugging
[335/348] Write Objects.LinkFileList
[336/348] Linking MockServer
[338/348] Emitting module AWSLambdaRuntimeCore
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:95:28: warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
93 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
| |- warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'invocations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
97 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96:28: warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
| |- warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocationState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'invocationState' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 |
98 | private let logger: Logger
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:75: warning: type 'Self.Out' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: type 'Self.Out' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | }
64 | return promise.futureResult
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | }
64 | return promise.futureResult
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:34: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | }
64 | return promise.futureResult
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:50: warning: capture of 'event' with non-sendable type 'Self.In' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'event' with non-sendable type 'Self.In' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | }
64 | return promise.futureResult
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:195:28: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | } catch {
197 | throw CodecError.responseEncoding(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:195:51: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | } catch {
197 | throw CodecError.responseEncoding(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
[339/348] Compiling AWSLambdaRuntimeCore HTTPClient.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:77:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
75 | case .disconnected:
76 | return self.connect().flatMap { channel -> EventLoopFuture<Response> in
77 | self.state = .connected(channel)
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | return self.execute(request, validate: false)
79 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:88:30: warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
86 | let promise = channel.eventLoop.makePromise(of: Response.self)
87 | promise.futureResult.whenComplete { _ in
88 | precondition(self.executing == true, "invalid execution state")
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | self.executing = false
90 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:88:30: warning: implicit capture of 'self' requires that 'HTTPClient' conforms to `Sendable`; this is an error in the Swift 6 language mode
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
86 | let promise = channel.eventLoop.makePromise(of: Response.self)
87 | promise.futureResult.whenComplete { _ in
88 | precondition(self.executing == true, "invalid execution state")
| `- warning: implicit capture of 'self' requires that 'HTTPClient' conforms to `Sendable`; this is an error in the Swift 6 language mode
89 | self.executing = false
90 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:198:39: warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 |
159 | // no need in locks since we validate only one request can run at a time
160 | private final class LambdaChannelHandler: ChannelDuplexHandler {
| `- note: class 'LambdaChannelHandler' does not conform to the 'Sendable' protocol
161 | typealias InboundIn = NIOHTTPClientResponseFull
162 | typealias OutboundIn = HTTPRequestWrapper
:
196 | let timeoutTask = wrapper.request.timeout.map {
197 | context.eventLoop.scheduleTask(in: $0) {
198 | guard case .running = self.state else {
| `- warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
199 | preconditionFailure("invalid state")
200 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:202:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | }
201 |
202 | context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:95:28: warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
93 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
| |- warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'invocations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
97 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96:28: warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
| |- warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocationState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'invocationState' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 |
98 | private let logger: Logger
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:138:25: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
136 | switch result {
137 | case .failure(let error):
138 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | self.writeResponse(context: context, response: .init(status: .internalServerError))
140 | case .success(let response):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:139:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | case .failure(let error):
138 | self.logger.error("invocation error: \(error)")
139 | self.writeResponse(context: context, response: .init(status: .internalServerError))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | case .success(let response):
141 | self.writeResponse(context: context, response: response)
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:174:29: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
172 | switch result {
173 | case .failure(let error):
174 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | self.writeResponse(context: context, status: .internalServerError)
176 | case .success(let invocation):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:175:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | case .failure(let error):
174 | self.logger.error("invocation error: \(error)")
175 | self.writeResponse(context: context, status: .internalServerError)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | case .success(let invocation):
177 | Self.invocationState = .waitingForLambdaResponse(invocation)
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:248:17: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
246 |
247 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
248 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | }
250 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:248:38: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
246 |
247 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
248 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
249 | }
250 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:253:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
251 | if let buffer = response.body {
252 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
253 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
254 | }
255 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:253:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
251 | if let buffer = response.body {
252 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
253 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
254 | }
255 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:259:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
257 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
258 | if case .failure(let error) = result {
259 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | }
261 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:259:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
257 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
258 | if case .failure(let error) = result {
259 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
260 | }
261 | }
[340/348] Compiling AWSLambdaRuntimeCore Lambda+LocalServer.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:77:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
75 | case .disconnected:
76 | return self.connect().flatMap { channel -> EventLoopFuture<Response> in
77 | self.state = .connected(channel)
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | return self.execute(request, validate: false)
79 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:88:30: warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
86 | let promise = channel.eventLoop.makePromise(of: Response.self)
87 | promise.futureResult.whenComplete { _ in
88 | precondition(self.executing == true, "invalid execution state")
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | self.executing = false
90 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:88:30: warning: implicit capture of 'self' requires that 'HTTPClient' conforms to `Sendable`; this is an error in the Swift 6 language mode
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
86 | let promise = channel.eventLoop.makePromise(of: Response.self)
87 | promise.futureResult.whenComplete { _ in
88 | precondition(self.executing == true, "invalid execution state")
| `- warning: implicit capture of 'self' requires that 'HTTPClient' conforms to `Sendable`; this is an error in the Swift 6 language mode
89 | self.executing = false
90 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:198:39: warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 |
159 | // no need in locks since we validate only one request can run at a time
160 | private final class LambdaChannelHandler: ChannelDuplexHandler {
| `- note: class 'LambdaChannelHandler' does not conform to the 'Sendable' protocol
161 | typealias InboundIn = NIOHTTPClientResponseFull
162 | typealias OutboundIn = HTTPRequestWrapper
:
196 | let timeoutTask = wrapper.request.timeout.map {
197 | context.eventLoop.scheduleTask(in: $0) {
198 | guard case .running = self.state else {
| `- warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
199 | preconditionFailure("invalid state")
200 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:202:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | }
201 |
202 | context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:95:28: warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
93 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
| |- warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'invocations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
97 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96:28: warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
| |- warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocationState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'invocationState' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 |
98 | private let logger: Logger
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:138:25: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
136 | switch result {
137 | case .failure(let error):
138 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | self.writeResponse(context: context, response: .init(status: .internalServerError))
140 | case .success(let response):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:139:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | case .failure(let error):
138 | self.logger.error("invocation error: \(error)")
139 | self.writeResponse(context: context, response: .init(status: .internalServerError))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | case .success(let response):
141 | self.writeResponse(context: context, response: response)
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:174:29: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
172 | switch result {
173 | case .failure(let error):
174 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | self.writeResponse(context: context, status: .internalServerError)
176 | case .success(let invocation):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:175:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | case .failure(let error):
174 | self.logger.error("invocation error: \(error)")
175 | self.writeResponse(context: context, status: .internalServerError)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | case .success(let invocation):
177 | Self.invocationState = .waitingForLambdaResponse(invocation)
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:248:17: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
246 |
247 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
248 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | }
250 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:248:38: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
246 |
247 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
248 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
249 | }
250 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:253:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
251 | if let buffer = response.body {
252 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
253 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
254 | }
255 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:253:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
251 | if let buffer = response.body {
252 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
253 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
254 | }
255 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:259:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
257 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
258 | if case .failure(let error) = result {
259 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | }
261 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:259:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
257 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
258 | if case .failure(let error) = result {
259 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
260 | }
261 | }
[341/349] Wrapping AST for AWSLambdaRuntimeCore for debugging
[343/352] Compiling AWSLambdaRuntime Context+Foundation.swift
[344/352] Compiling AWSLambdaRuntime Lambda+Codable.swift
[345/352] Emitting module AWSLambdaRuntime
[346/359] Wrapping AST for AWSLambdaRuntime for debugging
[348/359] Emitting module StringSample
[349/359] Emitting module AWSLambdaTesting
[350/359] Compiling StringSample main.swift
[351/360] Compiling AWSLambdaTesting Lambda+Testing.swift
/host/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:109:30: warning: type 'Out' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
88 | }
89 |
90 | public static func test<In, Out, Handler: EventLoopLambdaHandler>(
| `- note: consider making generic parameter 'Out' conform to the 'Sendable' protocol
91 | _ handler: Handler,
92 | with event: In,
:
107 | allocator: ByteBufferAllocator())
108 |
109 | return try eventLoop.flatSubmit {
| `- warning: type 'Out' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
110 | handler.handle(context: context, event: event)
111 | }.wait()
/host/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:111:11: warning: type 'Out' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
88 | }
89 |
90 | public static func test<In, Out, Handler: EventLoopLambdaHandler>(
| `- note: consider making generic parameter 'Out' conform to the 'Sendable' protocol
91 | _ handler: Handler,
92 | with event: In,
:
109 | return try eventLoop.flatSubmit {
110 | handler.handle(context: context, event: event)
111 | }.wait()
| `- warning: type 'Out' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
112 | }
113 | }
/host/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:110:13: warning: capture of 'handler' with non-sendable type 'Handler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | public static func test<In, Out, Handler: EventLoopLambdaHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
91 | _ handler: Handler,
92 | with event: In,
:
108 |
109 | return try eventLoop.flatSubmit {
110 | handler.handle(context: context, event: event)
| `- warning: capture of 'handler' with non-sendable type 'Handler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | }.wait()
112 | }
/host/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:110:37: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |
109 | return try eventLoop.flatSubmit {
110 | handler.handle(context: context, event: event)
| `- warning: capture of 'context' with non-sendable type 'Lambda.Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | }.wait()
112 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
/host/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:38:11: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AWSLambdaRuntimeCore'
36 | #if DEBUG
37 | @testable import AWSLambdaRuntime
38 | @testable import AWSLambdaRuntimeCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AWSLambdaRuntimeCore'
39 | import Dispatch
40 | import Logging
/host/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:110:53: warning: capture of 'event' with non-sendable type 'In' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | public static func test<In, Out, Handler: EventLoopLambdaHandler>(
| `- note: consider making generic parameter 'In' conform to the 'Sendable' protocol
91 | _ handler: Handler,
92 | with event: In,
:
108 |
109 | return try eventLoop.flatSubmit {
110 | handler.handle(context: context, event: event)
| `- warning: capture of 'event' with non-sendable type 'In' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | }.wait()
112 | }
[352/360] Compiling CodableSample main.swift
[353/360] Emitting module CodableSample
[355/362] Wrapping AST for StringSample for debugging
[356/362] Write Objects.LinkFileList
[358/362] Wrapping AST for CodableSample for debugging
[359/362] Write Objects.LinkFileList
[360/362] Linking StringSample
[361/362] Linking CodableSample
Build complete! (100.98s)
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" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.