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

Check: check sizes of packs from index and packheader #3082

Merged
merged 3 commits into from
Nov 14, 2020

Conversation

aawsome
Copy link
Contributor

@aawsome aawsome commented Nov 10, 2020

What does this PR change? What problem does it solve?

Adds checks to the check command that the pack file sizes match to the sizes computed by the index and the pack header.

Was the change discussed in an issue or in the forum before?

See discussion in #3048

Checklist

@fd0
Copy link
Member

fd0 commented Nov 13, 2020

I'm very sorry about the broken CI, it should be fixed on master. Can you rebase?

@aawsome
Copy link
Contributor Author

aawsome commented Nov 13, 2020

Is now rebased - all test have passed.

Copy link
Member

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

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

I've a few comments on cosmetic issues, besides that the code is fine.

changelog/unreleased/pull-3048 Show resolved Hide resolved
internal/checker/checker.go Show resolved Hide resolved
internal/checker/checker.go Outdated Show resolved Hide resolved
internal/checker/checker.go Outdated Show resolved Hide resolved
internal/checker/checker.go Outdated Show resolved Hide resolved
Copy link
Member

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for implementing the extra checks!

Now we just have to wait and see how hopefully uncommon truncated pack files are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants