dotnet / runtime

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

System.IO.Tests.File_Move_Tests.File_Move_Multiple_From_Watched_To_Unwatched_Mac failed #67070

Open danmoseley opened 2 years ago

danmoseley commented 2 years ago

https://github.com/dotnet/runtime/pull/6706 ❌ System.IO.Tests.File_Move_Tests.File_Move_Multiple_From_Watched_To_Unwatched_Mac [Details] [History] [Artifacts]

    System.IO.Tests.File_Move_Tests.File_Move_Multiple_From_Watched_To_Unwatched_Mac(filesCount: 1) [FAIL]
      Assert.Equal() Failure
                 ↓ (pos 0)
      Expected: [Deleted /var/folders/d2/z5_x3q4n2xb_2h6xh···
      Actual:   []
                 ↑ (pos 0)
      Stack Trace:
        /_/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.File.Move.cs(245,0): at System.IO.Tests.File_Move_Tests.FileMove_Multiple_FromWatchedToUnwatched(Int32 filesCount, Boolean skipOldEvents)
        /_/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.File.Move.cs(42,0): at System.IO.Tests.File_Move_Tests.File_Move_Multiple_From_Watched_To_Unwatched_Mac(Int32 filesCount)
        /_/src/mono/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.Mono.cs(386,0): at System.Reflection.RuntimeMethodInfo.InvokeWorker(Object obj, BindingFlags invokeAttr, Span`1 parameters)
  Finished:    System.IO.FileSystem.Watcher.Tests
=== TEST EXECUTION SUMMARY ===

Test has failed 2 out of 3448 runs (0.06%) Failing Configuration net7.0-OSX-Debug-x64-Mono_release-OSX.1200.Amd64.Open

ghost commented 2 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
https://github.com/dotnet/runtime/pull/6706 ❌ System.IO.Tests.File_Move_Tests.File_Move_Multiple_From_Watched_To_Unwatched_Mac [[Details]](https://dev.azure.com/dnceng//public/_build/results?buildId=1678631&view=ms.vss-test-web.build-test-results-tab&runId=46005908&resultId=122408&paneView=debug) [[History]](https://dev.azure.com/dnceng//public/_build/results?buildId=1678631&view=ms.vss-test-web.build-test-results-tab&runId=46005908&resultId=122408&paneView=history) [[Artifacts]](https://dev.azure.com/dnceng//public/_build/results?buildId=1678631&view=ms.vss-test-web.build-test-results-tab&runId=46005908&resultId=122408&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab) ``` ❌ System.IO.Tests.File_Move_Tests.File_Move_Multiple_From_Watched_To_Unwatched_Mac Exception Message Assert.Equal() Failure ↓ (pos 0) Expected: [Deleted /var/folders/d2/z5_x3q4n2xb_2h6xh··· Actual: [] ↑ (pos 0) ``` Test has failed 2 out of 3448 runs (0.06%) Failing Configuration net7.0-OSX-Debug-x64-Mono_release-OSX.1200.Amd64.Open ```
Author: danmoseley
Assignees: -
Labels: `area-System.IO`, `os-mac-os-x`
Milestone: -
jozkee commented 2 years ago

These (File|Directory)_Move_Multiple_From_Watched_To_Unwatched* tests only try once, that's probably why they are being flaky in CI.