Skip to content

audit --max-duration: make the pre-page-rule fetch stage deadline-aware #1327

Closed

Description

@nc9

Follow-up to #1271 (PR #1324). With --max-duration, a request that is still hanging in the pre-page-rule fetch stage (soft-404 and internal-link probes, robots and sitemap checks run before the page loop) when the hard stop arrives cuts the whole rules phase. The report then has maxDuration.siteChecksCut: true and no page findings either, although the pages were fetched.

Acceptance Criteria

  • With a site whose pages are fetched but one URL never answers, a --max-duration run that reaches the hard stop during the pre-page-rule stage still evaluates the page rules on the fetched pages
  • The stage's probes stop at their own deadline inside the margin (max(10% of the budget, 15 s)) instead of being cut with the whole phase, and the report records which probes were skipped
  • maxDuration.siteChecksCut is true only when site-wide checks really did not finish
  • A real-CLI test with a stalled local fixture server covers it, and the docs paragraph on the margin is updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    clienhancementsize: M

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions