Skip to content

Concurrency/async_sequence_existential.swift is failing on main build #80582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Steelskin opened this issue Apr 7, 2025 · 8 comments · Fixed by #80685 · May be fixed by #80825
Open

Concurrency/async_sequence_existential.swift is failing on main build #80582

Steelskin opened this issue Apr 7, 2025 · 8 comments · Fixed by #80685 · May be fixed by #80825
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@Steelskin
Copy link
Contributor

Steelskin commented Apr 7, 2025

Description

On the main toolchain build, this test has been failing consistently for a few builds: Swift(windows-x86_64) :: Concurrency/async_sequence_existential.swift

First failing build: https://ci-external.swift.org/job/swift-main-windows-toolchain/1216/

Additional information

Full failure log:

# RUN: at line 1
't:\\5\\bin\\swift-frontend.exe' -target x86_64-unknown-windows-msvc  -module-cache-path T:\5\swift-test-results\x86_64-unknown-windows-msvc\clang-module-cache -vfsoverlay T:/5/tools/swift\stdlib\windows-vfs-overlay.yaml -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules -swift-version 4  -define-availability 'SwiftStdlib 9999:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999' -define-availability 'SwiftStdlib 5.0:macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2' -define-availability 'SwiftStdlib 5.1:macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0' -define-availability 'SwiftStdlib 5.2:macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4' -define-availability 'SwiftStdlib 5.3:macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0' -define-availability 'SwiftStdlib 5.4:macOS 11.3, iOS 14.5, watchOS 7.4, tvOS 14.5' -define-availability 'SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0' -define-availability 'SwiftStdlib 5.6:macOS 12.3, iOS 15.4, watchOS 8.5, tvOS 15.4' -define-availability 'SwiftStdlib 5.7:macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0' -define-availability 'SwiftStdlib 5.8:macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4' -define-availability 'SwiftStdlib 5.9:macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0' -define-availability 'SwiftStdlib 5.10:macOS 14.4, iOS 17.4, watchOS 10.4, tvOS 17.4, visionOS 1.1' -define-availability 'SwiftStdlib 6.0:macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0' -define-availability 'SwiftStdlib 6.1:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, visionOS 9999' -define-availability 'SwiftStdlib 6.2:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, visionOS 9999' -typo-correction-limit 10  -target x86_64-unknown-windows-msvc C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift -emit-sil -o /dev/null -verify
# executed command: 't:\\5\\bin\\swift-frontend.exe' -target x86_64-unknown-windows-msvc -module-cache-path 'T:\5\swift-test-results\x86_64-unknown-windows-msvc\clang-module-cache' -vfsoverlay 'T:/5/tools/swift\stdlib\windows-vfs-overlay.yaml' -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules -swift-version 4 -define-availability 'SwiftStdlib 9999:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999' -define-availability 'SwiftStdlib 5.0:macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2' -define-availability 'SwiftStdlib 5.1:macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0' -define-availability 'SwiftStdlib 5.2:macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4' -define-availability 'SwiftStdlib 5.3:macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0' -define-availability 'SwiftStdlib 5.4:macOS 11.3, iOS 14.5, watchOS 7.4, tvOS 14.5' -define-availability 'SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0' -define-availability 'SwiftStdlib 5.6:macOS 12.3, iOS 15.4, watchOS 8.5, tvOS 15.4' -define-availability 'SwiftStdlib 5.7:macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0' -define-availability 'SwiftStdlib 5.8:macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4' -define-availability 'SwiftStdlib 5.9:macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0' -define-availability 'SwiftStdlib 5.10:macOS 14.4, iOS 17.4, watchOS 10.4, tvOS 17.4, visionOS 1.1' -define-availability 'SwiftStdlib 6.0:macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0' -define-availability 'SwiftStdlib 6.1:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, visionOS 9999' -define-availability 'SwiftStdlib 6.2:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, visionOS 9999' -typo-correction-limit 10 -target x86_64-unknown-windows-msvc 'C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift' -emit-sil -o /dev/null -verify
# RUN: at line 3
't:\\5\\bin\\swift-frontend.exe' -target x86_64-unknown-windows-msvc  -module-cache-path T:\5\swift-test-results\x86_64-unknown-windows-msvc\clang-module-cache -vfsoverlay T:/5/tools/swift\stdlib\windows-vfs-overlay.yaml -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules -swift-version 4  -define-availability 'SwiftStdlib 9999:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999' -define-availability 'SwiftStdlib 5.0:macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2' -define-availability 'SwiftStdlib 5.1:macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0' -define-availability 'SwiftStdlib 5.2:macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4' -define-availability 'SwiftStdlib 5.3:macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0' -define-availability 'SwiftStdlib 5.4:macOS 11.3, iOS 14.5, watchOS 7.4, tvOS 14.5' -define-availability 'SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0' -define-availability 'SwiftStdlib 5.6:macOS 12.3, iOS 15.4, watchOS 8.5, tvOS 15.4' -define-availability 'SwiftStdlib 5.7:macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0' -define-availability 'SwiftStdlib 5.8:macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4' -define-availability 'SwiftStdlib 5.9:macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0' -define-availability 'SwiftStdlib 5.10:macOS 14.4, iOS 17.4, watchOS 10.4, tvOS 17.4, visionOS 1.1' -define-availability 'SwiftStdlib 6.0:macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0' -define-availability 'SwiftStdlib 6.1:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, visionOS 9999' -define-availability 'SwiftStdlib 6.2:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, visionOS 9999' -typo-correction-limit 10  -target x86_64-unknown-windows-msvc C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift -dump-ast 2>&1 | T:\PythonAMD64-3.9.10\tools\python.exe C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\PathSanitizingFileCheck --allow-unused-prefixes --sanitize BUILD_DIR=T:/5 --sanitize SOURCE_DIR=C:/Users/swift-ci/jenkins/workspace/swift-main-windows-toolchain/swift --ignore-runtime-warnings --use-filecheck t:\5\bin\filecheck.exe  --enable-windows-compatibility C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift
# executed command: 't:\\5\\bin\\swift-frontend.exe' -target x86_64-unknown-windows-msvc -module-cache-path 'T:\5\swift-test-results\x86_64-unknown-windows-msvc\clang-module-cache' -vfsoverlay 'T:/5/tools/swift\stdlib\windows-vfs-overlay.yaml' -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules -swift-version 4 -define-availability 'SwiftStdlib 9999:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999' -define-availability 'SwiftStdlib 5.0:macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2' -define-availability 'SwiftStdlib 5.1:macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0' -define-availability 'SwiftStdlib 5.2:macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4' -define-availability 'SwiftStdlib 5.3:macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0' -define-availability 'SwiftStdlib 5.4:macOS 11.3, iOS 14.5, watchOS 7.4, tvOS 14.5' -define-availability 'SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0' -define-availability 'SwiftStdlib 5.6:macOS 12.3, iOS 15.4, watchOS 8.5, tvOS 15.4' -define-availability 'SwiftStdlib 5.7:macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0' -define-availability 'SwiftStdlib 5.8:macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4' -define-availability 'SwiftStdlib 5.9:macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0' -define-availability 'SwiftStdlib 5.10:macOS 14.4, iOS 17.4, watchOS 10.4, tvOS 17.4, visionOS 1.1' -define-availability 'SwiftStdlib 6.0:macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0' -define-availability 'SwiftStdlib 6.1:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, visionOS 9999' -define-availability 'SwiftStdlib 6.2:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, visionOS 9999' -typo-correction-limit 10 -target x86_64-unknown-windows-msvc 'C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift' -dump-ast
# executed command: 'T:\PythonAMD64-3.9.10\tools\python.exe' 'C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\PathSanitizingFileCheck' --allow-unused-prefixes --sanitize BUILD_DIR=T:/5 --sanitize SOURCE_DIR=C:/Users/swift-ci/jenkins/workspace/swift-main-windows-toolchain/swift --ignore-runtime-warnings --use-filecheck 't:\5\bin\filecheck.exe' --enable-windows-compatibility 'C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift'
# .---command stderr------------
# | C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift:12:12: error: CHECK: expected string not found in input
# |  // CHECK: "error" interface_type="any Error"
# |            ^
# | <stdin>:1:1: note: scanning from here
# | (source_file "C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift"
# | ^
# | <stdin>:7:201: note: possible intended match here
# |  (func_decl decl_context=0x212c8ec6320 range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:11:1 - line:18:1] "test(seq:)" interface_type="(any AsyncSequence) async -> ()" access=internal result="()" thrown_type="<null>"
# |                                                                                                                                                                                                         ^
# | 
# | Input file: <stdin>
# | Check file: C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: (source_file "C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift" 
# | check:12'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             2:  (extension_decl decl_context=0x212c8ec6320 range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:7:1 - line:9:1] "Error" 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             3:  (func_decl decl_context=0x212c8ec8358 range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:8:3 - line:8:20] "printMe()" interface_type="<Self where Self : Error> (Self) -> () -> ()" access=internal captures=(<generic> type=τ_0_0) 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             4:  (parameter "self" decl_context=0x212c8ecc9c8) result="()" thrown_type="<null>" 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5:  (parameter_list range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:8:15 - line:8:16]) 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             6:  (brace_stmt range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:8:18 - line:8:20]))) 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             7:  (func_decl decl_context=0x212c8ec6320 range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:11:1 - line:18:1] "test(seq:)" interface_type="(any AsyncSequence) async -> ()" access=internal result="()" thrown_type="<null>" 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:12'1                                                                                                                                                                                                             ?                                                                                                         possible intended match
# |             8:  (parameter_list range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:11:10 - line:11:33] 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             9:  (parameter "seq" decl_context=0x212c8eccc70 apiName="seq" interface_type="any AsyncSequence")) 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            10:  (brace_stmt range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:11:41 - line:18:1] 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            11:  (do_catch_stmt range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:13:3 - line:17:3] decl_context=0x212c8eccc70 nothrow 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            12:  (body=brace_stmt range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:13:6 - line:15:3] 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
@Steelskin Steelskin added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Apr 7, 2025
@Steelskin
Copy link
Contributor Author

I suspect this is a side effect of one of these 2 commits: b97ec5b or 703126a

These rewrite the diagnostic messages. The test expectations probably need to be updated @tshortli

@tshortli
Copy link
Contributor

tshortli commented Apr 7, 2025

The timing of the test failing does indicate that this is probably fallout from #80560. However, I have no idea what the difference is because the test failure output is pretty useless for debugging this, unfortunately. I ran full tests on this PR, which includes invoking this test on Windows and it passed. I have no idea what would be different about the Windows toolchain build that would make it sensitive to this.

@Steelskin
Copy link
Contributor Author

Here is the output with the recent changes:

# .---command stderr------------
# | C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift:12:12: error: CHECK: expected string not found in input
# |  // CHECK: "error" interface_type="any Error"
# |            ^
# | <stdin>:1:1: note: scanning from here
# | (source_file "C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift"
# | ^
# | <stdin>:7:201: note: possible intended match here
# |  (func_decl decl_context=0x250eb7b1a00 range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:11:1 - line:18:1] "test(seq:)" interface_type="(any AsyncSequence) async -> ()" access=internal result="()" thrown_type="<null>"
# |                                                                                                                                                                                                         ^
# | 
# | Input file: <stdin>
# | Check file: C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: (source_file "C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift" 
# | check:12'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             2:  (extension_decl decl_context=0x250eb7b1a00 range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:7:1 - line:9:1] "Error" 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             3:  (func_decl decl_context=0x250eb7b7e78 range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:8:3 - line:8:20] "printMe()" interface_type="<Self where Self : Error> (Self) -> () -> ()" access=internal captures=(<generic> type=τ_0_0) 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             4:  (parameter "self" decl_context=0x250eb7c1a38) result="()" thrown_type="<null>" 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5:  (parameter_list range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:8:15 - line:8:16]) 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             6:  (brace_stmt range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:8:18 - line:8:20]))) 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             7:  (func_decl decl_context=0x250eb7b1a00 range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:11:1 - line:18:1] "test(seq:)" interface_type="(any AsyncSequence) async -> ()" access=internal result="()" thrown_type="<null>" 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:12'1                                                                                                                                                                                                             ?                                                                                                         possible intended match
# |             8:  (parameter_list range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:11:10 - line:11:33] 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             9:  (parameter "seq" decl_context=0x250eb7c1ce0 apiName="seq" interface_type="any AsyncSequence")) 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            10:  (brace_stmt range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:11:41 - line:18:1] 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            11:  (do_catch_stmt range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:13:3 - line:17:3] decl_context=0x250eb7c1ce0 nothrow 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            12:  (body=brace_stmt range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:13:6 - line:15:3] 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

I think the bug here is that the new output no longer says "error" at any point. Did that get eaten somewhere?

@tshortli
Copy link
Contributor

tshortli commented Apr 8, 2025

Actually, this is the output after my latest changes designed to aid debugging this failure:

# .---command stderr------------
# | C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift:13:12: error: CHECK: expected string not found in input
# |  // CHECK: (var_decl {{.*}} "error" interface_type="any Error"
# |            ^
# | <stdin>:61:14: note: scanning from here
# |  (catch_stmts=array
# |              ^
# | <stdin>:72:2: note: possible intended match here
# |  (opaque_value_expr implicit type="any Error" location=C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:17:5 range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:17:5 - line:17:5] "0x1b6373f8488")
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\test\Concurrency\async_sequence_existential.swift
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            56:  (argument_list implicit labels="isolation:" 
# |            57:  (argument label="isolation" 
# |            58:  (current_context_isolation_expr implicit type="(any Actor)?" location=C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:15:5 range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:15:5 - line:15:5] 
# |            59:  (nil_literal_expr type="(any Actor)?" location=C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:15:5 range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:15:5 - line:15:5] initializer="**NULL**")))))))))))) 
# |            60:  (brace_stmt range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:15:28 - line:15:30]))) 
# |            61:  (catch_stmts=array 
# | check:13'0                  X~~~~~~ error: no match found
# |            62:  (case_stmt range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:16:5 - line:18:3] 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            63:  (case_body_variables=array 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            64:  (var_decl decl_context=0x1b6372f18a0 implicit range=[C:\\Users\\swift-ci\\jenkins\\workspace\\swift-main-windows-toolchain\\swift\\test\\Concurrency\\async_sequence_existential.swift:16:11 - line:16:11] "error" int 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            65: erface_type="any Error" let readImpl=stored immutable 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            66:  (has_storage_attr implicit))) 

https://ci-external.swift.org/job/swift-main-windows-toolchain/1222/

The var_decl named error is there, but apparently it now prints with a random line break in the middle, interfering with the CHECK. Adding the source location must have pushed it over whatever character limit there is here. That's why this only fails during the toolchain build and not during PR testing. In the toolchain build the file paths are the right length to cause this behavior.

This AST dump wrapping behavior is really bad.

@tshortli
Copy link
Contributor

tshortli commented Apr 8, 2025

I suggest we turn this test off in this configuration for now as this behavior is totally bizarre and the new output shows that nothing is actually broken except for how -dump-ast is rendered on this one bot.

@tshortli
Copy link
Contributor

tshortli commented Apr 8, 2025

@compnerd do you have any insight into why this might be happening or have you seen anything like this before? Could it be something weird about how Windows handles flushing llvm::raw_ostream? To reiterate what we know so far:

  • ASTDumper just uses llvm::raw_ostream and AFAICT does not attempt to wrap the output itself
  • This doesn't happen on any of the PR testing bots
  • This doesn't happen when requesting a Windows toolchain build on a PR
  • There are longer lines in the output than the one that has the spurious line break

tshortli added a commit to tshortli/swift that referenced this issue Apr 9, 2025
Unblocks the Windows toolchain build, which is experiencing a weird symptom
that causes this test to fail only in that context. The failure is tracked by
swiftlang#80582.
tshortli added a commit to tshortli/swift that referenced this issue Apr 9, 2025
Unblocks the Windows toolchain build, which is experiencing a weird symptom
that causes this test to fail only in that context. The failure is tracked by
swiftlang#80582.
@tshortli
Copy link
Contributor

tshortli commented Apr 9, 2025

Disabling the test for Windows here: #80663

tshortli added a commit to tshortli/swift that referenced this issue Apr 15, 2025
The fix in swiftlang#80685 (using `-o` to write
the output to a file, instead of relying on stdout/stderr redirection) seems to
have addressed this issue on other bots.

Resolves swiftlang#80582.
@tshortli
Copy link
Contributor

The underlying issue should have been resolved by #80685. I'm now re-enabling the test for Windows using #80825.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels
Projects
None yet
2 participants