-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Draft] Fix hard link creation in tar tests in Android, iOS, tvOS #69416
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
Conversation
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsFixes #68360 My suspicion is that in Android, iOS and tvOS (the only Unix platforms where this test failed) need to be elevated so the hardlink can be created. Draft since I need to test this hypothesis in the CI first.
|
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
src/libraries/System.Formats.Tar/tests/TarFile/TarFile.ExtractToDirectory.Stream.Tests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Formats.Tar/tests/TarFile/TarFile.ExtractToDirectory.Stream.Tests.cs
Outdated
Show resolved
Hide resolved
…zation, mavoid locaal method to improve stacktrace.
…to potential long paths when extracting to temp dir.
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
The test was recently disabled in LinuxBionic. I need to see the CI results to determine what to do there. |
src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarEntry.cs
Outdated
Show resolved
Hide resolved
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
The |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
This PR will end up fixing two bugs. Will resubmit soon. |
Fixes #68360
My suspicion is that in Android, iOS and tvOS (the only Unix platforms where this test failed) need to be elevated so the hardlink can be created.My suspicion was wrong. We cannot elevate in those platforms.
In Android, it's not possible to create hard links so we should skip in that platform.
In iOS/tvOS we should be able to, but the logic that generated the "sanitized" path was not generating it correctly.