Skip to content

test(composition): expect a Rizin start after closeAll to be refused as owner-closed - #11211

Merged
morluto merged 1 commit into
mainfrom
test/rizin-closed-start-composition
Nov 15, 2026
Merged

morluto merged 1 commit into
mainfrom
test/rizin-closed-start-composition

Conversation

@morluto

@morluto morluto commented Nov 15, 2026

Copy link
Copy Markdown
Owner

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 old AnalysisInputError from a closed Rizin manager. Found while sweeping main for test failures after #11145-#11147.

Problem and expected behavior

OwnedDebuggerSessionRegistry.start refuses any start after closeAll() with AnalysisCancelledError (owner-closed) before input validation runs. GDB already behaved this way, and the same test already expects AnalysisCancelledError for 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

Validation performed

  • vitest run tests/composition/ on origin/main — 1 failed (this test), 430 passed.
  • npm run test:local -- tests/composition/liveToolFactories.test.ts with the fix — 3 passed.
  • Pre-push npm run check:fast — 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.

@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-15T14:22:20.092677Z
We couldn’t complete this review. Comment @codex review to try again.
9f96206 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 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The change appears safe; the same patch is already on the local origin/main.

Summary

Corrects a stale Rizin test expectation to match the existing shutdown behavior. No actionable issues found.

  • The Rizin lifetime test expects cancellation after its owner closes.

Reviewed source and existing tests; did not rerun tests.

Reviews (3) · Last reviewed commit: "test(composition): expect a Rizin start ..." · Reviewed by Greptile

@morluto morluto added the main-fix Fixes a failure on main; may merge while main CI is red label Nov 15, 2026
@morluto
morluto merged commit 70351fe into main Nov 15, 2026
15 of 16 checks passed
@morluto
morluto deleted the test/rizin-closed-start-composition branch November 15, 2026 15:12
This was referenced Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification main-fix Fixes a failure on main; may merge while main CI is red provider: rizin Analysis provider / engine: rizin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant