Build Information
Successful build of llbuild2, reference main (5df227), with Swift 6.1 for Android on 1 Oct 2026 06:26:27 UTC.
Swift 6 data race errors: 5
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1Build Log
524 | }.flatMap { nextStepFutures -> FXFuture<[NextStep]> in
525 | self.whenAllSucceed(nextStepFutures)
526 | }.flatMap { nextStepFutures -> FXFuture<[NextStep]> in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
527 | self.set(phase: .CheckIfUploaded)
528 | return self.recursivelyPerformSteps(
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:711:25: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
709 |
710 | guard finalResultPromise.isCompleted == false else {
711 | return loop.makeSucceededFuture([])
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
712 | }
713 |
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:731:56: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
729 | // Wait for the steps we need to wait in this phase, and then
730 | // advance the phase if there are no more steps to wait.
731 | return self.whenAllSucceed(waitInCurrentPhase).flatMap { moreStepsInCurrentPhase in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
732 | if moreStepsInCurrentPhase.isEmpty {
733 | precondition(!currentPhase.isFinalPhase) // Avoid infinite recursion
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:33: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
737 | }
738 | self.set(phase: nextPhase)
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:53: warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
737 | }
738 | self.set(phase: nextPhase)
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:69: warning: capture of 'nextPhaseSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: capture of 'nextPhaseSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
737 | }
738 | self.set(phase: nextPhase)
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:53: warning: reference to captured var 'finishedSteps' in concurrently-executing code
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: reference to captured var 'finishedSteps' in concurrently-executing code
737 | }
738 | self.set(phase: nextPhase)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:69: warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
737 | }
738 | self.set(phase: nextPhase)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:740:65: warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
738 | self.set(phase: nextPhase)
739 | return self.recursivelyPerformSteps(
740 | currentPhase: nextPhase, currentPhaseSteps: nextPhaseSteps
| `- warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
741 | ).map {
742 | finishedSteps + $0
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:742:21: warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
740 | currentPhase: nextPhase, currentPhaseSteps: nextPhaseSteps
741 | ).map {
742 | finishedSteps + $0
| `- warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
743 | }
744 | } else {
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:742:21: warning: reference to captured var 'finishedSteps' in concurrently-executing code
740 | currentPhase: nextPhase, currentPhaseSteps: nextPhaseSteps
741 | ).map {
742 | finishedSteps + $0
| `- warning: reference to captured var 'finishedSteps' in concurrently-executing code
743 | }
744 | } else {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:747:37: warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
745 | return self.recursivelyPerformSteps(
746 | currentPhase: currentPhase, currentPhaseSteps: moreStepsInCurrentPhase,
747 | nextPhaseSteps: nextPhaseSteps
| `- warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
748 | ).map {
749 | finishedSteps + $0
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:749:21: warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
747 | nextPhaseSteps: nextPhaseSteps
748 | ).map {
749 | finishedSteps + $0
| `- warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
750 | }
751 | }
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:749:21: warning: reference to captured var 'finishedSteps' in concurrently-executing code
747 | nextPhaseSteps: nextPhaseSteps
748 | ).map {
749 | finishedSteps + $0
| `- warning: reference to captured var 'finishedSteps' in concurrently-executing code
750 | }
751 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1043:45: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1041 | > {
1042 | guard finalResultPromise.isCompleted == false else {
1043 | return loop.makeSucceededFuture(NextStep.skipped)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1044 | }
1045 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1055:45: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1053 | by: size, ordering: .relaxed)
1054 | }
1055 | return loop.makeSucceededFuture(encodeNextStep(for: blobId))
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1056 | }
1057 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1094:51: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1092 | let containsFuture = self.dbContains(segm, ctx)
1093 | let containsLoop = containsFuture.eventLoop
1094 | return containsFuture.flatMap { exists -> FXFuture<NextStep> in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1095 |
1096 | guard !exists else {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1097:88: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1095 |
1096 | guard !exists else {
1097 | let existingIdFuture: FXFuture<NextStep> = segm.id.flatMap {
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1098 | id in
1099 | return uploadFileInfo(
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1106:53: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1104 | }
1105 |
1106 | return containsLoop.makeSucceededFuture(
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1107 | NextStep.execute(
1108 | in: .UploadingFiles,
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1129:61: warning: 'executeWithBackpressure(on:loop:size:default:_:)' is deprecated: This method blocks indefinitely and returns a future
1127 | // free to take our load. This ensures that we're not
1128 | // limited by CPU parallelism for network concurrency.
1129 | return self.executeWithBackpressure(
| `- warning: 'executeWithBackpressure(on:loop:size:default:_:)' is deprecated: This method blocks indefinitely and returns a future
1130 | on: self.netQueue, loop: containsLoop,
1131 | size: slice.readableBytes, default: .skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1136:55: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1134 | refs: [], data: slice,
1135 | importSize: segm.uncompressedSize, ctx
1136 | ).flatMap { id -> FXFuture<NextStep> in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1142:55: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1140 | }.map { result in
1141 | return result
1142 | }.hop(to: loop)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1143 | }
1144 | }.flatMap {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1144:47: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1142 | }.hop(to: loop)
1143 | }
1144 | }.flatMap {
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1145 | // This type of return ensures that cpuQueue does not
1146 | // wait for the netQueue operation to complete.
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1147:60: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1145 | // This type of return ensures that cpuQueue does not
1146 | // wait for the netQueue operation to complete.
1147 | $0 ?? loop.makeSucceededFuture(NextStep.skipped)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1148 | }
1149 | nextStepFuture.cascade(to: partialStepPromise)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1202:23: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1200 | throw error
1201 |
1202 | }.flatMap { nextSteps in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1203 | // The next steps can only be empty if we've reacting on
1204 | // a filesystem-related error with some of our chunks.
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1206:41: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1204 | // a filesystem-related error with some of our chunks.
1205 | guard nextSteps.isEmpty == false else {
1206 | return loop.makeSucceededFuture(.skipped)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1207 | }
1208 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1253:49: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1251 | // have been uploaded. Therefore we wait for the huge files in
1252 | // its own state, .UploadingWait.
1253 | return cheapNextStepFutures + [loop.makeSucceededFuture(combinePartialResultsStep)]
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1254 | }
1255 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1260:22: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1258 | in: .EstimatingSize,
1259 | run: {
1260 | loop.makeSucceededFuture(
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1261 | NextStep.wait(
1262 | in: .CheckIfUploaded,
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1079:37: warning: capture of 'encodeNextStep(for:)' with non-sendable type '(FXDataID) -> CASTreeImport.NextStep' in a '@Sendable' closure
1077 | importSize: importSize, ctx
1078 | ).map { id in
1079 | encodeNextStep(for: id)
| |- warning: capture of 'encodeNextStep(for:)' with non-sendable type '(FXDataID) -> CASTreeImport.NextStep' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1080 | }
1081 | } catch {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1025:30: warning: concurrently-executed local function 'encodeNextStep(for:)' must be marked as '@Sendable'
1023 | promise: loop.makePromise(of: NextStep.self))
1024 |
1025 | func encodeNextStep(for id: FXDataID) -> NextStep {
| `- warning: concurrently-executed local function 'encodeNextStep(for:)' must be marked as '@Sendable'
1026 | if isSingleChunk {
1027 | return .singleFile(
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1099:48: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
1097 | let existingIdFuture: FXFuture<NextStep> = segm.id.flatMap {
1098 | id in
1099 | return uploadFileInfo(
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1100 | blobId: id, importSize: segm.uncompressedSize)
1101 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1115:56: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1113 | let data: LLBFastData
1114 |
1115 | switch importObject {
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
1116 | case .link(let target):
1117 | data = target
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1099:48: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
1097 | let existingIdFuture: FXFuture<NextStep> = segm.id.flatMap {
1098 | id in
1099 | return uploadFileInfo(
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1100 | blobId: id, importSize: segm.uncompressedSize)
1101 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1039:30: warning: concurrently-executed local function 'uploadFileInfo(blobId:importSize:)' must be marked as '@Sendable'
1037 | // If the file has non-standard layout, upload it after we upload
1038 | // the binary blob.
1039 | func uploadFileInfo(blobId: FXDataID, importSize: Int? = nil) -> FXFuture<
| `- warning: concurrently-executed local function 'uploadFileInfo(blobId:importSize:)' must be marked as '@Sendable'
1040 | NextStep
1041 | > {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1115:56: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1113 | let data: LLBFastData
1114 |
1115 | switch importObject {
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
1116 | case .link(let target):
1117 | data = target
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1115:56: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1113 | let data: LLBFastData
1114 |
1115 | switch importObject {
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
1116 | case .link(let target):
1117 | data = target
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1137:78: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1135 | importSize: segm.uncompressedSize, ctx
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
1138 | uploadFileInfo(blobId: id)
1139 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1137:78: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1135 | importSize: segm.uncompressedSize, ctx
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
1138 | uploadFileInfo(blobId: id)
1139 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1224:44: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1222 | chunkIds.count > 1
1223 | ? self.options.fileChunkSize : allSegmentsUncompressedDataSize)
1224 | let posixDetails = importObject.posixDetails
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
1225 | fileInfo.update(posixDetails: posixDetails, options: self.options)
1226 | do {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1307:25: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
1300 | }
1301 |
1302 | private func whenAllSucceed<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
1303 | _ futures: [FXFuture<Value>], on loop: FXFuturesDispatchLoop? = nil
1304 | ) -> FXFuture<[Value]> {
1305 | let loop = loop ?? self.loop
1306 | guard finalResultPromise.isCompleted == false else {
1307 | return loop.makeSucceededFuture([])
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
1308 | }
1309 | return FXFuture.whenAllSucceed(futures, on: loop).map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1309:25: warning: type 'Value' does not conform to the 'Sendable' protocol
1300 | }
1301 |
1302 | private func whenAllSucceed<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
1303 | _ futures: [FXFuture<Value>], on loop: FXFuturesDispatchLoop? = nil
1304 | ) -> FXFuture<[Value]> {
:
1307 | return loop.makeSucceededFuture([])
1308 | }
1309 | return FXFuture.whenAllSucceed(futures, on: loop).map { result in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
1310 | guard self.finalResultPromise.isCompleted == false else {
1311 | return []
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1327:39: warning: type 'T' does not conform to the 'Sendable' protocol
1320 | /// Enqueue the callback unless the stop flag is in action.
1321 | /// If stop flag is set, return the value specified in `then`.
1322 | private func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1323 | on queue: LLBBatchingFutureOperationQueue, default stopValue: T,
1324 | _ body: @escaping () throws -> T
1325 | ) -> FXFuture<T> {
1326 | guard finalResultPromise.isCompleted == false else {
1327 | return queue.group.next().makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1328 | }
1329 | return queue.execute {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1350:25: warning: type 'T' does not conform to the 'Sendable' protocol
1342 | /// Enqueue the callback unless the stop flag is in action.
1343 | /// If stop flag is set, return the value specified in `then`.
1344 | private func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1345 | on queue: FXFutureOperationQueue, loop: EventLoop? = nil, size: Int = 1,
1346 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
:
1348 | let loop = loop ?? self.loop
1349 | guard finalResultPromise.isCompleted == false else {
1350 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1351 | }
1352 | return queue.enqueue(on: loop, share: size) {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1354:29: warning: type 'T' does not conform to the 'Sendable' protocol
1342 | /// Enqueue the callback unless the stop flag is in action.
1343 | /// If stop flag is set, return the value specified in `then`.
1344 | private func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1345 | on queue: FXFutureOperationQueue, loop: EventLoop? = nil, size: Int = 1,
1346 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
:
1352 | return queue.enqueue(on: loop, share: size) {
1353 | guard self.finalResultPromise.isCompleted == false else {
1354 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1355 | }
1356 | return body().flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1374:25: warning: type 'T' does not conform to the 'Sendable' protocol
1367 | )
1368 | @available(*, deprecated, message: "This method blocks indefinitely and returns a future")
1369 | private func executeWithBackpressure<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1370 | on queue: FXFutureOperationQueue, loop: FXFuturesDispatchLoop, size: Int = 1,
1371 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
1372 | ) -> FXFuture<T> {
1373 | guard finalResultPromise.isCompleted == false else {
1374 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1375 | }
1376 | return queue.enqueueWithBackpressure(on: loop, share: size) {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1378:29: warning: type 'T' does not conform to the 'Sendable' protocol
1367 | )
1368 | @available(*, deprecated, message: "This method blocks indefinitely and returns a future")
1369 | private func executeWithBackpressure<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1370 | on queue: FXFutureOperationQueue, loop: FXFuturesDispatchLoop, size: Int = 1,
1371 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
:
1376 | return queue.enqueueWithBackpressure(on: loop, share: size) {
1377 | guard self.finalResultPromise.isCompleted == false else {
1378 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1379 | }
1380 | return body().flatMapErrorThrowing { error in
[825/829] Compiling llbuild2Testing FileTreeExport.swift
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:149:72: warning: reference to captured var 'refs' in concurrently-executing code
147 | // API should be fixed. One option would be to change this class so
148 | // it can directly operate on the encoded representation.
149 | return try self.init(id: id, object: FXCASObject(refs: refs, data: dirBytes))
| `- warning: reference to captured var 'refs' in concurrently-executing code
150 | }
151 | } catch {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:149:84: warning: reference to captured var 'dirBytes' in concurrently-executing code
147 | // API should be fixed. One option would be to change this class so
148 | // it can directly operate on the encoded representation.
149 | return try self.init(id: id, object: FXCASObject(refs: refs, data: dirBytes))
| `- warning: reference to captured var 'dirBytes' in concurrently-executing code
150 | }
151 | } catch {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:286:17: warning: mutation of captured var 'files' in concurrently-executing code
284 | return FXFuture.whenAllSucceed(futures, on: db.group.next()).flatMap { mergedEntries in
285 | for (idx, name, result, posixDetails) in mergedEntries {
286 | files[idx] = .init(
| `- warning: mutation of captured var 'files' in concurrently-executing code
287 | info: FXDirectoryEntry(
288 | name: name, type: .directory, size: result.aggregateSize,
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:291:48: warning: reference to captured var 'files' in concurrently-executing code
289 | posixDetails: posixDetails), id: result.id)
290 | }
291 | return FXCASFileTree.create(files: files, in: db, posixDetails: self.posixDetails, ctx)
| `- warning: reference to captured var 'files' in concurrently-executing code
292 | }
293 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:407:17: warning: mutation of captured var 'files' in concurrently-executing code
405 | return FXFuture.whenAllSucceed(futures, on: db.group.next()).flatMap { mergedEntries in
406 | for (idx, name, result, posixDetails) in mergedEntries {
407 | files[idx] = .init(
| `- warning: mutation of captured var 'files' in concurrently-executing code
408 | info: FXDirectoryEntry(
409 | name: name, type: .directory, size: result.aggregateSize,
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:413:24: warning: reference to captured var 'files' in concurrently-executing code
411 | }
412 | return FXCASFileTree.create(
413 | files: files, in: db, posixDetails: reversedTrees.first!.posixDetails, ctx)
| `- warning: reference to captured var 'files' in concurrently-executing code
414 | }
415 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeExport.swift:233:13: warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
196 | }
197 |
198 | private final class CASFileTreeWalkerDelegate: RetrieveChildrenProtocol {
| `- note: class 'CASFileTreeWalkerDelegate' does not conform to the 'Sendable' protocol
199 | let db: any FXCASDatabase
200 | let exportPathPrefix: AbsolutePath
:
231 | let casObjectFuture: FXFuture<FXCASObject> = db.get(item.id, ctx).flatMapThrowing {
232 | casObject in
233 | self.stats.downloadsInProgressObjects_.wrappingDecrement(ordering: .relaxed)
| `- warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
234 |
235 | guard let casObject = casObject else {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeExport.swift:249:25: warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
196 | }
197 |
198 | private final class CASFileTreeWalkerDelegate: RetrieveChildrenProtocol {
| `- note: class 'CASFileTreeWalkerDelegate' does not conform to the 'Sendable' protocol
199 | let db: any FXCASDatabase
200 | let exportPathPrefix: AbsolutePath
:
247 | // Unblock the current NIO thread.
248 | batcher.execute {
249 | try self.parseAndMaterialize(casObject, item).map {
| `- warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
250 | Item(id: $0.id, exportPath: $0.path, kindHint: $0.kind)
251 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeExport.swift:249:25: warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in an isolated closure; this is an error in the Swift 6 language mode
196 | }
197 |
198 | private final class CASFileTreeWalkerDelegate: RetrieveChildrenProtocol {
| `- note: class 'CASFileTreeWalkerDelegate' does not conform to the 'Sendable' protocol
199 | let db: any FXCASDatabase
200 | let exportPathPrefix: AbsolutePath
:
247 | // Unblock the current NIO thread.
248 | batcher.execute {
249 | try self.parseAndMaterialize(casObject, item).map {
| `- warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in an isolated closure; this is an error in the Swift 6 language mode
250 | Item(id: $0.id, exportPath: $0.path, kindHint: $0.kind)
251 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeExport.swift:256:21: warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
196 | }
197 |
198 | private final class CASFileTreeWalkerDelegate: RetrieveChildrenProtocol {
| `- note: class 'CASFileTreeWalkerDelegate' does not conform to the 'Sendable' protocol
199 | let db: any FXCASDatabase
200 | let exportPathPrefix: AbsolutePath
:
254 | } else {
255 | return casObjectFuture.flatMapThrowing { casObject in
256 | try self.parseAndMaterialize(casObject, item).map {
| `- warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
257 | Item(id: $0.id, exportPath: $0.path, kindHint: $0.kind)
258 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:352:14: warning: use of protocol 'FXCASDatabase' as a type must be written 'any FXCASDatabase'; this will be an error in a future Swift language mode
350 |
351 | let loop: FXFuturesDispatchLoop
352 | let _db: FXCASDatabase
| `- warning: use of protocol 'FXCASDatabase' as a type must be written 'any FXCASDatabase'; this will be an error in a future Swift language mode
353 | let finalResultPromise: LLBCancellablePromise<FXDataID>
354 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:318:28: warning: type 'T' does not conform to the 'Sendable' protocol
313 |
314 | // Retry with lesser concurrency if we see unexpected network errors.
315 | private static func recursivelyDecreasingLimit<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
316 | on loop: FXFuturesDispatchLoop, limit: Int, _ body: @escaping (Int) -> FXFuture<T>
317 | ) -> FXFuture<T> {
318 | return body(limit).flatMapError { error -> FXFuture<T> in
| `- warning: type 'T' does not conform to the 'Sendable' protocol
319 | // Check if something retryable happened.
320 | guard case FXCASDatabaseError.retryableNetworkError(_) = error else {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:333:22: warning: type 'T' does not conform to the 'Sendable' protocol
313 |
314 | // Retry with lesser concurrency if we see unexpected network errors.
315 | private static func recursivelyDecreasingLimit<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
316 | on loop: FXFuturesDispatchLoop, limit: Int, _ body: @escaping (Int) -> FXFuture<T>
317 | ) -> FXFuture<T> {
:
331 | _ = loop.scheduleTask(in: .seconds(3)) {
332 | recursivelyDecreasingLimit(on: loop, limit: newLimit, body)
333 | .cascade(to: promise)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
334 | }
335 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:332:71: warning: capture of 'body' with non-sendable type '(Int) -> FXFuture<T>' (aka '(Int) -> EventLoopFuture<T>') in a '@Sendable' closure
330 | let promise = loop.makePromise(of: T.self)
331 | _ = loop.scheduleTask(in: .seconds(3)) {
332 | recursivelyDecreasingLimit(on: loop, limit: newLimit, body)
| |- warning: capture of 'body' with non-sendable type '(Int) -> FXFuture<T>' (aka '(Int) -> EventLoopFuture<T>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
333 | .cascade(to: promise)
334 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:332:71: warning: capture of 'body' with non-sendable type '(Int) -> FXFuture<T>' (aka '(Int) -> EventLoopFuture<T>') in a '@Sendable' closure
330 | let promise = loop.makePromise(of: T.self)
331 | _ = loop.scheduleTask(in: .seconds(3)) {
332 | recursivelyDecreasingLimit(on: loop, limit: newLimit, body)
| |- warning: capture of 'body' with non-sendable type '(Int) -> FXFuture<T>' (aka '(Int) -> EventLoopFuture<T>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
333 | .cascade(to: promise)
334 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:524:11: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
522 | }
523 | }
524 | }.flatMap { nextStepFutures -> FXFuture<[NextStep]> in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
525 | self.whenAllSucceed(nextStepFutures)
526 | }.flatMap { nextStepFutures -> FXFuture<[NextStep]> in
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:526:11: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
524 | }.flatMap { nextStepFutures -> FXFuture<[NextStep]> in
525 | self.whenAllSucceed(nextStepFutures)
526 | }.flatMap { nextStepFutures -> FXFuture<[NextStep]> in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
527 | self.set(phase: .CheckIfUploaded)
528 | return self.recursivelyPerformSteps(
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:711:25: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
709 |
710 | guard finalResultPromise.isCompleted == false else {
711 | return loop.makeSucceededFuture([])
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
712 | }
713 |
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:731:56: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
729 | // Wait for the steps we need to wait in this phase, and then
730 | // advance the phase if there are no more steps to wait.
731 | return self.whenAllSucceed(waitInCurrentPhase).flatMap { moreStepsInCurrentPhase in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
732 | if moreStepsInCurrentPhase.isEmpty {
733 | precondition(!currentPhase.isFinalPhase) // Avoid infinite recursion
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:33: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
737 | }
738 | self.set(phase: nextPhase)
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:53: warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
737 | }
738 | self.set(phase: nextPhase)
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:69: warning: capture of 'nextPhaseSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: capture of 'nextPhaseSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
737 | }
738 | self.set(phase: nextPhase)
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:53: warning: reference to captured var 'finishedSteps' in concurrently-executing code
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: reference to captured var 'finishedSteps' in concurrently-executing code
737 | }
738 | self.set(phase: nextPhase)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:69: warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
737 | }
738 | self.set(phase: nextPhase)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:740:65: warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
738 | self.set(phase: nextPhase)
739 | return self.recursivelyPerformSteps(
740 | currentPhase: nextPhase, currentPhaseSteps: nextPhaseSteps
| `- warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
741 | ).map {
742 | finishedSteps + $0
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:742:21: warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
740 | currentPhase: nextPhase, currentPhaseSteps: nextPhaseSteps
741 | ).map {
742 | finishedSteps + $0
| `- warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
743 | }
744 | } else {
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:742:21: warning: reference to captured var 'finishedSteps' in concurrently-executing code
740 | currentPhase: nextPhase, currentPhaseSteps: nextPhaseSteps
741 | ).map {
742 | finishedSteps + $0
| `- warning: reference to captured var 'finishedSteps' in concurrently-executing code
743 | }
744 | } else {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:747:37: warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
745 | return self.recursivelyPerformSteps(
746 | currentPhase: currentPhase, currentPhaseSteps: moreStepsInCurrentPhase,
747 | nextPhaseSteps: nextPhaseSteps
| `- warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
748 | ).map {
749 | finishedSteps + $0
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:749:21: warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
747 | nextPhaseSteps: nextPhaseSteps
748 | ).map {
749 | finishedSteps + $0
| `- warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
750 | }
751 | }
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:749:21: warning: reference to captured var 'finishedSteps' in concurrently-executing code
747 | nextPhaseSteps: nextPhaseSteps
748 | ).map {
749 | finishedSteps + $0
| `- warning: reference to captured var 'finishedSteps' in concurrently-executing code
750 | }
751 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1043:45: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1041 | > {
1042 | guard finalResultPromise.isCompleted == false else {
1043 | return loop.makeSucceededFuture(NextStep.skipped)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1044 | }
1045 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1055:45: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1053 | by: size, ordering: .relaxed)
1054 | }
1055 | return loop.makeSucceededFuture(encodeNextStep(for: blobId))
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1056 | }
1057 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1094:51: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1092 | let containsFuture = self.dbContains(segm, ctx)
1093 | let containsLoop = containsFuture.eventLoop
1094 | return containsFuture.flatMap { exists -> FXFuture<NextStep> in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1095 |
1096 | guard !exists else {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1097:88: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1095 |
1096 | guard !exists else {
1097 | let existingIdFuture: FXFuture<NextStep> = segm.id.flatMap {
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1098 | id in
1099 | return uploadFileInfo(
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1106:53: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1104 | }
1105 |
1106 | return containsLoop.makeSucceededFuture(
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1107 | NextStep.execute(
1108 | in: .UploadingFiles,
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1129:61: warning: 'executeWithBackpressure(on:loop:size:default:_:)' is deprecated: This method blocks indefinitely and returns a future
1127 | // free to take our load. This ensures that we're not
1128 | // limited by CPU parallelism for network concurrency.
1129 | return self.executeWithBackpressure(
| `- warning: 'executeWithBackpressure(on:loop:size:default:_:)' is deprecated: This method blocks indefinitely and returns a future
1130 | on: self.netQueue, loop: containsLoop,
1131 | size: slice.readableBytes, default: .skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1136:55: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1134 | refs: [], data: slice,
1135 | importSize: segm.uncompressedSize, ctx
1136 | ).flatMap { id -> FXFuture<NextStep> in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1142:55: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1140 | }.map { result in
1141 | return result
1142 | }.hop(to: loop)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1143 | }
1144 | }.flatMap {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1144:47: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1142 | }.hop(to: loop)
1143 | }
1144 | }.flatMap {
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1145 | // This type of return ensures that cpuQueue does not
1146 | // wait for the netQueue operation to complete.
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1147:60: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1145 | // This type of return ensures that cpuQueue does not
1146 | // wait for the netQueue operation to complete.
1147 | $0 ?? loop.makeSucceededFuture(NextStep.skipped)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1148 | }
1149 | nextStepFuture.cascade(to: partialStepPromise)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1202:23: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1200 | throw error
1201 |
1202 | }.flatMap { nextSteps in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1203 | // The next steps can only be empty if we've reacting on
1204 | // a filesystem-related error with some of our chunks.
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1206:41: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1204 | // a filesystem-related error with some of our chunks.
1205 | guard nextSteps.isEmpty == false else {
1206 | return loop.makeSucceededFuture(.skipped)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1207 | }
1208 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1253:49: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1251 | // have been uploaded. Therefore we wait for the huge files in
1252 | // its own state, .UploadingWait.
1253 | return cheapNextStepFutures + [loop.makeSucceededFuture(combinePartialResultsStep)]
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1254 | }
1255 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1260:22: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1258 | in: .EstimatingSize,
1259 | run: {
1260 | loop.makeSucceededFuture(
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1261 | NextStep.wait(
1262 | in: .CheckIfUploaded,
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1079:37: warning: capture of 'encodeNextStep(for:)' with non-sendable type '(FXDataID) -> CASTreeImport.NextStep' in a '@Sendable' closure
1077 | importSize: importSize, ctx
1078 | ).map { id in
1079 | encodeNextStep(for: id)
| |- warning: capture of 'encodeNextStep(for:)' with non-sendable type '(FXDataID) -> CASTreeImport.NextStep' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1080 | }
1081 | } catch {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1025:30: warning: concurrently-executed local function 'encodeNextStep(for:)' must be marked as '@Sendable'
1023 | promise: loop.makePromise(of: NextStep.self))
1024 |
1025 | func encodeNextStep(for id: FXDataID) -> NextStep {
| `- warning: concurrently-executed local function 'encodeNextStep(for:)' must be marked as '@Sendable'
1026 | if isSingleChunk {
1027 | return .singleFile(
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1099:48: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
1097 | let existingIdFuture: FXFuture<NextStep> = segm.id.flatMap {
1098 | id in
1099 | return uploadFileInfo(
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1100 | blobId: id, importSize: segm.uncompressedSize)
1101 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1115:56: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1113 | let data: LLBFastData
1114 |
1115 | switch importObject {
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
1116 | case .link(let target):
1117 | data = target
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1099:48: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
1097 | let existingIdFuture: FXFuture<NextStep> = segm.id.flatMap {
1098 | id in
1099 | return uploadFileInfo(
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1100 | blobId: id, importSize: segm.uncompressedSize)
1101 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1039:30: warning: concurrently-executed local function 'uploadFileInfo(blobId:importSize:)' must be marked as '@Sendable'
1037 | // If the file has non-standard layout, upload it after we upload
1038 | // the binary blob.
1039 | func uploadFileInfo(blobId: FXDataID, importSize: Int? = nil) -> FXFuture<
| `- warning: concurrently-executed local function 'uploadFileInfo(blobId:importSize:)' must be marked as '@Sendable'
1040 | NextStep
1041 | > {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1115:56: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1113 | let data: LLBFastData
1114 |
1115 | switch importObject {
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
1116 | case .link(let target):
1117 | data = target
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1115:56: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1113 | let data: LLBFastData
1114 |
1115 | switch importObject {
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
1116 | case .link(let target):
1117 | data = target
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1137:78: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1135 | importSize: segm.uncompressedSize, ctx
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
1138 | uploadFileInfo(blobId: id)
1139 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1137:78: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1135 | importSize: segm.uncompressedSize, ctx
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
1138 | uploadFileInfo(blobId: id)
1139 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1224:44: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1222 | chunkIds.count > 1
1223 | ? self.options.fileChunkSize : allSegmentsUncompressedDataSize)
1224 | let posixDetails = importObject.posixDetails
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
1225 | fileInfo.update(posixDetails: posixDetails, options: self.options)
1226 | do {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1307:25: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
1300 | }
1301 |
1302 | private func whenAllSucceed<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
1303 | _ futures: [FXFuture<Value>], on loop: FXFuturesDispatchLoop? = nil
1304 | ) -> FXFuture<[Value]> {
1305 | let loop = loop ?? self.loop
1306 | guard finalResultPromise.isCompleted == false else {
1307 | return loop.makeSucceededFuture([])
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
1308 | }
1309 | return FXFuture.whenAllSucceed(futures, on: loop).map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1309:25: warning: type 'Value' does not conform to the 'Sendable' protocol
1300 | }
1301 |
1302 | private func whenAllSucceed<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
1303 | _ futures: [FXFuture<Value>], on loop: FXFuturesDispatchLoop? = nil
1304 | ) -> FXFuture<[Value]> {
:
1307 | return loop.makeSucceededFuture([])
1308 | }
1309 | return FXFuture.whenAllSucceed(futures, on: loop).map { result in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
1310 | guard self.finalResultPromise.isCompleted == false else {
1311 | return []
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1327:39: warning: type 'T' does not conform to the 'Sendable' protocol
1320 | /// Enqueue the callback unless the stop flag is in action.
1321 | /// If stop flag is set, return the value specified in `then`.
1322 | private func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1323 | on queue: LLBBatchingFutureOperationQueue, default stopValue: T,
1324 | _ body: @escaping () throws -> T
1325 | ) -> FXFuture<T> {
1326 | guard finalResultPromise.isCompleted == false else {
1327 | return queue.group.next().makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1328 | }
1329 | return queue.execute {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1350:25: warning: type 'T' does not conform to the 'Sendable' protocol
1342 | /// Enqueue the callback unless the stop flag is in action.
1343 | /// If stop flag is set, return the value specified in `then`.
1344 | private func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1345 | on queue: FXFutureOperationQueue, loop: EventLoop? = nil, size: Int = 1,
1346 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
:
1348 | let loop = loop ?? self.loop
1349 | guard finalResultPromise.isCompleted == false else {
1350 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1351 | }
1352 | return queue.enqueue(on: loop, share: size) {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1354:29: warning: type 'T' does not conform to the 'Sendable' protocol
1342 | /// Enqueue the callback unless the stop flag is in action.
1343 | /// If stop flag is set, return the value specified in `then`.
1344 | private func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1345 | on queue: FXFutureOperationQueue, loop: EventLoop? = nil, size: Int = 1,
1346 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
:
1352 | return queue.enqueue(on: loop, share: size) {
1353 | guard self.finalResultPromise.isCompleted == false else {
1354 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1355 | }
1356 | return body().flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1374:25: warning: type 'T' does not conform to the 'Sendable' protocol
1367 | )
1368 | @available(*, deprecated, message: "This method blocks indefinitely and returns a future")
1369 | private func executeWithBackpressure<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1370 | on queue: FXFutureOperationQueue, loop: FXFuturesDispatchLoop, size: Int = 1,
1371 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
1372 | ) -> FXFuture<T> {
1373 | guard finalResultPromise.isCompleted == false else {
1374 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1375 | }
1376 | return queue.enqueueWithBackpressure(on: loop, share: size) {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1378:29: warning: type 'T' does not conform to the 'Sendable' protocol
1367 | )
1368 | @available(*, deprecated, message: "This method blocks indefinitely and returns a future")
1369 | private func executeWithBackpressure<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1370 | on queue: FXFutureOperationQueue, loop: FXFuturesDispatchLoop, size: Int = 1,
1371 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
:
1376 | return queue.enqueueWithBackpressure(on: loop, share: size) {
1377 | guard self.finalResultPromise.isCompleted == false else {
1378 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1379 | }
1380 | return body().flatMapErrorThrowing { error in
[826/829] Compiling llbuild2Testing FileTreeImport.swift
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:149:72: warning: reference to captured var 'refs' in concurrently-executing code
147 | // API should be fixed. One option would be to change this class so
148 | // it can directly operate on the encoded representation.
149 | return try self.init(id: id, object: FXCASObject(refs: refs, data: dirBytes))
| `- warning: reference to captured var 'refs' in concurrently-executing code
150 | }
151 | } catch {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:149:84: warning: reference to captured var 'dirBytes' in concurrently-executing code
147 | // API should be fixed. One option would be to change this class so
148 | // it can directly operate on the encoded representation.
149 | return try self.init(id: id, object: FXCASObject(refs: refs, data: dirBytes))
| `- warning: reference to captured var 'dirBytes' in concurrently-executing code
150 | }
151 | } catch {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:286:17: warning: mutation of captured var 'files' in concurrently-executing code
284 | return FXFuture.whenAllSucceed(futures, on: db.group.next()).flatMap { mergedEntries in
285 | for (idx, name, result, posixDetails) in mergedEntries {
286 | files[idx] = .init(
| `- warning: mutation of captured var 'files' in concurrently-executing code
287 | info: FXDirectoryEntry(
288 | name: name, type: .directory, size: result.aggregateSize,
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:291:48: warning: reference to captured var 'files' in concurrently-executing code
289 | posixDetails: posixDetails), id: result.id)
290 | }
291 | return FXCASFileTree.create(files: files, in: db, posixDetails: self.posixDetails, ctx)
| `- warning: reference to captured var 'files' in concurrently-executing code
292 | }
293 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:407:17: warning: mutation of captured var 'files' in concurrently-executing code
405 | return FXFuture.whenAllSucceed(futures, on: db.group.next()).flatMap { mergedEntries in
406 | for (idx, name, result, posixDetails) in mergedEntries {
407 | files[idx] = .init(
| `- warning: mutation of captured var 'files' in concurrently-executing code
408 | info: FXDirectoryEntry(
409 | name: name, type: .directory, size: result.aggregateSize,
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTree.swift:413:24: warning: reference to captured var 'files' in concurrently-executing code
411 | }
412 | return FXCASFileTree.create(
413 | files: files, in: db, posixDetails: reversedTrees.first!.posixDetails, ctx)
| `- warning: reference to captured var 'files' in concurrently-executing code
414 | }
415 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeExport.swift:233:13: warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
196 | }
197 |
198 | private final class CASFileTreeWalkerDelegate: RetrieveChildrenProtocol {
| `- note: class 'CASFileTreeWalkerDelegate' does not conform to the 'Sendable' protocol
199 | let db: any FXCASDatabase
200 | let exportPathPrefix: AbsolutePath
:
231 | let casObjectFuture: FXFuture<FXCASObject> = db.get(item.id, ctx).flatMapThrowing {
232 | casObject in
233 | self.stats.downloadsInProgressObjects_.wrappingDecrement(ordering: .relaxed)
| `- warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
234 |
235 | guard let casObject = casObject else {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeExport.swift:249:25: warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
196 | }
197 |
198 | private final class CASFileTreeWalkerDelegate: RetrieveChildrenProtocol {
| `- note: class 'CASFileTreeWalkerDelegate' does not conform to the 'Sendable' protocol
199 | let db: any FXCASDatabase
200 | let exportPathPrefix: AbsolutePath
:
247 | // Unblock the current NIO thread.
248 | batcher.execute {
249 | try self.parseAndMaterialize(casObject, item).map {
| `- warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
250 | Item(id: $0.id, exportPath: $0.path, kindHint: $0.kind)
251 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeExport.swift:249:25: warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in an isolated closure; this is an error in the Swift 6 language mode
196 | }
197 |
198 | private final class CASFileTreeWalkerDelegate: RetrieveChildrenProtocol {
| `- note: class 'CASFileTreeWalkerDelegate' does not conform to the 'Sendable' protocol
199 | let db: any FXCASDatabase
200 | let exportPathPrefix: AbsolutePath
:
247 | // Unblock the current NIO thread.
248 | batcher.execute {
249 | try self.parseAndMaterialize(casObject, item).map {
| `- warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in an isolated closure; this is an error in the Swift 6 language mode
250 | Item(id: $0.id, exportPath: $0.path, kindHint: $0.kind)
251 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeExport.swift:256:21: warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
196 | }
197 |
198 | private final class CASFileTreeWalkerDelegate: RetrieveChildrenProtocol {
| `- note: class 'CASFileTreeWalkerDelegate' does not conform to the 'Sendable' protocol
199 | let db: any FXCASDatabase
200 | let exportPathPrefix: AbsolutePath
:
254 | } else {
255 | return casObjectFuture.flatMapThrowing { casObject in
256 | try self.parseAndMaterialize(casObject, item).map {
| `- warning: capture of 'self' with non-sendable type 'CASFileTreeWalkerDelegate' in a '@Sendable' closure
257 | Item(id: $0.id, exportPath: $0.path, kindHint: $0.kind)
258 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:352:14: warning: use of protocol 'FXCASDatabase' as a type must be written 'any FXCASDatabase'; this will be an error in a future Swift language mode
350 |
351 | let loop: FXFuturesDispatchLoop
352 | let _db: FXCASDatabase
| `- warning: use of protocol 'FXCASDatabase' as a type must be written 'any FXCASDatabase'; this will be an error in a future Swift language mode
353 | let finalResultPromise: LLBCancellablePromise<FXDataID>
354 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:318:28: warning: type 'T' does not conform to the 'Sendable' protocol
313 |
314 | // Retry with lesser concurrency if we see unexpected network errors.
315 | private static func recursivelyDecreasingLimit<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
316 | on loop: FXFuturesDispatchLoop, limit: Int, _ body: @escaping (Int) -> FXFuture<T>
317 | ) -> FXFuture<T> {
318 | return body(limit).flatMapError { error -> FXFuture<T> in
| `- warning: type 'T' does not conform to the 'Sendable' protocol
319 | // Check if something retryable happened.
320 | guard case FXCASDatabaseError.retryableNetworkError(_) = error else {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:333:22: warning: type 'T' does not conform to the 'Sendable' protocol
313 |
314 | // Retry with lesser concurrency if we see unexpected network errors.
315 | private static func recursivelyDecreasingLimit<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
316 | on loop: FXFuturesDispatchLoop, limit: Int, _ body: @escaping (Int) -> FXFuture<T>
317 | ) -> FXFuture<T> {
:
331 | _ = loop.scheduleTask(in: .seconds(3)) {
332 | recursivelyDecreasingLimit(on: loop, limit: newLimit, body)
333 | .cascade(to: promise)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
334 | }
335 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:332:71: warning: capture of 'body' with non-sendable type '(Int) -> FXFuture<T>' (aka '(Int) -> EventLoopFuture<T>') in a '@Sendable' closure
330 | let promise = loop.makePromise(of: T.self)
331 | _ = loop.scheduleTask(in: .seconds(3)) {
332 | recursivelyDecreasingLimit(on: loop, limit: newLimit, body)
| |- warning: capture of 'body' with non-sendable type '(Int) -> FXFuture<T>' (aka '(Int) -> EventLoopFuture<T>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
333 | .cascade(to: promise)
334 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:332:71: warning: capture of 'body' with non-sendable type '(Int) -> FXFuture<T>' (aka '(Int) -> EventLoopFuture<T>') in a '@Sendable' closure
330 | let promise = loop.makePromise(of: T.self)
331 | _ = loop.scheduleTask(in: .seconds(3)) {
332 | recursivelyDecreasingLimit(on: loop, limit: newLimit, body)
| |- warning: capture of 'body' with non-sendable type '(Int) -> FXFuture<T>' (aka '(Int) -> EventLoopFuture<T>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
333 | .cascade(to: promise)
334 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:524:11: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
522 | }
523 | }
524 | }.flatMap { nextStepFutures -> FXFuture<[NextStep]> in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
525 | self.whenAllSucceed(nextStepFutures)
526 | }.flatMap { nextStepFutures -> FXFuture<[NextStep]> in
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:526:11: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
524 | }.flatMap { nextStepFutures -> FXFuture<[NextStep]> in
525 | self.whenAllSucceed(nextStepFutures)
526 | }.flatMap { nextStepFutures -> FXFuture<[NextStep]> in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
527 | self.set(phase: .CheckIfUploaded)
528 | return self.recursivelyPerformSteps(
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:711:25: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
709 |
710 | guard finalResultPromise.isCompleted == false else {
711 | return loop.makeSucceededFuture([])
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
712 | }
713 |
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:731:56: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
729 | // Wait for the steps we need to wait in this phase, and then
730 | // advance the phase if there are no more steps to wait.
731 | return self.whenAllSucceed(waitInCurrentPhase).flatMap { moreStepsInCurrentPhase in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
732 | if moreStepsInCurrentPhase.isEmpty {
733 | precondition(!currentPhase.isFinalPhase) // Avoid infinite recursion
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:33: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
737 | }
738 | self.set(phase: nextPhase)
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:53: warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
737 | }
738 | self.set(phase: nextPhase)
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:69: warning: capture of 'nextPhaseSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: capture of 'nextPhaseSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
737 | }
738 | self.set(phase: nextPhase)
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:53: warning: reference to captured var 'finishedSteps' in concurrently-executing code
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: reference to captured var 'finishedSteps' in concurrently-executing code
737 | }
738 | self.set(phase: nextPhase)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:736:69: warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
734 | let nextPhase = FXCASFileTree.ImportPhase(rawValue: currentPhase.rawValue + 1)!
735 | guard nextPhase < .UploadingDirs else {
736 | return loop.makeSucceededFuture(finishedSteps + nextPhaseSteps)
| `- warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
737 | }
738 | self.set(phase: nextPhase)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:740:65: warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
738 | self.set(phase: nextPhase)
739 | return self.recursivelyPerformSteps(
740 | currentPhase: nextPhase, currentPhaseSteps: nextPhaseSteps
| `- warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
741 | ).map {
742 | finishedSteps + $0
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:742:21: warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
740 | currentPhase: nextPhase, currentPhaseSteps: nextPhaseSteps
741 | ).map {
742 | finishedSteps + $0
| `- warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
743 | }
744 | } else {
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:742:21: warning: reference to captured var 'finishedSteps' in concurrently-executing code
740 | currentPhase: nextPhase, currentPhaseSteps: nextPhaseSteps
741 | ).map {
742 | finishedSteps + $0
| `- warning: reference to captured var 'finishedSteps' in concurrently-executing code
743 | }
744 | } else {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:747:37: warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
745 | return self.recursivelyPerformSteps(
746 | currentPhase: currentPhase, currentPhaseSteps: moreStepsInCurrentPhase,
747 | nextPhaseSteps: nextPhaseSteps
| `- warning: reference to captured var 'nextPhaseSteps' in concurrently-executing code
748 | ).map {
749 | finishedSteps + $0
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:749:21: warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
747 | nextPhaseSteps: nextPhaseSteps
748 | ).map {
749 | finishedSteps + $0
| `- warning: capture of 'finishedSteps' with non-sendable type '[CASTreeImport.NextStep]' in a '@Sendable' closure
750 | }
751 | }
:
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:749:21: warning: reference to captured var 'finishedSteps' in concurrently-executing code
747 | nextPhaseSteps: nextPhaseSteps
748 | ).map {
749 | finishedSteps + $0
| `- warning: reference to captured var 'finishedSteps' in concurrently-executing code
750 | }
751 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1043:45: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1041 | > {
1042 | guard finalResultPromise.isCompleted == false else {
1043 | return loop.makeSucceededFuture(NextStep.skipped)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1044 | }
1045 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1055:45: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1053 | by: size, ordering: .relaxed)
1054 | }
1055 | return loop.makeSucceededFuture(encodeNextStep(for: blobId))
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1056 | }
1057 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1094:51: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1092 | let containsFuture = self.dbContains(segm, ctx)
1093 | let containsLoop = containsFuture.eventLoop
1094 | return containsFuture.flatMap { exists -> FXFuture<NextStep> in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1095 |
1096 | guard !exists else {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1097:88: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1095 |
1096 | guard !exists else {
1097 | let existingIdFuture: FXFuture<NextStep> = segm.id.flatMap {
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1098 | id in
1099 | return uploadFileInfo(
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1106:53: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1104 | }
1105 |
1106 | return containsLoop.makeSucceededFuture(
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1107 | NextStep.execute(
1108 | in: .UploadingFiles,
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1129:61: warning: 'executeWithBackpressure(on:loop:size:default:_:)' is deprecated: This method blocks indefinitely and returns a future
1127 | // free to take our load. This ensures that we're not
1128 | // limited by CPU parallelism for network concurrency.
1129 | return self.executeWithBackpressure(
| `- warning: 'executeWithBackpressure(on:loop:size:default:_:)' is deprecated: This method blocks indefinitely and returns a future
1130 | on: self.netQueue, loop: containsLoop,
1131 | size: slice.readableBytes, default: .skipped
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1136:55: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1134 | refs: [], data: slice,
1135 | importSize: segm.uncompressedSize, ctx
1136 | ).flatMap { id -> FXFuture<NextStep> in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1142:55: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1140 | }.map { result in
1141 | return result
1142 | }.hop(to: loop)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1143 | }
1144 | }.flatMap {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1144:47: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1142 | }.hop(to: loop)
1143 | }
1144 | }.flatMap {
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1145 | // This type of return ensures that cpuQueue does not
1146 | // wait for the netQueue operation to complete.
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1147:60: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1145 | // This type of return ensures that cpuQueue does not
1146 | // wait for the netQueue operation to complete.
1147 | $0 ?? loop.makeSucceededFuture(NextStep.skipped)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1148 | }
1149 | nextStepFuture.cascade(to: partialStepPromise)
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1202:23: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1200 | throw error
1201 |
1202 | }.flatMap { nextSteps in
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1203 | // The next steps can only be empty if we've reacting on
1204 | // a filesystem-related error with some of our chunks.
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1206:41: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1204 | // a filesystem-related error with some of our chunks.
1205 | guard nextSteps.isEmpty == false else {
1206 | return loop.makeSucceededFuture(.skipped)
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1207 | }
1208 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1253:49: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1251 | // have been uploaded. Therefore we wait for the huge files in
1252 | // its own state, .UploadingWait.
1253 | return cheapNextStepFutures + [loop.makeSucceededFuture(combinePartialResultsStep)]
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1254 | }
1255 |
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1260:22: warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
804 | }
805 |
806 | indirect enum NextStep {
| `- note: consider making enum 'NextStep' conform to the 'Sendable' protocol
807 | // Final step in a sequence: stop stepping through.
808 | case skipped
:
1258 | in: .EstimatingSize,
1259 | run: {
1260 | loop.makeSucceededFuture(
| `- warning: type 'CASTreeImport.NextStep' does not conform to the 'Sendable' protocol
1261 | NextStep.wait(
1262 | in: .CheckIfUploaded,
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1079:37: warning: capture of 'encodeNextStep(for:)' with non-sendable type '(FXDataID) -> CASTreeImport.NextStep' in a '@Sendable' closure
1077 | importSize: importSize, ctx
1078 | ).map { id in
1079 | encodeNextStep(for: id)
| |- warning: capture of 'encodeNextStep(for:)' with non-sendable type '(FXDataID) -> CASTreeImport.NextStep' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1080 | }
1081 | } catch {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1025:30: warning: concurrently-executed local function 'encodeNextStep(for:)' must be marked as '@Sendable'
1023 | promise: loop.makePromise(of: NextStep.self))
1024 |
1025 | func encodeNextStep(for id: FXDataID) -> NextStep {
| `- warning: concurrently-executed local function 'encodeNextStep(for:)' must be marked as '@Sendable'
1026 | if isSingleChunk {
1027 | return .singleFile(
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1099:48: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
1097 | let existingIdFuture: FXFuture<NextStep> = segm.id.flatMap {
1098 | id in
1099 | return uploadFileInfo(
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1100 | blobId: id, importSize: segm.uncompressedSize)
1101 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1115:56: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1113 | let data: LLBFastData
1114 |
1115 | switch importObject {
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
1116 | case .link(let target):
1117 | data = target
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1099:48: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
1097 | let existingIdFuture: FXFuture<NextStep> = segm.id.flatMap {
1098 | id in
1099 | return uploadFileInfo(
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1100 | blobId: id, importSize: segm.uncompressedSize)
1101 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1039:30: warning: concurrently-executed local function 'uploadFileInfo(blobId:importSize:)' must be marked as '@Sendable'
1037 | // If the file has non-standard layout, upload it after we upload
1038 | // the binary blob.
1039 | func uploadFileInfo(blobId: FXDataID, importSize: Int? = nil) -> FXFuture<
| `- warning: concurrently-executed local function 'uploadFileInfo(blobId:importSize:)' must be marked as '@Sendable'
1040 | NextStep
1041 | > {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1115:56: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1113 | let data: LLBFastData
1114 |
1115 | switch importObject {
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
1116 | case .link(let target):
1117 | data = target
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1115:56: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1113 | let data: LLBFastData
1114 |
1115 | switch importObject {
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
1116 | case .link(let target):
1117 | data = target
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1137:78: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1135 | importSize: segm.uncompressedSize, ctx
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in an isolated closure; this is an error in the Swift 6 language mode
1138 | uploadFileInfo(blobId: id)
1139 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1137:78: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1135 | importSize: segm.uncompressedSize, ctx
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
1138 | uploadFileInfo(blobId: id)
1139 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1138:61: warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
1136 | ).flatMap { id -> FXFuture<NextStep> in
1137 | withExtendedLifetime(importObject) { // for mmap
1138 | uploadFileInfo(blobId: id)
| |- warning: capture of 'uploadFileInfo(blobId:importSize:)' with non-sendable type '(FXDataID, Int?) -> FXFuture<CASTreeImport.NextStep>' (aka '(FXDataID, Optional<Int>) -> EventLoopFuture<CASTreeImport.NextStep>') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1139 | }
1140 | }.map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1224:44: warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
911 | let type: FXFileType
912 | let allSegmentsUncompressedDataSize: Int
913 | enum ObjectToImport {
| `- note: consider making enum 'ObjectToImport' conform to the 'Sendable' protocol
914 | case link(target: LLBFastData)
915 | case file(file: FileSegmenter, posixDetails: FXPosixFileDetails)
:
1222 | chunkIds.count > 1
1223 | ? self.options.fileChunkSize : allSegmentsUncompressedDataSize)
1224 | let posixDetails = importObject.posixDetails
| `- warning: capture of 'importObject' with non-sendable type 'ObjectToImport' in a '@Sendable' closure
1225 | fileInfo.update(posixDetails: posixDetails, options: self.options)
1226 | do {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1307:25: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
1300 | }
1301 |
1302 | private func whenAllSucceed<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
1303 | _ futures: [FXFuture<Value>], on loop: FXFuturesDispatchLoop? = nil
1304 | ) -> FXFuture<[Value]> {
1305 | let loop = loop ?? self.loop
1306 | guard finalResultPromise.isCompleted == false else {
1307 | return loop.makeSucceededFuture([])
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
1308 | }
1309 | return FXFuture.whenAllSucceed(futures, on: loop).map { result in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1309:25: warning: type 'Value' does not conform to the 'Sendable' protocol
1300 | }
1301 |
1302 | private func whenAllSucceed<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
1303 | _ futures: [FXFuture<Value>], on loop: FXFuturesDispatchLoop? = nil
1304 | ) -> FXFuture<[Value]> {
:
1307 | return loop.makeSucceededFuture([])
1308 | }
1309 | return FXFuture.whenAllSucceed(futures, on: loop).map { result in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
1310 | guard self.finalResultPromise.isCompleted == false else {
1311 | return []
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1327:39: warning: type 'T' does not conform to the 'Sendable' protocol
1320 | /// Enqueue the callback unless the stop flag is in action.
1321 | /// If stop flag is set, return the value specified in `then`.
1322 | private func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1323 | on queue: LLBBatchingFutureOperationQueue, default stopValue: T,
1324 | _ body: @escaping () throws -> T
1325 | ) -> FXFuture<T> {
1326 | guard finalResultPromise.isCompleted == false else {
1327 | return queue.group.next().makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1328 | }
1329 | return queue.execute {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1350:25: warning: type 'T' does not conform to the 'Sendable' protocol
1342 | /// Enqueue the callback unless the stop flag is in action.
1343 | /// If stop flag is set, return the value specified in `then`.
1344 | private func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1345 | on queue: FXFutureOperationQueue, loop: EventLoop? = nil, size: Int = 1,
1346 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
:
1348 | let loop = loop ?? self.loop
1349 | guard finalResultPromise.isCompleted == false else {
1350 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1351 | }
1352 | return queue.enqueue(on: loop, share: size) {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1354:29: warning: type 'T' does not conform to the 'Sendable' protocol
1342 | /// Enqueue the callback unless the stop flag is in action.
1343 | /// If stop flag is set, return the value specified in `then`.
1344 | private func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1345 | on queue: FXFutureOperationQueue, loop: EventLoop? = nil, size: Int = 1,
1346 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
:
1352 | return queue.enqueue(on: loop, share: size) {
1353 | guard self.finalResultPromise.isCompleted == false else {
1354 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1355 | }
1356 | return body().flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1374:25: warning: type 'T' does not conform to the 'Sendable' protocol
1367 | )
1368 | @available(*, deprecated, message: "This method blocks indefinitely and returns a future")
1369 | private func executeWithBackpressure<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1370 | on queue: FXFutureOperationQueue, loop: FXFuturesDispatchLoop, size: Int = 1,
1371 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
1372 | ) -> FXFuture<T> {
1373 | guard finalResultPromise.isCompleted == false else {
1374 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1375 | }
1376 | return queue.enqueueWithBackpressure(on: loop, share: size) {
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/FileTreeImport.swift:1378:29: warning: type 'T' does not conform to the 'Sendable' protocol
1367 | )
1368 | @available(*, deprecated, message: "This method blocks indefinitely and returns a future")
1369 | private func executeWithBackpressure<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
1370 | on queue: FXFutureOperationQueue, loop: FXFuturesDispatchLoop, size: Int = 1,
1371 | default stopValue: T, _ body: @escaping () -> FXFuture<T>
:
1376 | return queue.enqueueWithBackpressure(on: loop, share: size) {
1377 | guard self.finalResultPromise.isCompleted == false else {
1378 | return loop.makeSucceededFuture(stopValue)
| `- warning: type 'T' does not conform to the 'Sendable' protocol
1379 | }
1380 | return body().flatMapErrorThrowing { error in
[827/829] Compiling llbuild2Testing ConcurrentFileTreeWalker.swift
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:44:38: warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in a '@Sendable' closure
22 |
23 | /// Walk the hierarchy with bounded concurrency.
24 | final class ConcurrentHierarchyWalker<Item> {
| `- note: generic class 'ConcurrentHierarchyWalker' does not conform to the 'Sendable' protocol
25 |
26 | private let group: FXFuturesDispatchGroup
:
42 | self.getChildren(item, ctx)
43 | }.flatMap { more in
44 | let futures = more.map { self.walk($0, ctx) }
| `- warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in a '@Sendable' closure
45 | return FXFuture.whenAllSucceed(futures, on: self.group.next()).map { _ in () }
46 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:44:38: warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in an isolated closure; this is an error in the Swift 6 language mode
22 |
23 | /// Walk the hierarchy with bounded concurrency.
24 | final class ConcurrentHierarchyWalker<Item> {
| `- note: generic class 'ConcurrentHierarchyWalker' does not conform to the 'Sendable' protocol
25 |
26 | private let group: FXFuturesDispatchGroup
:
42 | self.getChildren(item, ctx)
43 | }.flatMap { more in
44 | let futures = more.map { self.walk($0, ctx) }
| `- warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in an isolated closure; this is an error in the Swift 6 language mode
45 | return FXFuture.whenAllSucceed(futures, on: self.group.next()).map { _ in () }
46 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:101:13: warning: capture of 'root' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
59 | }
60 |
61 | package struct Item {
| `- note: consider making struct 'Item' conform to the 'Sendable' protocol
62 | /// The description of the current CAS filesystem entry.
63 | let arg: FilterArgument
:
99 | let walker = ConcurrentHierarchyWalker(group: db.group, delegate: self)
100 | return walker.walk(root, ctx).map { () in
101 | root.scanResult.reapResult()
| `- warning: capture of 'root' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
102 | }
103 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:116:33: warning: capture of 'item' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
59 | }
60 |
61 | package struct Item {
| `- note: consider making struct 'Item' conform to the 'Sendable' protocol
62 | /// The description of the current CAS filesystem entry.
63 | let arg: FilterArgument
:
114 |
115 | return client.load(item.id, type: typeHint, ctx).map { node in
116 | if typeHint == nil, item.arg.path == .root, item.arg.size == 0 {
| `- warning: capture of 'item' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
117 | // This is our root. Check if we're allowed to go past it.
118 | let dirEntry = node.asDirectoryEntry(filename: "-")
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:124:23: warning: capture of 'self' with non-sendable type 'LLBConcurrentFileTreeWalker' in a '@Sendable' closure
48 | }
49 |
50 | package class LLBConcurrentFileTreeWalker: RetrieveChildrenProtocol {
| `- note: class 'LLBConcurrentFileTreeWalker' does not conform to the 'Sendable' protocol
51 | let db: any FXCASDatabase
52 | let client: FXCASFSClient
:
122 | size: Int(clamping: dirEntry.info.size)), id: dirEntry.id,
123 | scanResult: item.scanResult)
124 | guard self.filter(rootItem) else {
| `- warning: capture of 'self' with non-sendable type 'LLBConcurrentFileTreeWalker' in a '@Sendable' closure
125 | return []
126 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/Context.swift:42:24: warning: static property 'fileTreeExportStorageBatcherKey' is not concurrency-safe because non-'Sendable' type 'ContextKey' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import FXCore
11 |
12 | private final class ContextKey {}
| `- note: class 'ContextKey' does not conform to the 'Sendable' protocol
13 |
14 | /// Support storing and retrieving file tree import options from a context
:
40 | /// Support storing and retrieving file tree export storage batcher from a context
41 | extension Context {
42 | private static let fileTreeExportStorageBatcherKey = ContextKey()
| |- warning: static property 'fileTreeExportStorageBatcherKey' is not concurrency-safe because non-'Sendable' type 'ContextKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fileTreeExportStorageBatcherKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | package var fileTreeExportStorageBatcher: LLBBatchingFutureOperationQueue? {
[828/829] Compiling llbuild2Testing Context.swift
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:44:38: warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in a '@Sendable' closure
22 |
23 | /// Walk the hierarchy with bounded concurrency.
24 | final class ConcurrentHierarchyWalker<Item> {
| `- note: generic class 'ConcurrentHierarchyWalker' does not conform to the 'Sendable' protocol
25 |
26 | private let group: FXFuturesDispatchGroup
:
42 | self.getChildren(item, ctx)
43 | }.flatMap { more in
44 | let futures = more.map { self.walk($0, ctx) }
| `- warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in a '@Sendable' closure
45 | return FXFuture.whenAllSucceed(futures, on: self.group.next()).map { _ in () }
46 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:44:38: warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in an isolated closure; this is an error in the Swift 6 language mode
22 |
23 | /// Walk the hierarchy with bounded concurrency.
24 | final class ConcurrentHierarchyWalker<Item> {
| `- note: generic class 'ConcurrentHierarchyWalker' does not conform to the 'Sendable' protocol
25 |
26 | private let group: FXFuturesDispatchGroup
:
42 | self.getChildren(item, ctx)
43 | }.flatMap { more in
44 | let futures = more.map { self.walk($0, ctx) }
| `- warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in an isolated closure; this is an error in the Swift 6 language mode
45 | return FXFuture.whenAllSucceed(futures, on: self.group.next()).map { _ in () }
46 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:101:13: warning: capture of 'root' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
59 | }
60 |
61 | package struct Item {
| `- note: consider making struct 'Item' conform to the 'Sendable' protocol
62 | /// The description of the current CAS filesystem entry.
63 | let arg: FilterArgument
:
99 | let walker = ConcurrentHierarchyWalker(group: db.group, delegate: self)
100 | return walker.walk(root, ctx).map { () in
101 | root.scanResult.reapResult()
| `- warning: capture of 'root' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
102 | }
103 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:116:33: warning: capture of 'item' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
59 | }
60 |
61 | package struct Item {
| `- note: consider making struct 'Item' conform to the 'Sendable' protocol
62 | /// The description of the current CAS filesystem entry.
63 | let arg: FilterArgument
:
114 |
115 | return client.load(item.id, type: typeHint, ctx).map { node in
116 | if typeHint == nil, item.arg.path == .root, item.arg.size == 0 {
| `- warning: capture of 'item' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
117 | // This is our root. Check if we're allowed to go past it.
118 | let dirEntry = node.asDirectoryEntry(filename: "-")
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:124:23: warning: capture of 'self' with non-sendable type 'LLBConcurrentFileTreeWalker' in a '@Sendable' closure
48 | }
49 |
50 | package class LLBConcurrentFileTreeWalker: RetrieveChildrenProtocol {
| `- note: class 'LLBConcurrentFileTreeWalker' does not conform to the 'Sendable' protocol
51 | let db: any FXCASDatabase
52 | let client: FXCASFSClient
:
122 | size: Int(clamping: dirEntry.info.size)), id: dirEntry.id,
123 | scanResult: item.scanResult)
124 | guard self.filter(rootItem) else {
| `- warning: capture of 'self' with non-sendable type 'LLBConcurrentFileTreeWalker' in a '@Sendable' closure
125 | return []
126 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/Context.swift:42:24: warning: static property 'fileTreeExportStorageBatcherKey' is not concurrency-safe because non-'Sendable' type 'ContextKey' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import FXCore
11 |
12 | private final class ContextKey {}
| `- note: class 'ContextKey' does not conform to the 'Sendable' protocol
13 |
14 | /// Support storing and retrieving file tree import options from a context
:
40 | /// Support storing and retrieving file tree export storage batcher from a context
41 | extension Context {
42 | private static let fileTreeExportStorageBatcherKey = ContextKey()
| |- warning: static property 'fileTreeExportStorageBatcherKey' is not concurrency-safe because non-'Sendable' type 'ContextKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fileTreeExportStorageBatcherKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | package var fileTreeExportStorageBatcher: LLBBatchingFutureOperationQueue? {
[829/829] Compiling llbuild2Testing DeclFileTree.swift
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:44:38: warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in a '@Sendable' closure
22 |
23 | /// Walk the hierarchy with bounded concurrency.
24 | final class ConcurrentHierarchyWalker<Item> {
| `- note: generic class 'ConcurrentHierarchyWalker' does not conform to the 'Sendable' protocol
25 |
26 | private let group: FXFuturesDispatchGroup
:
42 | self.getChildren(item, ctx)
43 | }.flatMap { more in
44 | let futures = more.map { self.walk($0, ctx) }
| `- warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in a '@Sendable' closure
45 | return FXFuture.whenAllSucceed(futures, on: self.group.next()).map { _ in () }
46 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:44:38: warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in an isolated closure; this is an error in the Swift 6 language mode
22 |
23 | /// Walk the hierarchy with bounded concurrency.
24 | final class ConcurrentHierarchyWalker<Item> {
| `- note: generic class 'ConcurrentHierarchyWalker' does not conform to the 'Sendable' protocol
25 |
26 | private let group: FXFuturesDispatchGroup
:
42 | self.getChildren(item, ctx)
43 | }.flatMap { more in
44 | let futures = more.map { self.walk($0, ctx) }
| `- warning: capture of 'self' with non-sendable type 'ConcurrentHierarchyWalker<Item>' in an isolated closure; this is an error in the Swift 6 language mode
45 | return FXFuture.whenAllSucceed(futures, on: self.group.next()).map { _ in () }
46 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:101:13: warning: capture of 'root' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
59 | }
60 |
61 | package struct Item {
| `- note: consider making struct 'Item' conform to the 'Sendable' protocol
62 | /// The description of the current CAS filesystem entry.
63 | let arg: FilterArgument
:
99 | let walker = ConcurrentHierarchyWalker(group: db.group, delegate: self)
100 | return walker.walk(root, ctx).map { () in
101 | root.scanResult.reapResult()
| `- warning: capture of 'root' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
102 | }
103 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:116:33: warning: capture of 'item' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
59 | }
60 |
61 | package struct Item {
| `- note: consider making struct 'Item' conform to the 'Sendable' protocol
62 | /// The description of the current CAS filesystem entry.
63 | let arg: FilterArgument
:
114 |
115 | return client.load(item.id, type: typeHint, ctx).map { node in
116 | if typeHint == nil, item.arg.path == .root, item.arg.size == 0 {
| `- warning: capture of 'item' with non-sendable type 'LLBConcurrentFileTreeWalker.Item' in a '@Sendable' closure
117 | // This is our root. Check if we're allowed to go past it.
118 | let dirEntry = node.asDirectoryEntry(filename: "-")
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/ConcurrentFileTreeWalker.swift:124:23: warning: capture of 'self' with non-sendable type 'LLBConcurrentFileTreeWalker' in a '@Sendable' closure
48 | }
49 |
50 | package class LLBConcurrentFileTreeWalker: RetrieveChildrenProtocol {
| `- note: class 'LLBConcurrentFileTreeWalker' does not conform to the 'Sendable' protocol
51 | let db: any FXCASDatabase
52 | let client: FXCASFSClient
:
122 | size: Int(clamping: dirEntry.info.size)), id: dirEntry.id,
123 | scanResult: item.scanResult)
124 | guard self.filter(rootItem) else {
| `- warning: capture of 'self' with non-sendable type 'LLBConcurrentFileTreeWalker' in a '@Sendable' closure
125 | return []
126 | }
/host/spi-builder-workspace/Sources/llbuild2Testing/CASFileTree/Context.swift:42:24: warning: static property 'fileTreeExportStorageBatcherKey' is not concurrency-safe because non-'Sendable' type 'ContextKey' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import FXCore
11 |
12 | private final class ContextKey {}
| `- note: class 'ContextKey' does not conform to the 'Sendable' protocol
13 |
14 | /// Support storing and retrieving file tree import options from a context
:
40 | /// Support storing and retrieving file tree export storage batcher from a context
41 | extension Context {
42 | private static let fileTreeExportStorageBatcherKey = ContextKey()
| |- warning: static property 'fileTreeExportStorageBatcherKey' is not concurrency-safe because non-'Sendable' type 'ContextKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fileTreeExportStorageBatcherKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | package var fileTreeExportStorageBatcher: LLBBatchingFutureOperationQueue? {
Build complete! (70.51s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-atomics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-atomics.git"
},
{
"identity" : "swift-async-algorithms",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.4",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-async-algorithms.git"
},
{
"identity" : "swift-collections",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-collections.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.80.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-protobuf",
"requirement" : {
"range" : [
{
"lower_bound" : "1.17.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-protobuf.git"
},
{
"identity" : "swift-system",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-system.git"
},
{
"identity" : "swift-tools-support-core",
"requirement" : {
"range" : [
{
"lower_bound" : "0.8.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-tools-support-core.git"
}
],
"manifest_display_name" : "llbuild2",
"name" : "llbuild2",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "llbuild2",
"targets" : [
"llbuild2"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "llbuild2fx",
"targets" : [
"llbuild2fx"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "llbuild2Testing",
"targets" : [
"llbuild2Testing"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "llbuild2fxTests",
"module_type" : "SwiftTarget",
"name" : "llbuild2fxTests",
"path" : "Tests/llbuild2fxTests",
"sources" : [
"AdditionalCoverageTests.swift",
"CommandLineArgsCoderTests.swift",
"DeadlineTests.swift",
"EngineDelegateTests.swift",
"EngineTests.swift",
"FunctionCacheTests.swift",
"InterceptorTests.swift",
"KeyDependencyGraphTests.swift",
"KeyTests.swift",
"ResourcesTests.swift",
"SpawnProcessTests.swift",
"TreeMaterializationTests.swift",
"VersioningTests.swift"
],
"target_dependencies" : [
"llbuild2fx",
"llbuild2Testing"
],
"type" : "test"
},
{
"c99name" : "llbuild2fx",
"module_type" : "SwiftTarget",
"name" : "llbuild2fx",
"path" : "Sources/llbuild2fx",
"product_dependencies" : [
"SwiftProtobuf",
"Logging",
"AsyncAlgorithms",
"_NIOFileSystem"
],
"product_memberships" : [
"llbuild2",
"llbuild2fx",
"llbuild2Testing"
],
"sources" : [
"Action.swift",
"ActionCache/FileBackedFunctionCache.swift",
"ActionCache/InMemoryFunctionCache.swift",
"ActionInterface.swift",
"CASTree.swift",
"Coding.swift",
"CommandLineArgsCoder.swift",
"Deadline.swift",
"Diagnostics.swift",
"Engine.swift",
"EngineDelegate.swift",
"Errors.swift",
"Executor.swift",
"FunctionCache.swift",
"FunctionInterface.swift",
"Generated/EngineProtocol/any_serializable.pb.swift",
"Interceptor/Interceptor.swift",
"Interceptor/KeyInterceptor.swift",
"Key.swift",
"KeyConfiguration.swift",
"KeyDependencyGraph.swift",
"KeyOverride.swift",
"LocalExecutor.swift",
"NullExecutor.swift",
"Resources.swift",
"Reëxport.swift",
"Ruleset.swift",
"Service.swift",
"SortedSet.swift",
"SpawnProcess.swift",
"Stats.swift",
"Support/AnySerializable.swift",
"Support/CommonCodables.swift",
"Support/Logging.swift",
"Support/Protobuf+Extensions.swift",
"TaskCancellationRegistry.swift",
"TreeMaterialization.swift",
"Value.swift",
"Versioning.swift",
"WrappedDataID.swift"
],
"target_dependencies" : [
"FXCore",
"FXAsyncSupport"
],
"type" : "library"
},
{
"c99name" : "llbuild2TestingTests",
"module_type" : "SwiftTarget",
"name" : "llbuild2TestingTests",
"path" : "Tests/llbuild2TestingTests",
"sources" : [
"BufferedStreamWriterTests.swift",
"CASBlobTests.swift",
"FileTreeImportExportTests.swift",
"FileTreeTests.swift",
"LinkedListStreamTests.swift"
],
"target_dependencies" : [
"llbuild2Testing",
"FXAsyncSupport"
],
"type" : "test"
},
{
"c99name" : "llbuild2Testing",
"module_type" : "SwiftTarget",
"name" : "llbuild2Testing",
"path" : "Sources/llbuild2Testing",
"product_memberships" : [
"llbuild2Testing"
],
"sources" : [
"CASFileTree/BinarySearch.swift",
"CASFileTree/CASBlob.swift",
"CASFileTree/CASFSClient.swift",
"CASFileTree/CASFSNode.swift",
"CASFileTree/ConcurrentFileTreeWalker.swift",
"CASFileTree/Context.swift",
"CASFileTree/DeclFileTree.swift",
"CASFileTree/DirectoryEntry.swift",
"CASFileTree/Errors.swift",
"CASFileTree/FileInfo.swift",
"CASFileTree/FileTree.swift",
"CASFileTree/FileTreeExport.swift",
"CASFileTree/FileTreeImport.swift",
"CASFileTree/FilesystemObject.swift",
"CASFileTree/Generated/CASFileTreeProtocol/file_tree.pb.swift",
"CASFileTree/Internal/ConcurrentFilesystemScanner.swift",
"CASFileTree/Internal/FileSegmenter.swift",
"CASFileTree/Internal/FileTreeParser.swift",
"CASFileTree/TSCCASFileSystem.swift",
"CASUtilities/BufferedStreamWriter.swift",
"CASUtilities/LinkedListStream.swift",
"CASUtilities/StreamReader.swift",
"FXKeyTestOverride.swift",
"FXLocalCASTreeService.swift",
"FXTestingEngine.swift"
],
"target_dependencies" : [
"llbuild2fx",
"FXAsyncSupport"
],
"type" : "library"
},
{
"c99name" : "llbuild2",
"module_type" : "SwiftTarget",
"name" : "llbuild2",
"path" : "Sources/llbuild2",
"product_memberships" : [
"llbuild2"
],
"sources" : [
"Reexport.swift"
],
"target_dependencies" : [
"llbuild2fx"
],
"type" : "library"
},
{
"c99name" : "FXExampleRulesetTests",
"module_type" : "SwiftTarget",
"name" : "FXExampleRulesetTests",
"path" : "Tests/FXExampleRulesetTests",
"sources" : [
"FXExampleRulesetIsolationTests.swift",
"FXExampleRulesetTests.swift"
],
"target_dependencies" : [
"FXExampleRuleset",
"llbuild2Testing"
],
"type" : "test"
},
{
"c99name" : "FXExampleRuleset",
"module_type" : "SwiftTarget",
"name" : "FXExampleRuleset",
"path" : "Sources/FXExampleRuleset",
"sources" : [
"ExampleAction.swift",
"ExampleKeys.swift",
"ExampleResource.swift",
"ExampleRulesetPackage.swift",
"ExampleValues.swift"
],
"target_dependencies" : [
"llbuild2fx"
],
"type" : "library"
},
{
"c99name" : "FXCoreTests",
"module_type" : "SwiftTarget",
"name" : "FXCoreTests",
"path" : "Tests/FXCoreTests",
"sources" : [
"CASObjectTests.swift",
"DataIDTests.swift",
"InMemoryCASDatabaseTests.swift"
],
"target_dependencies" : [
"FXCore",
"FXAsyncSupport"
],
"type" : "test"
},
{
"c99name" : "FXCore",
"module_type" : "SwiftTarget",
"name" : "FXCore",
"path" : "Sources/FXCore",
"product_dependencies" : [
"NIOCore",
"NIOFoundationCompat",
"SwiftProtobuf",
"TSCBasic"
],
"product_memberships" : [
"llbuild2",
"llbuild2fx",
"llbuild2Testing"
],
"sources" : [
"Base64URL.swift",
"CAS/CASDatabaseAdapter.swift",
"CAS/DataID.swift",
"CAS/DataIDProtocol.swift",
"CAS/Database.swift",
"CAS/Generated/CASProtocol/cas_object.pb.swift",
"CAS/Generated/CASProtocol/data_id.pb.swift",
"CAS/Object.swift",
"CAS/ObjectProtocol.swift",
"CAS/TypedDatabase.swift",
"Context.swift",
"Futures/NIOAliases.swift",
"OrderedZip.swift",
"Utility/ByteBuffer.swift",
"Utility/Serializable.swift"
],
"type" : "library"
},
{
"c99name" : "FXCProcessSpawnSync",
"module_type" : "ClangTarget",
"name" : "FXCProcessSpawnSync",
"path" : "Sources/FXCProcessSpawnSync",
"product_memberships" : [
"llbuild2",
"llbuild2fx",
"llbuild2Testing"
],
"sources" : [
"spawner.c"
],
"type" : "library"
},
{
"c99name" : "FXCBLAKE3",
"module_type" : "ClangTarget",
"name" : "FXCBLAKE3",
"path" : "Sources/FXCBLAKE3",
"product_memberships" : [
"llbuild2",
"llbuild2fx",
"llbuild2Testing"
],
"sources" : [
"blake3_all.c",
"blake3_simd_avx2.c",
"blake3_simd_avx512.c",
"blake3_simd_sse41.c"
],
"type" : "library"
},
{
"c99name" : "FXAsyncSupportTests",
"module_type" : "SwiftTarget",
"name" : "FXAsyncSupportTests",
"path" : "Tests/FXAsyncSupportTests",
"product_dependencies" : [
"NIO",
"NIOConcurrencyHelpers",
"Atomics",
"Logging",
"AsyncAlgorithms"
],
"sources" : [
"AdditionalCoverageTests.swift",
"AsyncByteBufferLineSequenceTests.swift",
"BatchingFutureOperationQueue.swift",
"CancellableFutureTests.swift",
"CancellablePromiseTests.swift",
"CancellerTests.swift",
"EventualResultsCacheTests.swift",
"FutureDeduplicatorTests.swift",
"FutureOperationQueueTests.swift",
"Helpers+LogRecorderHandler.swift",
"IntegrationTests.swift",
"OrderManagerTests.swift"
],
"target_dependencies" : [
"FXAsyncSupport"
],
"type" : "test"
},
{
"c99name" : "FXAsyncSupport",
"module_type" : "SwiftTarget",
"name" : "FXAsyncSupport",
"path" : "Sources/FXAsyncSupport",
"product_dependencies" : [
"Atomics",
"NIO",
"NIOCore",
"NIOConcurrencyHelpers",
"NIOPosix",
"NIOFoundationCompat",
"SwiftProtobuf",
"SystemPackage",
"TSCBasic",
"Logging",
"DequeModule",
"AsyncAlgorithms"
],
"product_memberships" : [
"llbuild2",
"llbuild2fx",
"llbuild2Testing"
],
"sources" : [
"AsyncProcess/ChunkSequence.swift",
"AsyncProcess/EOFSequence.swift",
"AsyncProcess/FileContentStream.swift",
"AsyncProcess/NIOAsyncPipeWriter.swift",
"AsyncProcess/ProcessExecutor+Convenience.swift",
"AsyncProcess/ProcessExecutor.swift",
"AsyncProcess/ProcessExit.swift",
"AsyncProcess/ProcessSpawner.swift",
"AsyncProcess/StructuredConcurrencyHelpers.swift",
"CAS/Blake3DataID.swift",
"CAS/DatabaseSpec.swift",
"CAS/InMemoryCASDatabase.swift",
"Futures/BatchingFutureOperationQueue.swift",
"Futures/CancellableFuture.swift",
"Futures/CancellablePromise.swift",
"Futures/Canceller.swift",
"Futures/EventualResultsCache.swift",
"Futures/FutureDeduplicator.swift",
"Futures/FutureOperationQueue.swift",
"Futures/OperationQueue+Extensions.swift",
"Futures/OrderManager.swift",
"Utility/FastData.swift",
"Utility/FutureFileSystem.swift"
],
"target_dependencies" : [
"FXCore",
"FXCBLAKE3",
"FXCProcessSpawnSync"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:a7f4f752e160f6cbd9e0c26490aa43ccd5312d524c4c6d77f8b144559b526afa
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
Done.