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 example digests, additional checks, compute_headers_buffer() cleanup #67

Merged
merged 1 commit into from
Mar 30, 2019

Conversation

ikreymer
Copy link
Member

@ikreymer ikreymer commented Jan 26, 2019

This started as a fix for the incorrect digests in example.warc and example.warc.gz, but also ended up adding additional per-file tests to ensure all example digests (except for those marked as skip) are valid.

Started before the digest checking tool from @wumpus was ready, but then refactored to use the new cli, and moved all the digest checking tests to new test file.

Also includes a leftover cleanup: the headers buffer computation is now directly in StatusAndHeaders via compute_headers_buffer() instead of in WarcWriter

- tests: fix incorrect digests for example.warc, example.warc.gz
- ensure each example file is checked to ensure no invalid digests (and no checks for arc files)
- move all digest checking to test_check_digest_examples.py

headers buffer cleanup: move headers buffer computation directly into StatusAndHeaders via compute_headers_buffer() instead of in warcwriter
@ikreymer ikreymer requested a review from N0taN3rd March 25, 2019 03:55
Copy link
Contributor

@N0taN3rd N0taN3rd left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@ikreymer ikreymer merged commit a9485eb into develop Mar 30, 2019
@ikreymer ikreymer deleted the digest-fix-more-checks branch April 15, 2019 05:10
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

2 participants