Skip to content

fix(deadcode): keep production scan test-free - #108648

Merged
steipete merged 1 commit into
mainfrom
codex/fix-hard-zero-production-roots
Jul 16, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-hard-zero-production-roots

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The newly landed hard-zero production Knip config still marked root test files as production entries. Test-only imports could therefore hide dead production exports. The three Knip configuration modules were also only loaded by command-line path and were not represented as scan roots.

Why This Change Was Made

This keeps test roots exclusively in the full-tree audit, roots the three directly loaded Knip configurations, and adds a regression assertion for both boundaries.

AI-assisted maintainer follow-up. No runtime behavior change.

User Impact

Maintainers now get a production dead-code result that cannot be satisfied by test-only consumers, while the separate full-tree scan still checks test support.

Evidence

  • Blacksmith Testbox tbx_01kxmqrfjw0aaw96p230zyysd4, Actions run 29475085791.
  • Deadcode config tests: 20/20 green.
  • Production unused exports: 0.
  • Full-tree unused exports: 0.
  • Script entry exports: 0.
  • Production unused files: 0.
  • Full-tree unused files: 0.
  • Full production and full-tree Knip issue scans: 0 findings.
  • Fresh autoreview: no accepted/actionable findings; confidence 0.93.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 16, 2026
@steipete
steipete merged commit 906c733 into main Jul 16, 2026
19 of 20 checks passed
@steipete
steipete deleted the codex/fix-hard-zero-production-roots branch July 16, 2026 05:56
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 16, 2026
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant