Test Case 'ParserTests.testSelfParse' started at 1970-01-09 19:01:59.743
Self-parse tests - processing 327 source files
/home/kebo/swift-syntax/Tests/SwiftParserTest/ParserTests.swift:79: error: ParserTests.testSelfParse : failed - Self-parse tests: file:///home/kebo/swift-syntax/Sources/SwiftParserDiagnostics/ParserDiagnosticMessages.swift failed due to Error Domain=NSCocoaErrorDomain Code=256 "(null)"UserInfo={NSFilePath=/home/kebo/swift-syntax/Sources/SwiftParserDiagnostics/ParserDiagnosticMessages.swift, NSURL=file:///home/kebo/swift-syntax/Sources/SwiftParserDiagnostics/ParserDiagnosticMessages.swift, NSUnderlyingError=Error Domain=NSPOSIXErrorDomain Code=33 "No file descriptors available"}
/home/kebo/swift-syntax/Tests/SwiftParserTest/ParserTests.swift:79: error: ParserTests.testSelfParse : failed - Self-parse tests: file:///home/kebo/swift-syntax/Sources/SwiftParserDiagnostics/Utils.swift failed due to Error Domain=NSCocoaErrorDomain Code=256 "(null)"UserInfo={NSFilePath=/home/kebo/swift-syntax/Sources/SwiftParserDiagnostics/Utils.swift, NSURL=file:///home/kebo/swift-syntax/Sources/SwiftParserDiagnostics/Utils.swift, NSUnderlyingError=Error Domain=NSPOSIXErrorDomain Code=33 "No file descriptors available"}
/home/kebo/swift-syntax/Tests/SwiftParserTest/ParserTests.swift:79: error: ParserTests.testSelfParse : failed - Self-parse tests: file:///home/kebo/swift-syntax/Sources/SwiftParserDiagnostics/MissingNodesError.swift failed due to Error Domain=NSCocoaErrorDomain Code=256 "(null)"UserInfo={NSFilePath=/home/kebo/swift-syntax/Sources/SwiftParserDiagnostics/MissingNodesError.swift, NSURL=file:///home/kebo/swift-syntax/Sources/SwiftParserDiagnostics/MissingNodesError.swift, NSUnderlyingError=Error Domain=NSPOSIXErrorDomain Code=33 "No file descriptors available"}
...
The CI job "Pull request / Test / Swift SDK for Wasm Build (nightly-main - jammy) (pull_request)" keeps failing.
Error log: https://github.com/swiftlang/swift-syntax/actions/runs/27970621243/job/82775581996
According to my experiments, there are two main problems.
Main problems:
Error: Trap: out of bounds memory access--build-system native.ParserTests.testSelfParseis failing (No file descriptors available)wasmtime run --dir / -W max-wasm-stack=16777216 .build/wasm32-unknown-wasip1/release/swift-syntaxPackageTests.xctestsucceeds. (wasmtime 37.0.2)~/WasmKit/.build/release/wasmkit-cli run --dir .build --dir / --stack-size 16777216 .build/wasm32-unknown-wasip1/release/swift-syntaxPackageTests.xctest --filter SwiftParserTest.ParserTests/testSelfParsesucceeds. (WasmKit main branch a0010b6eb445d87b26942466a574e1e8202e2cdb)wasmkit run --dir .build --dir / --stack-size 16777216 .build/wasm32-unknown-wasip1/release/swift-syntaxPackageTests.xctest --filter SwiftParserTest.ParserTests/testSelfParsefails. (WasmKit 0.2.1 included in the Swift toolchain)Minor problems:
ParserTests.testSwiftTestsuiteis failing (No file descriptors available)wasmtime run --dir / -W max-wasm-stack=16777216 .build/wasm32-unknown-wasip1/release/swift-syntaxPackageTests.xctestsucceeds. (wasmtime 37.0.2)~/WasmKit/.build/release/wasmkit-cli run --dir .build --dir / --stack-size 16777216 .build/wasm32-unknown-wasip1/release/swift-syntaxPackageTests.xctest --filter SwiftParserTest.ParserTests/testSwiftTestsuitefails. (WasmKit main branch a0010b6eb445d87b26942466a574e1e8202e2cdb)wasmkit run --dir .build --dir / --stack-size 16777216 .build/wasm32-unknown-wasip1/release/swift-syntaxPackageTests.xctest --filter SwiftParserTest.ParserTests/testSwiftTestsuitefails. (WasmKit 0.2.1 included in the Swift toolchain)