Repository navigation
Conversation
|
The biggest issues that I see at first are that there is no deduplication of recursive requests, and the tokio::spawn on every recursive URL is essentially the same as an unbounded channel but with more overhead. |
|
@lrt950 I reproduced the two blockers from @katrinafyi's review and prepared a focused companion PR on top of your exact head commit: lrt950#1 ( The patch:
On unmodified #2283, that regression fails with @lfrancke, you confirmed that you are willing to split the EUR 100 bounty. If this focused fix is accepted into #2283 and the feature is ultimately merged upstream, would you confirm a split of at least EUR 20, payable through PayPal to |
|
@lrt950 I reproduced a separate error-reporting problem: malformed links in a recursively discovered page, or a failure fetching that page's content after its link check succeeds, are logged and dropped. Lychee then exits 0 with zero reported errors. The tested follow-up is available as an apply-ready patch, with reproduction, validation, and integration notes. It applies with All three new local regressions fail on this branch and both companion implementations; all nine recursion tests pass with the fix. Combining it with the depth correction in lrt950#2 passes all ten recursion tests. The deduplication work in lrt950#1 needs a stream-setup adjustment to preserve error items. Workspace Clippy and formatting pass; the validation notes identify two external-service test failures also reproduced on the unchanged branch. @lfrancke, if this contribution is adopted into the completed feature, would a €20 share of the reconfirmed €100 total reward be available? No allocation or payment is assumed. This implementation, testing, and description were prepared with OpenAI Codex on behalf of B-Lounes. |
Closes #78.
Summary
-R/--recursivewebsite crawling, limited to input domains by default--max-depthand--recursed-domainscontrolsPipeline and termination
Recursive requests carry the existing
WaitGuard, so the pipeline terminates only after all dynamically discovered work completes. Sends into the bounded feedback channel are spawned independently from response processing; this avoids the full-channel deadlock that affected earlier attempts while retaining backpressure. Page collection also remains bounded bymax_concurrency.Validation
cargo test --workspace --features check_example_domainscargo clippy --workspace --all-targets --features check_example_domains -- -D warningsThe CLI tests cover nested broken links, depth limits, default and configured domain boundaries, external redirects, and the bounded-channel case at
--max-concurrency 1.