Skip to content
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

[mono] Tests failed on windows: MonoTests.System.Runtime.Caching.HostFileChangeMonitorTest #34497

Closed
MaximLipnin opened this issue Apr 3, 2020 · 3 comments
Labels
area-System.IO os-windows runtime-mono specific to the Mono runtime untriaged New issue has not been triaged by the area owner

Comments

@MaximLipnin
Copy link
Contributor

MonoTests.System.Runtime.Caching.HostFileChangeMonitorTest tests are disabled in Mono's CoreFX.issues_windows.rsp file and after enabling some of them fail locally:

  • MonoTests.System.Runtime.Caching.HostFileChangeMonitorTest.Constructor_MissingFiles_Handler
  • MonoTests.System.Runtime.Caching.HostFileChangeMonitorTest.Constructor_Duplicates
  • MonoTests.System.Runtime.Caching.HostFileChangeMonitorTest.UniqueId

The output:

MonoTests.System.Runtime.Caching.HostFileChangeMonitorTest.Constructor_Duplicates [FAIL]
System.PlatformNotSupportedException : This API is specific to the way in which Windows handles asynchronous I/O, and is not supported on this platform.
Stack Trace:
    _\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.PlatformNotSupported.cs(25,0): at System.Threading.ThreadPoolBoundHandle.BindHandle(SafeHandle handle)
    _\src\libraries\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.Win32.cs(74,0): at System.IO.FileSystemWatcher.StartRaisingEvents()
    _\src\libraries\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.cs(639,0): at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
    _\src\libraries\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.cs(154,0): at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
    _\src\libraries\System.Runtime.Caching\src\System\Runtime\Caching\FileChangeNotificationSystem.cs(118,0): at System.Runtime.Caching.FileChangeNotificationSystem.System.Runtime.Caching.Hosting.IFileChangeNotificationSystem.StartMonitoring(String filePath, OnChangedCallback onChangedCallback, Object& state, DateTimeOffset& lastWriteTime, Int64& fileSize)
    _\src\libraries\System.Runtime.Caching\src\System\Runtime\Caching\HostFileChangeMonitor.cs(64,0): at System.Runtime.Caching.HostFileChangeMonitor.InitDisposableMembers()
    _\src\libraries\System.Runtime.Caching\src\System\Runtime\Caching\HostFileChangeMonitor.cs(166,0): at System.Runtime.Caching.HostFileChangeMonitor..ctor(IList`1 filePaths)
    _\src\libraries\System.Runtime.Caching\tests\System.Runtime.Caching\HostFileChangeMonitorTest.cs(146,0): at MonoTests.System.Runtime.Caching.HostFileChangeMonitorTest.Constructor_Duplicates()
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(360,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
MonoTests.System.Runtime.Caching.HostFileChangeMonitorTest.UniqueId [FAIL]
System.PlatformNotSupportedException : This API is specific to the way in which Windows handles asynchronous I/O, and is not supported on this platform.
Stack Trace:
    _\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.PlatformNotSupported.cs(25,0): at System.Threading.ThreadPoolBoundHandle.BindHandle(SafeHandle handle)
    _\src\libraries\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.Win32.cs(74,0): at System.IO.FileSystemWatcher.StartRaisingEvents()
    _\src\libraries\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.cs(639,0): at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
    _\src\libraries\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.cs(154,0): at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
    _\src\libraries\System.Runtime.Caching\src\System\Runtime\Caching\FileChangeNotificationSystem.cs(118,0): at System.Runtime.Caching.FileChangeNotificationSystem.System.Runtime.Caching.Hosting.IFileChangeNotificationSystem.StartMonitoring(String filePath, OnChangedCallback onChangedCallback, Object& state, DateTimeOffset& lastWriteTime, Int64& fileSize)
    _\src\libraries\System.Runtime.Caching\src\System\Runtime\Caching\HostFileChangeMonitor.cs(64,0): at System.Runtime.Caching.HostFileChangeMonitor.InitDisposableMembers()
    _\src\libraries\System.Runtime.Caching\src\System\Runtime\Caching\HostFileChangeMonitor.cs(166,0): at System.Runtime.Caching.HostFileChangeMonitor..ctor(IList`1 filePaths)
    _\src\libraries\System.Runtime.Caching\tests\System.Runtime.Caching\HostFileChangeMonitorTest.cs(211,0): at MonoTests.System.Runtime.Caching.HostFileChangeMonitorTest.UniqueId()
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(360,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
MonoTests.System.Runtime.Caching.HostFileChangeMonitorTest.Constructor_MissingFiles_Handler [FAIL]
System.PlatformNotSupportedException : This API is specific to the way in which Windows handles asynchronous I/O, and is not supported on this platform.
Stack Trace:
    _\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.PlatformNotSupported.cs(25,0): at System.Threading.ThreadPoolBoundHandle.BindHandle(SafeHandle handle)
    _\src\libraries\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.Win32.cs(74,0): at System.IO.FileSystemWatcher.StartRaisingEvents()
    _\src\libraries\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.cs(639,0): at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
    _\src\libraries\System.IO.FileSystem.Watcher\src\System\IO\FileSystemWatcher.cs(154,0): at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
    _\src\libraries\System.Runtime.Caching\src\System\Runtime\Caching\FileChangeNotificationSystem.cs(118,0): at System.Runtime.Caching.FileChangeNotificationSystem.System.Runtime.Caching.Hosting.IFileChangeNotificationSystem.StartMonitoring(String filePath, OnChangedCallback onChangedCallback, Object& state, DateTimeOffset& lastWriteTime, Int64& fileSize)
    _\src\libraries\System.Runtime.Caching\src\System\Runtime\Caching\HostFileChangeMonitor.cs(41,0): at System.Runtime.Caching.HostFileChangeMonitor.InitDisposableMembers()
    _\src\libraries\System.Runtime.Caching\src\System\Runtime\Caching\HostFileChangeMonitor.cs(166,0): at System.Runtime.Caching.HostFileChangeMonitor..ctor(IList`1 filePaths)
    _\src\libraries\System.Runtime.Caching\tests\System.Runtime.Caching\HostFileChangeMonitorTest.cs(116,0): at MonoTests.System.Runtime.Caching.HostFileChangeMonitorTest.Constructor_MissingFiles_Handler()
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(360,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

This test will be marked with ActiveIssue in #32592.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.IO untriaged New issue has not been triaged by the area owner labels Apr 3, 2020
@ghost
Copy link

ghost commented Apr 3, 2020

Tagging @carlossanlop as an area owner

@danmoseley danmoseley added runtime-mono specific to the Mono runtime os-windows labels Apr 10, 2020
@ericstj
Copy link
Member

ericstj commented Apr 10, 2020

ThreadPoolBoundHandle, see #34582

@danmoseley
Copy link
Member

Let's just track it all with #34582 and if/when fixing that, they can enable tests from linked issues like this.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.IO os-windows runtime-mono specific to the Mono runtime untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

4 participants