Build Information
Successful build of swift-aws-lambda-runtime, reference 1.0.0-alpha.3 (5ecc24
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 15:43:54 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 InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-server/swift-aws-lambda-runtime.git
Reference: 1.0.0-alpha.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swift-server/swift-aws-lambda-runtime
* tag 1.0.0-alpha.3 -> FETCH_HEAD
HEAD is now at 5ecc24f Add Breeze to projects.md (#343)
Cloned https://github.com/swift-server/swift-aws-lambda-runtime.git
Revision (git rev-parse @):
5ecc24fa54e61756fe7a7a01f2451da1cffa916e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swift-server/swift-aws-lambda-runtime.git at 1.0.0-alpha.3
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/apple/swift-log.git from cache
[1/2049] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-nio.git from cache (0.88s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.09s)
Fetched https://github.com/apple/swift-log.git from cache (1.10s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (2.07s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/3375] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.09s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (1.78s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.47s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.82.0 (0.73s)
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 (0.67s)
Fetched https://github.com/apple/swift-system.git from cache (0.69s)
Fetched https://github.com/apple/swift-collections.git from cache (0.69s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.22s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.48s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.67s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.82.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.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.2.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.3.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
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/swift-server/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.82.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.2.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.1.4",
"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.4.2",
"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/swift-server/swift-aws-lambda-runtime.git from cache
Fetched https://github.com/swift-server/swift-aws-lambda-runtime.git from cache (0.53s)
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.79s)
Fetched https://github.com/apple/swift-nio.git from cache (0.79s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.85s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.82.0 (0.03s)
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-system.git from cache (0.49s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.54s)
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.2.0 (0.62s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.03s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.03s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
Creating working copy for https://github.com/swift-server/swift-aws-lambda-runtime.git
Working copy of https://github.com/swift-server/swift-aws-lambda-runtime.git resolved at 1.0.0-alpha.3 (5ecc24f)
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-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.82.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Found 2 product dependencies
- swift-nio
- swift-log
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/swift-server/swift-aws-lambda-runtime.git
https://github.com/swift-server/swift-aws-lambda-runtime.git
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.67.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.4",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"exact" : [
"1.3.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",
"DetachedTasksTests.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",
"DetachedTasks.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
[13/38] Copying PrivacyInfo.xcprivacy
[15/38] Write sources
[15/38] Write MockServer-entitlement.plist
[18/38] Compiling CNIOWindows WSAStartup.c
[19/38] Compiling CNIOWindows shim.c
[19/38] Compiling CNIOWASI CNIOWASI.c
[21/38] Compiling CNIOLinux liburing_shims.c
[22/38] Compiling CNIOLinux shim.c
[23/38] Write sources
[27/38] Write swift-version-2F0A5646E1D333AE.txt
[28/38] Compiling _AtomicsShims.c
[29/62] Compiling CNIOLLHTTP c_nio_http.c
[30/62] Compiling CNIOLLHTTP c_nio_api.c
[31/86] Compiling CNIOLLHTTP c_nio_llhttp.c
[32/86] Compiling CNIODarwin shim.c
[34/86] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[35/86] Compiling Atomics Primitives.shims.swift
[36/86] Compiling Atomics AtomicInteger.swift
[37/87] Compiling Atomics AtomicStorage.swift
[38/87] Compiling Atomics AtomicValue.swift
[39/87] Compiling Atomics PointerConformances.swift
[40/87] Compiling Atomics Primitives.native.swift
[41/87] Compiling _NIOBase64 Base64.swift
[42/87] Emitting module _NIOBase64
[43/87] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[44/87] Compiling Atomics AtomicBool.swift
[45/87] Compiling Atomics IntegerConformances.swift
[46/87] Compiling Atomics ManagedAtomic.swift
[47/87] Compiling Atomics ManagedAtomicLazyReference.swift
[48/87] Emitting module InternalCollectionsUtilities
[49/87] Compiling Atomics AtomicOptionalWrappable.swift
[50/87] Compiling Atomics AtomicReference.swift
[51/87] Compiling Atomics OptionalRawRepresentable.swift
[52/87] Compiling Atomics RawRepresentable.swift
[53/87] Compiling Atomics UnsafeAtomic.swift
[54/87] Compiling Atomics UnsafeAtomicLazyReference.swift
[55/87] Compiling Atomics AtomicMemoryOrderings.swift
[56/87] Compiling Atomics DoubleWord.swift
[71/105] Compiling Logging MetadataProvider.swift
[72/105] Compiling _NIODataStructures _TinyArray.swift
[73/105] Compiling _NIODataStructures PriorityQueue.swift
[74/105] Compiling DequeModule Deque+CustomReflectable.swift
[75/105] Compiling DequeModule Deque+Descriptions.swift
[76/106] Compiling DequeModule _DequeBuffer.swift
[77/106] Compiling Atomics IntegerOperations.swift
[78/106] Compiling Atomics Unmanaged extensions.swift
[79/106] Compiling DequeModule _DequeBufferHeader.swift
[80/106] Compiling DequeModule _DequeSlot.swift
[81/106] Compiling _NIODataStructures Heap.swift
[82/106] Emitting module _NIODataStructures
[83/106] Compiling DequeModule Deque+Equatable.swift
[84/106] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[85/106] Compiling DequeModule Deque+Extras.swift
[86/106] Compiling DequeModule Deque+Hashable.swift
[87/106] Emitting module Atomics
[88/106] Compiling DequeModule Deque+Codable.swift
[89/106] Compiling DequeModule Deque+Collection.swift
[90/106] Compiling Logging Locks.swift
[91/106] Compiling Logging LogHandler.swift
[92/106] Compiling Logging Logging.swift
[93/106] Emitting module Logging
[94/106] Compiling DequeModule _UnsafeWrappedBuffer.swift
[95/106] Compiling DequeModule Deque+Testing.swift
[96/106] Compiling DequeModule Deque._Storage.swift
[97/106] Compiling DequeModule Deque._UnsafeHandle.swift
[98/106] Compiling DequeModule Deque.swift
[101/106] Emitting module DequeModule
[101/106] Compiling c-nioatomics.c
[102/106] Compiling c-atomics.c
[104/112] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[105/112] Compiling NIOConcurrencyHelpers lock.swift
[106/112] Emitting module NIOConcurrencyHelpers
[107/112] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[108/112] Compiling NIOConcurrencyHelpers NIOLock.swift
[109/112] Compiling NIOConcurrencyHelpers atomics.swift
[110/173] Compiling NIOCore NIOLoopBound.swift
[111/173] Compiling NIOCore NIOScheduledCallback.swift
[112/173] Compiling NIOCore NIOSendable.swift
[113/173] Compiling NIOCore RecvByteBufferAllocator.swift
[114/173] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[115/173] Compiling NIOCore SocketAddresses.swift
[116/179] Compiling NIOCore AddressedEnvelope.swift
[117/179] Compiling NIOCore AsyncAwaitSupport.swift
[118/179] Compiling NIOCore AsyncChannel.swift
[119/179] Compiling NIOCore AsyncChannelHandler.swift
[120/179] Compiling NIOCore AsyncChannelInboundStream.swift
[121/179] Compiling NIOCore AsyncChannelOutboundWriter.swift
[122/179] Compiling NIOCore NIOAsyncSequenceProducer.swift
[123/179] Compiling NIOCore Interfaces.swift
[124/179] Compiling NIOCore Linux.swift
[125/179] Compiling NIOCore MarkedCircularBuffer.swift
[126/179] Compiling NIOCore MulticastChannel.swift
[127/179] Compiling NIOCore NIOAny.swift
[128/179] Compiling NIOCore NIOCloseOnErrorHandler.swift
[129/179] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[130/179] Compiling NIOCore EventLoopFuture+Deprecated.swift
[131/179] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[132/179] Compiling NIOCore EventLoopFuture.swift
[133/179] Compiling NIOCore FileDescriptor.swift
[134/179] Compiling NIOCore FileHandle.swift
[135/179] Compiling NIOCore FileRegion.swift
[136/179] Compiling NIOCore Codec.swift
[137/179] Compiling NIOCore ConvenienceOptionSupport.swift
[138/179] Compiling NIOCore DeadChannel.swift
[139/179] Compiling NIOCore DispatchQueue+WithFuture.swift
[140/179] Compiling NIOCore EventLoop+Deprecated.swift
[141/179] Compiling NIOCore EventLoop+SerialExecutor.swift
[142/179] Compiling NIOCore EventLoop.swift
[143/179] Compiling NIOCore SocketOptionProvider.swift
[144/179] Compiling NIOCore SystemCallHelpers.swift
[145/179] Compiling NIOCore TimeAmount+Duration.swift
[146/179] Compiling NIOCore TypeAssistedChannelHandler.swift
[147/179] Compiling NIOCore UniversalBootstrapSupport.swift
[148/179] Compiling NIOCore Utilities.swift
[149/179] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[150/179] Compiling NIOCore NIOAsyncWriter.swift
[151/179] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[152/179] Compiling NIOCore BSDSocketAPI.swift
[153/179] Compiling NIOCore ByteBuffer-aux.swift
[154/179] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[155/179] Compiling NIOCore ByteBuffer-conversions.swift
[156/179] Compiling NIOCore Channel.swift
[157/179] Compiling NIOCore ChannelHandler.swift
[158/179] Compiling NIOCore ChannelHandlers.swift
[159/179] Compiling NIOCore ChannelInvoker.swift
[160/179] Compiling NIOCore ChannelOption.swift
[161/179] Compiling NIOCore ChannelPipeline.swift
[162/179] Compiling NIOCore CircularBuffer.swift
[163/179] Compiling NIOCore GlobalSingletons.swift
[164/179] Compiling NIOCore IO.swift
[165/179] Compiling NIOCore IOData.swift
[166/179] Compiling NIOCore IPProtocol.swift
[167/179] Compiling NIOCore IntegerBitPacking.swift
[168/179] Compiling NIOCore IntegerTypes.swift
[169/179] Compiling NIOCore ByteBuffer-core.swift
[170/179] Compiling NIOCore ByteBuffer-hex.swift
[171/179] Compiling NIOCore ByteBuffer-int.swift
[172/179] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[173/179] Compiling NIOCore ByteBuffer-multi-int.swift
[174/179] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[175/179] Compiling NIOCore ByteBuffer-views.swift
[176/179] Emitting module NIOCore
[177/232] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[178/232] Compiling NIOEmbedded AsyncTestingChannel.swift
[179/232] Emitting module NIOEmbedded
[180/232] Compiling NIOEmbedded Embedded.swift
[181/232] Compiling NIOPosix SocketProtocols.swift
[182/232] Compiling NIOPosix System.swift
[183/232] Compiling NIOPosix Thread.swift
[184/232] Compiling NIOPosix ThreadPosix.swift
[185/232] Compiling NIOPosix ThreadWindows.swift
[186/232] Compiling NIOPosix GetaddrinfoResolver.swift
[187/232] Compiling NIOPosix HappyEyeballs.swift
[188/232] Compiling NIOPosix IO.swift
[189/232] Compiling NIOPosix IntegerBitPacking.swift
[190/232] Compiling NIOPosix IntegerTypes.swift
[191/232] Compiling NIOPosix Linux.swift
[192/237] Emitting module NIOPosix
[193/237] Compiling NIOPosix LinuxCPUSet.swift
[194/237] Compiling NIOPosix LinuxUring.swift
[195/237] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[196/237] Compiling NIOPosix NIOThreadPool.swift
[197/237] Compiling NIOPosix NonBlockingFileIO.swift
[198/237] Compiling NIOPosix PendingDatagramWritesManager.swift
[199/237] Compiling NIOPosix PendingWritesManager.swift
[200/237] Compiling NIOPosix PipeChannel.swift
[201/237] Compiling NIOPosix PipePair.swift
[202/237] Compiling NIOPosix Pool.swift
[203/237] Compiling NIOPosix PooledRecvBufferAllocator.swift
[204/237] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[205/237] Compiling NIOPosix PosixSingletons.swift
[206/237] Compiling NIOPosix RawSocketBootstrap.swift
[207/237] Compiling NIOPosix Resolver.swift
[208/237] Compiling NIOPosix Selectable.swift
[209/237] Compiling NIOPosix SelectableChannel.swift
[210/237] Compiling NIOPosix SelectableEventLoop.swift
[211/237] Compiling NIOPosix SelectorEpoll.swift
[212/237] Compiling NIOPosix SelectorGeneric.swift
[213/237] Compiling NIOPosix SelectorKqueue.swift
[214/237] Compiling NIOPosix SelectorUring.swift
[215/237] Compiling NIOPosix ServerSocket.swift
[216/237] Compiling NIOPosix Socket.swift
[217/237] Compiling NIOPosix SocketChannel.swift
[218/237] Compiling NIOPosix BSDSocketAPICommon.swift
[219/237] Compiling NIOPosix BSDSocketAPIPosix.swift
[220/237] Compiling NIOPosix BSDSocketAPIWindows.swift
[221/237] Compiling NIOPosix BaseSocket.swift
[222/237] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[223/237] Compiling NIOPosix BaseSocketChannel.swift
[224/237] Compiling NIOPosix BaseStreamSocketChannel.swift
[225/237] Compiling NIOPosix Bootstrap.swift
[226/237] Compiling NIOPosix ControlMessage.swift
[227/237] Compiling NIOPosix DatagramVectorReadManager.swift
[228/237] Compiling NIOPosix Errors+Any.swift
[229/237] Compiling NIOPosix FileDescriptor.swift
[230/237] Compiling NIOPosix UnsafeTransfer.swift
[231/237] Compiling NIOPosix Utilities.swift
[232/237] Compiling NIOPosix VsockAddress.swift
[233/237] Compiling NIOPosix VsockChannelEvents.swift
[234/237] Compiling NIOPosix resource_bundle_accessor.swift
[235/239] Compiling NIO Exports.swift
[236/239] Emitting module NIO
[237/261] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[238/261] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[239/261] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[240/261] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[241/262] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[242/262] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[243/262] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[244/262] Emitting module NIOFoundationCompat
[245/262] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[246/262] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[247/262] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[248/262] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[249/262] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[250/262] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[251/262] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[252/262] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[253/262] Emitting module NIOHTTP1
[254/262] Compiling NIOHTTP1 ByteCollectionUtils.swift
[255/262] Compiling NIOHTTP1 HTTPDecoder.swift
[256/262] Compiling NIOHTTP1 HTTPEncoder.swift
[257/262] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[258/262] Compiling NIOHTTP1 HTTPTypes.swift
[259/262] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[260/280] Compiling AWSLambdaRuntimeCore LambdaContext.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
[261/280] 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
[262/281] Emitting module MockServer
[263/281] 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 | 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 | 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 | 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 | 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/281] Write Objects.LinkFileList
[265/281] 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 | 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 | }
[266/281] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
[267/281] 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
[268/281] Compiling AWSLambdaRuntimeCore LambdaRequestID.swift
/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/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:88: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
:
86 | logger.debug("sending invocation to lambda handler")
87 | }
88 | return handler.handle(bytes, context: context)
| `- warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a '@Sendable' closure
89 | // Hopping back to "our" EventLoop is important in case the handler returns a future that
90 | // originated from a foreign EventLoop/EventLoopGroup.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:149:14: warning: type 'Value' does not conform to the 'Sendable' protocol
147 | // callback does not have side effects, failing with original result
148 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
150 | callback(error)
151 | return self
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:150:13: warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
148 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 | self.flatMapError { error in
150 | 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'
151 | return self
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:157:14: warning: type 'Value' does not conform to the 'Sendable' protocol
155 | // callback does not have side effects, failing with original result
156 | func peekError(_ callback: @escaping (Error) -> EventLoopFuture<Void>) -> EventLoopFuture<Value> {
157 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | callback(error).whenComplete { _ in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:160:25: warning: type 'Value' does not conform to the 'Sendable' protocol
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | callback(error).whenComplete { _ in
160 | promise.completeWith(self)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
161 | }
162 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:159:13: warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a '@Sendable' closure
157 | self.flatMapError { error in
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | 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'
160 | promise.completeWith(self)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:168:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
166 | func mapResult<NewValue>(_ callback: @escaping (Result<Value, Error>) -> NewValue) -> EventLoopFuture<NewValue> {
167 | self.map { value in
168 | 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'
169 | }.flatMapErrorThrowing { error in
170 | callback(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:170:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
168 | callback(.success(value))
169 | }.flatMapErrorThrowing { error in
170 | 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'
171 | }
172 | }
[269/281] Compiling AWSLambdaRuntimeCore LambdaRunner.swift
/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/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:88: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
:
86 | logger.debug("sending invocation to lambda handler")
87 | }
88 | return handler.handle(bytes, context: context)
| `- warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a '@Sendable' closure
89 | // Hopping back to "our" EventLoop is important in case the handler returns a future that
90 | // originated from a foreign EventLoop/EventLoopGroup.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:149:14: warning: type 'Value' does not conform to the 'Sendable' protocol
147 | // callback does not have side effects, failing with original result
148 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
150 | callback(error)
151 | return self
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:150:13: warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
148 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 | self.flatMapError { error in
150 | 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'
151 | return self
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:157:14: warning: type 'Value' does not conform to the 'Sendable' protocol
155 | // callback does not have side effects, failing with original result
156 | func peekError(_ callback: @escaping (Error) -> EventLoopFuture<Void>) -> EventLoopFuture<Value> {
157 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | callback(error).whenComplete { _ in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:160:25: warning: type 'Value' does not conform to the 'Sendable' protocol
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | callback(error).whenComplete { _ in
160 | promise.completeWith(self)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
161 | }
162 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:159:13: warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a '@Sendable' closure
157 | self.flatMapError { error in
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | 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'
160 | promise.completeWith(self)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:168:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
166 | func mapResult<NewValue>(_ callback: @escaping (Result<Value, Error>) -> NewValue) -> EventLoopFuture<NewValue> {
167 | self.map { value in
168 | 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'
169 | }.flatMapErrorThrowing { error in
170 | callback(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:170:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
168 | callback(.success(value))
169 | }.flatMapErrorThrowing { error in
170 | 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'
171 | }
172 | }
[270/281] Compiling AWSLambdaRuntimeCore Utils.swift
[271/281] Compiling AWSLambdaRuntimeCore Lambda+LocalServer.swift
/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:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | 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:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | 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/281] Compiling AWSLambdaRuntimeCore Lambda+String.swift
/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:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | 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:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | 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 | }
[273/281] Compiling AWSLambdaRuntimeCore Lambda.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:141:21: warning: mutation of captured var 'result' in concurrently-executing code
139 | }
140 | }
141 | result = lifecycleResult
| `- warning: mutation of captured var 'result' in concurrently-executing code
142 | }
143 | }
[274/281] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:141:21: warning: mutation of captured var 'result' in concurrently-executing code
139 | }
140 | }
141 | result = lifecycleResult
| `- warning: mutation of captured var 'result' in concurrently-executing code
142 | }
143 | }
[275/281] 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
[276/281] Compiling AWSLambdaRuntimeCore DetachedTasks.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 | 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 | 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 | 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:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
[277/281] 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 | 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 | 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 | 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:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
[278/281] Compiling AWSLambdaRuntimeCore ControlPlaneRequest.swift
[279/281] Compiling AWSLambdaRuntimeCore ControlPlaneRequestEncoder.swift
[279/284] Linking MockServer
[281/284] Compiling AWSLambdaRuntime Context+Foundation.swift
[282/284] Compiling AWSLambdaRuntime Lambda+Codable.swift
[283/284] Emitting module AWSLambdaRuntime
[283/284] Applying MockServer
[285/286] Emitting module AWSLambdaTesting
[286/286] 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 | }
Build complete! (27.06s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.67.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.4",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"exact" : [
"1.3.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",
"DetachedTasksTests.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",
"DetachedTasks.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/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3
Repository: swift-server/swift-aws-lambda-runtime
Swift version used: 6.1
.package(url: "https://github.com/apple/swift-docc-plugin", exact: "1.3.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", exact: "1.3.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", exact: "1.3.0"),
Target: AWSLambdaRuntime
Generating documentation for 'AWSLambdaRuntime'...
Converting documentation...
Conversion complete! (0.12s)
Generated DocC archive at '/Users/admin/builder/spi-builder-workspace/.docs/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3'
Building for debugging...
[0/8] 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 Identifier.swift
[8/57] Compiling SymbolKit KindIdentifier.swift
[9/57] Compiling SymbolKit Location.swift
[10/57] Compiling SymbolKit Mutability.swift
[11/57] Compiling SymbolKit SemanticVersion.swift
[12/57] Compiling SymbolKit AccessControl.swift
[13/57] Compiling SymbolKit Availability.swift
[14/57] Compiling SymbolKit AvailabilityItem.swift
[15/57] Compiling SymbolKit Domain.swift
[16/57] Compiling SymbolKit Mixin+Equals.swift
[17/57] Compiling SymbolKit Mixin+Hash.swift
[18/57] Compiling SymbolKit Mixin.swift
[19/57] Compiling SymbolKit LineList.swift
[20/57] Compiling SymbolKit Position.swift
[21/57] Compiling SymbolKit Names.swift
[22/57] Compiling SymbolKit SPI.swift
[23/57] Compiling SymbolKit Snippet.swift
[24/57] Compiling SymbolKit Extension.swift
[25/57] Compiling SymbolKit DeclarationFragments.swift
[26/57] Compiling SymbolKit Fragment.swift
[27/57] Compiling SymbolKit FragmentKind.swift
[28/57] Compiling SymbolKit FunctionParameter.swift
[29/57] Compiling SymbolKit FunctionSignature.swift
[30/57] Compiling SymbolKit GenericConstraint.swift
[31/57] Compiling SymbolKit GenericParameter.swift
[32/57] Compiling SymbolKit Generics.swift
[33/57] Compiling SymbolKit Namespace.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 SymbolGraph+Snippet.swift
[56/61] Compiling snippet_extract URL+Status.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! (4.49s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/55] Compiling Atomics ManagedAtomic.swift
[3/55] Compiling Atomics ManagedAtomicLazyReference.swift
[4/55] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[5/56] Compiling Atomics OptionalRawRepresentable.swift
[6/56] Compiling Atomics RawRepresentable.swift
[7/56] Compiling Atomics AtomicStorage.swift
[8/56] Compiling Atomics AtomicValue.swift
[9/56] Compiling Atomics AtomicMemoryOrderings.swift
[10/56] Compiling Atomics DoubleWord.swift
[13/56] Compiling Atomics UnsafeAtomic.swift
[14/56] Compiling Atomics UnsafeAtomicLazyReference.swift
[19/58] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[20/58] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[21/58] Compiling Atomics PointerConformances.swift
[22/58] Compiling Atomics Primitives.native.swift
[23/58] Compiling Atomics AtomicBool.swift
[24/58] Compiling Atomics IntegerConformances.swift
[25/58] Compiling _NIOBase64 Base64.swift
[26/58] Emitting module _NIOBase64
[27/58] Compiling NIOConcurrencyHelpers lock.swift
[28/58] Compiling _NIODataStructures _TinyArray.swift
[29/58] Compiling NIOConcurrencyHelpers atomics.swift
[30/58] Compiling NIOConcurrencyHelpers NIOLock.swift
[31/58] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[32/58] Compiling Atomics IntegerOperations.swift
[33/58] Compiling Atomics Unmanaged extensions.swift
[34/58] Compiling _NIODataStructures PriorityQueue.swift
[35/58] Compiling _NIODataStructures Heap.swift
[36/58] Emitting module _NIODataStructures
[37/58] Emitting module NIOConcurrencyHelpers
[38/58] Compiling Atomics Primitives.shims.swift
[39/58] Compiling Atomics AtomicInteger.swift
[40/58] Compiling Atomics AtomicOptionalWrappable.swift
[41/58] Compiling Atomics AtomicReference.swift
[42/58] Emitting module InternalCollectionsUtilities
[49/58] Compiling Logging MetadataProvider.swift
[50/58] Compiling Logging LogHandler.swift
[51/58] Emitting module Logging
[52/58] Compiling Logging Locks.swift
[53/58] Compiling Logging Logging.swift
[58/74] Compiling DequeModule _DequeBufferHeader.swift
[59/75] Compiling DequeModule _DequeBuffer.swift
[60/75] Compiling DequeModule _DequeSlot.swift
[61/75] Emitting module Atomics
[62/75] Compiling DequeModule _UnsafeWrappedBuffer.swift
[63/75] Compiling DequeModule Deque+Extras.swift
[64/75] Compiling DequeModule Deque+Hashable.swift
[65/75] Compiling DequeModule Deque+Equatable.swift
[66/75] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[67/75] Compiling DequeModule Deque+CustomReflectable.swift
[68/75] Compiling DequeModule Deque+Descriptions.swift
[69/75] Compiling DequeModule Deque+Testing.swift
[70/75] Compiling DequeModule Deque._Storage.swift
[71/75] Compiling DequeModule Deque._UnsafeHandle.swift
[72/75] Compiling DequeModule Deque.swift
[73/75] Compiling DequeModule Deque+Codable.swift
[74/75] Compiling DequeModule Deque+Collection.swift
[75/75] Emitting module DequeModule
[76/136] Compiling NIOCore Interfaces.swift
[77/136] Compiling NIOCore Linux.swift
[78/136] Compiling NIOCore MarkedCircularBuffer.swift
[79/136] Compiling NIOCore MulticastChannel.swift
[80/136] Compiling NIOCore NIOAny.swift
[81/136] Compiling NIOCore NIOCloseOnErrorHandler.swift
[82/142] Compiling NIOCore AddressedEnvelope.swift
[83/142] Compiling NIOCore AsyncAwaitSupport.swift
[84/142] Compiling NIOCore AsyncChannel.swift
[85/142] Compiling NIOCore AsyncChannelHandler.swift
[86/142] Compiling NIOCore AsyncChannelInboundStream.swift
[87/142] Compiling NIOCore AsyncChannelOutboundWriter.swift
[88/142] Compiling NIOCore NIOAsyncSequenceProducer.swift
[89/142] Compiling NIOCore NIOLoopBound.swift
[90/142] Compiling NIOCore NIOScheduledCallback.swift
[91/142] Compiling NIOCore NIOSendable.swift
[92/142] Compiling NIOCore RecvByteBufferAllocator.swift
[93/142] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[94/142] Compiling NIOCore SocketAddresses.swift
[95/142] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[96/142] Compiling NIOCore EventLoopFuture+Deprecated.swift
[97/142] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[98/142] Compiling NIOCore EventLoopFuture.swift
[99/142] Compiling NIOCore FileDescriptor.swift
[100/142] Compiling NIOCore FileHandle.swift
[101/142] Compiling NIOCore FileRegion.swift
[102/142] Compiling NIOCore Codec.swift
[103/142] Compiling NIOCore ConvenienceOptionSupport.swift
[104/142] Compiling NIOCore DeadChannel.swift
[105/142] Compiling NIOCore DispatchQueue+WithFuture.swift
[106/142] Compiling NIOCore EventLoop+Deprecated.swift
[107/142] Compiling NIOCore EventLoop+SerialExecutor.swift
[108/142] Compiling NIOCore EventLoop.swift
[109/142] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[110/142] Compiling NIOCore NIOAsyncWriter.swift
[111/142] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[112/142] Compiling NIOCore BSDSocketAPI.swift
[113/142] Compiling NIOCore ByteBuffer-aux.swift
[114/142] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[115/142] Compiling NIOCore ByteBuffer-conversions.swift
[116/142] Compiling NIOCore SocketOptionProvider.swift
[117/142] Compiling NIOCore SystemCallHelpers.swift
[118/142] Compiling NIOCore TimeAmount+Duration.swift
[119/142] Compiling NIOCore TypeAssistedChannelHandler.swift
[120/142] Compiling NIOCore UniversalBootstrapSupport.swift
[121/142] Compiling NIOCore Utilities.swift
[122/142] Compiling NIOCore Channel.swift
[123/142] Compiling NIOCore ChannelHandler.swift
[124/142] Compiling NIOCore ChannelHandlers.swift
[125/142] Compiling NIOCore ChannelInvoker.swift
[126/142] Compiling NIOCore ChannelOption.swift
[127/142] Compiling NIOCore ChannelPipeline.swift
[128/142] Compiling NIOCore CircularBuffer.swift
[129/142] Compiling NIOCore ByteBuffer-core.swift
[130/142] Compiling NIOCore ByteBuffer-hex.swift
[131/142] Compiling NIOCore ByteBuffer-int.swift
[132/142] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[133/142] Compiling NIOCore ByteBuffer-multi-int.swift
[134/142] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[135/142] Compiling NIOCore ByteBuffer-views.swift
[136/142] Compiling NIOCore GlobalSingletons.swift
[137/142] Compiling NIOCore IO.swift
[138/142] Compiling NIOCore IOData.swift
[139/142] Compiling NIOCore IPProtocol.swift
[140/142] Compiling NIOCore IntegerBitPacking.swift
[141/142] Compiling NIOCore IntegerTypes.swift
[142/142] Emitting module NIOCore
[143/195] Compiling NIOEmbedded AsyncTestingChannel.swift
[144/195] Emitting module NIOEmbedded
[145/195] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[146/195] Compiling NIOEmbedded Embedded.swift
[147/195] Compiling NIOPosix GetaddrinfoResolver.swift
[148/195] Compiling NIOPosix HappyEyeballs.swift
[149/195] Compiling NIOPosix IO.swift
[150/195] Compiling NIOPosix IntegerBitPacking.swift
[151/195] Compiling NIOPosix IntegerTypes.swift
[152/195] Compiling NIOPosix Linux.swift
[153/200] Compiling NIOPosix SocketProtocols.swift
[154/200] Compiling NIOPosix System.swift
[155/200] Compiling NIOPosix Thread.swift
[156/200] Compiling NIOPosix ThreadPosix.swift
[157/200] Compiling NIOPosix ThreadWindows.swift
[158/200] Compiling NIOPosix PooledRecvBufferAllocator.swift
[159/200] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[160/200] Compiling NIOPosix PosixSingletons.swift
[161/200] Compiling NIOPosix RawSocketBootstrap.swift
[162/200] Compiling NIOPosix Resolver.swift
[163/200] Compiling NIOPosix Selectable.swift
[164/200] Compiling NIOPosix SelectableChannel.swift
[165/200] Compiling NIOPosix SelectableEventLoop.swift
[166/200] Compiling NIOPosix SelectorEpoll.swift
[167/200] Compiling NIOPosix SelectorGeneric.swift
[168/200] Compiling NIOPosix BSDSocketAPICommon.swift
[169/200] Compiling NIOPosix BSDSocketAPIPosix.swift
[170/200] Compiling NIOPosix BSDSocketAPIWindows.swift
[171/200] Compiling NIOPosix BaseSocket.swift
[172/200] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[173/200] Compiling NIOPosix BaseSocketChannel.swift
[174/200] Compiling NIOPosix LinuxCPUSet.swift
[175/200] Compiling NIOPosix LinuxUring.swift
[176/200] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[177/200] Compiling NIOPosix NIOThreadPool.swift
[178/200] Compiling NIOPosix NonBlockingFileIO.swift
[179/200] Compiling NIOPosix PendingDatagramWritesManager.swift
[180/200] Compiling NIOPosix PendingWritesManager.swift
[181/200] Compiling NIOPosix PipeChannel.swift
[182/200] Compiling NIOPosix PipePair.swift
[183/200] Compiling NIOPosix Pool.swift
[184/200] Compiling NIOPosix UnsafeTransfer.swift
[185/200] Compiling NIOPosix Utilities.swift
[186/200] Compiling NIOPosix VsockAddress.swift
[187/200] Compiling NIOPosix VsockChannelEvents.swift
[188/200] Compiling NIOPosix resource_bundle_accessor.swift
[189/200] Compiling NIOPosix SelectorKqueue.swift
[190/200] Compiling NIOPosix SelectorUring.swift
[191/200] Compiling NIOPosix ServerSocket.swift
[192/200] Compiling NIOPosix Socket.swift
[193/200] Compiling NIOPosix SocketChannel.swift
[194/200] Compiling NIOPosix BaseStreamSocketChannel.swift
[195/200] Compiling NIOPosix Bootstrap.swift
[196/200] Compiling NIOPosix ControlMessage.swift
[197/200] Compiling NIOPosix DatagramVectorReadManager.swift
[198/200] Compiling NIOPosix Errors+Any.swift
[199/200] Compiling NIOPosix FileDescriptor.swift
[200/200] Emitting module NIOPosix
[201/202] Compiling NIO Exports.swift
[202/202] Emitting module NIO
[203/224] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[204/224] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[205/224] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[206/224] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[207/225] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[208/225] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[209/225] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[210/225] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[211/225] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[212/225] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[213/225] Emitting module NIOFoundationCompat
[214/225] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[215/225] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[216/225] Emitting module NIOHTTP1
[217/225] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[218/225] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[219/225] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[220/225] Compiling NIOHTTP1 HTTPEncoder.swift
[221/225] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[222/225] Compiling NIOHTTP1 HTTPTypes.swift
[223/225] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[224/225] Compiling NIOHTTP1 ByteCollectionUtils.swift
[225/225] Compiling NIOHTTP1 HTTPDecoder.swift
[226/241] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
[227/241] Compiling AWSLambdaRuntimeCore Terminator.swift
[228/241] Compiling AWSLambdaRuntimeCore LambdaRuntime.swift
[229/241] Compiling AWSLambdaRuntimeCore LambdaContext.swift
[230/241] Compiling AWSLambdaRuntimeCore LambdaHandler.swift
[231/241] Compiling AWSLambdaRuntimeCore Lambda+LocalServer.swift
[232/241] Compiling AWSLambdaRuntimeCore Lambda+String.swift
[233/241] Compiling AWSLambdaRuntimeCore Lambda.swift
[234/241] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
[235/241] Compiling AWSLambdaRuntimeCore DetachedTasks.swift
[236/241] Compiling AWSLambdaRuntimeCore HTTPClient.swift
[237/241] Compiling AWSLambdaRuntimeCore ControlPlaneRequest.swift
[238/241] Compiling AWSLambdaRuntimeCore ControlPlaneRequestEncoder.swift
[239/241] Emitting module AWSLambdaRuntimeCore
[240/241] Compiling AWSLambdaRuntimeCore LambdaRequestID.swift
[241/241] Compiling AWSLambdaRuntimeCore LambdaRunner.swift
[242/242] Compiling AWSLambdaRuntimeCore Utils.swift
[243/245] Compiling AWSLambdaRuntime Lambda+Codable.swift
[244/245] Emitting module AWSLambdaRuntime
[245/245] Compiling AWSLambdaRuntime Context+Foundation.swift
Build of target: 'AWSLambdaRuntime' complete! (8.09s)
Target: AWSLambdaRuntimeCore
Generating documentation for 'AWSLambdaRuntimeCore'...
Converting documentation...
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.
Conversion complete! (0.12s)
Generated DocC archive at '/Users/admin/builder/spi-builder-workspace/.docs/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3'
Building for debugging...
[0/3] Write swift-version-2F0A5646E1D333AE.txt
Build of product 'snippet-extract' complete! (0.43s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
Build of target: 'AWSLambdaRuntimeCore' complete! (0.45s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3/linkable-paths.json
300
12 /Users/admin/builder/spi-builder-workspace/.docs/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3
File count: 300
Doc size: 12.0MB
Preparing doc bundle ...
Uploading prod-swift-server-swift-aws-lambda-runtime-1.0.0-alpha.3-cf9be19e.zip to s3://spi-docs-inbox/prod-swift-server-swift-aws-lambda-runtime-1.0.0-alpha.3-cf9be19e.zip
Copying... [10%]
Copying... [20%]
Copying... [31%]
Copying... [40%]
Copying... [50%]
Copying... [61%]
Copying... [70%]
Copying... [80%]
Copying... [91%]
Copying... [100%]
Done.