Repository navigation
fix(build): register the standalone function-bundle verifier with Knip - #9300
2SinceJuly wants to merge 1 commit into
Conversation
scripts/verify-real-ghidra-function-bundle.mjs is a manually run conformance entrypoint documented in tests/conformance/ghidra/README.md, but it was missing from the explicit Knip entries. The scripts/**/*.mjs project glob therefore reported it as unused, so npm run knip exited 1 and npm run check stopped at the Knip task on main. The other standalone Ghidra verifiers (noreturn, decompiler-failure, decompile-timeout) are registered the same way, and none of them have a script or workflow caller either.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] This PR appears safe to merge. SummaryAdds
Reviews (1) · Last reviewed commit: "fix(build): register the standalone func..." · Reviewed by Greptile |
|
Independent Windows validation for #9295. The tested local diff matches PR #9300 at Windows, Node 24.22.1, npm 11.16.0, Knip 6.39.0. Ran
|
|
Appreciated — that closes the one platform gap I could not cover. Your run pins exactly what the change claims: Recorded as the independent Windows evidence for #9295. The Linux side is already green on this head, so the static gate is now covered on both platforms. Noted that the Ghidra verifier itself and the full |
chessing234
left a comment
There was a problem hiding this comment.
The exact verifier path added here is already listed in knip.json on main from #9332. Please close this as superseded unless there is a separate Knip failure on current main.
|
Confirmed — |
Summary
Fixes #9295.
npm run knipexits 1 onmainat015a02d57b567bc9a1ed792d1e4b3ec083fa0ae3with a singleUnused files (1)diagnostic forscripts/verify-real-ghidra-function-bundle.mjs, which also stopsnpm run checkat its Knip task.Problem and expected behavior
Trigger: run
npx knip --cacheon015a02d57.knip.jsonglobsscripts/**/*.mjsinto the project, so every standalone.mjsverifier has to be listed inentryor it is reported as unused.scripts/verify-real-ghidra-function-bundle.mjswas added by #8873 and documented intests/conformance/ghidra/README.md:6-10as a manual entrypoint, but it was never added to theentrylist.Expected: the static gate recognizes the verifier the same way it recognizes
verify-real-ghidra-noreturn.mjs,verify-real-ghidra-decompiler-failure.mjsandverify-real-ghidra-decompile-timeout.mjs, all of which are entry-only too — none of them has apackage.jsonscript or workflow caller.Change and scope
One line in
knip.json: addscripts/verify-real-ghidra-function-bundle.mjstoentrynext to the three existing standalone Ghidra verifiers.Follow the contribution scope. This is an ordinary build-config fix within existing boundaries; no maintainer scope decision applies, and no new capability is introduced.
Contract and boundary impact
knip.jsonremains the declaration of static-gate entrypoints; no source file changed.Expected effects: documentation or usability only; no target interaction. Only the static-check configuration changes.
Evidence and regression coverage
tests/boundary/filesystem/staticTaskCache.test.tsandtests/boundary/filesystem/ciCachePolicy.test.tsalready hashknip.jsonas a cache input; both were re-run unchanged and still pass.015a02d57before the change,npx knip --cacheprintedUnused files (1) / scripts/verify-real-ghidra-function-bundle.mjsand exited 1.GHIDRA_INSTALL_DIRandJAVA_HOME, which are not available here. This change only registers its reachability, exactly as the issue scoped it.Boundary regression applicable here: static-gate task caching keyed on
knip.json. No lifecycle regression applies.Validation performed
npx knip --cacheon the base revision — exit 1,Unused files (1) scripts/verify-real-ghidra-function-bundle.mjs.npx knip --cachewith this change — exit 0, no output.npx oxfmt --check knip.json— "All matched files use the correct format."npx vitest run tests/boundary/filesystem/ciCachePolicy.test.ts tests/boundary/filesystem/staticTaskCache.test.ts— 26/26 passed.npm run check:fast— typecheck and lint successful (2 tasks, 8.2s).Not run: the full
npm run checkchain (jscpd, scan:todos, knip:production, typed lint, test suite), and the function-bundle verifier itself.Compatibility, safety, and release
Author readiness
Human owner: @2SinceJuly
Before merge
type(scope): outcome.