Repository navigation
Test failure System.IO.Tests.Directory_Delete_str_bool.Unix_NotFoundDirectory_ReadOnlyVolume #62034
Copy link
Copy link
Closed
Labels
Milestone
Description
Run: runtime-libraries-coreclr outerloop 20211124.6
Failed test:
net7.0-Linux-Release-x64-CoreCLR_release-RedHat.7.Amd64.Open
- System.IO.Tests.Directory_Delete_str_bool.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.Directory_Delete_str.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.DirectoryInfo_Delete_bool.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.DirectoryInfo_Delete.Unix_NotFoundDirectory_ReadOnlyVolume
net7.0-Linux-Release-x64-CoreCLR_release-Ubuntu.1804.Amd64.Open
- System.IO.Tests.Directory_Delete_str.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.Directory_Delete_str_bool.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.DirectoryInfo_Delete.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.DirectoryInfo_Delete_bool.Unix_NotFoundDirectory_ReadOnlyVolume
net7.0-Linux-Release-x64-CoreCLR_release-SLES.12.Amd64.Open
- System.IO.Tests.Directory_Delete_str.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.Directory_Delete_str_bool.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.DirectoryInfo_Delete.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.DirectoryInfo_Delete_bool.Unix_NotFoundDirectory_ReadOnlyVolume
net7.0-Linux-Release-x64-CoreCLR_release-SLES.15.Amd64.Open
- System.IO.Tests.Directory_Delete_str.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.Directory_Delete_str_bool.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.DirectoryInfo_Delete.Unix_NotFoundDirectory_ReadOnlyVolume
- System.IO.Tests.DirectoryInfo_Delete_bool.Unix_NotFoundDirectory_ReadOnlyVolume
Error message:
Assert.Throws() Failure
Expected: typeof(System.IO.DirectoryNotFoundException)
Actual: typeof(System.IO.IOException): Access to the path '/tmp/Directory_Delete_str_bool_e2szzobu.04s/ReadOnly_FileSystemHelper_104_cc389631/DoesNotExist' is denied.
---- System.IO.IOException : Access to the path '/tmp/Directory_Delete_str_bool_e2szzobu.04s/ReadOnly_FileSystemHelper_104_cc389631/DoesNotExist' is denied.
Stack trace
at System.IO.FileSystem.RemoveEmptyDirectory(String fullPath, Boolean topLevel, Boolean throwWhenNotEmpty) in /_/src/libraries/System.Private.CoreLib/src/System/IO/FileSystem.Unix.cs:line 501
at System.IO.Directory.Delete(String path, Boolean recursive) in /_/src/libraries/System.Private.CoreLib/src/System/IO/Directory.cs:line 304
at System.IO.Tests.Directory_Delete_str_bool.Delete(String path) in /_/src/libraries/System.IO.FileSystem/tests/Directory/Delete.cs:line 226
at System.IO.Tests.Directory_Delete_str.<>c__DisplayClass22_0.<Unix_NotFoundDirectory_ReadOnlyVolume>b__1() in /_/src/libraries/System.IO.FileSystem/tests/Directory/Delete.cs:line 214
----- Inner Stack Trace -----
at System.IO.FileSystem.RemoveEmptyDirectory(String fullPath, Boolean topLevel, Boolean throwWhenNotEmpty) in /_/src/libraries/System.Private.CoreLib/src/System/IO/FileSystem.Unix.cs:line 501
at System.IO.Directory.Delete(String path, Boolean recursive) in /_/src/libraries/System.Private.CoreLib/src/System/IO/Directory.cs:line 304
at System.IO.Tests.Directory_Delete_str_bool.Delete(String path) in /_/src/libraries/System.IO.FileSystem/tests/Directory/Delete.cs:line 226
at System.IO.Tests.Directory_Delete_str.<>c__DisplayClass22_0.<Unix_NotFoundDirectory_ReadOnlyVolume>b__1() in /_/src/libraries/System.IO.FileSystem/tests/Directory/Delete.cs:line 214
Reactions are currently unavailable
Activity
carlossanlop commentedon Nov 29, 2021
Hi @VincentBu , do you know when it started happening? Is it intermittent or is it happening consistently?
carlossanlop commentedon Nov 29, 2021
We haven't introduced any recent changes in code related to directory deletion: https://github.com/dotnet/runtime/commits/09c1a1f7b0c477890b04912d8dd4f742f80faffc/src/libraries/System.Private.CoreLib/src/System/IO
VincentBu commentedon Nov 30, 2021
This is the first time. We have checked the previous work. Since this problem was raised, it will appear every day, which may occur continuously
VincentBu commentedon Dec 3, 2021
Failed again in:runtime-libraries-coreclr outerloop 20211202.6
Failed test:
Error message:
danmoseley commentedon Dec 3, 2021
Expected: typeof(System.IO.DirectoryNotFoundException)
Actual: typeof(System.IO.IOException): Access to the path '/tmp/Directory_Delete_str_bzvbnoah.pap/ReadOnly_FileSystemHelper_104_850771f9/DoesNotExist' is denied.
---- System.IO.IOException : Access to the path '/tmp/Directory_Delete_str_bzvbnoah.pap/ReadOnly_FileSystemHelper_104_850771f9/DoesNotExist' is denied.
It started no later than 11/24.
I suspect #59520 cc @tmds
danmoseley commentedon Dec 3, 2021
This test has
[Trait(XunitConstants.Category, XunitConstants.RequiresElevation)]so it might be that it didn't run during PR validation (?)danmoseley commentedon Dec 3, 2021
@carlossanlop example of how to do such a query
https://engsrvprod.kusto.windows.net/engineeringdata?query=H4sIAAAAAAAEAI1RTW%2fCMAy9I%2fEfLE5UYtPYvZO2ISQmDRiw7ViF1lBDG1dOIlZpP35p2g0OO3BK7Pdh52WDxq7QuMKafu8bDkwajqSzmLRGgU%2bW48xiaYD1XzHL%2fqO%2b8Daw%2fNkSTjkKwpQ0mRwzeIhB82l4M76%2fy6Iz3g6HOIbBVFExOCPwijbnLEDvmr6SOdspO51NSDC1LHWyQpUtdFF%2fcOFKDNpK%2bOBR6PcAllRhQRohBsvGCun9sFJiMDkY1sOlcIViCU10O8GdX9QS67kqMRpdypNn1jvaO1ENfoVZeslvvRZrr3tz6LDxD61HSfMrzJSnkfVPctLttfF%2f5oWbusJxaLQZjn6jHq2tEuvPBpt0a4SiTTRcnxwV2RXjA2%2fuyi1K1HkYo%2fbYZG1YLGxr6OaBMmnTtuqIMP4B9qaBqFoCAAA%3d&web=0
VincentBu commentedon Dec 13, 2021
Failed again in: runtime-libraries-coreclr outerloop 20211212.2
Failed test:
Error message: