Skip to content

refactor(tooling): remove test-only production helper exports - #128770

Merged
steipete merged 1 commit into
mainfrom
codex/cleanup3-tooling-test-exports-20260824
Aug 24, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/cleanup3-tooling-test-exports-20260824

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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

  • Five existing focused suites passed 209 tests: reporting helpers, Knip unused-file scanning and subprocess cleanup, Knip unused-export sibling coverage, plugin extension planning, and the executable Telegram prerelease workflow manifest.
  • Executed the actual scripts/check-deadcode-unused-files.mts CLI 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.
  • Executed the actual node scripts/test-extension.mts --help entrypoint successfully.
  • Existing retained subprocess tests cover 16 MiB output limits, heartbeats, timeouts, SIGTERM/SIGKILL escalation, descendant cleanup, parent signal forwarding, stderr/stdout ordering, and spawn errors directly at the canonical runner.
  • Existing retained extension tests cover tracked Git inventory reuse, working-tree discovery, executable workflow manifest generation, runnable Telegram exclusions, process recycling, and the ten-file shard cap.
  • Scoped formatter, targeted scripts lint, changed-check dry-run routing, independent source review, and clean automated review.
  • Exact-head hosted CI and mandatory native Testbox preparation provide full clean-checkout validation because the shared local dependency tree belongs to a different checkout revision.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Aug 24, 2026
@steipete
steipete marked this pull request as ready for review August 24, 2026 14:57
@steipete
steipete merged commit 70d7fb5 into main Aug 24, 2026
262 checks passed
@steipete
steipete deleted the codex/cleanup3-tooling-test-exports-20260824 branch August 24, 2026 15:13
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant