Skip to content

chore(cli): remove the dead legacy sitemap walk in apps/cli/src/crawl #688

Closed

Description

@nc9

Summary. apps/cli/src/crawl/sitemaps.ts is an older copy of the sitemap walk. No production code imports it (apps/cli/src/crawl/index.ts re-exports it, and nothing imports that); only apps/cli/tests/graph/processors/discovery/discover-sitemaps.test.ts and apps/cli/tests/crawler/fetch-deadline.test.ts do. The real walk is packages/crawler/src/sitemaps.ts. The copy still reads bodies with response.text() and lacks the gzip, size-limit and catch-all handling from #662 / #670 (PR #686), so anyone who finds it by searching for a sitemap error string edits the wrong file.

Acceptance Criteria

  • apps/cli/src/crawl/sitemaps.ts and the unused apps/cli/src/crawl/index.ts re-export are removed, or the CLI imports the crawler package's walk instead.
  • The two CLI test files either move to the crawler package's walk or are deleted where packages/crawler/tests already covers the same behaviour.
  • grep -r "Unknown sitemap format" apps packages --include=*.ts finds only packages/crawler (and tests).

Activity

  1. added
    P3
    size: S
    on Oct 12, 2026
  2. nc9 commented on Oct 15, 2026

    @nc9
    ContributorAuthor

    Done by #782 (#756): apps/cli/src/crawl/sitemaps.ts, robots.ts and the index.ts re-export are deleted. The CLI's sitemap tests moved to packages/crawler/tests (sitemap parsing, the fetch deadline), or were dropped where a crawler test covers the same case. git grep "Unknown sitemap format" on main now finds only packages/crawler and its tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3choresize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions