Skip to content

fix(benchmark): skip find's disclosure note and tee pointer when counting names - #3863

Merged
aeppling merged 1 commit into
developfrom
fix/benchmark-find-disclosure-lines
Sep 4, 2026
Merged

aeppling merged 1 commit into
developfrom
fix/benchmark-find-disclosure-lines

Conversation

@aeppling

@aeppling aeppling commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

The --max cap check counts every unrecognised line as names. find now ends its output with ... (N filtered) and a [see remaining: …] pointer (#3854), so rtk find '*' --max 10 counted 19 and the job went red.

Changes

Two next rules in count_find_names / count_find_total.

Test

./scripts/benchmark.sh: find --max 10 cap 10/410, find --max 100 cap 100/410.

…ting names

count_find_names and count_find_total treat every unrecognised line as a
row of names. Since find began reporting hidden and gitignored matches, its
output ends with `... (N filtered)` and a `[see remaining: ...]` pointer, so
`rtk find '*' --max 10` counted 19 names (10 + 3 + 6 words) and the
--max cap check failed. Skip both lines, as the header, `+N more` and
`ext:` lines already are.
@aeppling
aeppling merged commit c7fc40a into develop Sep 4, 2026
17 of 18 checks passed
@rtk-release-bot rtk-release-bot Bot mentioned this pull request Sep 4, 2026
kylehgc added a commit to kylehgc/rtk that referenced this pull request Sep 6, 2026
…t half

The benchmark find-count half (a990b99) is superseded by d952a6b (rtk-ai#3863),
which skips the same disclosure-note and tee-pointer lines; scripts/benchmark.sh
is upstream's again. What remains is the single ci.yml line:
`cargo install cargo-audit --locked`.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.

2 participants