Repository navigation
feat(connectors): crawl a website by its links when it has no sitemap, keeping robots.txt Crawl-delay - #10553
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryAdds website discovery by following links, with scope checks, page and depth limits, content hashes, and protection against removing pages after an unfinished crawl.
|
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. |
There was a problem hiding this comment.
All reported issues were addressed across 9 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
… and validate links mode within the configured limits A traverse-only start page's redirects keep its include exception, validation crawls with the configured depth and page cap and stops at the first page it would list, crawler-named robots directives split on spaces, and rel=nofollow matches only the exact token.
|
@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 9 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…awler-named valued directive as its value
|
@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 9 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
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)