Repository navigation
Conversation
…ad; sitemap requests throttled per host; spaced boolean value refused #422 Signed-off-by: Nik Cubrilovic <[email protected]>
…n stop; rawArgs default; every spaced flag occurrence #422 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/422-discovery-probe-followups
branch
from
October 30, 2026 19:31
93828de to
0c8f8a2
Compare
Contributor
Author
|
Landed in v0.0.145 as nik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #422 (its fifth criterion, plugin rules and
--rule-exclude ax, is split into #1375: the CLI loads no plugins yet, so there is nothing to pass)squirrel crawl --disable-discovery-probes: new flag oncrawl(bash, zsh, fish completions,docs/cli/crawl.mdx); it overrides[crawler] disable_discovery_probesin both directions, as onaudit.Linkheader, andfetchRslLicensingtakes that read (RobotsRead) instead of requesting robots.txt again;License:directives andLink: rel=licenseare still found (test with both). The docs' discovery-probe table and "28 requests" (now 27) are updated.per_host_*:fetchSitemapsRecursivetakes aProbeGate; the crawler passes the same per-host gate the discovery probes use, so the guessed sitemap locations wait forper_host_concurrencyandper_host_delay_ms(the walk's own 60 s total deadline still applies).--disable-discovery-probes false: refused onauditandcrawlwith a message naming the=falseform, before anything is requested (spacedBooleanValueError).--rule-exclude ax: not changed, and the criterion is not met end to end.selectDiscoveryProbesalready accepts plugin namespaces and an existing test (rules/tests/discovery-probes.test.ts) pins that a plugin rule's probe is kept; the audit controller passes none because the CLI does not load plugins at all today (nothing inapps/clibuildsadditionalNamespaces). Wiring it needs a plugin loader, so I left that bullet for the issue, to be closed or split when plugins load.Tests (failing first)
apps/cli/tests/cli/discovery-probes-flag-422-e2e.test.ts(real CLI; 5 of 6 fail on main): crawl flag sends none and overrides the config both ways, a spacedfalseexits 1 for crawl and audit with no request, an audit requests robots.txt once.packages/crawler/tests/robots-read-once-422.test.ts(1 request, RSL still reads License and Link) andsitemap-per-host-422.test.ts(per_host_concurrency = 1gives max one in flight, 5 overlaps, the delay spaces them).discovery-probes.test.tsnow expects 1 robots hit. Gates: tsgo in crawler and apps/cli, apps/cli format and lint,tests/self(completions), crawler probe/sitemap/robots tests,make validate.Note: this branch is off main and does not include the Accept-Language change (#1357), which also touches
sitemaps.tsandrobots.ts(adjacent lines; trivial conflict). Skill: no change needed. CHANGELOG under Unreleased (Added and Fixed).Review follow-ups
spacedBooleanValueErrordefaultsrawArgsto none (the 16 wiring tests that callaudit.run({args})pass) and checks every occurrence of the flag.preamble-budget.test.tspasses unchanged (it failed 4/4 before this).AbortControlleris aborted when the crawl is interrupted, so requests queued behind the gate drain at once. Not covered by a dedicated test.ax/rsl-license. Rebased on main.