Repository navigation
test(fs): large-tree stress tests; stream rg's walk, cap ls -R at the stdout limit - #2820
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | bb10f8a | Commit Preview URL Branch Preview URL |
Nov 03 2026, 07:04 AM |
Review summary — #2820 (head
|
Coverage (tarpaulin) build peaked at 17.1 MB vs 13.7 MB locally, over the fixed 16 MiB bound. rg holds each read file until the budget trips, so the bound now scales with reads (512 B/read), still far below the pre-streaming ~1.5 KB/read.
…tory Review follow-up: the cap was only checked between directories, so a single directory with many entries still built its whole listing before truncation. Also document rg's residual candidate list for several roots, non-path sorts and --files (TM-DOS-140).
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.
What changed
large_tree_stress_tests) runs walkers over a procedural tree (default 20k files,just stress= 2M files) with a counting allocator and asserts peak memory stays bounded: find, find|wc, du, tree -L 2, grep -rl, ls -R, rg.Why
Last part of the remote FS walk work: prove that a repo with millions of files can't push bashkit into unbounded memory.
Before / After
At 2M files (
just stress, release):Known gap: rg within budget still keeps all searched text (158 B/file). Fixing it needs a streaming search; this is marked as TODO(TM-DOS-140) in the test and the docs.
Risk
Checklist
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.