Skip to content

Fix tar checksum calculation bug - #72139

Merged
carlossanlop merged 4 commits into
dotnet:mainfrom
carlossanlop:TarTests
Jul 14, 2022
Merged

carlossanlop merged 4 commits into
dotnet:mainfrom
carlossanlop:TarTests

Conversation

@carlossanlop

Copy link
Copy Markdown
Contributor

Commit 1959b35: Fix tar checksum calculation bug

I noticed that after rewriting some of the code to adapt it to the async methods, I accidentally added the final checksum instead of overriding it. I fixed it, and make sure to add a bunch of checksum calculation tests for different entry types and formats. Made sure to reuse as much code as possible in the tests.

Commit 4200f2e: Rename TarEnrty test files

I noticed some test files had the original classnames with the format at the end (TarEntryGnu, TarEntryPax...). I renamed it to the official name we approved (GnuTarEnty, PaxTarEntry...).

Commit 2016fbd: Merge await using declarations with usages

Some of the tests I submitted in the PR that implemented the Async methods, were still awaiting IAsyncDisposable objects in two lines. I just merged them into a single line.

@carlossanlop carlossanlop added this to the 7.0.0 milestone Jul 13, 2022
@carlossanlop carlossanlop self-assigned this Jul 13, 2022
@ghost

ghost commented Jul 13, 2022

Copy link
Copy Markdown

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

Issue Details

Commit 1959b35: Fix tar checksum calculation bug

I noticed that after rewriting some of the code to adapt it to the async methods, I accidentally added the final checksum instead of overriding it. I fixed it, and make sure to add a bunch of checksum calculation tests for different entry types and formats. Made sure to reuse as much code as possible in the tests.

Commit 4200f2e: Rename TarEnrty test files

I noticed some test files had the original classnames with the format at the end (TarEntryGnu, TarEntryPax...). I renamed it to the official name we approved (GnuTarEnty, PaxTarEntry...).

Commit 2016fbd: Merge await using declarations with usages

Some of the tests I submitted in the PR that implemented the Async methods, were still awaiting IAsyncDisposable objects in two lines. I just merged them into a single line.

Author: carlossanlop
Assignees: carlossanlop
Labels:

area-System.IO

Milestone: 7.0.0

Comment thread src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarHeader.Write.cs Outdated

@eerhardt eerhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@carlossanlop
carlossanlop merged commit dd92598 into dotnet:main Jul 14, 2022
@carlossanlop
carlossanlop deleted the TarTests branch July 14, 2022 22:43
@ghost ghost locked as resolved and limited conversation to collaborators Aug 14, 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.

3 participants