Repository navigation
Conversation
…configured path the crawl did not reach #1428 Signed-off-by: Nik Cubrilovic <[email protected]>
…s, non-HTML, empty shell), bounded note, stopped-crawl log, scope/gate/CLI tests #1428 Signed-off-by: Nik Cubrilovic <[email protected]>
Merged
Contributor
Author
|
Landed in v0.0.149 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 #1428
A
pathsentry ofeeat/about-pageoreeat/privacy-policythat names one page and that the crawl did not reach is now requested once after the crawl, so a page that exists but is not linked (Shopify/pages/*,/policies/*, a JS-only menu) is no longer reported missing.How
configured-pages(core-contractsDiscoveryProbe), declared by both rules, so it is sent only when one of them runs and is turned off bydisable_discovery_probes.--offlinekeeps it, on the audited host only, like the other probes.hasPagefor each concrete configured path (starts with/, notregex:, no space, query or fragment; the same scope check as any URL, so an excluded path is not requested) and requests those not stored, once each, through the discovery probes' per-host gate and egress policy. robots.txt is honoured when the crawl honours it: a disallowed path is not requested.details.probed. It counts only when it did not redirect to another host or to/, is HTML and has at least 10 words: a JSON answer, an empty SPA shell and a redirect to the home page are reported missing with the reason; 404 or any other answer still reports the page missing, and the message says what was probed:No About page found (probed /gone: 404); a robots-disallowed path says so. A probe that got no answer (network error, budget spent) leaves the rule's old behaviour.squirrel crawlandsquirrel auditpass the paths from the rule options.Tests
eeat-configured-pages-probe-1428-e2e.test.ts: local fixture server through the real crawler, store and both engines: unlinked about page and privacy policy found with one request each; thin page is info; 404 reports missing and says probed; robots disallow not requested; probes off sends nothing; a page the crawl reached is not requested again.configuredPagePathsunit tests; the two discovery-probe selection tests updated for the new probe.Review round: false passes closed (redirect to
/, another host, JSON, empty SPA shell), the probed note is capped at 5 paths ("and N more"), a stopped crawl (--max-duration) logs why the probe did not run, and the docs say cloud audits never passconfiguredPagePaths. The issue's AC3 wording is corrected: the discovery probes are not skipped under--passiveor--offline;--offlinekeeps this probe on the audited host.More tests: redirect, JSON and SPA cases with reasons, redirect inside the site to a real page, privacy 404 message, a probed page is not stored, include/exclude scope, per-host delay spacing (mutation checked), and a CLI e2e (
squirrel crawlandsquirrel auditwiring, probes off, no option).Private note: both rules'
meta.solutiontext changed, so the private rule catalog (apps/api/src/generated/rule-catalog.ts) needsbun run generate:rule-catalogon the next gitlink bump.Docs: both rule pages and rule-options. Skill change: none.
nik