Repository navigation
Pin fetch output with golden tests and upgrade htmd and readabilityrs - #6
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Member
|
The golden tests are worth keeping. I’d like to fix three things in the URL rewrite before merging.
|
… image and fragment links readability and base point to
Collaborator
Author
|
Done in the new commit.
Each of the four new tests fails on the previous commit. Since this PR includes #5's commits and the review is here, I'll close #5 in favor of this one, unless you prefer otherwise. |
Member
|
I think this should be merged, and we need an issue opened for the RV tool render() |
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.
Step 1 of the WebFetch report: pin today's output, then upgrade the crates.
Golden tests (
src/fetch/tests-golden.rs, fixtures intests/golden/) compare the whole text of a fetch, header included: an article with links, an image, headings, two code blocks, nested lists, a table, and a blockquote, on the readability path and withraw; a page too short for an article, on the fallback; and theurl:line after a redirect.GOLDEN_BLESS=1rewrites the texts, so a later change to the rendering is reviewed as a diff oftests/golden/.Then htmd 0.5.5 -> 0.5.6 and readabilityrs 0.1.3 -> 0.1.4. The lockfile drops 8 crates (kuchikikiki, indexmap, hashbrown, crc, crc-catalog, equivalent, thiserror 1, thiserror-impl 1). The only change in the goldens is the fix of htmd#138, on the raw path:
-sudo apt updatesudo apt install curl
+sudo apt update
+sudo apt install curl
It shows only with the markup Hugo's Chroma writes (each line in spans that end with the newline), so the fixture uses that.
What the report expected and the goldens show otherwise:
Also tested: a table with 5,000-character cells stays under four times its input size on both paths.