-
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
Test failing: ServiceProviderILEmitContainerTests.GetAsyncService_DisposeAsyncOnSameThread_ThrowsAndDoesNotHangAndDisposeAsyncGetsCalled #104041
Comments
Tagging subscribers to this area: @dotnet/area-extensions-dependencyinjection |
Perhaps this is a case where the IL Emit version of the implementation is created after a certain number of calls (e.g. 3), and there is a concurrency issue with the switch to IL? |
Failed in: runtime-coreclr libraries-pgo 20240804.1 Failed tests:
Error message:
Stack trace:
|
@steveharter does your theory imply a regression or an existing issue in either DI or reflection? |
I don't think that theory is valid after looking at this more. The PR that added the test and it uses the problematic sync-over-async approach to avoid deadlocks. Also, there is a timeout of 10 seconds, but that seems plenty - my machine runs that in a millisecond or so I don't think it's a timeout issue. It's more likely related to sync-over-async. I ran the tests locally 2,000 times without issues. Still investigating; not sure if this occurred in the more distant past but no issue created for it. |
The most recent change that directly modified this code is https://github.com/dotnet/runtime/pull/53325/files which was in v6.0. |
Moving to v10; this may be a test-only issue. If not, the workaround is to add a synchronous |
@steveharter Reasoning
Options:
|
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=719926
Build error leg or test failing: Microsoft.Extensions.DependencyInjection.Tests.ServiceProviderILEmitContainerTests.GetAsyncService_DisposeAsyncOnSameThread_ThrowsAndDoesNotHangAndDisposeAsyncGetsCalled
Pull request: #103968
Error Message
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=719926
Error message validated:
[Microsoft.Extensions.DependencyInjection.Tests.ServiceProviderILEmitContainerTests.GetAsyncService_DisposeAsyncOnSameThread_ThrowsAndDoesNotHangAndDisposeAsyncGetsCalled [FAIL]
]Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 6/26/2024 2:56:25 PM UTC
Report
Summary
The text was updated successfully, but these errors were encountered: