dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.63k stars 4.56k forks source link

[mono][tests][eat] System.Threading.Tasks.Extensions.Tests #50722

Open radical opened 3 years ago

radical commented 3 years ago
[02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.NonGeneric_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask))
[02:19:36] info: System.InvalidOperationException : Sequence contains no matching element
[02:19:36] info:    at System.Linq.ThrowHelper.ThrowNoMatchException()
[02:19:36] info:    at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate)
[02:19:36] info:    at System.Threading.Tasks.Tests.ValueTaskTests.NonGeneric_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType)
[02:19:36] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask<>))
[02:19:36] info: System.InvalidOperationException : Sequence contains no matching element
[02:19:36] info:    at System.Linq.ThrowHelper.ThrowNoMatchException()
[02:19:36] info:    at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate)
[02:19:36] info:    at System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType)
[02:19:36] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask<int>))
[02:19:36] info: System.InvalidOperationException : Sequence contains no matching element
[02:19:36] info:    at System.Linq.ThrowHelper.ThrowNoMatchException()
[02:19:36] info:    at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate)
[02:19:36] info:    at System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType)
[02:19:36] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask<string>))
[02:19:36] info: System.InvalidOperationException : Sequence contains no matching element
[02:19:36] info:    at System.Linq.ThrowHelper.ThrowNoMatchException()
[02:19:36] info:    at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate)
[02:19:36] info:    at System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType)
[02:19:36] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[02:19:37] info: Finished:    System.Threading.Tasks.Extensions.Tests.dll
ghost commented 3 years ago

Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.

Issue Details
- [System.Threading.Tasks.Extensions.Tests](https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-50657-merge-fbdd385f15244375b3/System.Threading.Tasks.Extensions.Tests/console.08595662.log?sv=2019-07-07&se=2021-04-25T01%3A56%3A12Z&sr=c&sp=rl&sig=wYlbyPPmVwzBZv0VHWKKRXKSpRm%2FWQqGnMqpIrN0%2BEQ%3D) ``` [02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.NonGeneric_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask)) [02:19:36] info: System.InvalidOperationException : Sequence contains no matching element [02:19:36] info: at System.Linq.ThrowHelper.ThrowNoMatchException() [02:19:36] info: at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate) [02:19:36] info: at System.Threading.Tasks.Tests.ValueTaskTests.NonGeneric_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType) [02:19:36] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask<>)) [02:19:36] info: System.InvalidOperationException : Sequence contains no matching element [02:19:36] info: at System.Linq.ThrowHelper.ThrowNoMatchException() [02:19:36] info: at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate) [02:19:36] info: at System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType) [02:19:36] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask)) [02:19:36] info: System.InvalidOperationException : Sequence contains no matching element [02:19:36] info: at System.Linq.ThrowHelper.ThrowNoMatchException() [02:19:36] info: at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate) [02:19:36] info: at System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType) [02:19:36] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask)) [02:19:36] info: System.InvalidOperationException : Sequence contains no matching element [02:19:36] info: at System.Linq.ThrowHelper.ThrowNoMatchException() [02:19:36] info: at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate) [02:19:36] info: at System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType) [02:19:36] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [02:19:37] info: Finished: System.Threading.Tasks.Extensions.Tests.dll ```
Author: radical
Assignees: -
Labels: `arch-wasm`, `trimming-for-aot`
Milestone: -
dotnet-issue-labeler[bot] commented 3 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

ghost commented 3 years ago

Tagging subscribers to this area: @CoffeeFlux See info in area-owners.md if you want to be subscribed.

Issue Details
- [System.Threading.Tasks.Extensions.Tests](https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-50657-merge-fbdd385f15244375b3/System.Threading.Tasks.Extensions.Tests/console.08595662.log?sv=2019-07-07&se=2021-04-25T01%3A56%3A12Z&sr=c&sp=rl&sig=wYlbyPPmVwzBZv0VHWKKRXKSpRm%2FWQqGnMqpIrN0%2BEQ%3D) ``` [02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.NonGeneric_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask)) [02:19:36] info: System.InvalidOperationException : Sequence contains no matching element [02:19:36] info: at System.Linq.ThrowHelper.ThrowNoMatchException() [02:19:36] info: at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate) [02:19:36] info: at System.Threading.Tasks.Tests.ValueTaskTests.NonGeneric_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType) [02:19:36] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask<>)) [02:19:36] info: System.InvalidOperationException : Sequence contains no matching element [02:19:36] info: at System.Linq.ThrowHelper.ThrowNoMatchException() [02:19:36] info: at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate) [02:19:36] info: at System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType) [02:19:36] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask)) [02:19:36] info: System.InvalidOperationException : Sequence contains no matching element [02:19:36] info: at System.Linq.ThrowHelper.ThrowNoMatchException() [02:19:36] info: at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate) [02:19:36] info: at System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType) [02:19:36] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [02:19:36] fail: [FAIL] System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(valueTaskType: typeof(System.Threading.Tasks.ValueTask)) [02:19:36] info: System.InvalidOperationException : Sequence contains no matching element [02:19:36] info: at System.Linq.ThrowHelper.ThrowNoMatchException() [02:19:36] info: at System.Linq.Enumerable.Single[CustomAttributeData](IEnumerable`1 source, Func`2 predicate) [02:19:36] info: at System.Threading.Tasks.Tests.ValueTaskTests.Generic_AsyncMethodBuilderAttribute_ValueTaskAttributed(Type valueTaskType) [02:19:36] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [02:19:37] info: Finished: System.Threading.Tasks.Extensions.Tests.dll ```
Author: radical
Assignees: -
Labels: `arch-wasm`, `area-VM-meta-mono`, `disabled-test`, `trimming-for-aot`, `untriaged`
Milestone: -
radical commented 3 years ago

Cannot reproduce this after other fixes on https://github.com/dotnet/runtime/pull/51697 .

radical commented 3 years ago

Mistakenly closed. I couldn't see it reproducing, because it has been disabled citing this issue!

MaximLipnin commented 3 years ago

Same error occur on Android AOT

CoffeeFlux commented 3 years ago

Doesn't seem to be wasm-specific. We should try to fix this for 6.

marek-safar commented 3 years ago

This is a minor test issue because we aggressively remove AsyncMethodBuilderAttribute attribute in SPC's ILLink.LinkAttributes.xml. The fix would be to override that with ILLink.Descriptors.xml for this test library.