Repository navigation
test(cli): register decompile-all once in the overnight CLI schema registry - #11689
Conversation
…gistry registerCoreBinaryCommands already registers decompile-all; the test registered it a second time. incur overwrote the duplicate silently; REA's command table (#11680) rejects it, so every case in the file failed on main.
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
[Low impact] The reviewed change appears safe to merge, though the same patch already exists in local SummaryRemoves the duplicate
Reviews (4) · Last reviewed commit: "test(cli): register decompile-all once i..." · Reviewed by Greptile |
Summary
Fixes a test failure on main: every case in
tests/boundary/cli/overnightBatch1CliSchemas.test.tsfails withCLI command decompile-all is registered twice(main CI run 43799461910, built test shard 10/12 and Portable tests).Refs #11654.
Problem and expected behavior
The test's registry called
registerCoreBinaryCommands, which already registersdecompile-allthroughregisterDecompileDirectoryCommand, and then calledregisterDecompileDirectoryCommandagain. incur overwrote the duplicate without complaint. Since #11680, REA's command table rejects a second registration of the same name, so building the registry throws before any case runs.Expected: the registry registers each command once, as production does (
coreAnalysisCommands→registerCoreBinaryCommands).Change and scope
Remove the redundant
registerDecompileDirectoryCommandcall and its import from the test.registerCoreBinaryCommandsregistersdecompile-allwith the samerunDirectAnalysisstub, so the cases test the same command. No source change: the duplicate check is the intended behaviour. A search found no other test that calls both registrars.Contract and boundary impact
Semantic owner and earliest changed stage: test fixture only.
Contribution scope fit and linked maintainer decision: not applicable (test fix).
CLI and MCP/tool-catalog contract: none.
Provider, bridge, target-format, or platform compatibility: none.
Evidence, artifact, provenance, or reconstruction contract: none.
Target selection, authority, upstream behavior, and cleanup details (if applicable): not applicable.
Generated metadata, package, or installation impact: none.
Documentation or usability only; no target interaction.
Evidence and regression coverage
overnightBatch1CliSchemas.test.ts.npm run test:focusedon this file failed 17/17 withError: CLI command decompile-all is registered twice; main CI run 43799461910 shows the same failures.Validation performed
npm run test:focused -- tests/boundary/cli/overnightBatch1CliSchemas.test.ts— 17/17 passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.