Repository navigation
fix(ci): select debugger command handlers through the command registry - #11686
Conversation
#11680 moved every CLI command onto registerCliCommand(cli, CLI_COMMANDS.x, ...), so the Stryker command-handler selector, which matched cli.command(CLI_COMMANDS.x, ...), found no target for debugWithGdb and debugWithRizin and the reverse-tools quality job failed to load its config. The selector now matches the registry call. Refs #11654
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] This focused fix appears safe to merge. SummaryUpdates mutation-test target selection to match the shared command registry, fixing configuration loading for the debugger checks.
No actionable issues found. Reviews (4) · Last reviewed commit: "fix(ci): select debugger command handler..." · Reviewed by Greptile |
|
@greptileai review |
Merge morluto/rea commit 4c8e616 (morluto#11686), including its command-registry baseline. Preserve the accepted upstream implementation and authorship while retaining this PR's feature changes and previously verified test compatibility repairs.
Summary
Fixes the reverse-tools quality job broken by #11680. Stryker's
command-handlerselector looked forcli.command(CLI_COMMANDS.x, { run }); #11680 registers every command throughregisterCliCommand(cli, CLI_COMMANDS.x, { run }), so loadingstryker.config.mjsthrewExpected one mutation target in src/cli/reverseEngineeringCommands.ts: {"kind":"command-handler","command":"debugWithGdb"}; found 0.Refs #11654
Problem and expected behavior
Observed in #11680's CI run (job 133074062802, "Reverse tools quality") and reproduced locally on main:
tests/boundary/filesystem/reverseToolsMutationConfig.test.tsfails with the error above. Expected: the selector resolves exactly onerunhandler for each debugger command.Change and scope
scripts/lib/reverse-tools-mutation-targets.mjs: the selector matchesregisterCliCommand(cli, CLI_COMMANDS.<command>, { run }), the only way to register a command since #11680 (guardcli-command-outside-registry, baseline 0). The oldcli.commandshape is not kept. No source or mutation-target change otherwise.Contribution scope: not applicable (CI fix).
Contract and boundary impact
src/cli/commandRegistry.ts.docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
reverseToolsMutationConfig.test.tsalready loads both Stryker configs.found 0; with the fix it passes. Selected ranges:src/cli/reverseEngineeringCommands.ts:254-310and:338-383(the tworunhandlers).Validation performed
npm run test:focused -- tests/boundary/filesystem/reverseToolsMutationConfig.test.ts— fails on main (found 0), 3 passed with the fix.npx oxfmt --check scripts/lib/reverse-tools-mutation-targets.mjs— clean; pre-push hook — passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.