dotnet / runtime

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

[libraries][MacCatalyst] System.IO.FileSystem.Watcher NonZeroTimeout_NoActivity_TimesOut failure #58418

Open mdh1418 opened 3 years ago

mdh1418 commented 3 years ago
System.IO.Tests.WaitForChangedTests.NonZeroTimeout_NoActivity_TimesOut(changeType: Created, enabledBeforeWait: True)
    Assert.Equal() Failure\nExpected: 0\nActual:   1

Build: https://dev.azure.com/dnceng/public/_build/results?buildId=1329092&view=logs&j=3a31f037-b056-5f1b-7dc0-d7edb248100e&t=6f68142f-0a7c-54ea-feaf-6db573804c2c

ghost commented 3 years ago

Tagging subscribers to this area: @dotnet/area-system-io See info in area-owners.md if you want to be subscribed.

Issue Details
``` System.IO.Tests.WaitForChangedTests.NonZeroTimeout_NoActivity_TimesOut(changeType: Created, enabledBeforeWait: True) Assert.Equal() Failure\nExpected: 0\nActual: 1 ``` Build: https://dev.azure.com/dnceng/public/_build/results?buildId=1329092&view=logs&j=3a31f037-b056-5f1b-7dc0-d7edb248100e&t=6f68142f-0a7c-54ea-feaf-6db573804c2c
Author: mdh1418
Assignees: -
Labels: `area-System.IO`, `untriaged`
Milestone: 7.0.0
adamsitnik commented 3 years ago

cc @Jozkee

akoeplinger commented 3 years ago

Looks like this only fails on MacCatalyst arm64, but not x64.

adamsitnik commented 3 years ago

Looks like this only fails on MacCatalyst arm64, but not x64.

@akoeplinger does it mean that we would need macbook M1 to repro it?

akoeplinger commented 3 years ago

Yes.

danmoseley commented 2 years ago

Again in https://github.com/dotnet/runtime/pull/66992

System.IO.Tests.WaitForChangedTests.NonZeroTimeout_NoActivity_TimesOut [Details] [History] [Artifacts] Data Driven SubResults ❌ System.IO.Tests.WaitForChangedTests.NonZeroTimeout_NoActivity_TimesOut Exception Message Assert.Equal() Failure Expected: 0 Actual: 1 Pass Rate Test has failed 5 out of 33591 runs (0.01%) Failing Configuration net7.0-OSX-Debug-x64-CoreCLR_checked-OSX.1200.Amd64.Open

danmoseley commented 2 years ago

It's odd as it seems just a getter/setter validation.

https://github.com/dotnet/runtime/blob/baffb7107f4f2b11e7ff40859b2c3f4782ada791/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.WaitForChanged.cs#L121-L123