-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Sockets tests SendFileGetsCanceledByDispose and AcceptGetsCanceledByDispose - throw NotSupportedException - on AppleTV/iOS #73536
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsRegression as of 8/4 - happens in each Rolling run and some PRs with 7, 14, or 21 failures (based on which legs ran): Affected tests:
Failure:
let failedTests = (testNameSubstring : string, methodName : string, messageSubstr: string, includePR : bool, includePassedOnRerun : bool) {
cluster('engsrvprod.kusto.windows.net').database('engineeringdata').AzureDevOpsTests
| where TestName contains testNameSubstring
| where includePassedOnRerun or (Outcome == 'Failed')
| extend startOfTestName = indexof_regex(TestName, @"[^.]+$")
| extend Method = substring(TestName, startOfTestName)
| extend Type = substring(TestName, 0, startOfTestName - 1)
| project-away startOfTestName
| where (methodName == '') or (Method == methodName)
| where Message contains messageSubstr
| distinct JobId, WorkItemId, Message, StackTrace, Method, Type, Arguments, Outcome
| join kind=inner (cluster('engsrvprod.kusto.windows.net').database('engineeringdata').Jobs
| where ((Branch == 'refs/heads/main') or (Branch == 'refs/heads/master') or (includePR and (Source startswith "pr/")))
| where Type startswith "test/functional/cli/"
and not(Properties contains "runtime-staging")
| where Branch <> 'refs/pull/73374/merge'
| summarize arg_max(Finished, Properties, Type, Branch, Source, Started, QueueName) by JobId
| project-rename JobType = Type) on JobId
| extend PropertiesJson = parse_json(Properties)
| extend OS = replace_regex(tostring(PropertiesJson.operatingSystem), @'\((.*)\).*|([^\(].*)', @'\1\2')
| extend Runtime = iif(PropertiesJson.runtimeFlavor == "mono", "Mono", iif(PropertiesJson.DefinitionName contains "coreclr", "CoreCLR", ""))
| extend TargetBranch = extractjson("$.['System.PullRequest.TargetBranch']", Properties)
| extend Architecture = PropertiesJson.architecture
| extend Scenario = iif(isempty(PropertiesJson.scenario), "--", PropertiesJson.scenario)
//| extend DefinitionName = PropertiesJson.DefinitionName
| project-away PropertiesJson
};
failedTests(
'System.Net.Sockets.Tests', //testNameSubstring
'', //methodName
'NotSupportedException', //messageSubstr
true, //includePR
true); //includePassedOnRerun
|
These tests are significantly impacting Rolling runs and CI overall. Please disable the tests ASAP. Note that similar errors first appeared in unmerged PRs: #73258 and #73374 which both seem related -- @directhex perhaps you might know what's going on? cc @steveisok |
I guess this is at: runtime/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs Lines 2981 to 2984 in 9929753
So on these platforms the new cases added in #72000 throw because we can't determine the runtime/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs Lines 177 to 178 in 9929753
I'm not sure what happens in the @antonfirsov can you take a look? I'm still on leave for a week. |
There are plenty of indications that UNIX Domain Sockets are not actually supported on tvOS/iOS, and only work in the simulator by accident. The PRs you mention are part of the investigation in that regard. Waiting on some test results from Alex to determine whether the whole of UDS should be PNSE on one or both of those OSes.
|
@directhex this is about normal sockets not Unix Domain Sockets. I think @tmds's investigation makes sense and this is due to new cases added in #72000. @antonfirsov @wfurt would you mind taking a look? |
I think we should disable the tests on affected platforms. I don't know why the UDS would not be connected. The second link make sense only when |
OK, I've caught up with what's going on now. I'll ActiveIssue those with this bug. |
@directhex thanks! Looking forward for the tests to be disabled. |
The tests were disabled in #73374 |
With the test being disabled, I am removing the blocking-clean-ci label, thanks |
Regression as of 8/4 - happens in each Rolling run and some PRs with 7, 14, or 21 failures (based on which legs ran):
Affected tests:
SendFileGetsCanceledByDispose
System.Net.Sockets.Tests.SendFile_Apm
System.Net.Sockets.Tests.SendFile_CancellableTask
System.Net.Sockets.Tests.SendFile_Task
AcceptGetsCanceledByDispose
System.Net.Sockets.Tests.AcceptApm
System.Net.Sockets.Tests.AcceptCancellableTask
System.Net.Sockets.Tests.AcceptEap
System.Net.Sockets.Tests.AcceptTask
Failure:
The text was updated successfully, but these errors were encountered: