Skip to content

test(ci): correct Rizin readiness and Hopper launcher fixtures - #3299

Merged
N0zoM1z0 merged 7 commits into
mainfrom
fix/rizin-stdin-fixture-order
Oct 14, 2026
Merged

N0zoM1z0 merged 7 commits into
mainfrom
fix/rizin-stdin-fixture-order

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Post-merge correction: the Rizin stdin/readiness fix is intact in squash a32b4b6ac. Concurrent main commit 7435e79d6 changed the Hopper platform assertions before merge; Git combined them with our older loader fixture without a textual conflict, producing a failing Hopper test in the actual merge tree. Frozen-head CI did not validate that later combination. The earlier byte-identical Hopper claim was incorrect and has been withdrawn. Follow-up #3410 removes the obsolete loader setup and restores the pre-merge main platform contract; see its current evidence. No production runtime code changed in this PR.

Summary

Fixes #3295 and #3406. The real-child Rizin stdin-closure fixture announced readiness before closing stdin, so a parent write could legitimately succeed before the condition asserted by the test held. Close stdin before emitting the same NUL readiness frame.

Change and scope

The owned Rizin delta is one shell-command reorder and a comment. The real owned child, 500 ms command deadline, failure assertion, closed-session assertion and cleanup remain intact. No production code changes.

Current head c61c537dd integrates main ba33c706d and the unchanged Hopper fixture prerequisite #3410 (a89ce212d). That prerequisite has its own issue/branch/commit. The current qualified integration tree will merge both fixture fixes; #3410 will then close as incorporated, without claiming it was separately merged. Main's wrapper ownership producer correction dae1e5538 is retained, including its original positive assertions. Withdrawn JavaScript test-only changes are absent from the current tree.

This is an ordinary test correction within existing boundaries; a new capability scope decision is not applicable. Public CLI/MCP, evidence/provenance formats, generated metadata, packages and releases remain unchanged.

Evidence and validation

  • Observed on main 307af044: Stryker's real initial test run failed this assertion (expected true to be false). Full mutation and preflight-only modes execute the same initial-test path.
  • Outside Stryker, inserting a controlled sleep 0.2 between the original readiness and stdin closure reproduces the failure. Closing stdin before readiness passes the unchanged assertion. The temporary delay is absent from this PR.
  • Latest npm run test:focused -- with all five RizinDebugSessionCoverage.part*.test.ts files plus RizinCommandTimeout.test.ts and RizinTimeoutEvidence.test.ts — 7 files / 60 tests passed in 8.51 s on the current integrated tree.
  • Latest npm run check:ci — 8 tasks and architecture guards across 1,394 files passed. Normal pre-push checks passed.
  • git diff --check — passed.

Executed on Linux / Node 24.18.0 / npm 11.16.0 / Vitest 5.0.3. These are real owned shell children exercising the Rizin manager; they do not establish compatibility with an installed Rizin engine. The existing Windows skip remains intact.

Superseded hosted runs exposed independently reproduced main issues (uninstall fixture ownership and the wrapper static producer). Their failed evidence is retained. The current revision incorporates the corrections; no blind retry, assertion relaxation or full-mutation success is claimed from those failed attempts. Current-head hosted CI passed all required checks and both complete mutation passes. Its merged portable report verifies 1,273 unique files, 14,521 passing tests, 126 skipped and zero failures. Current Greptile review is 5/5 with no inline findings.

Author readiness

Human owner: @N0zoM1z0

AI-assisted preparation. The human owner explicitly confirmed review of this PR's diff and validation evidence, accepted responsibility, and dictated all three declarations on 2026-10-14.

  • 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.

Fixes #3295

Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low impact] The fixture changes appear safe to merge.

Summary

Corrects two test fixtures without changing production code.

  • Hopper doctor tests keep launcher paths intact through Linux loader checks.
  • Rizin's stdin-closure test closes the pipe before signaling readiness.

Reviews (4) · Last reviewed commit: "Merge verified upstream ownership fixes ..." · Reviewed by Greptile

@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

Current-head CI failed three setup/uninstall positive fixtures outside this PR's only changed Rizin test. I reproduced all three on a clean tracked copy of parent main 7c962cc70: 3 failures / 67 unselected, exit 1. The current conservative identity rule retains their arbitrary absolute launcher paths as unowned.

Tracked independently in #3301; production ownership checks and unknown/foreign registration protections must remain intact. No Rizin assertion, timeout or retry is being weakened. This PR's seven affected Rizin files pass all 60 tests locally; its complete hosted mutation job is still running. The required gate remains red until the independent main fixture failures are resolved and the resulting revision is validated.

Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
Fixes #3341

Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
@morluto morluto added the area: tests Test suite and verification label Oct 14, 2026
N0zoM1z0 and others added 4 commits October 14, 2026 09:43
Fixes #3406

Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
…uisite

Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
@N0zoM1z0 N0zoM1z0 changed the title test(rizin): close fixture stdin before announcing readiness test(ci): correct Rizin readiness and Hopper launcher fixtures Oct 14, 2026
@N0zoM1z0
N0zoM1z0 merged commit a32b4b6 into main Oct 14, 2026
38 checks passed
@N0zoM1z0
N0zoM1z0 deleted the fix/rizin-stdin-fixture-order branch October 14, 2026 10:42
N0zoM1z0 added a commit that referenced this pull request Oct 14, 2026
Main changed the same fixture before #3299 merged. Remove the obsolete synthetic loader setup, preserve main native platform readiness and exit assertions, and keep the Rizin readiness fix intact.

Fixes #3406

Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

Correction to the earlier verification claim: main advanced from ba33c706d to 60c08802a before #3299 merged. Upstream 7435e79d6 had already changed this same fixture to assert platform-specific readiness and exit status. The textual merge preserved both those assertions and my older synthetic loader setup, producing a semantic conflict on Linux. The Hopper file was therefore not byte-identical to the tested PR head; that earlier claim is withdrawn.

I reproduced the failure on actual merged main a32b4b6ac. Follow-up branch head 3698e4f89 restores only this file from the real pre-merge main parent, removing my obsolete loader setup while preserving the stronger platform-specific assertions. The correct Rizin stdin/readiness fix remains intact. Four relevant files / 76 tests and static/architecture checks pass locally. Reopening #3410 for full current-head CI and review; this is a correction to my merge, not an unrelated failure to ignore.

@morluto morluto added area: build Build, CI, packaging, and publishing provider: hopper Analysis provider / engine: hopper provider: rizin Analysis provider / engine: rizin labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing area: tests Test suite and verification provider: hopper Analysis provider / engine: hopper provider: rizin Analysis provider / engine: rizin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(rizin): close fixture stdin before advertising readiness

2 participants