Build Information
Successful build of swift-aws-lambda-runtime, reference 1.0.0-alpha.2 (8d9f44), with Swift 6.1 for macOS (SPM) on 13 Jul 2025 11:54:00 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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 InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git
Reference: 1.0.0-alpha.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/andrea-scuderi/swift-aws-lambda-runtime
* tag 1.0.0-alpha.2 -> FETCH_HEAD
HEAD is now at 8d9f44b allow custom initialization of the HandlerType of the LambdaRuntime (#310)
Cloned https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git
Revision (git rev-parse @):
8d9f44b7838750b103ad2ad49055e8333d719e8a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git at 1.0.0-alpha.2
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-log.git from cache
[1/2094] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-log.git from cache (0.72s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.60s)
Fetched https://github.com/apple/swift-nio.git from cache (1.63s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (4.87s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.84s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.51s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.45s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.84.0 (0.67s)
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetching https://github.com/apple/swift-atomics.git from cache
Fetched https://github.com/apple/swift-atomics.git from cache (1.03s)
Fetched https://github.com/apple/swift-system.git from cache (1.03s)
Fetched https://github.com/apple/swift-collections.git from cache (1.04s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.52s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.45s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.53s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.84.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.5
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-aws-lambda-runtime",
"name": "swift-aws-lambda-runtime",
"url": "https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-aws-lambda-runtime",
"dependencies": [
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio.git",
"version": "2.84.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"dependencies": [
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics.git",
"version": "1.3.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git
[1/4029] Fetching swift-aws-lambda-runtime
Fetched https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git from cache (1.52s)
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/apple/swift-nio.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.74s)
Fetched https://github.com/apple/swift-nio.git from cache (0.75s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.80s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.84.0 (0.03s)
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-atomics.git from cache (0.55s)
Fetched https://github.com/apple/swift-system.git from cache (0.55s)
Fetched https://github.com/apple/swift-collections.git from cache (0.56s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.61s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.03s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.03s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.84.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git
Working copy of https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git resolved at 1.0.0-alpha.2 (8d9f44b)
Found 2 product dependencies
- swift-nio
- swift-log
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git
https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.43.1",
"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-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "swift-aws-lambda-runtime",
"name" : "swift-aws-lambda-runtime",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "AWSLambdaRuntime",
"targets" : [
"AWSLambdaRuntime"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaRuntimeCore",
"targets" : [
"AWSLambdaRuntimeCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaPackager",
"targets" : [
"AWSLambdaPackager"
],
"type" : {
"plugin" : null
}
},
{
"name" : "AWSLambdaTesting",
"targets" : [
"AWSLambdaTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MockServer",
"targets" : [
"MockServer"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "MockServer",
"module_type" : "SwiftTarget",
"name" : "MockServer",
"path" : "Sources/MockServer",
"product_dependencies" : [
"NIOHTTP1",
"NIO"
],
"product_memberships" : [
"MockServer"
],
"sources" : [
"main.swift"
],
"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+CodableTest.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore",
"AWSLambdaRuntime"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaRuntimeCoreTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeCoreTests",
"path" : "Tests/AWSLambdaRuntimeCoreTests",
"product_dependencies" : [
"NIOTestUtils",
"NIOFoundationCompat"
],
"sources" : [
"ControlPlaneRequestEncoderTests.swift",
"ControlPlaneRequestTests.swift",
"LambdaHandlerTest.swift",
"LambdaHandlers.swift",
"LambdaRequestIDTests.swift",
"LambdaRunnerTest.swift",
"LambdaRuntimeClientTest.swift",
"LambdaRuntimeTest.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",
"NIOHTTP1",
"NIOCore",
"NIOConcurrencyHelpers",
"NIOPosix"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaRuntimeCore",
"AWSLambdaTesting"
],
"sources" : [
"ControlPlaneRequest.swift",
"ControlPlaneRequestEncoder.swift",
"HTTPClient.swift",
"Lambda+LocalServer.swift",
"Lambda+String.swift",
"Lambda.swift",
"LambdaConfiguration.swift",
"LambdaContext.swift",
"LambdaHandler.swift",
"LambdaRequestID.swift",
"LambdaRunner.swift",
"LambdaRuntime.swift",
"LambdaRuntimeClient.swift",
"Terminator.swift",
"Utils.swift"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaRuntime",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntime",
"path" : "Sources/AWSLambdaRuntime",
"product_dependencies" : [
"NIOCore",
"NIOFoundationCompat"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaTesting"
],
"sources" : [
"Context+Foundation.swift",
"Lambda+Codable.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaPackager",
"module_type" : "PluginTarget",
"name" : "AWSLambdaPackager",
"path" : "Plugins/AWSLambdaPackager",
"plugin_capability" : {
"intent" : {
"description" : "Archive the Lambda binary and prepare it for uploading to AWS. Requires docker on macOS or non Amazonlinux 2 distributions.",
"type" : "custom",
"verb" : "archive"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"AWSLambdaPackager"
],
"sources" : [
"Plugin.swift"
],
"type" : "plugin"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
[1/1] Compiling plugin AWSLambdaPackager
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
Building for debugging...
[3/38] Write sources
[8/38] Copying PrivacyInfo.xcprivacy
[8/38] Write sources
[19/38] Write MockServer-entitlement.plist
[19/38] Write sources
[21/38] Compiling CNIOWindows WSAStartup.c
[22/38] Compiling CNIOWindows shim.c
[22/38] Compiling CNIOWASI CNIOWASI.c
[24/38] Compiling CNIOLinux shim.c
[24/38] Compiling CNIOLinux liburing_shims.c
[26/38] Write sources
[27/38] Write swift-version-2F0A5646E1D333AE.txt
[28/38] Compiling _AtomicsShims.c
[29/49] Compiling CNIOLLHTTP c_nio_http.c
[30/49] Compiling CNIOLLHTTP c_nio_api.c
[31/82] Compiling CNIOLLHTTP c_nio_llhttp.c
[32/82] Compiling CNIODarwin shim.c
[34/82] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[35/82] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[36/82] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[37/83] Compiling _NIOBase64 Base64.swift
[38/83] Emitting module _NIOBase64
[39/83] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[40/83] Compiling Atomics UnsafeAtomicLazyReference.swift
[41/83] Compiling Atomics IntegerOperations.swift
[42/84] Compiling InternalCollectionsUtilities Debugging.swift
[43/84] Compiling Atomics AtomicBool.swift
[44/84] Compiling Atomics IntegerConformances.swift
[45/84] Compiling Atomics OptionalRawRepresentable.swift
[46/84] Compiling Atomics RawRepresentable.swift
[47/84] Compiling InternalCollectionsUtilities Descriptions.swift
[48/84] Compiling Atomics PointerConformances.swift
[49/84] Compiling Atomics Primitives.native.swift
[50/84] Emitting module InternalCollectionsUtilities
[51/84] Compiling Atomics ManagedAtomicLazyReference.swift
[52/84] Compiling Atomics UnsafeAtomic.swift
[53/84] Compiling _NIODataStructures _TinyArray.swift
[54/84] Compiling Atomics Unmanaged extensions.swift
[55/84] Compiling Atomics AtomicReference.swift
[56/84] Compiling Atomics AtomicStorage.swift
[59/84] Compiling Atomics DoubleWord.swift
[60/84] Compiling Atomics ManagedAtomic.swift
[63/100] Compiling DequeModule _DequeBufferHeader.swift
[64/100] Compiling DequeModule _DequeBuffer.swift
[65/100] Compiling DequeModule _DequeSlot.swift
[66/101] Compiling DequeModule Deque+CustomReflectable.swift
[67/101] Compiling DequeModule Deque+Descriptions.swift
[68/101] Compiling Atomics AtomicValue.swift
[69/101] Compiling Atomics AtomicMemoryOrderings.swift
[70/101] Compiling _NIODataStructures Heap.swift
[71/101] Emitting module _NIODataStructures
[72/101] Compiling _NIODataStructures PriorityQueue.swift
[73/101] Compiling Logging MetadataProvider.swift
[74/101] Compiling DequeModule _UnsafeWrappedBuffer.swift
[75/101] Compiling Logging Locks.swift
[76/101] Emitting module Logging
[77/101] Compiling Logging LogHandler.swift
[78/101] Compiling Logging Logging.swift
[79/101] Compiling DequeModule Deque+Testing.swift
[80/101] Compiling DequeModule Deque._Storage.swift
[81/101] Compiling DequeModule Deque+Extras.swift
[82/101] Compiling DequeModule Deque+Hashable.swift
[85/101] Compiling DequeModule Deque+Equatable.swift
[86/101] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[87/101] Compiling DequeModule Deque._UnsafeHandle.swift
[88/101] Compiling DequeModule Deque.swift
[89/101] Compiling DequeModule Deque+Codable.swift
[90/101] Compiling DequeModule Deque+Collection.swift
[93/101] Emitting module Atomics
[96/101] Emitting module DequeModule
[96/101] Compiling c-nioatomics.c
[97/101] Compiling c-atomics.c
[99/107] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[100/107] Compiling NIOConcurrencyHelpers lock.swift
[101/107] Compiling NIOConcurrencyHelpers atomics.swift
[102/107] Compiling NIOConcurrencyHelpers NIOLock.swift
[103/107] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[104/107] Emitting module NIOConcurrencyHelpers
[105/170] Compiling NIOCore Linux.swift
[106/170] Compiling NIOCore MarkedCircularBuffer.swift
[107/170] Compiling NIOCore MulticastChannel.swift
[108/170] Compiling NIOCore NIOAny.swift
[109/170] Compiling NIOCore NIOCloseOnErrorHandler.swift
[110/170] Compiling NIOCore NIOCoreSendableMetatype.swift
[111/170] Compiling NIOCore NIOLoopBound.swift
[112/176] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[113/176] Compiling NIOCore NIOScheduledCallback.swift
[114/176] Compiling NIOCore NIOSendable.swift
[115/176] Compiling NIOCore RecvByteBufferAllocator.swift
[116/176] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[117/176] Compiling NIOCore SocketAddresses.swift
[118/176] Compiling NIOCore AddressedEnvelope.swift
[119/176] Compiling NIOCore AsyncAwaitSupport.swift
[120/176] Compiling NIOCore AsyncChannel.swift
[121/176] Compiling NIOCore AsyncChannelHandler.swift
[122/176] Compiling NIOCore AsyncChannelInboundStream.swift
[123/176] Compiling NIOCore AsyncChannelOutboundWriter.swift
[124/176] Compiling NIOCore NIOAsyncSequenceProducer.swift
[125/176] Compiling NIOCore SocketOptionProvider.swift
[126/176] Compiling NIOCore SystemCallHelpers.swift
[127/176] Compiling NIOCore TimeAmount+Duration.swift
[128/176] Compiling NIOCore TypeAssistedChannelHandler.swift
[129/176] Compiling NIOCore UniversalBootstrapSupport.swift
[130/176] Compiling NIOCore Utilities.swift
[131/176] Compiling NIOCore GlobalSingletons.swift
[132/176] Compiling NIOCore IO.swift
[133/176] Compiling NIOCore IOData.swift
[134/176] Compiling NIOCore IPProtocol.swift
[135/176] Compiling NIOCore IntegerBitPacking.swift
[136/176] Compiling NIOCore IntegerTypes.swift
[137/176] Compiling NIOCore Interfaces.swift
[138/176] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[139/176] Compiling NIOCore EventLoopFuture+Deprecated.swift
[140/176] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[141/176] Compiling NIOCore EventLoopFuture.swift
[142/176] Compiling NIOCore FileDescriptor.swift
[143/176] Compiling NIOCore FileHandle.swift
[144/176] Compiling NIOCore FileRegion.swift
[145/176] Compiling NIOCore Codec.swift
[146/176] Compiling NIOCore ConvenienceOptionSupport.swift
[147/176] Compiling NIOCore DeadChannel.swift
[148/176] Compiling NIOCore DispatchQueue+WithFuture.swift
[149/176] Compiling NIOCore EventLoop+Deprecated.swift
[150/176] Compiling NIOCore EventLoop+SerialExecutor.swift
[151/176] Compiling NIOCore EventLoop.swift
[152/176] Compiling NIOCore Channel.swift
[153/176] Compiling NIOCore ChannelHandler.swift
[154/176] Compiling NIOCore ChannelHandlers.swift
[155/176] Compiling NIOCore ChannelInvoker.swift
[156/176] Compiling NIOCore ChannelOption.swift
[157/176] Compiling NIOCore ChannelPipeline.swift
[158/176] Compiling NIOCore CircularBuffer.swift
[159/176] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[160/176] Compiling NIOCore NIOAsyncWriter.swift
[161/176] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[162/176] Compiling NIOCore BSDSocketAPI.swift
[163/176] Compiling NIOCore ByteBuffer-aux.swift
[164/176] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[165/176] Compiling NIOCore ByteBuffer-conversions.swift
[166/176] Compiling NIOCore ByteBuffer-core.swift
[167/176] Compiling NIOCore ByteBuffer-hex.swift
[168/176] Compiling NIOCore ByteBuffer-int.swift
[169/176] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[170/176] Compiling NIOCore ByteBuffer-multi-int.swift
[171/176] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[172/176] Compiling NIOCore ByteBuffer-views.swift
[173/176] Emitting module NIOCore
[174/229] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[175/229] Compiling NIOEmbedded AsyncTestingChannel.swift
[176/229] Compiling NIOEmbedded Embedded.swift
[177/229] Emitting module NIOEmbedded
[178/229] Compiling NIOPosix Pool.swift
[179/229] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[180/229] Compiling NIOPosix PosixSingletons.swift
[181/229] Compiling NIOPosix RawSocketBootstrap.swift
[182/229] Compiling NIOPosix Resolver.swift
[183/229] Compiling NIOPosix SocketProtocols.swift
[184/229] Compiling NIOPosix System.swift
[185/229] Compiling NIOPosix Thread.swift
[186/229] Compiling NIOPosix ThreadPosix.swift
[187/229] Compiling NIOPosix ThreadWindows.swift
[188/234] Emitting module NIOPosix
[189/234] Compiling NIOPosix BSDSocketAPICommon.swift
[190/234] Compiling NIOPosix BSDSocketAPIPosix.swift
[191/234] Compiling NIOPosix BSDSocketAPIWindows.swift
[192/234] Compiling NIOPosix BaseSocket.swift
[193/234] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[194/234] Compiling NIOPosix BaseSocketChannel.swift
[195/234] Compiling NIOPosix LinuxCPUSet.swift
[196/234] Compiling NIOPosix LinuxUring.swift
[197/234] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[198/234] Compiling NIOPosix NIOPosixSendableMetatype.swift
[199/234] Compiling NIOPosix NIOThreadPool.swift
[200/234] Compiling NIOPosix BaseStreamSocketChannel.swift
[201/234] Compiling NIOPosix Bootstrap.swift
[202/234] Compiling NIOPosix ControlMessage.swift
[203/234] Compiling NIOPosix DatagramVectorReadManager.swift
[204/234] Compiling NIOPosix Errors+Any.swift
[205/234] Compiling NIOPosix FileDescriptor.swift
[206/234] Compiling NIOPosix SelectorKqueue.swift
[207/234] Compiling NIOPosix SelectorUring.swift
[208/234] Compiling NIOPosix ServerSocket.swift
[209/234] Compiling NIOPosix Socket.swift
[210/234] Compiling NIOPosix SocketChannel.swift
[211/234] Compiling NIOPosix GetaddrinfoResolver.swift
[212/234] Compiling NIOPosix HappyEyeballs.swift
[213/234] Compiling NIOPosix IO.swift
[214/234] Compiling NIOPosix IntegerBitPacking.swift
[215/234] Compiling NIOPosix IntegerTypes.swift
[216/234] Compiling NIOPosix Linux.swift
[217/234] Compiling NIOPosix Selectable.swift
[218/234] Compiling NIOPosix SelectableChannel.swift
[219/234] Compiling NIOPosix SelectableEventLoop.swift
[220/234] Compiling NIOPosix SelectorEpoll.swift
[221/234] Compiling NIOPosix SelectorGeneric.swift
[222/234] Compiling NIOPosix NonBlockingFileIO.swift
[223/234] Compiling NIOPosix PendingDatagramWritesManager.swift
[224/234] Compiling NIOPosix PendingWritesManager.swift
[225/234] Compiling NIOPosix PipeChannel.swift
[226/234] Compiling NIOPosix PipePair.swift
[227/234] Compiling NIOPosix UnsafeTransfer.swift
[228/234] Compiling NIOPosix Utilities.swift
[229/234] Compiling NIOPosix VsockAddress.swift
[230/234] Compiling NIOPosix VsockChannelEvents.swift
[231/234] Compiling NIOPosix resource_bundle_accessor.swift
[232/236] Emitting module NIO
[233/236] Compiling NIO Exports.swift
[234/258] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[235/258] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[236/258] Emitting module NIOFoundationCompat
[237/258] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[238/258] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[239/258] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[240/258] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[241/258] Compiling NIOHTTP1 HTTPEncoder.swift
[242/258] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[243/258] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[244/258] Compiling NIOHTTP1 ByteCollectionUtils.swift
[245/258] Compiling NIOHTTP1 HTTPDecoder.swift
[246/258] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[247/259] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[248/259] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[249/259] Emitting module NIOHTTP1
[250/259] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[251/259] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[252/259] Compiling NIOHTTP1 HTTPTypes.swift
[253/259] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[254/259] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[255/259] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[256/259] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[257/276] Compiling AWSLambdaRuntimeCore Terminator.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:24: warning: capture of 'terminate(_:errors:promise:)' with non-sendable type '(IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>, [any Error], EventLoopPromise<Void>) -> ()' (aka '(IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>, Array<any Error>, EventLoopPromise<()>) -> ()') in a '@Sendable' closure
72 | errors.append(error)
73 | }
74 | return terminate(iterator, errors: errors, promise: promise)
| |- warning: capture of 'terminate(_:errors:promise:)' with non-sendable type '(IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>, [any Error], EventLoopPromise<Void>) -> ()' (aka '(IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>, Array<any Error>, EventLoopPromise<()>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:34: warning: capture of 'iterator' with non-sendable type 'IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>' (aka 'IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>') in a '@Sendable' closure
72 | errors.append(error)
73 | }
74 | return terminate(iterator, errors: errors, promise: promise)
| |- warning: capture of 'iterator' with non-sendable type 'IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>' (aka 'IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:60:14: warning: concurrently-executed local function 'terminate(_:errors:promise:)' must be marked as '@Sendable'
58 | /// - Returns: An `EventLoopFuture` with the result of the termination cycle.
59 | internal func terminate(eventLoop: EventLoop) -> EventLoopFuture<Void> {
60 | func terminate(_ iterator: IndexingIterator<[(name: String, handler: Handler)]>, errors: [Error], promise: EventLoopPromise<Void>) {
| `- warning: concurrently-executed local function 'terminate(_:errors:promise:)' must be marked as '@Sendable'
61 | var iterator = iterator
62 | guard let handler = iterator.next()?.handler else {
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:34: warning: reference to captured var 'iterator' in concurrently-executing code
72 | errors.append(error)
73 | }
74 | return terminate(iterator, errors: errors, promise: promise)
| `- warning: reference to captured var 'iterator' in concurrently-executing code
75 | }
76 | }
[258/276] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
[259/277] Compiling AWSLambdaRuntimeCore LambdaRunner.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:56:14: warning: type 'Handler' does not conform to the 'Sendable' protocol
34 | ///
35 | /// - Returns: An `EventLoopFuture<LambdaHandler>` fulfilled with the outcome of the initialization.
36 | func initialize<Handler: LambdaRuntimeHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
37 | handlerProvider: @escaping (LambdaInitializationContext) -> EventLoopFuture<Handler>,
38 | logger: Logger,
:
54 | // This can happen if the factory uses a library (let's say a database client) that manages its own threads/loops
55 | // for whatever reason and returns a future that originated from that foreign EventLoop.
56 | .hop(to: self.eventLoop)
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol
57 | .peekError { error in
58 | self.runtimeClient.reportInitializationError(logger: logger, error: error).peekError { reportingError in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:82:20: warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a '@Sendable' closure
64 | }
65 |
66 | func run(handler: some LambdaRuntimeHandler, logger: Logger) -> EventLoopFuture<Void> {
| `- note: consider making generic parameter 'some LambdaRuntimeHandler' conform to the 'Sendable' protocol
67 | logger.debug("lambda invocation sequence starting")
68 | // 1. request invocation from lambda runtime engine
:
80 | )
81 | logger.debug("sending invocation to lambda handler")
82 | return handler.handle(bytes, context: context)
| `- warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a '@Sendable' closure
83 | // Hopping back to "our" EventLoop is important in case the handler returns a future that
84 | // originated from a foreign EventLoop/EventLoopGroup.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:129:14: warning: type 'Value' does not conform to the 'Sendable' protocol
127 | // callback does not have side effects, failing with original result
128 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
129 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
130 | callback(error)
131 | return self
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:130:13: warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
128 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
129 | self.flatMapError { error in
130 | callback(error)
| |- warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | return self
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:137:14: warning: type 'Value' does not conform to the 'Sendable' protocol
135 | // callback does not have side effects, failing with original result
136 | func peekError(_ callback: @escaping (Error) -> EventLoopFuture<Void>) -> EventLoopFuture<Value> {
137 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
138 | let promise = self.eventLoop.makePromise(of: Value.self)
139 | callback(error).whenComplete { _ in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:140:25: warning: type 'Value' does not conform to the 'Sendable' protocol
138 | let promise = self.eventLoop.makePromise(of: Value.self)
139 | callback(error).whenComplete { _ in
140 | promise.completeWith(self)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
141 | }
142 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:139:13: warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a '@Sendable' closure
137 | self.flatMapError { error in
138 | let promise = self.eventLoop.makePromise(of: Value.self)
139 | callback(error).whenComplete { _ in
| |- warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | promise.completeWith(self)
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:148:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
146 | func mapResult<NewValue>(_ callback: @escaping (Result<Value, Error>) -> NewValue) -> EventLoopFuture<NewValue> {
147 | self.map { value in
148 | callback(.success(value))
| |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
149 | }.flatMapErrorThrowing { error in
150 | callback(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:150:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
148 | callback(.success(value))
149 | }.flatMapErrorThrowing { error in
150 | callback(.failure(error))
| |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
151 | }
152 | }
[260/277] Compiling AWSLambdaRuntimeCore Utils.swift
[261/277] Compiling AWSLambdaRuntimeCore LambdaRuntime.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:127:17: warning: reference to captured var 'logger' in concurrently-executing code
125 | // if, we had an error shutting down the handler, we want to concatenate it with
126 | // the runner result
127 | logger.error("Error shutting down handler: \(error)")
| `- warning: reference to captured var 'logger' in concurrently-executing code
128 | throw LambdaRuntimeError.shutdownError(shutdownError: error, runnerResult: runnerResult)
129 | }.flatMapResult { _ -> Result<Int, Error> in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:174:25: warning: capture of '_run' with non-sendable type '<Handler where Handler : LambdaRuntimeHandler> (Int) -> ()' in a '@Sendable' closure
172 | logger.log(level: .debug, "lambda invocation sequence completed successfully")
173 | // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
174 | _run(count + 1)
| `- warning: capture of '_run' with non-sendable type '<Handler where Handler : LambdaRuntimeHandler> (Int) -> ()' in a '@Sendable' closure
175 | case .failure(HTTPClient.Errors.cancelled):
176 | if case .shuttingdown = self.state {
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:172:25: warning: reference to captured var 'logger' in concurrently-executing code
170 | switch result {
171 | case .success:
172 | logger.log(level: .debug, "lambda invocation sequence completed successfully")
| `- warning: reference to captured var 'logger' in concurrently-executing code
173 | // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
174 | _run(count + 1)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:161:14: warning: concurrently-executed local function '_run' must be marked as '@Sendable'
159 | @inline(__always)
160 | private func run(promise: EventLoopPromise<Int>) {
161 | func _run(_ count: Int) {
| `- warning: concurrently-executed local function '_run' must be marked as '@Sendable'
162 | switch self.state {
163 | case .active(let runner, let handler):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:180:29: warning: reference to captured var 'logger' in concurrently-executing code
178 | // invocation request might have been cancelled. For this reason we
179 | // succeed the promise here.
180 | logger.log(level: .info, "lambda invocation sequence has been cancelled for shutdown")
| `- warning: reference to captured var 'logger' in concurrently-executing code
181 | return promise.succeed(count)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:183:25: warning: reference to captured var 'logger' in concurrently-executing code
181 | return promise.succeed(count)
182 | }
183 | logger.log(level: .error, "lambda invocation sequence has been cancelled unexpectedly")
| `- warning: reference to captured var 'logger' in concurrently-executing code
184 | promise.fail(HTTPClient.Errors.cancelled)
185 | case .failure(let error):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:186:25: warning: reference to captured var 'logger' in concurrently-executing code
184 | promise.fail(HTTPClient.Errors.cancelled)
185 | case .failure(let error):
186 | logger.log(level: .error, "lambda invocation sequence completed with error: \(error)")
| `- warning: reference to captured var 'logger' in concurrently-executing code
187 | promise.fail(error)
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:335:25: warning: type 'Handler' does not conform to the 'Sendable' protocol
325 | /// - logger: A `Logger` to log the Lambda events.
326 | @inlinable
327 | public static func makeRuntime<Handler: LambdaRuntimeHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
328 | handlerProvider: @escaping (LambdaInitializationContext) async throws -> Handler,
329 | eventLoop: any EventLoop,
:
333 | handlerProvider: { context in
334 | let promise = eventLoop.makePromise(of: Handler.self)
335 | promise.completeWithTask {
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol
336 | try await handlerProvider(context)
337 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:336:31: warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a '@Sendable' closure
334 | let promise = eventLoop.makePromise(of: Handler.self)
335 | promise.completeWithTask {
336 | try await handlerProvider(context)
| |- warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
337 | }
338 | return promise.futureResult
[262/277] Compiling MockServer main.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockServer/main.swift:38:49: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
36 | .childChannelInitializer { channel in
37 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap { _ in
38 | channel.pipeline.addHandler(HTTPHandler(mode: self.mode))
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
39 | }
40 | }
:
49 | }
50 |
51 | internal final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
52 | public typealias InboundIn = HTTPServerRequestPart
53 | public typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/MockServer/main.swift:118:22: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
49 | }
50 |
51 | internal final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
52 | public typealias InboundIn = HTTPServerRequestPart
53 | public typealias OutboundOut = HTTPServerResponsePart
:
116 |
117 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
118 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
119 | }
120 |
/Users/admin/builder/spi-builder-workspace/Sources/MockServer/main.swift:125:26: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
49 | }
50 |
51 | internal final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
52 | public typealias InboundIn = HTTPServerRequestPart
53 | public typealias OutboundOut = HTTPServerResponsePart
:
123 | buffer.writeString(b)
124 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
125 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
126 | }
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/MockServer/main.swift:131:26: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
49 | }
50 |
51 | internal final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
52 | public typealias InboundIn = HTTPServerRequestPart
53 | public typealias OutboundOut = HTTPServerResponsePart
:
129 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
130 | if case .failure(let error) = result {
131 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
132 | }
133 | }
[263/277] Emitting module MockServer
[264/277] Emitting module AWSLambdaRuntimeCore
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96: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
94 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
95 |
96 | 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: add '@MainActor' to make static property 'invocations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | private static var invocationState = InvocationState.waitingForLambdaRequest
98 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:97: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
95 |
96 | private static var invocations = CircularBuffer<Invocation>()
97 | 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: add '@MainActor' to make static property 'invocationState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | private let logger: Logger
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:75:17: warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
73 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableSimpleLambdaHandler> {
74 | let promise = context.eventLoop.makePromise(of: CodableSimpleLambdaHandler<Underlying>.self)
75 | promise.completeWithTask {
| `- warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
76 | let handler = Underlying()
77 | return CodableSimpleLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:94:29: warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
92 | let input: Underlying.Event
93 | do {
94 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
95 | } catch {
96 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:197:17: warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
195 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableLambdaHandler> {
196 | let promise = context.eventLoop.makePromise(of: CodableLambdaHandler<Underlying>.self)
197 | promise.completeWithTask {
| `- warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
198 | let handler = try await Underlying(context: context)
199 | return CodableLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:216:29: warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
214 | let input: Underlying.Event
215 | do {
216 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
217 | } catch {
218 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:369:17: warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
337 |
338 | @usableFromInline
339 | final class CodableEventLoopLambdaHandler<Underlying: EventLoopLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableEventLoopLambdaHandler' does not conform to the 'Sendable' protocol
340 | @usableFromInline
341 | let handler: Underlying
:
367 | return self.handler.handle(input, context: context).flatMapThrowing { output in
368 | do {
369 | self.outputBuffer.clear()
| `- warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
370 | try self.handler.encode(value: output, into: &self.outputBuffer)
371 | return self.outputBuffer
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRequestID.swift:89:24: warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
87 |
88 | /// thread safe secure random number generator.
89 | private static var generator = SystemRandomNumberGenerator()
| |- warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'generator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'generator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | private static func generateRandom() -> Self {
91 | var _uuid: uuid_t = LambdaRequestID.null
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:335:25: warning: type 'Handler' does not conform to the 'Sendable' protocol
325 | /// - logger: A `Logger` to log the Lambda events.
326 | @inlinable
327 | public static func makeRuntime<Handler: LambdaRuntimeHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
328 | handlerProvider: @escaping (LambdaInitializationContext) async throws -> Handler,
329 | eventLoop: any EventLoop,
:
333 | handlerProvider: { context in
334 | let promise = eventLoop.makePromise(of: Handler.self)
335 | promise.completeWithTask {
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol
336 | try await handlerProvider(context)
337 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:336:31: warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a '@Sendable' closure
334 | let promise = eventLoop.makePromise(of: Handler.self)
335 | promise.completeWithTask {
336 | try await handlerProvider(context)
| |- warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
337 | }
338 | return promise.futureResult
[264/277] Write Objects.LinkFileList
[266/277] Compiling AWSLambdaRuntimeCore Lambda+String.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:135:21: warning: mutation of captured var 'result' in concurrently-executing code
133 | }
134 | }
135 | result = lifecycleResult
| `- warning: mutation of captured var 'result' in concurrently-executing code
136 | }
137 | }
[267/277] Compiling AWSLambdaRuntimeCore Lambda.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:135:21: warning: mutation of captured var 'result' in concurrently-executing code
133 | }
134 | }
135 | result = lifecycleResult
| `- warning: mutation of captured var 'result' in concurrently-executing code
136 | }
137 | }
[268/277] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
[269/277] Compiling AWSLambdaRuntimeCore LambdaContext.swift
[270/277] Compiling AWSLambdaRuntimeCore HTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:78:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
76 | case .disconnected:
77 | return self.connect().flatMap { channel -> EventLoopFuture<Response> in
78 | self.state = .connected(channel)
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
79 | return self.execute(request, validate: false)
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
87 | let promise = channel.eventLoop.makePromise(of: Response.self)
88 | promise.futureResult.whenComplete { _ in
89 | precondition(self.executing == true, "invalid execution state")
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
90 | self.executing = false
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: implicit capture of 'self' requires that 'HTTPClient' conforms to 'Sendable'; this is an error in the Swift 6 language mode
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
87 | let promise = channel.eventLoop.makePromise(of: Response.self)
88 | promise.futureResult.whenComplete { _ in
89 | 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
90 | self.executing = false
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:199:39: warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
159 |
160 | // no need in locks since we validate only one request can run at a time
161 | private final class LambdaChannelHandler: ChannelDuplexHandler {
| `- note: class 'LambdaChannelHandler' does not conform to the 'Sendable' protocol
162 | typealias InboundIn = NIOHTTPClientResponseFull
163 | typealias OutboundIn = HTTPRequestWrapper
:
197 | let timeoutTask = wrapper.request.timeout.map {
198 | context.eventLoop.scheduleTask(in: $0) {
199 | guard case .running = self.state else {
| `- warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
200 | preconditionFailure("invalid state")
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:203:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
201 | }
202 |
203 | context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
204 | }
205 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 | // visible for ChannelPipeline to modify
1794 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96: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
94 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
95 |
96 | 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: add '@MainActor' to make static property 'invocations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | private static var invocationState = InvocationState.waitingForLambdaRequest
98 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:97: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
95 |
96 | private static var invocations = CircularBuffer<Invocation>()
97 | 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: add '@MainActor' to make static property 'invocationState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | private let logger: Logger
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:73:53: warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
71 | .childChannelInitializer { channel in
72 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap { _ in
73 | channel.pipeline.addHandler(HTTPHandler(logger: self.logger, invocationEndpoint: self.invocationEndpoint))
| `- warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
74 | }
75 | }
:
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:139:25: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
137 | switch result {
138 | case .failure(let error):
139 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
140 | self.writeResponse(context: context, response: .init(status: .internalServerError))
141 | case .success(let response):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:140:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
138 | case .failure(let error):
139 | self.logger.error("invocation error: \(error)")
140 | self.writeResponse(context: context, response: .init(status: .internalServerError))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
141 | case .success(let response):
142 | self.writeResponse(context: context, response: response)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 | // visible for ChannelPipeline to modify
1794 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:175:29: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
173 | switch result {
174 | case .failure(let error):
175 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
176 | self.writeResponse(context: context, status: .internalServerError)
177 | case .success(let invocation):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:176:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
174 | case .failure(let error):
175 | self.logger.error("invocation error: \(error)")
176 | self.writeResponse(context: context, status: .internalServerError)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
177 | case .success(let invocation):
178 | Self.invocationState = .waitingForLambdaResponse(invocation)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 | // visible for ChannelPipeline to modify
1794 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:17: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
247 |
248 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:38: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
247 |
248 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 | 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
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
252 | if let buffer = response.body {
253 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
255 | }
256 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
252 | if let buffer = response.body {
253 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 | 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
255 | }
256 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
258 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 | if case .failure(let error) = result {
260 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
261 | }
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
258 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 | if case .failure(let error) = result {
260 | 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
261 | }
262 | }
[271/277] Compiling AWSLambdaRuntimeCore Lambda+LocalServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:78:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
76 | case .disconnected:
77 | return self.connect().flatMap { channel -> EventLoopFuture<Response> in
78 | self.state = .connected(channel)
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
79 | return self.execute(request, validate: false)
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
87 | let promise = channel.eventLoop.makePromise(of: Response.self)
88 | promise.futureResult.whenComplete { _ in
89 | precondition(self.executing == true, "invalid execution state")
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
90 | self.executing = false
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: implicit capture of 'self' requires that 'HTTPClient' conforms to 'Sendable'; this is an error in the Swift 6 language mode
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
87 | let promise = channel.eventLoop.makePromise(of: Response.self)
88 | promise.futureResult.whenComplete { _ in
89 | 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
90 | self.executing = false
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:199:39: warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
159 |
160 | // no need in locks since we validate only one request can run at a time
161 | private final class LambdaChannelHandler: ChannelDuplexHandler {
| `- note: class 'LambdaChannelHandler' does not conform to the 'Sendable' protocol
162 | typealias InboundIn = NIOHTTPClientResponseFull
163 | typealias OutboundIn = HTTPRequestWrapper
:
197 | let timeoutTask = wrapper.request.timeout.map {
198 | context.eventLoop.scheduleTask(in: $0) {
199 | guard case .running = self.state else {
| `- warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
200 | preconditionFailure("invalid state")
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:203:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
201 | }
202 |
203 | context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
204 | }
205 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 | // visible for ChannelPipeline to modify
1794 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96: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
94 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
95 |
96 | 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: add '@MainActor' to make static property 'invocations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | private static var invocationState = InvocationState.waitingForLambdaRequest
98 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:97: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
95 |
96 | private static var invocations = CircularBuffer<Invocation>()
97 | 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: add '@MainActor' to make static property 'invocationState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | private let logger: Logger
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:73:53: warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
71 | .childChannelInitializer { channel in
72 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap { _ in
73 | channel.pipeline.addHandler(HTTPHandler(logger: self.logger, invocationEndpoint: self.invocationEndpoint))
| `- warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
74 | }
75 | }
:
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:139:25: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
137 | switch result {
138 | case .failure(let error):
139 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
140 | self.writeResponse(context: context, response: .init(status: .internalServerError))
141 | case .success(let response):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:140:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
138 | case .failure(let error):
139 | self.logger.error("invocation error: \(error)")
140 | self.writeResponse(context: context, response: .init(status: .internalServerError))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
141 | case .success(let response):
142 | self.writeResponse(context: context, response: response)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 | // visible for ChannelPipeline to modify
1794 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:175:29: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
173 | switch result {
174 | case .failure(let error):
175 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
176 | self.writeResponse(context: context, status: .internalServerError)
177 | case .success(let invocation):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:176:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
174 | case .failure(let error):
175 | self.logger.error("invocation error: \(error)")
176 | self.writeResponse(context: context, status: .internalServerError)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
177 | case .success(let invocation):
178 | Self.invocationState = .waitingForLambdaResponse(invocation)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 | // visible for ChannelPipeline to modify
1794 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:17: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
247 |
248 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:38: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
247 |
248 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 | 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
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
252 | if let buffer = response.body {
253 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
255 | }
256 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
252 | if let buffer = response.body {
253 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 | 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
255 | }
256 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
258 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 | if case .failure(let error) = result {
260 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
261 | }
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
258 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 | if case .failure(let error) = result {
260 | 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
261 | }
262 | }
[272/277] Compiling AWSLambdaRuntimeCore LambdaHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:75:17: warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
73 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableSimpleLambdaHandler> {
74 | let promise = context.eventLoop.makePromise(of: CodableSimpleLambdaHandler<Underlying>.self)
75 | promise.completeWithTask {
| `- warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
76 | let handler = Underlying()
77 | return CodableSimpleLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:94:29: warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
92 | let input: Underlying.Event
93 | do {
94 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
95 | } catch {
96 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:197:17: warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
195 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableLambdaHandler> {
196 | let promise = context.eventLoop.makePromise(of: CodableLambdaHandler<Underlying>.self)
197 | promise.completeWithTask {
| `- warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
198 | let handler = try await Underlying(context: context)
199 | return CodableLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:216:29: warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
214 | let input: Underlying.Event
215 | do {
216 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
217 | } catch {
218 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:369:17: warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
337 |
338 | @usableFromInline
339 | final class CodableEventLoopLambdaHandler<Underlying: EventLoopLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableEventLoopLambdaHandler' does not conform to the 'Sendable' protocol
340 | @usableFromInline
341 | let handler: Underlying
:
367 | return self.handler.handle(input, context: context).flatMapThrowing { output in
368 | do {
369 | self.outputBuffer.clear()
| `- warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
370 | try self.handler.encode(value: output, into: &self.outputBuffer)
371 | return self.outputBuffer
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRequestID.swift:89:24: warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
87 |
88 | /// thread safe secure random number generator.
89 | private static var generator = SystemRandomNumberGenerator()
| |- warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'generator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'generator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | private static func generateRandom() -> Self {
91 | var _uuid: uuid_t = LambdaRequestID.null
[273/277] Compiling AWSLambdaRuntimeCore LambdaRequestID.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:75:17: warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
73 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableSimpleLambdaHandler> {
74 | let promise = context.eventLoop.makePromise(of: CodableSimpleLambdaHandler<Underlying>.self)
75 | promise.completeWithTask {
| `- warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
76 | let handler = Underlying()
77 | return CodableSimpleLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:94:29: warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
92 | let input: Underlying.Event
93 | do {
94 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
95 | } catch {
96 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:197:17: warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
195 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableLambdaHandler> {
196 | let promise = context.eventLoop.makePromise(of: CodableLambdaHandler<Underlying>.self)
197 | promise.completeWithTask {
| `- warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
198 | let handler = try await Underlying(context: context)
199 | return CodableLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:216:29: warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
214 | let input: Underlying.Event
215 | do {
216 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
217 | } catch {
218 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:369:17: warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
337 |
338 | @usableFromInline
339 | final class CodableEventLoopLambdaHandler<Underlying: EventLoopLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableEventLoopLambdaHandler' does not conform to the 'Sendable' protocol
340 | @usableFromInline
341 | let handler: Underlying
:
367 | return self.handler.handle(input, context: context).flatMapThrowing { output in
368 | do {
369 | self.outputBuffer.clear()
| `- warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
370 | try self.handler.encode(value: output, into: &self.outputBuffer)
371 | return self.outputBuffer
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRequestID.swift:89:24: warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
87 |
88 | /// thread safe secure random number generator.
89 | private static var generator = SystemRandomNumberGenerator()
| |- warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'generator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'generator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | private static func generateRandom() -> Self {
91 | var _uuid: uuid_t = LambdaRequestID.null
[274/277] Compiling AWSLambdaRuntimeCore ControlPlaneRequest.swift
[275/277] Compiling AWSLambdaRuntimeCore ControlPlaneRequestEncoder.swift
[276/280] Compiling AWSLambdaRuntime Context+Foundation.swift
[277/280] Compiling AWSLambdaRuntime Lambda+Codable.swift
[278/280] Emitting module AWSLambdaRuntime
[278/282] Linking MockServer
[279/282] Applying MockServer
[281/282] Compiling AWSLambdaTesting Lambda+Testing.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:87:73: warning: type 'Handler' does not conform to the 'Sendable' protocol
79 | }
80 |
81 | public static func test<Handler: EventLoopLambdaHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
82 | _ handlerType: Handler.Type,
83 | with event: Handler.Event,
:
85 | ) async throws -> Handler.Output {
86 | let context = Self.makeContext(config: config)
87 | let handler = try await Handler.makeHandler(context: context.0).get()
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol
88 | return try await handler.handle(event, context: context.1).get()
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:88:68: warning: type 'Handler.Output' does not conform to the 'Sendable' protocol
86 | let context = Self.makeContext(config: config)
87 | let handler = try await Handler.makeHandler(context: context.0).get()
88 | return try await handler.handle(event, context: context.1).get()
| `- warning: type 'Handler.Output' does not conform to the 'Sendable' protocol
89 | }
90 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:97:73: warning: type 'Handler' does not conform to the 'Sendable' protocol
89 | }
90 |
91 | public static func test<Handler: ByteBufferLambdaHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
92 | _ handlerType: Handler.Type,
93 | with buffer: ByteBuffer,
:
95 | ) async throws -> ByteBuffer? {
96 | let context = Self.makeContext(config: config)
97 | let handler = try await Handler.makeHandler(context: context.0).get()
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol
98 | return try await handler.handle(buffer, context: context.1).get()
99 | }
[282/282] Emitting module AWSLambdaTesting
Build complete! (26.52s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.43.1",
"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-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "swift-aws-lambda-runtime",
"name" : "swift-aws-lambda-runtime",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "AWSLambdaRuntime",
"targets" : [
"AWSLambdaRuntime"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaRuntimeCore",
"targets" : [
"AWSLambdaRuntimeCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaPackager",
"targets" : [
"AWSLambdaPackager"
],
"type" : {
"plugin" : null
}
},
{
"name" : "AWSLambdaTesting",
"targets" : [
"AWSLambdaTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MockServer",
"targets" : [
"MockServer"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "MockServer",
"module_type" : "SwiftTarget",
"name" : "MockServer",
"path" : "Sources/MockServer",
"product_dependencies" : [
"NIOHTTP1",
"NIO"
],
"product_memberships" : [
"MockServer"
],
"sources" : [
"main.swift"
],
"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+CodableTest.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore",
"AWSLambdaRuntime"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaRuntimeCoreTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeCoreTests",
"path" : "Tests/AWSLambdaRuntimeCoreTests",
"product_dependencies" : [
"NIOTestUtils",
"NIOFoundationCompat"
],
"sources" : [
"ControlPlaneRequestEncoderTests.swift",
"ControlPlaneRequestTests.swift",
"LambdaHandlerTest.swift",
"LambdaHandlers.swift",
"LambdaRequestIDTests.swift",
"LambdaRunnerTest.swift",
"LambdaRuntimeClientTest.swift",
"LambdaRuntimeTest.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",
"NIOHTTP1",
"NIOCore",
"NIOConcurrencyHelpers",
"NIOPosix"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaRuntimeCore",
"AWSLambdaTesting"
],
"sources" : [
"ControlPlaneRequest.swift",
"ControlPlaneRequestEncoder.swift",
"HTTPClient.swift",
"Lambda+LocalServer.swift",
"Lambda+String.swift",
"Lambda.swift",
"LambdaConfiguration.swift",
"LambdaContext.swift",
"LambdaHandler.swift",
"LambdaRequestID.swift",
"LambdaRunner.swift",
"LambdaRuntime.swift",
"LambdaRuntimeClient.swift",
"Terminator.swift",
"Utils.swift"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaRuntime",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntime",
"path" : "Sources/AWSLambdaRuntime",
"product_dependencies" : [
"NIOCore",
"NIOFoundationCompat"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaTesting"
],
"sources" : [
"Context+Foundation.swift",
"Lambda+Codable.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaPackager",
"module_type" : "PluginTarget",
"name" : "AWSLambdaPackager",
"path" : "Plugins/AWSLambdaPackager",
"plugin_capability" : {
"intent" : {
"description" : "Archive the Lambda binary and prepare it for uploading to AWS. Requires docker on macOS or non Amazonlinux 2 distributions.",
"type" : "custom",
"verb" : "archive"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"AWSLambdaPackager"
],
"sources" : [
"Plugin.swift"
],
"type" : "plugin"
}
],
"tools_version" : "5.9"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/andrea-scuderi/swift-aws-lambda-runtime/1.0.0-alpha.2
Repository: andrea-scuderi/swift-aws-lambda-runtime
Swift version used: 6.1
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
Target: AWSLambdaRuntime
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch 4633b45fc732d8c55568be09dd852f9dc1582c25 -> FETCH_HEAD
HEAD is now at 4633b45 Update the artifact
Cloned https://github.com/swiftlang/swift-docc-render-artifact
Extracting symbol information for 'AWSLambdaRuntime'...
Finished extracting symbol information for 'AWSLambdaRuntime'. (9.87s)
Building documentation for 'AWSLambdaRuntime'...
Finished building documentation for 'AWSLambdaRuntime' (0.11s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/andrea-scuderi/swift-aws-lambda-runtime/1.0.0-alpha.2
Building for debugging...
[0/7] Write snippet-extract-tool-entitlement.plist
[1/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit Mixin+Equals.swift
[8/57] Compiling SymbolKit Mixin+Hash.swift
[9/57] Compiling SymbolKit Mixin.swift
[10/57] Compiling SymbolKit LineList.swift
[11/57] Compiling SymbolKit Position.swift
[12/57] Compiling SymbolKit GenericConstraint.swift
[13/57] Compiling SymbolKit GenericParameter.swift
[14/57] Compiling SymbolKit Generics.swift
[15/57] Compiling SymbolKit Namespace.swift
[16/57] Compiling SymbolKit Identifier.swift
[17/57] Compiling SymbolKit KindIdentifier.swift
[18/57] Compiling SymbolKit Location.swift
[19/57] Compiling SymbolKit Mutability.swift
[20/57] Compiling SymbolKit SemanticVersion.swift
[21/57] Compiling SymbolKit AccessControl.swift
[22/57] Compiling SymbolKit Availability.swift
[23/57] Compiling SymbolKit AvailabilityItem.swift
[24/57] Compiling SymbolKit Domain.swift
[25/57] Compiling SymbolKit Names.swift
[26/57] Compiling SymbolKit SPI.swift
[27/57] Compiling SymbolKit Snippet.swift
[28/57] Compiling SymbolKit Extension.swift
[29/57] Compiling SymbolKit DeclarationFragments.swift
[30/57] Compiling SymbolKit Fragment.swift
[31/57] Compiling SymbolKit FragmentKind.swift
[32/57] Compiling SymbolKit FunctionParameter.swift
[33/57] Compiling SymbolKit FunctionSignature.swift
[34/57] Compiling SymbolKit SourceRange.swift
[35/57] Compiling SymbolKit Metadata.swift
[36/57] Compiling SymbolKit Module.swift
[37/57] Compiling SymbolKit OperatingSystem.swift
[38/57] Compiling SymbolKit Platform.swift
[39/57] Compiling SymbolKit Relationship.swift
[40/57] Compiling SymbolKit RelationshipKind.swift
[41/57] Compiling SymbolKit SourceOrigin.swift
[42/57] Compiling SymbolKit GenericConstraints.swift
[43/57] Compiling SymbolKit Swift.swift
[44/57] Compiling SymbolKit Symbol.swift
[45/57] Compiling SymbolKit SymbolKind.swift
[46/57] Compiling SymbolKit SymbolGraph.swift
[47/57] Compiling SymbolKit GraphCollector.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Compiling Snippets Snippet.swift
[53/57] Compiling Snippets SnippetParser.swift
[54/57] Emitting module Snippets
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (5.01s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/51] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[3/52] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[4/52] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[5/52] Compiling InternalCollectionsUtilities Descriptions.swift
[6/52] Compiling InternalCollectionsUtilities Debugging.swift
[7/52] Compiling _NIODataStructures PriorityQueue.swift
[8/52] Compiling Atomics AtomicValue.swift
[9/52] Compiling Atomics AtomicMemoryOrderings.swift
[10/52] Compiling Atomics DoubleWord.swift
[11/52] Compiling Atomics ManagedAtomic.swift
[12/53] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[13/53] Emitting module _NIOBase64
[14/53] Compiling _NIOBase64 Base64.swift
[15/53] Compiling Atomics OptionalRawRepresentable.swift
[16/53] Compiling Atomics RawRepresentable.swift
[17/53] Compiling NIOConcurrencyHelpers NIOLock.swift
[18/53] Compiling Atomics ManagedAtomicLazyReference.swift
[19/53] Compiling Atomics UnsafeAtomic.swift
[20/53] Compiling Atomics UnsafeAtomicLazyReference.swift
[21/53] Compiling Atomics IntegerOperations.swift
[22/53] Compiling _NIODataStructures _TinyArray.swift
[23/53] Compiling Atomics Unmanaged extensions.swift
[24/53] Compiling NIOConcurrencyHelpers lock.swift
[25/53] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[26/53] Compiling _NIODataStructures Heap.swift
[27/53] Emitting module _NIODataStructures
[28/53] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[29/53] Compiling NIOConcurrencyHelpers atomics.swift
[30/53] Compiling Atomics AtomicInteger.swift
[31/53] Compiling Atomics AtomicOptionalWrappable.swift
[32/53] Compiling Atomics AtomicReference.swift
[33/53] Compiling Atomics AtomicStorage.swift
[34/53] Emitting module NIOConcurrencyHelpers
[37/53] Emitting module InternalCollectionsUtilities
[38/53] Compiling Atomics AtomicBool.swift
[39/53] Compiling Atomics IntegerConformances.swift
[40/53] Compiling Atomics PointerConformances.swift
[41/53] Compiling Atomics Primitives.native.swift
[44/69] Compiling Logging MetadataProvider.swift
[45/69] Compiling Logging LogHandler.swift
[46/69] Compiling Logging Locks.swift
[47/69] Emitting module Logging
[48/69] Compiling Logging Logging.swift
[49/69] Compiling DequeModule Deque+Extras.swift
[50/69] Compiling DequeModule Deque+Hashable.swift
[51/69] Compiling DequeModule Deque+CustomReflectable.swift
[52/69] Compiling DequeModule Deque+Descriptions.swift
[53/69] Compiling DequeModule _DequeBufferHeader.swift
[56/70] Compiling DequeModule _DequeSlot.swift
[57/70] Compiling DequeModule _DequeBuffer.swift
[60/70] Compiling DequeModule _UnsafeWrappedBuffer.swift
[61/70] Compiling DequeModule Deque+Equatable.swift
[62/70] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[63/70] Compiling DequeModule Deque._UnsafeHandle.swift
[64/70] Compiling DequeModule Deque.swift
[65/70] Compiling DequeModule Deque+Testing.swift
[66/70] Compiling DequeModule Deque._Storage.swift
[67/70] Emitting module Atomics
[68/70] Compiling DequeModule Deque+Codable.swift
[69/70] Compiling DequeModule Deque+Collection.swift
[70/70] Emitting module DequeModule
[71/133] Compiling NIOCore Linux.swift
[72/133] Compiling NIOCore MarkedCircularBuffer.swift
[73/133] Compiling NIOCore MulticastChannel.swift
[74/133] Compiling NIOCore NIOAny.swift
[75/133] Compiling NIOCore NIOCloseOnErrorHandler.swift
[76/133] Compiling NIOCore NIOCoreSendableMetatype.swift
[77/133] Compiling NIOCore NIOLoopBound.swift
[78/139] Compiling NIOCore AddressedEnvelope.swift
[79/139] Compiling NIOCore AsyncAwaitSupport.swift
[80/139] Compiling NIOCore AsyncChannel.swift
[81/139] Compiling NIOCore AsyncChannelHandler.swift
[82/139] Compiling NIOCore AsyncChannelInboundStream.swift
[83/139] Compiling NIOCore AsyncChannelOutboundWriter.swift
[84/139] Compiling NIOCore NIOAsyncSequenceProducer.swift
[85/139] Compiling NIOCore GlobalSingletons.swift
[86/139] Compiling NIOCore IO.swift
[87/139] Compiling NIOCore IOData.swift
[88/139] Compiling NIOCore IPProtocol.swift
[89/139] Compiling NIOCore IntegerBitPacking.swift
[90/139] Compiling NIOCore IntegerTypes.swift
[91/139] Compiling NIOCore Interfaces.swift
[92/139] Compiling NIOCore Codec.swift
[93/139] Compiling NIOCore ConvenienceOptionSupport.swift
[94/139] Compiling NIOCore DeadChannel.swift
[95/139] Compiling NIOCore DispatchQueue+WithFuture.swift
[96/139] Compiling NIOCore EventLoop+Deprecated.swift
[97/139] Compiling NIOCore EventLoop+SerialExecutor.swift
[98/139] Compiling NIOCore EventLoop.swift
[99/139] Compiling NIOCore SocketOptionProvider.swift
[100/139] Compiling NIOCore SystemCallHelpers.swift
[101/139] Compiling NIOCore TimeAmount+Duration.swift
[102/139] Compiling NIOCore TypeAssistedChannelHandler.swift
[103/139] Compiling NIOCore UniversalBootstrapSupport.swift
[104/139] Compiling NIOCore Utilities.swift
[105/139] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[106/139] Compiling NIOCore EventLoopFuture+Deprecated.swift
[107/139] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[108/139] Compiling NIOCore EventLoopFuture.swift
[109/139] Compiling NIOCore FileDescriptor.swift
[110/139] Compiling NIOCore FileHandle.swift
[111/139] Compiling NIOCore FileRegion.swift
[112/139] Compiling NIOCore Channel.swift
[113/139] Compiling NIOCore ChannelHandler.swift
[114/139] Compiling NIOCore ChannelHandlers.swift
[115/139] Compiling NIOCore ChannelInvoker.swift
[116/139] Compiling NIOCore ChannelOption.swift
[117/139] Compiling NIOCore ChannelPipeline.swift
[118/139] Compiling NIOCore CircularBuffer.swift
[119/139] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[120/139] Compiling NIOCore NIOAsyncWriter.swift
[121/139] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[122/139] Compiling NIOCore BSDSocketAPI.swift
[123/139] Compiling NIOCore ByteBuffer-aux.swift
[124/139] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[125/139] Compiling NIOCore ByteBuffer-conversions.swift
[126/139] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[127/139] Compiling NIOCore NIOScheduledCallback.swift
[128/139] Compiling NIOCore NIOSendable.swift
[129/139] Compiling NIOCore RecvByteBufferAllocator.swift
[130/139] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[131/139] Compiling NIOCore SocketAddresses.swift
[132/139] Compiling NIOCore ByteBuffer-core.swift
[133/139] Compiling NIOCore ByteBuffer-hex.swift
[134/139] Compiling NIOCore ByteBuffer-int.swift
[135/139] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[136/139] Compiling NIOCore ByteBuffer-multi-int.swift
[137/139] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[138/139] Compiling NIOCore ByteBuffer-views.swift
[139/139] Emitting module NIOCore
[140/192] Emitting module NIOEmbedded
[141/192] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[142/192] Compiling NIOEmbedded AsyncTestingChannel.swift
[143/192] Compiling NIOEmbedded Embedded.swift
[144/192] Compiling NIOPosix SocketProtocols.swift
[145/192] Compiling NIOPosix System.swift
[146/192] Compiling NIOPosix Thread.swift
[147/192] Compiling NIOPosix ThreadPosix.swift
[148/192] Compiling NIOPosix ThreadWindows.swift
[149/197] Compiling NIOPosix GetaddrinfoResolver.swift
[150/197] Compiling NIOPosix HappyEyeballs.swift
[151/197] Compiling NIOPosix IO.swift
[152/197] Compiling NIOPosix IntegerBitPacking.swift
[153/197] Compiling NIOPosix IntegerTypes.swift
[154/197] Compiling NIOPosix Linux.swift
[155/197] Compiling NIOPosix Pool.swift
[156/197] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[157/197] Compiling NIOPosix PosixSingletons.swift
[158/197] Compiling NIOPosix RawSocketBootstrap.swift
[159/197] Compiling NIOPosix Resolver.swift
[160/197] Compiling NIOPosix SelectorKqueue.swift
[161/197] Compiling NIOPosix SelectorUring.swift
[162/197] Compiling NIOPosix ServerSocket.swift
[163/197] Compiling NIOPosix Socket.swift
[164/197] Compiling NIOPosix SocketChannel.swift
[165/197] Compiling NIOPosix UnsafeTransfer.swift
[166/197] Compiling NIOPosix Utilities.swift
[167/197] Compiling NIOPosix VsockAddress.swift
[168/197] Compiling NIOPosix VsockChannelEvents.swift
[169/197] Compiling NIOPosix resource_bundle_accessor.swift
[170/197] Compiling NIOPosix LinuxCPUSet.swift
[171/197] Compiling NIOPosix LinuxUring.swift
[172/197] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[173/197] Compiling NIOPosix NIOPosixSendableMetatype.swift
[174/197] Compiling NIOPosix NIOThreadPool.swift
[175/197] Compiling NIOPosix BaseStreamSocketChannel.swift
[176/197] Compiling NIOPosix Bootstrap.swift
[177/197] Compiling NIOPosix ControlMessage.swift
[178/197] Compiling NIOPosix DatagramVectorReadManager.swift
[179/197] Compiling NIOPosix Errors+Any.swift
[180/197] Compiling NIOPosix FileDescriptor.swift
[181/197] Emitting module NIOPosix
[182/197] Compiling NIOPosix Selectable.swift
[183/197] Compiling NIOPosix SelectableChannel.swift
[184/197] Compiling NIOPosix SelectableEventLoop.swift
[185/197] Compiling NIOPosix SelectorEpoll.swift
[186/197] Compiling NIOPosix SelectorGeneric.swift
[187/197] Compiling NIOPosix NonBlockingFileIO.swift
[188/197] Compiling NIOPosix PendingDatagramWritesManager.swift
[189/197] Compiling NIOPosix PendingWritesManager.swift
[190/197] Compiling NIOPosix PipeChannel.swift
[191/197] Compiling NIOPosix PipePair.swift
[192/197] Compiling NIOPosix BSDSocketAPICommon.swift
[193/197] Compiling NIOPosix BSDSocketAPIPosix.swift
[194/197] Compiling NIOPosix BSDSocketAPIWindows.swift
[195/197] Compiling NIOPosix BaseSocket.swift
[196/197] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[197/197] Compiling NIOPosix BaseSocketChannel.swift
[198/199] Compiling NIO Exports.swift
[199/199] Emitting module NIO
[200/221] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[201/221] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[202/221] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[203/221] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[204/222] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[205/222] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[206/222] Emitting module NIOFoundationCompat
[207/222] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[208/222] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[209/222] Compiling NIOHTTP1 ByteCollectionUtils.swift
[210/222] Compiling NIOHTTP1 HTTPDecoder.swift
[211/222] Emitting module NIOHTTP1
[212/222] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[213/222] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[214/222] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[215/222] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[216/222] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[217/222] Compiling NIOHTTP1 HTTPEncoder.swift
[218/222] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[219/222] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[220/222] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[221/222] Compiling NIOHTTP1 HTTPTypes.swift
[222/222] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[223/237] Compiling AWSLambdaRuntimeCore LambdaRunner.swift
[224/237] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
[225/237] Compiling AWSLambdaRuntimeCore LambdaRuntime.swift
[226/237] Compiling AWSLambdaRuntimeCore Terminator.swift
[227/238] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
[228/238] Compiling AWSLambdaRuntimeCore LambdaContext.swift
[229/238] Compiling AWSLambdaRuntimeCore Utils.swift
[230/238] Compiling AWSLambdaRuntimeCore ControlPlaneRequest.swift
[231/238] Compiling AWSLambdaRuntimeCore ControlPlaneRequestEncoder.swift
[232/238] Compiling AWSLambdaRuntimeCore Lambda+String.swift
[233/238] Compiling AWSLambdaRuntimeCore Lambda.swift
[234/238] Compiling AWSLambdaRuntimeCore HTTPClient.swift
[235/238] Compiling AWSLambdaRuntimeCore Lambda+LocalServer.swift
[236/238] Emitting module AWSLambdaRuntimeCore
[237/238] Compiling AWSLambdaRuntimeCore LambdaHandler.swift
[238/238] Compiling AWSLambdaRuntimeCore LambdaRequestID.swift
[239/241] Compiling AWSLambdaRuntime Lambda+Codable.swift
[240/241] Compiling AWSLambdaRuntime Context+Foundation.swift
[241/241] Emitting module AWSLambdaRuntime
Build of target: 'AWSLambdaRuntime' complete! (7.86s)
Target: AWSLambdaRuntimeCore
Extracting symbol information for 'AWSLambdaRuntimeCore'...
Finished extracting symbol information for 'AWSLambdaRuntimeCore'. (0.58s)
Building documentation for 'AWSLambdaRuntimeCore'...
warning: Return value documented for instance method returning void
--> ../LambdaHandler.swift:52:9-52:75
50 | /// - buffer: A `ByteBuffer` to encode into, will be overwritten.
51 | ///
52 + /// - Returns: A `ByteBuffer` with the encoded version of the `value`.
| ╰─suggestion: Remove return value documentation
53 | func encode(value: Output, into buffer: inout ByteBuffer) throws
54 |
warning: Return value documented for instance method returning void
--> ../LambdaHandler.swift:174:9-174:75
172 | /// - buffer: A `ByteBuffer` to encode into, will be overwritten.
173 | ///
174 + /// - Returns: A `ByteBuffer` with the encoded version of the `value`.
| ╰─suggestion: Remove return value documentation
175 | func encode(value: Output, into buffer: inout ByteBuffer) throws
176 |
warning: Return value documented for instance method returning void
--> ../LambdaHandler.swift:319:9-319:75
317 | /// - buffer: A `ByteBuffer` to encode into, will be overwritten.
318 | ///
319 + /// - Returns: A `ByteBuffer` with the encoded version of the `value`.
| ╰─suggestion: Remove return value documentation
320 | func encode(value: Output, into buffer: inout ByteBuffer) throws
321 |
warning: Parameter 'event' not found in instance method declaration
--> ../LambdaHandler.swift:415:13-416:9
413 | /// - parameters:
414 | /// - context: Runtime ``LambdaContext``.
415 + /// - event: The event or input payload encoded as `ByteBuffer`.
| ╰─suggestion: Remove 'event' parameter documentation
416 + ///
417 | /// - Returns: An `EventLoopFuture` to report the result of the Lambda back to the runtime engine.
418 | /// The `EventLoopFuture` should be completed with either a response encoded as `ByteBuffer` or an `Error`.
warning: Parameter 'buffer' is missing documentation
--> ../LambdaHandler.swift:416:9-416:9
414 | /// - context: Runtime ``LambdaContext``.
| ╰─suggestion: Document 'buffer' parameter
415 | /// - event: The event or input payload encoded as `ByteBuffer`.
416 + ///
417 | /// - Returns: An `EventLoopFuture` to report the result of the Lambda back to the runtime engine.
418 | /// The `EventLoopFuture` should be completed with either a response encoded as `ByteBuffer` or an `Error`.
warning: Parameter 'event' not found in instance method declaration
--> ../LambdaHandler.swift:451:13-452:9
449 | /// - parameters:
450 | /// - context: Runtime ``LambdaContext``.
451 + /// - event: The event or input payload encoded as `ByteBuffer`.
| ╰─suggestion: Remove 'event' parameter documentation
452 + ///
453 | /// - Returns: An `EventLoopFuture` to report the result of the Lambda back to the runtime engine.
454 | /// The `EventLoopFuture` should be completed with either a response encoded as `ByteBuffer` or an `Error`.
warning: Parameter 'buffer' is missing documentation
--> ../LambdaHandler.swift:452:9-452:9
450 | /// - context: Runtime ``LambdaContext``.
| ╰─suggestion: Document 'buffer' parameter
451 | /// - event: The event or input payload encoded as `ByteBuffer`.
452 + ///
453 | /// - Returns: An `EventLoopFuture` to report the result of the Lambda back to the runtime engine.
454 | /// The `EventLoopFuture` should be completed with either a response encoded as `ByteBuffer` or an `Error`.
warning: 'Handler' doesn't exist at '/AWSLambdaRuntimeCore/LambdaRuntimeFactory/makeRuntime(handlerProvider:eventLoop:logger:)'
--> ../LambdaRuntime.swift:304:52-304:59
302 | ///
303 | /// - parameters:
304 + /// - handlerProvider: A provider of the ``Handler`` the `LambdaRuntime` will manage.
305 | /// - eventLoop: An `EventLoop` to run the Lambda on.
306 | /// - logger: A `Logger` to log the Lambda events.
warning: 'Handler' doesn't exist at '/AWSLambdaRuntimeCore/LambdaRuntimeFactory/makeRuntime(handlerProvider:eventLoop:logger:)'
--> ../LambdaRuntime.swift:323:52-323:59
321 | ///
322 | /// - parameters:
323 + /// - handlerProvider: A provider of the ``Handler`` the `LambdaRuntime` will manage.
324 | /// - eventLoop: An `EventLoop` to run the Lambda on.
325 | /// - logger: A `Logger` to log the Lambda events.
Finished building documentation for 'AWSLambdaRuntimeCore' (0.10s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/andrea-scuderi/swift-aws-lambda-runtime/1.0.0-alpha.2
Building for debugging...
[0/3] Write swift-version-2F0A5646E1D333AE.txt
Build of product 'snippet-extract' complete! (0.42s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
Build of target: 'AWSLambdaRuntimeCore' complete! (0.46s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/andrea-scuderi/swift-aws-lambda-runtime/1.0.0-alpha.2/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/andrea-scuderi/swift-aws-lambda-runtime/1.0.0-alpha.2/linkable-paths.json
298
12 /Users/admin/builder/spi-builder-workspace/.docs/andrea-scuderi/swift-aws-lambda-runtime/1.0.0-alpha.2
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/andrea-scuderi/swift-aws-lambda-runtime/1.0.0-alpha.2
File count: 298
Doc size: 12.0MB
Preparing doc bundle ...
Uploading prod-andrea-scuderi-swift-aws-lambda-runtime-1.0.0-alpha.2-5994fafb.zip to s3://spi-docs-inbox/prod-andrea-scuderi-swift-aws-lambda-runtime-1.0.0-alpha.2-5994fafb.zip
Copying... [10%]
Copying... [20%]
Copying... [31%]
Copying... [40%]
Copying... [50%]
Copying... [61%]
Copying... [70%]
Copying... [80%]
Copying... [91%]
Copying... [100%]
Done.