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

Fix Tar test failure in Apple OSs due to paths too long and using the wrong Tar entry format #71115

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

carlossanlop
Copy link
Member

@carlossanlop carlossanlop commented Jun 22, 2022

Fixes #68360 (failed again, in runtime-extra-platforms)

Failure log example: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-70869-merge-94a11d3c9e2e440fac/System.Formats.Tar.Tests/1/console.0b65156e.log?helixlogtype=result

The new issue was that the test was creating a UstarTarEntry. The V7 and Ustar formats do not have a way to handle long paths (the limit is 100 bytes). In Apple OSs, the TempDirectory gets created in a folder with a long name that surpasses the 100 bytes.

I fixed the tests by only verifying them in Gnu and Pax, which are formats that do support long paths.

I also made sure to test in the rest of the OSs with long paths, so that not only runtime-extra-platforms runs this scenario.

@carlossanlop carlossanlop added this to the 7.0.0 milestone Jun 22, 2022
@carlossanlop carlossanlop self-assigned this Jun 22, 2022
@ghost
Copy link

ghost commented Jun 22, 2022

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #68360

The new issue was that the test was creating a UstarTarEntry. The V7 and Ustar formats do not have a way to handle long paths (the limit is 100 bytes). In Apple OSs, the TempDirectory gets created in a folder with a long name that surpasses the 100 bytes.

I fixed the tests by only verifying them in Gnu and Pax, which are formats that do support long paths.

I also made sure to test in the rest of the OSs with long paths, so that not only runtime-extra-platforms runs this scenario.

Author: carlossanlop
Assignees: carlossanlop
Labels:

area-System.IO

Milestone: 7.0.0

@carlossanlop
Copy link
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @carlossanlop !

@carlossanlop carlossanlop merged commit 7e46936 into dotnet:main Jun 22, 2022
@carlossanlop carlossanlop deleted the LongLinks branch June 22, 2022 15:21
@ghost ghost locked as resolved and limited conversation to collaborators Jul 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract_HardLinkEntry_TargetInsideDirectory test from System.Formats.Tar.Tests fails on Android/iOS/tvOS
2 participants