You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CLI: stop sending dead-links chunks once one comes back unanswered, and test the local fallback for urls the service leaves out #753
A signed-in squirrel audit checks external links through the cloud dead-links service in chunks of 200 urls, one chunk after another (runBulkChecker in apps/cli/src/audit/adapter.ts). Any url the service leaves out of its answer is checked locally afterwards.
The service now waits up to a minute for links it has not seen, and gives up after 20 seconds without a new answer. If it is overloaded, every 200-url chunk can therefore come back with nothing answered after about 20 seconds. On a site with 1,000 external links that is about 100 seconds of waiting before the local checks start.
The path where a chunk comes back partly or wholly unanswered also has no test today: nothing pins that the CLI then checks those urls locally.
Outcome
When a chunk comes back with no urls answered, the CLI stops sending further chunks and checks the rest locally straight away.
A test pins that urls missing from the service's answer are checked locally, and are never treated as fine.
Acceptance Criteria
A bulk-checker test where the service answers some urls of a chunk: the unanswered urls get a local per-link check and appear in the external-link results with their local status.
A test where the service answers no url of the first chunk: no further chunks are sent, and every url is checked locally.
A chunk that answers at least one url does not stop the bulk pass (today's behaviour for partial answers is kept).
An empty answer is never read as "all links fine": the dead-links summary reports the locally checked results.
Activity
fix(audit-engine): keep runBulkChecker's never-throws promise: read t…
perf(audit-engine): stop sending dead-links chunks once one comes bac…
fix(audit-engine): keep runBulkChecker's never-throws promise: read t…
fix(audit-engine): stop asking the dead-links service once a chunk co…