Repository navigation
feat(connectors): crawl a website by its links when it has no sitemap, keeping robots.txt Crawl-delay - #10553
waleedlatif1 wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
[Medium impact] The changes affect website connector discovery and page-fetch pacing. Fix the link-validation timeout before merging; HTTP header follow restrictions also need attention. FindingsSummaryAdds website discovery by following links, with sitemap fallback, depth and page limits, and shared pacing.
Previous threads were unnumbered, so no numbered classifications are required. The redirect, base-URL, and unreadable-parent findings are addressed. waleedlatif1 accepted redirect and retry hops within one paced page read because per-hop pacing would require another guarded-fetch hook; Greptile withdrew that finding. waleedlatif1 also explicitly accepted bounded, truncated discovery in place of continuing crawl state across listing calls.
|
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…, keeping robots.txt Crawl-delay
a7fc80e to
978ea55
Compare
… never reconcile through an unread page
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…ow in X-Robots-Tag Page reads and Crawl-delay waits take the crawl's signal, so a stalled page cannot hold a sync or validation past its deadline. X-Robots-Tag nofollow/none stops link following, robots directives are parsed as tokens so valued directives such as max-image-preview:none are not read as none, and a start URL outside the include paths is read for its links without being listed.
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
Built on the hardened website connector (#10556): its keyset listing cursor,
holdListing, sitemap discovery, guarded fetches and robots parsing are reused unchanged.auto(default; the sitemap, or following links when the site has none),sitemap, orlinks. Sites without a sitemap, such as published Google Sites, can now be syncedWebsiteDiscoverylike sitemap discovery does, so listing, keyset paging, reconciliation andgetDocumentare the same code. Each in-scope page is read once (four at a time), up to Max Link Depth (default 3, max 10) and Max Pages, within a two-minute crawl deadline. Links come from the whole page, navigation included;rel="nofollow"links andnofollow/nonepages are not followed; every link passes the same host, path, include/exclude and robots.txt scopetruncated(listingCapped), and one where a page could not be read isincomplete(reconciliationUnsafe), so neither removes unlisted pages. Pages that are gone, not HTML, empty or opt out of indexing (meta orX-Robots-Tag) are not listed, though their links are still followedgetDocumentreproduces, so an unchanged page is not fetched again on later syncsCrawl-delay(of the applied group, capped at 10s) spaces every page request of a sync, crawl andgetDocumentalikeType of Change
Testing
connectors/website/website.integration.ts(32 tests, real HTTP servers through the guarded fetch), new: breadth-first crawl within scope, robots.txt, nofollow and depth with each page read once; crawl listing hash matchesgetDocument; auto fallback and validation when there is no sitemap; cap setslistingCapped; an unreadable page setsreconciliationUnsafe; Crawl-delay spacing; a crawl whose first page is gone fails the syncrobots.test.ts: Crawl-delay parsing, group selection and capbun run lint,bun run generate(no drift),check:comment-hygiene,check:test-patterns,check:utils,check:explicit-any,check:organization-egress; full type-check and audits left to CIChecklist
test-auditauthoring gate)