You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FileSystemWatcher tests on MacOS constantly fail on Outerloop CI run #31383
changed the title [-]FileWatcher tests on MacOS constantly fail on Outerloop CI run[/-][+]FileSystemWatcher tests on MacOS constantly fail on Outerloop CI run[/+]on Nov 4, 2019
dotnet/corefx#40543 didn't fix everything. And these specific tests are always failing Outerloop MacOS CI run making outerloop red and not green. So I will disable these tests against this issue.
dotnet/corefx#40543 only touched Linux implementation. dotnet/corefx#41963 may help. I was planning to look at them but I got distracted with 3.1 investigation.
Thanks! I understand those fixes probably didn't help with this issue. But it's important that we get test failures either fixed or tests disabled so that CI gets to GREEN.
That's why I disabled the tests now. Then later, when someone has the time, they can investigate the failures. But at least CI will be improved for the team since people have to always spend time chasing after RED failures.
yes, I agree. I will setup run in loop and I'll investigate as time permit. One thing we discovered with @aik-jahoda is that you can get events from before you subscribed. I don't know if that is root cause but that behavior is specific to MacOS and we did not find way how to avoid it.
the File_Move_Multiple_From_Watched_To_Unwatched_Mac expect FSEventStream receive old event however it seems it somehow behaves randomly as the error indicates FSEventStream received new events only.
I tried to sync the filesystem however it doesn't affect the FSEventStream at all.
File_Move_Multiple_From_Watched_To_Unwatched_Mac is not part of the outer loop tests.
It seems like System.IO.Tests.FileSystemWatcher_Multiple_Test.FileSystemWatcher_File_Rename_NotAffectEachOther is regression caused by dotnet/corefx#40611. I did not see Outerloop executed on that PR but the run is old. It fails ever since and it is sad we did not notice for such a long time.
We now get Rename event instead of getting Create and Delete.
cc: @carlossanlop@JeremyKuhne @mandawah
As far as File_Move_Multiple_From_Watched_To_Unwatched_Mac it seems like the test assume that we will get events prior to Watcher creation. But in reality we may get them. The coalescing of events depend on timer and perhaps other activities. So we have race condition with system load and perhaps external activities.
I think that if fine - what ever we agreed to. But it is easy for external contributors to miss Outerloop @JeremyKuhne and we should notice failing tests IMHO.
Activity
davidsh commentedon Nov 4, 2019
I plan to disable these tests so that we can have GREEN for CI in Outerloop
[-]FileWatcher tests on MacOS constantly fail on Outerloop CI run[/-][+]FileSystemWatcher tests on MacOS constantly fail on Outerloop CI run[/+]danmoseley commentedon Nov 4, 2019
dotnet/corefx#40543
davidsh commentedon Nov 4, 2019
@wfurt
dotnet/corefx#40543 didn't fix everything. And these specific tests are always failing Outerloop MacOS CI run making outerloop red and not green. So I will disable these tests against this issue.
Disable some FileSystemWatcher tests on MacOS (#42346)
wfurt commentedon Nov 4, 2019
dotnet/corefx#40543 only touched Linux implementation. dotnet/corefx#41963 may help. I was planning to look at them but I got distracted with 3.1 investigation.
aik-jahoda commentedon Nov 4, 2019
dotnet/corefx#41963 doesn't fix this outer loop test
davidsh commentedon Nov 4, 2019
Thanks! I understand those fixes probably didn't help with this issue. But it's important that we get test failures either fixed or tests disabled so that CI gets to GREEN.
That's why I disabled the tests now. Then later, when someone has the time, they can investigate the failures. But at least CI will be improved for the team since people have to always spend time chasing after RED failures.
wfurt commentedon Nov 4, 2019
yes, I agree. I will setup run in loop and I'll investigate as time permit. One thing we discovered with @aik-jahoda is that you can get events from before you subscribed. I don't know if that is root cause but that behavior is specific to MacOS and we did not find way how to avoid it.
danmoseley commentedon Nov 4, 2019
I linked dotnet/corefx#40543 merely because I remembered it touched the same test.
wfurt commentedon Nov 5, 2019
It seems like dotnet/corefx#41963 made it worse. I get failures now when running tests locally.
I will take look.
aik-jahoda commentedon Nov 5, 2019
the
File_Move_Multiple_From_Watched_To_Unwatched_Macexpect FSEventStream receive old event however it seems it somehow behaves randomly as the error indicates FSEventStream received new events only.I tried to sync the filesystem however it doesn't affect the FSEventStream at all.
File_Move_Multiple_From_Watched_To_Unwatched_Macis not part of the outer loop tests.Removing this line will make the test race condition agnostic: https://github.com/dotnet/corefx/blob/a1f8c919ac1280bb235264d5cc81f23b0d117710/src/System.IO.FileSystem.Watcher/tests/Utility/FileSystemWatcherTest.cs#L558
wfurt commentedon Nov 5, 2019
It seems like System.IO.Tests.FileSystemWatcher_Multiple_Test.FileSystemWatcher_File_Rename_NotAffectEachOther is regression caused by dotnet/corefx#40611. I did not see Outerloop executed on that PR but the run is old. It fails ever since and it is sad we did not notice for such a long time.
We now get Rename event instead of getting Create and Delete.
cc: @carlossanlop @JeremyKuhne @mandawah
As far as File_Move_Multiple_From_Watched_To_Unwatched_Mac it seems like the test assume that we will get events prior to Watcher creation. But in reality we may get them. The coalescing of events depend on timer and perhaps other activities. So we have race condition with system load and perhaps external activities.
JeremyKuhne commentedon Nov 5, 2019
As far as the change in events I believe it was this discussion: dotnet/corefx#40611 (comment)
wfurt commentedon Nov 5, 2019
I think that if fine - what ever we agreed to. But it is easy for external contributors to miss Outerloop @JeremyKuhne and we should notice failing tests IMHO.
JeremyKuhne commentedon Nov 5, 2019
Absolutely, just pointing out that the behavior change was expected. :)
stephentoub commentedon Nov 8, 2019
Failed again here:
https://helix.dot.net/api/2019-06-17/jobs/1b698513-91ff-47b1-84a1-c095c8eeb9b4/workitems/System.IO.FileSystem.Watcher.Tests/files/console.d0c0e6dd.log
Please disable the test while it's investigated. Thanks.