Repository navigation
fix(connectors): harden website connector sitemap, robots and resume handling - #10556
Conversation
…handling - cap sitemap entries per document and stop parsing once the page cap is met - resume listings from the last URL listed so reconciliation survives resumed runs - skip unreadable or excess sitemaps and mark the listing unsafe instead of failing - keep crawler headers and the configured header across same-site redirects - follow RFC 9309 for robots.txt: 4xx allows, cross-host redirects, product token, 500 KiB prefix - decode pages in their declared charset and honor X-Robots-Tag - give validation an overall deadline
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryHardens website discovery, resume cursors, robots rules, and page decoding.
Reviews (4) · Last reviewed commit: "fix(connectors): website robots.txt keep..." · Reviewed by Greptile |
… helpers - a byte order mark decides a page's encoding; meta-declared UTF-16 reads as UTF-8; commented meta tags are ignored - repeated X-Robots-Tag headers never carry another crawler's scope over an unqualified noindex - an oversized robots.txt is cut at its last CR or LF - listing hold and keyset paging are crawler-agnostic helpers
|
@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 7 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
… from attributes only
|
@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 7 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
reconciliationSafe: false. Sites larger than one run's listing budget now get deletions again. Old numeric cursors sort before every URL, so they restart the listing, which is safe.reconciliationUnsafe(orlistingCappedfor the cap). The sync fails only when no pages were found and a sitemap failed.standardredirect policy, so the crawler User-Agent, Accept, and the configured header survive the same-site hops the connector already allows (www/apex, HTTP to HTTPS). Keeping the header there is deliberate: the connector treats those hosts as one site, and a header-auth gateway needs it after the hop.User-agent: SimBot/1.0matches on the product token.<meta charset>, falling back to the shared UTF-8/Windows-1252 decoder.X-Robots-Tag: noindex/none(unqualified or for SimBot) withdraws the page.Type of Change
Testing
connectors/website/website.integration.tsagainst real local HTTP servers through the SSRF-guarded fetch: 23 tests, with new cases for each fix.tscoverconnectors/websiteis clean.check:comment-hygiene,check:utils,check:explicit-any,check:organization-egress,check:test-patterns.Checklist
test-auditauthoring gate)