Skip to content

fix(audit-engine,crawler,cli): --max-duration skips parsing a page over 5 MiB #1332 - #1370

Closed
nc9 wants to merge 5 commits into
mainfrom
fix/max-duration-large-page-1332
Closed

nc9 wants to merge 5 commits into
mainfrom
fix/max-duration-large-page-1332

Conversation

@nc9

@nc9 nc9 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Closes #1332

Depends on #1368 (the first commit here is that PR's head; rebase after it merges, then this is one commit).

  • Budgeted runs only: the crawler stores a page over 5 MiB without parsing it (no links), the streaming rules skip it, and maxDuration.pagesNotEvaluated counts it. A run without --max-duration is unchanged.
  • Constant MAX_DURATION_MAX_PAGE_BYTES in utils; "Limits" paragraph in docs/cli/audit.mdx and CHANGELOG updated.
  • Real-CLI e2e with a 6 MB page: partial with pagesNotEvaluated >= 1, inside budget plus margin; and the same site without the flag audits it normally.

Skill change: none.

nik

nc9 added 2 commits October 31, 2026 05:57
… at their own deadline and are listed in the report #1327

Signed-off-by: Nik Cubrilovic <[email protected]>
…ine, cloud steps are bounded, skipped only with work to do, 3 s page-rules window #1327

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the fix/max-duration-large-page-1332 branch from 1e5bf83 to 93fe1ba Compare October 30, 2026 19:30
nc9 added 3 commits October 31, 2026 07:27
…-host delay, cloaking skipped only with paths, docs scope #1327

Signed-off-by: Nik Cubrilovic <[email protected]>
…ate a page over 5 MiB; counted in pagesNotEvaluated #1332

Signed-off-by: Nik Cubrilovic <[email protected]>
… reason and list for pages too large, dense-page e2e, docs #1332

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9

nc9 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.145 as ec1a5b78 31f5bacb via #1377. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.145. Closing this original.

nik

@nc9 nc9 closed this Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audit --max-duration: bound the CPU cost of one very large page

1 participant