-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Mono][Test] Wasm-AOT runtime tests failing with Running wasm-aot libraries tests if failing locally with System.InvalidOperationException: Sequence contains more than one element.
#49717
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsRunning wasm-aot libraries tests if failing locally with Tests runtime was built using:
v8 --expose_wasm --stack-trace-limit=1000 runtime.js -- --run WasmTestRunner.dll System.ComponentModel.TypeConverter.Tests.dll -notrait category=OuterLoop -notrait category=failing
fail: 13:20:28.1720210 console.error: System.AggregateException: AggregateException_ctor_DefaultMessage (Sequence contains more than one element)
fail: 13:20:28.1722750 ---> System.InvalidOperationException: Sequence contains more than one element
fail: 13:20:28.1722960
fail: 13:20:28.1723030 Exception_EndOfInnerExceptionStack
fail: 13:20:28.1723270 console.error: program exited (with status: 1), but EXIT_RUNTIME is not set, so halting execution but not exiting the runtime or preventing further async execution (build with EXIT_RUNTIME=1, if you want a true shutdown)
info: console.info: Arguments: --run,WasmTestRunner.dll,System.ComponentModel.TypeConverter.Tests.dll,-notrait,category=OuterLoop,-notrait,category=failing
info: console.debug: MONO_WASM: Initializing mono runtime
info: console.debug: MONO_WASM: ICU data archive(s) loaded, disabling invariant mode
info: console.debug: mono_wasm_runtime_ready fe00e07a-5519-4dfe-b35a-f867dbaf2e28
info: console.info: Initializing.....
info: Assembly-level test framework attribute was not decorated with [TestFrameworkDiscoverer]
info: Throw stacktrace:
info:
info: Error
info: at 171549 (dotnet.js:1599:32)
info: at _emscripten_asm_const_int (dotnet.js:5983:31)
info: at <anonymous>:wasm-function[6363]:0x187445
info: at <anonymous>:wasm-function[5795]:0x16bcd6
info: at <anonymous>:wasm-function[5751]:0x16763d
info: at <anonymous>:wasm-function[55516]:0xf05091
info: at <anonymous>:wasm-function[55519]:0xf063a2
info: at <anonymous>:wasm-function[34640]:0x8d02a5
info: at <anonymous>:wasm-function[34639]:0x8d00c9
info: at <anonymous>:wasm-function[34500]:0x8bbad2
info: at <anonymous>:wasm-function[34541]:0x8bf235
info: at <anonymous>:wasm-function[33647]:0x83ce14
info: at <anonymous>:wasm-function[33641]:0x83bd59
info: at <anonymous>:wasm-function[33640]:0x83baa7
info: at invoke_viiiiiiiiii (dotnet.js:11864:25)
info: at <anonymous>:wasm-function[64882]:0x128563a
info: at invoke_vii (dotnet.js:11666:25)
info: at <anonymous>:wasm-function[64920]:0x128f915
info: at <anonymous>:wasm-function[64868]:0x12843f4
info: at invoke_iiiiii (dotnet.js:11721:32)
info: at <anonymous>:wasm-function[64903]:0x128c67b
info: at invoke_vii (dotnet.js:11666:25)
info: at <anonymous>:wasm-function[64930]:0x12903b7
info: at <anonymous>:wasm-function[64900]:0x12895db
info: at invoke_iii (dotnet.js:11655:32)
info: at <anonymous>:wasm-function[36199]:0x9637e8
info: at invoke_vii (dotnet.js:11666:25)
info: at <anonymous>:wasm-function[45343]:0xc004c8
info: at <anonymous>:wasm-function[36194]:0x961abc
info: at <anonymous>:wasm-function[19876]:0x3b4586
info: at invoke_viii (dotnet.js:11710:25)
info: at <anonymous>:wasm-function[20388]:0x3d055c
info: at <anonymous>:wasm-function[5398]:0x14f2b1
info: at <anonymous>:wasm-function[5377]:0x14d542
info: at <anonymous>:wasm-function[2467]:0xbea46
info: at <anonymous>:wasm-function[2483]:0xbf5b9
info: at <anonymous>:wasm-function[2545]:0xc345e
info: at mono_wasm_invoke_method (<anonymous>:wasm-function[65878]:0x1308bb5)
info: at dotnet.js:1431:22
info: at ccall (dotnet.js:645:18)
info: at Object.invoke_method (dotnet.js:657:12)
info: at Object._call_method_with_converted_args (dotnet.js:9483:30)
info: at Object.call_method (dotnet.js:9443:18)
info: at dotnet.js:9702:29
info: at Object.call_assembly_entry_point (dotnet.js:9709:66)
info: at Object.init (runtime.js:355:24)
info: at Object.config.loaded_cb (runtime.js:241:8)
info: at Object._finalize_startup (dotnet.js:7662:11)
info: at onPendingRequestComplete (dotnet.js:7699:14)
info: at processFetchResponseBuffer (dotnet.js:7714:8)
info: Throw stacktrace:
info:
info: Error
info: at 171549 (dotnet.js:1599:32)
info: at _emscripten_asm_const_int (dotnet.js:5983:31)
info: at <anonymous>:wasm-function[6363]:0x187445
info: at <anonymous>:wasm-function[5795]:0x16bcd6
info: at <anonymous>:wasm-function[5751]:0x16763d
info: at <anonymous>:wasm-function[41776]:0xb179cf
info: at <anonymous>:wasm-function[46222]:0xc3c2ee
info: at <anonymous>:wasm-function[46221]:0xc3c0d4
info: at <anonymous>:wasm-function[45867]:0xc2bbd2
info: at <anonymous>:wasm-function[16935]:0x30d744
info: at invoke_iii (dotnet.js:11655:32)
info: at <anonymous>:wasm-function[64903]:0x128ca39
info: at invoke_vii (dotnet.js:11666:25)
info: at <anonymous>:wasm-function[64930]:0x12903b7
info: at <anonymous>:wasm-function[64900]:0x12895db
info: at invoke_iii (dotnet.js:11655:32)
info: at <anonymous>:wasm-function[36199]:0x9637e8
info: at invoke_vii (dotnet.js:11666:25)
info: at <anonymous>:wasm-function[45343]:0xc004c8
info: at <anonymous>:wasm-function[36194]:0x961abc
info: at <anonymous>:wasm-function[19876]:0x3b4586
info: at invoke_viii (dotnet.js:11710:25)
info: at <anonymous>:wasm-function[20388]:0x3d055c
info: at <anonymous>:wasm-function[5398]:0x14f2b1
info: at <anonymous>:wasm-function[5377]:0x14d542
info: at <anonymous>:wasm-function[2467]:0xbea46
info: at <anonymous>:wasm-function[2483]:0xbf5b9
info: at <anonymous>:wasm-function[2545]:0xc345e
info: at mono_wasm_invoke_method (<anonymous>:wasm-function[65878]:0x1308bb5)
info: at dotnet.js:1431:22
info: at ccall (dotnet.js:645:18)
info: at Object.invoke_method (dotnet.js:657:12)
info: at Object._call_method_with_converted_args (dotnet.js:9483:30)
info: at Object.call_method (dotnet.js:9443:18)
info: at dotnet.js:9702:29
info: at Object.call_assembly_entry_point (dotnet.js:9709:66)
info: at Object.init (runtime.js:355:24)
info: at Object.config.loaded_cb (runtime.js:241:8)
info: at Object._finalize_startup (dotnet.js:7662:11)
info: at onPendingRequestComplete (dotnet.js:7699:14)
info: at processFetchResponseBuffer (dotnet.js:7714:8)
info: Throw stacktrace:
info:
info: Error
info: at 171549 (dotnet.js:1599:32)
info: at _emscripten_asm_const_int (dotnet.js:5983:31)
info: at <anonymous>:wasm-function[6363]:0x187445
info: at <anonymous>:wasm-function[5795]:0x16bcd6
info: at <anonymous>:wasm-function[5751]:0x16763d
info: at <anonymous>:wasm-function[41776]:0xb179cf
info: at <anonymous>:wasm-function[46222]:0xc3c2ee
info: at <anonymous>:wasm-function[46221]:0xc3c0d4
info: at <anonymous>:wasm-function[45867]:0xc2bbd2
info: at <anonymous>:wasm-function[16935]:0x30d744
info: at invoke_iii (dotnet.js:11655:32)
info: at <anonymous>:wasm-function[36199]:0x964f41
info: at invoke_vii (dotnet.js:11666:25)
info: at <anonymous>:wasm-function[45343]:0xc004c8
info: at <anonymous>:wasm-function[36194]:0x961abc
info: at <anonymous>:wasm-function[19876]:0x3b4586
info: at invoke_viii (dotnet.js:11710:25)
info: at <anonymous>:wasm-function[20388]:0x3d055c
info: at <anonymous>:wasm-function[5398]:0x14f2b1
info: at <anonymous>:wasm-function[5377]:0x14d542
info: at <anonymous>:wasm-function[2467]:0xbea46
info: at <anonymous>:wasm-function[2483]:0xbf5b9
info: at <anonymous>:wasm-function[2545]:0xc345e
info: at mono_wasm_invoke_method (<anonymous>:wasm-function[65878]:0x1308bb5)
info: at dotnet.js:1431:22
info: at ccall (dotnet.js:645:18)
info: at Object.invoke_method (dotnet.js:657:12)
info: at Object._call_method_with_converted_args (dotnet.js:9483:30)
info: at Object.call_method (dotnet.js:9443:18)
info: at dotnet.js:9702:29
info: at Object.call_assembly_entry_point (dotnet.js:9709:66)
info: at Object.init (runtime.js:355:24)
info: at Object.config.loaded_cb (runtime.js:241:8)
info: at Object._finalize_startup (dotnet.js:7662:11)
info: at onPendingRequestComplete (dotnet.js:7699:14)
info: at processFetchResponseBuffer (dotnet.js:7714:8)
info: 13:20:28.2122310 Process v8 exited with 1
fail: Application has finished with exit code 1 but 0 was expected
XHarness exit code: 71 (GENERAL_FAILURE)
XHarness artifacts: /Users/naricc/workspace/runtime-wasm-lib-test/artifacts/bin/System.ComponentModel.TypeConverter.Tests/net6.0-Debug/browser-wasm/AppBundle/xharness-output
/Users/naricc/workspace/runtime-wasm-lib-test/eng/testing/tests.targets(117,5): error : One or more tests failed while running tests from 'System.ComponentModel.TypeConverter.Tests'. [/Users/naricc/workspace/runtime-wasm-lib-test/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
Build FAILED.
/Users/naricc/workspace/runtime-wasm-lib-test/eng/testing/tests.targets(117,5): error : One or more tests failed while running tests from 'System.ComponentModel.TypeConverter.Tests'. [/Users/naricc/workspace/runtime-wasm-lib-test/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:05:43.73```
<table>
<tr>
<th align="left">Author:</th>
<td>naricc</td>
</tr>
<tr>
<th align="left">Assignees:</th>
<td>-</td>
</tr>
<tr>
<th align="left">Labels:</th>
<td>
`arch-wasm`, `area-Infrastructure-mono`, `test bug`
</td>
</tr>
<tr>
<th align="left">Milestone:</th>
<td>-</td>
</tr>
</table>
</details> |
@mdh1418 I couldn't find an existing issue for this, so I created one. |
After tracing this a while, it seems like this is the not very helpful error message you get from XUnit if you supply an incompatible list of attributes: https://github.com/xunit/xunit/blob/5d00c2d668705b0f9303a124e0f8c8471e5f1e93/src/xunit.v3.core/Sdk/v3/Framework/XunitTestFrameworkDiscoverer.cs#L40 I am not sure where we are adding these attributes so that every, or most tests, are effected though. |
Fixed. |
Running wasm-aot libraries tests if failing locally with
System.InvalidOperationException: Sequence contains more than one element.
(full error message and stack trace below). This seem to happen with all libraries tests.Tests runtime was built using:
Command to run tests:
Output:
The text was updated successfully, but these errors were encountered: