Open akoeplinger opened 2 years ago
Tagging subscribers to this area: @dotnet/area-system-io See info in area-owners.md if you want to be subscribed.
Author: | akoeplinger |
---|---|
Assignees: | - |
Labels: | `area-System.IO` |
Milestone: | - |
Same root cause as what's being fixed in https://github.com/dotnet/runtime/pull/68361?
I don't think it's the same issue.
Tagging subscribers to this area: @dotnet/area-system-io-compression See info in area-owners.md if you want to be subscribed.
Author: | akoeplinger |
---|---|
Assignees: | - |
Labels: | `area-System.IO.Compression`, `untriaged` |
Milestone: | - |
@carlossanlop
I think the user we use to execute tests in Android/iOS/tvOS does not have permission to create symbolic links in those operating systems. I will have to use elevation in those OS.
Test failure has been fixed, and the test method has been reenabled.
The test is failing again -- @carlossanlop can you please disable it again and take a look?
Failures since 6/17 - query in runfo
Rolling builds:
Test output example:
System.IO.IOException : Extracting the Tar entry '/Users/helix-runner/Library/Developer/CoreSimulator/Devices/B689B860-E125-4467-80B3-E8073029AB31/dat' would have resulted in a link target outside the specified destination directory: '/Users/helix-runner/Library/Developer/CoreSimulator/Devices/B689B860-E125-4467-80B3-E8073029AB31/data/Containers/Data/Application/34807FE3-9761-4A8D-95A4-38EDB198D1E0/tmp/5jyza0jc.ucf'
at System.Formats.Tar.TarEntry.ExtractRelativeToDirectory(String destinationDirectoryPath, Boolean overwrite)
at System.Formats.Tar.TarFile.ExtractToDirectoryInternal(Stream source, String destinationDirectoryPath, Boolean overwriteFiles, Boolean leaveOpen)
at System.Formats.Tar.TarFile.ExtractToDirectory(Stream source, String destinationDirectoryName, Boolean overwriteFiles)
at System.Formats.Tar.Tests.TarFile_ExtractToDirectory_Stream_Tests.Extract_LinkEntry_TargetInsideDirectory_Internal(TarEntryType entryType)
at System.Formats.Tar.Tests.TarFile_ExtractToDirectory_Stream_Tests.Extract_HardLinkEntry_TargetInsideDirectory()
at System.Reflection.MethodInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr)
Also, test System.Formats.Tar.Tests.TarReader_ExtractToFile_Tests.ExtractToFile_SpecialFile_Unelevated_Throws fails as well with similar error to the 1st one report in the top post:
System.UnauthorizedAccessException : Access to the path '/private/var/mobile/Containers/Data/Application/607B5A9D-8D94-42C4-8CCD-54BCE7B1B2E9/tmp/j2osgcp1.kpt/output' is denied.
---- System.IO.IOException : Operation not permitted
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at System.Formats.Tar.TarEntry.ExtractAsFifo(String destinationFileName)
at System.Formats.Tar.TarEntry.ExtractToFileInternal(String filePath, String linkTargetPath, Boolean overwrite)
at System.Formats.Tar.TarEntry.ExtractToFile(String destinationFileName, Boolean overwrite)
at System.Formats.Tar.Tests.TarReader_ExtractToFile_Tests.ExtractToFile_SpecialFile_Unelevated_Throws()
at System.Reflection.MethodInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr)
Failures since 6/17 - query in runfo
Rolling builds:
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.
Author: | akoeplinger |
---|---|
Assignees: | carlossanlop |
Labels: | `area-System.IO.Compression`, `os-ios`, `os-tvos` |
Milestone: | 7.0.0 |
@carlossanlop the main issue with test Extract_HardLinkEntry_TargetInsideDirectory was addressed. Thanks!
However, the second similar issue with test ExtractToFile_SpecialFile_Unelevated_Throws is still happening -- see above https://github.com/dotnet/runtime/issues/68360#issuecomment-1159654910
Reopening to keep tracking it. Feel free to split it into another issue if it is more convenient for you.
@carlossanlop given that it fails in each CI run, please disable the test ASAP unless you have high confidence fix. Thanks!
I've opened #71258 to disable this test for tvOS
I'm facing a very similar issue on unconnected PRs (Run) on:
net7.0-Linux-Release-arm64-Mono_Release_LinuxBionic-Windows.10.Amd64.Android.Open The error:
System.UnauthorizedAccessException : Access to the path '/data/local/tmp/htuovavi.iw1/output' is denied.
---- System.IO.IOException : Permission denied
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory) in /_/src/libraries/Common/src/Interop/Unix/Interop.IOErrors.cs:line 16
at Interop.CheckIo(Int64 result, String path, Boolean isDirectory) in /_/src/libraries/Common/src/Interop/Unix/Interop.IOErrors.cs:line 42
at Interop.CheckIo(Int32 result, String path, Boolean isDirectory) in /_/src/libraries/Common/src/Interop/Unix/Interop.IOErrors.cs:line 58
at System.Formats.Tar.TarEntry.ExtractAsFifo(String destinationFileName) in /_/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarEntry.Unix.cs:line 31
at System.Formats.Tar.TarEntry.CreateNonRegularFile(String filePath, String linkTargetPath) in /_/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarEntry.cs:line 461
at System.Formats.Tar.TarEntry.ExtractToFileInternalAsync(String filePath, String linkTargetPath, Boolean overwrite, CancellationToken cancellationToken) in /_/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarEntry.cs:line 425
at System.Formats.Tar.TarEntry.ExtractToFileAsync(String destinationFileName, Boolean overwrite, CancellationToken cancellationToken) in /_/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarEntry.cs:line 261
at System.Formats.Tar.Tests.TarReader_TarEntry_ExtractToFileAsync_Tests.SpecialFile_Unelevated_Throws_Async() in /_/src/libraries/System.Formats.Tar/tests/TarReader/TarReader.TarEntry.ExtractToFileAsync.Tests.Unix.cs:line 37
at System.Formats.Tar.Tests.TarReader_TarEntry_ExtractToFileAsync_Tests.SpecialFile_Unelevated_Throws_Async() in /_/src/libraries/System.Formats.Tar/tests/TarReader/TarReader.TarEntry.ExtractToFileAsync.Tests.Unix.cs:line 41
at System.Formats.Tar.Tests.TarReader_TarEntry_ExtractToFileAsync_Tests.SpecialFile_Unelevated_Throws_Async() in /_/src/libraries/System.Formats.Tar/tests/TarReader/TarReader.TarEntry.ExtractToFileAsync.Tests.Unix.cs:line 41
It looks the same as above, just different platforms. Occurring every time on runtime-staging
run.
Test is disabled, not blocking CI anymore -> removing blocking-clean-ci label.
Newly added test from https://github.com/dotnet/runtime/pull/67883 fails on runtime-extra-platfroms. I haven't investigated whether it is expected, just filing this so I can disable the test with ActiveIssue.
Android fails with
iOS/tvOS Simulators fail with
FYI @carlossanlop