Repository navigation
feat(rules): links/broken-links counts refused and rate-limited targets in its coverage details - #1694
Closed
nc9 wants to merge 1 commit into
Closed
feat(rules): links/broken-links counts refused and rate-limited targets in its coverage details#1694nc9 wants to merge 1 commit into
nc9 wants to merge 1 commit into
Conversation
…ts in its coverage details #1679 Signed-off-by: Nik Cubrilovic <[email protected]>
Contributor
Author
|
Landed on main as 92e071a (later commits there carry the review fixes). Closing this draft as superseded. 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 #1679.
Every
links/broken-linksrow (fail, pass, skipped) now carriesrefusedTargets(401, 403, a bot-wall challenge) andrateLimitedTargets(429, an unverified throttle) in its coverage details. Distinct targets, normalized likelinkTargets, so/a,/a/and/a#xare one and a target linked from many pages counts once. Nothing else changes: items, messages, status and skip reasons are as before.Why: those targets are skipped before they reach
unfetchedTargets, solinkTargets - unfetchedTargetsover-counts what was observed. A consumer (the cloud's link coverage record, repo#2729) can now subtract both to a true known count.LINK_COVERAGE_DETAIL_KEYS, which the publish capper keeps whole at every tier and the diff strips from its output, so they survive publish and never read as a changed finding.rules/links/broken-linkslists the two counts and how to get the observed count. CHANGELOG bullet under Unreleased.Acceptance criteria
broken-linkscheck'sdetailscarries both counts as whole numbers, 0 when none:broken-links-refused-counts-1679.test.ts/a,/a/and/a#xone target: same filerate-limited-links,broken-links-section,broken-links-reliability-836, the 726 e2e andpublish-cappass; only the exact-details expectations gained the two keysChecks
tsgo (core-contracts, rules, audit-engine, cli), root lint, cli format:check,
make validate. Rules and engine tests run singly under a temp HOME. No JSON schema field was added (details are free-form), so no schema version bump.Agent skill and docs
detailskeys, and an agent reads a check's details generically; nothing about how it should act differs.docs/rules/links/broken-links.mdxlistsrefusedTargetsandrateLimitedTargetsand how to compute the observed count: present.