Repository navigation
Conversation
… perf/total-byte-weight counts on both engines #1359 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/streaming-error-page-count-1359
branch
from
November 1, 2026 02:09
1bd2460 to
a94c7c4
Compare
Merged
Contributor
Author
|
Landed in v0.0.154 as nik |
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.
Closes #1359.
The resident (v1) engine counted a 4xx/5xx page with no HTML document (the
EMPTY_PARSED_PAGEit appends) in the per-page denominators ofurl/slug-convention("All 31 page(s)") andperf/total-byte-weight("across 31 pages", the average), and the streaming engine did not. Decision: error pages with no HTML document are not pages of the site's own URLs and have no weight to average, so they are out of both counts, as the weight rule's docs already said ("Error pages ... are not scored"). A 4xx page that has an HTML body is unchanged (it is a document on both engines).slug-conventionlegacy path skips a page with status 400 or more, no document and no page type (orunknown);total-byte-weightfilters the same pages before building its records.streaming-rules-golden.test.ts"edge crawl: injected 4xx": the digit-masking exemption for the two rules is removed, so message, value and expected are compared exactly for every rule. The test fails without the rule change and passes with it.Local: golden (4), slug-convention (21), perf-total-byte-weight-per-page (28), total-byte-weight-lazy-1252 (4), rules tsgo, docs
make validate. Skill: no change needed.nik