Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions Sources/Containerization/LinuxProcess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,8 @@ public final class LinuxProcess: Sendable {

extension LinuxProcess {
func setupIO(listeners: [VsockListener?]) async throws -> [FileHandle?] {
// Nested virtualization (x86_64 CI) is dramatically slower to bring the
// guest vsock listeners up than native arm64 virt, so allow a longer
// window there while keeping the arm64 path tight.
#if arch(x86_64)
let ioTimeout: UInt32 = 30
#else
let ioTimeout: UInt32 = 3
#endif

let handles = try await Timeout.run(seconds: ioTimeout) {
try await withThrowingTaskGroup(of: (Int, FileHandle?).self) { group in
var results = [FileHandle?](repeating: nil, count: 3)
Expand Down
Loading