Skip to content

test(cli): register decompile-all once in the overnight CLI schema registry - #11689

Merged
morluto merged 1 commit into
mainfrom
fix/overnight-cli-schemas-registration
Nov 16, 2026
Merged

morluto merged 1 commit into
mainfrom
fix/overnight-cli-schemas-registration

Conversation

@morluto

@morluto morluto commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes a test failure on main: every case in tests/boundary/cli/overnightBatch1CliSchemas.test.ts fails with CLI 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 registers decompile-all through registerDecompileDirectoryCommand, and then called registerDecompileDirectoryCommand again. 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 registerDecompileDirectoryCommand call and its import from the test. registerCoreBinaryCommands registers decompile-all with the same runDirectAnalysis stub, 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

  • Tests added or updated: overnightBatch1CliSchemas.test.ts.
  • Base reproduction or other evidence: on a branch containing main, npm run test:focused on this file failed 17/17 with Error: CLI command decompile-all is registered twice; main CI run 43799461910 shows the same failures.
  • User-visible CLI/MCP output: none.
  • Remaining proof gaps: none known. Other failures in that main run are not from this test: the Stryker selector was fixed by fix(ci): select debugger command handlers through the command registry #11686, and the rest are outside the CLI.

Validation performed

  • npm run test:focused -- tests/boundary/cli/overnightBatch1CliSchemas.test.ts — 17/17 passed.
  • Pre-push hook — typecheck, lint and architecture guards passed.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: none.

Author readiness

Human owner:

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

…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.
@morluto morluto added the main-fix Fixes a failure on main; may merge while main CI is red label Nov 16, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T04:26:32.334464Z
We couldn’t complete this review. Comment @codex review to try again.
2b4d47b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The reviewed change appears safe to merge, though the same patch already exists in local origin/main.

Summary

Removes the duplicate decompile-all registration from the test fixture while keeping the production registration path and existing checks.

  • The overnight CLI schema fixture registers decompile-all once.

Reviews (4) · Last reviewed commit: "test(cli): register decompile-all once i..." · Reviewed by Greptile

@morluto
morluto merged commit 6c4e2bb into main Nov 16, 2026
42 checks passed
@morluto
morluto deleted the fix/overnight-cli-schemas-registration branch November 16, 2026 04:34
@morluto morluto added the area: cli CLI adapter and one-shot commands label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands main-fix Fixes a failure on main; may merge while main CI is red

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant