Skip to content

--max-duration does not bound the start-URL redirect probe (6 s budget takes ~10 s) #1853

Closed

Description

@nc9

Found in pub#1852 (#1839). squirrel audit --max-duration does not bound the start-URL redirect probe (packages/crawler/src/seed-redirect.ts, a fixed 10 s timeout that runs before the crawl). With --max-duration 6s against a host that never answers, the audit takes about 10 s, not 6 s. The budget is a promise to the user (and to agents that set it), so the probe should come out of it.

Acceptance Criteria

  • With --max-duration N and a silent start host, the audit ends within N plus its documented wind-down margin; the redirect probe's timeout is the smaller of its own cap and the remaining budget.
  • A test with a silent host and a budget below 10 s shows the run ends at the budget (asserted against the configured budget, not absolute seconds).
  • Runs without --max-duration keep the probe's current 10 s behaviour.
  • The docs for --max-duration say what the budget covers, if they don't already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclisize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions