Repository navigation
refactor(tooling): remove test-only production helper exports - #128770
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 24, 2026 14:57
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 25, 2026
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 Problem This Solves
Repository test and dead-code tooling carried three production entrypoints that existed only because implementation-coupled tests imported them. This duplicated the actual Knip subprocess owner and extension test-file inventory while retaining a JSON fallback that no real reporting flow called.
Why This Change Was Made
Delete the unused report fallback, the unused-file scan's test-only Knip wrapper and redundant buffer-limit re-export, and the extension planner's test-only tracked-file facade. Retarget meaningful process-group, timeout, output, signal, extension, and Telegram prerelease coverage directly to the real production owners; retain the actual dual Knip scans, strict JSON reader, cached tracked Git inventory, and working-tree extension inventory.
Production: +0/-33. Tests: +29/-37. Only the two tests dedicated solely to the removed unused JSON fallback were deleted.
User Impact
No public CLI, package, release, or test-runner behavior changes. Developers retain the same dead-code checks, extension test selection, process cleanup, and Telegram prerelease shards with fewer production-only-for-tests paths.
Evidence
scripts/check-deadcode-unused-files.mtsCLI against a bounded external pnpm fixture, captured both child invocations, and asserted the exact pinned[email protected]production/full-tree argument vectors and normal success output.node scripts/test-extension.mts --helpentrypoint successfully.