Repository navigation
test(composition): expect a Rizin start after closeAll to be refused as owner-closed - #11211
Conversation
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 change appears safe; the same patch is already on the local SummaryCorrects a stale Rizin test expectation to match the existing shutdown behavior. No actionable issues found.
Reviewed source and existing tests; did not rerun tests. Reviews (3) · Last reviewed commit: "test(composition): expect a Rizin start ..." · Reviewed by Greptile |
Summary
tests/composition/liveToolFactories.test.ts> "keeps debugger lifetimes fresh and honors platform admission before any launch" fails on main since #11041 (bcb068c), which intentionally refuses a Rizin start made after shutdown began as an owner-closed cancellation. The test still expected the oldAnalysisInputErrorfrom a closed Rizin manager. Found while sweeping main for test failures after #11145-#11147.Problem and expected behavior
OwnedDebuggerSessionRegistry.startrefuses any start aftercloseAll()withAnalysisCancelledError(owner-closed) before input validation runs. GDB already behaved this way, and the same test already expectsAnalysisCancelledErrorfor the closed GDB manager. The product behaviour is intended; the Rizin expectation was stale.Change and scope
Test-only: the closed Rizin manager's start now expects
AnalysisCancelledError, matching the GDB case beside it. The unsupported-platform and no-spawn assertions are unchanged.Contribution scope: not applicable (test-only fix).
Contract and boundary impact
Semantic owner and earliest changed stage:
OwnedDebuggerSessionRegistry.start(unchanged).Contribution scope fit and linked maintainer decision: not applicable.
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.
Read existing files or captured data.
Launch or attach to a process.
Inject instrumentation or run scripts/code.
Change process memory, registers, files, or configuration.
Contact network services.
Recover protected code or work around protections.
Documentation or usability only; no target interaction.
Not sure yet; investigation or maintainer guidance needed.
Evidence and regression coverage
tests/composition/liveToolFactories.test.ts(one expectation).origin/main(664fab7) the test failed at line 91 (expected { ok: false, ... } to match object); the received error is the owner-closed cancellation.git log -SonOwnedDebuggerSessionRegistry.ts(bcb068c, fix(rizin): refuse a start after shutdown began as an owner-closed cancellation #11041 added the refusal after close); the test file was last changed in refactor(composition): unify capability bindings and cleanup ownership #8441. I did not run the test at the parent commit.Validation performed
vitest run tests/composition/on origin/main — 1 failed (this test), 430 passed.npm run test:local -- tests/composition/liveToolFactories.test.tswith the fix — 3 passed.npm run check:fast— passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.