Skip to content

tests/krate/publish: Fix new_krate_tarball_with_hard_links() #3065

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

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 3, 2020

The test was receiving "too large when decompressed" because of a broken header checksum, which was mistakenly converted into this error message, because we assume that every entries() error is coming from our LimitErrorReader. This commit moves the checksum calculation to the right place, which causes the test to now test the correct condition in our verify_tarball() function.

r? @pietroalbini

@bors
Copy link
Contributor

bors commented Dec 13, 2020

☔ The latest upstream changes (presumably #3066) made this pull request unmergeable. Please resolve the merge conflicts.

Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:

@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author

The test was receiving "too large when decompressed" because of a broken header checksum, which was mistakenly converted into this error message, because we assume that every `entries()` error is coming from our `LimitErrorReader`.  This commit moves the checksum calculation to the right place, which causes the test to now test the correct condition in our `verify_tarball()` function.
@pietroalbini
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Dec 14, 2020

📌 Commit f3469ed has been approved by pietroalbini

@bors
Copy link
Contributor

bors commented Dec 14, 2020

⌛ Testing commit f3469ed with merge 4c85566...

@bors
Copy link
Contributor

bors commented Dec 14, 2020

☀️ Test successful - checks-actions
Approved by: pietroalbini
Pushing 4c85566 to master...

@bors bors merged commit 4c85566 into rust-lang:master Dec 14, 2020
@Turbo87 Turbo87 deleted the fix-hard-link-test branch December 23, 2020 09:44
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.

4 participants