Add test coverage for System.Formats.Tar APIs#123989
Draft
Conversation
Co-authored-by: rzikm <32671551+rzikm@users.noreply.github.com>
Co-authored-by: rzikm <32671551+rzikm@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Address feedback for Tar APIs implementation
Add 6 test coverage items for System.Formats.Tar APIs
Feb 4, 2026
This was referenced Feb 4, 2026
rzikm
reviewed
Feb 4, 2026
src/libraries/System.Formats.Tar/tests/TarEntry/TarEntry.AdditionalCoverage.Tests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Formats.Tar/tests/TarEntry/TarEntry.AdditionalCoverage.Tests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Formats.Tar/tests/TarEntry/TarEntry.AdditionalCoverage.Tests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Formats.Tar/tests/TarEntry/TarEntry.AdditionalCoverage.Tests.cs
Outdated
Show resolved
Hide resolved
…est file Co-authored-by: rzikm <32671551+rzikm@users.noreply.github.com>
Copilot
AI
changed the title
Add 6 test coverage items for System.Formats.Tar APIs
Add test coverage for System.Formats.Tar APIs
Feb 4, 2026
Member
|
@copilot There seem to be test failures, can you investigate? |
Co-authored-by: rzikm <32671551+rzikm@users.noreply.github.com>
Contributor
Author
Fixed in commit 1e738b3. The The fix: Calculate the checksum by treating bytes 148-155 (the checksum field) as spaces, then write the calculated checksum to that location. This follows the tar header specification. |
rzikm
reviewed
Feb 5, 2026
src/libraries/System.Formats.Tar/tests/TarReader/TarReader.GetNextEntry.Tests.cs
Show resolved
Hide resolved
…orted_EntryType test Co-authored-by: rzikm <32671551+rzikm@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completed: Add Test Coverage for System.Formats.Tar APIs
Summary
Added documentation comments to the
Read_Archive_With_Unsupported_EntryTypetest explaining what each tar header field is being set:All 4 tests now provide comprehensive coverage with clear documentation.
Original prompt
This section details on the original issue you should resolve
<issue_title>Tar APIs pending feedback to address</issue_title>
<issue_description>Initial PR changes were introduced here: #67883
The following is pending feedback I need to address (not urgent, for 8.0, mostly just additional testing coverage):
Perf improvements:
Additional test coverage:
Done:
.\. Tar entries should be able to handle paths that begin with "./", including the root path itself #70516Formatdetection in the reader when an archive has entries of multiple formats. SharpCompress and 7-zip handle this, we should too.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.