Repository navigation
Conversation
…d reason (#1144) orphan-pages, weak-internal-links and no-contextual-inbound skipped a capped crawl with a repeated literal that was not in NOT_CHECKED_SKIP_REASONS, so reports showed the rules as clean and a consumer closing findings on absence closed them. The reason is now CRAWL_CAPPED_SKIP_REASON in core-contracts, with the same text published reports carry, and a not-checked reason: every report shows a Not checked line with a --max-pages hint, the capper keeps the row, and it never resolves an open finding. Signed-off-by: Nik Cubrilovic <[email protected]>
Contributor
Auto-review did not completeThe
Partial findings recovered from the session (incomplete, unverified, and NOT a merge signal): Show partial reviewYou've hit your session limit · resets 7:40am (UTC) |
Contributor
Author
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.
Fixes #1144.
When a crawl stops at its page cap with pages still queued,
links/orphan-pages,links/weak-internal-linksandlinks/no-contextual-inboundskip (#1044, #1128). The skip was correct, but its reason was a literal repeated in all three rules, and it was not inNOT_CHECKED_SKIP_REASONS. Two effects:Change
core-contracts: a newCRAWL_CAPPED_SKIP_REASONconstant holds the reason, with the exact text published reports already carry, so stored reports and existing readers keep matching. It is added toNOT_CHECKED_SKIP_REASONS.reportnot-checked.ts: the reason gets its hint: "Raise the page limit (--max-pages, or crawler.max_pages) so the crawl reaches every page, to check them."NOT_CHECKED_SKIP_REASONS:Not checked:line for these rules;notChecked.reasonlist inconfiguration/output.mdxnames the reason;Tests
rules/tests/no-contextual-inbound.test.ts: all three rules skip withCRAWL_CAPPED_SKIP_REASON. The constant keeps the published text and is a not-checked reason.report/tests/not-checked-2729.test.ts: a capped orphan-pages skip becomes a Not checked entry with its message and the--max-pageshint.publish-cap,publish-metaandsite-query-link-rules-golden(89 pass), plus reportnot-checked-link-targets-726.tsgo --noEmitis clean in core-contracts, rules and report.make validatepasses.The touched rule and report files had oxfmt differences on main already. They are not reformatted here, to keep the diff to the change.
Skill: no change. Cloud follow-up at the next private bump: the private not-checked hint map can name this reason, and the private copy of the literal in
UNOBSERVED_SKIP_REASONSbecomes redundant.