Skip to content

Quick-level audit can skip the start URL when sitemap URLs fill the page budget #2127

Closed

Description

@nc9

A quick-level audit can finish without ever fetching the start URL when the site's sitemaps list more URLs than the page budget.

Seen while smoke-testing main (aaa7413) before v0.0.185: squirrel audit https://www.gov.uk --offline --level quick -m 20.

  • The crawl stored 20 pages, all sitemap URLs at depth 0. The start URL https://www.gov.uk/ (the crawl's seed_url) is not among them.
  • Crawl stats: pagesFetched: 20, sitemapDiscoveryTruncated: true, sitemapReadState: "partial", linkDiscoveryOff: true.
  • Effect: every page-level rule misses the home page, and crawl/home-page-unreachable correctly reports "Not checked: this audit did not fetch the home page" on a site whose home page loads fine.

Expected: the start URL is always fetched (first) and counts toward the page budget, whatever the sitemaps hold. The level help says quick covers the "seed and sitemaps".

Acceptance Criteria

  • A quick-level audit whose sitemaps list more URLs than maxPages stores the start URL as a page.
  • On such an audit, crawl/home-page-unreachable passes when the home page loads, rather than skipping with entry-not-fetched.
  • A test with a sitemap larger than maxPages asserts the start URL is fetched and counted in the budget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions