Skip to content

test(hopper): preserve the updated platform-specific doctor contract - #3410

Closed
N0zoM1z0 wants to merge 5 commits into
mainfrom
fix/3406-hopper-doctor-fixture
Closed

N0zoM1z0 wants to merge 5 commits into
mainfrom
fix/3406-hopper-doctor-fixture

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Superseded and closed unmerged: upstream 0686b0754 completes the current discovery/version fixture contract. See the final validation comment. The restoration below was discarded, not merged.

Summary

Fixes #3406. Restore main's platform-specific Hopper doctor fixture after a semantic conflict in #3299's merge.

The tested PR head supplied controlled Linux loader output for a shell launcher. Before the merge, main commit 7435e79d6 independently corrected this fixture to expect the real shell launcher to be unavailable on Linux. Git combined that new negative assertion with my older positive loader setup without a textual conflict, making the merged test fail. I reproduced that exact failure on main a32b4b6ac.

Remove only my obsolete loader setup and restore this file byte-for-byte from the actual pre-merge main parent 60c08802a. Preserve platform-specific readiness, exit status, path diagnostics and no-launch assertions. The Rizin stdin/readiness fix remains intact.

Change and boundary impact

One test file; no production behavior, provider permissions, CLI/MCP contract, evidence format, package, release or generated metadata changes. Ordinary correction within existing boundaries; a new capability scope decision is not applicable. The existing platform scope and 20 s deadline remain unchanged. This restores the actual Linux loader check rather than simulating compatibility.

Evidence and validation

  • Current head e2259b526 integrates main efe092391; the repair is still the same single-file delta. Linux / Node 24.18.0 / npm 11.16.0 / Vitest 5.0.3. Original regression reproduced on actual merged main a32b4b6ac.
  • Exact merged-main CLI test: 1 failed, reproducing the conflicting Hopper readiness assertion.
  • Corrected npm run test:focused -- tests/boundary/cli/doctorHopperDiscovery.test.ts tests/boundary/providers/RizinDebugSessionCoverage.part2.test.ts src/domain/javascript/javascriptStaticAnalysisModuleIndex.test.ts src/domain/javascript/javascriptSemanticAnalysis.require_links.test.ts — 4 files / 76 tests passed in 2.91 s.
  • npm run check:ci — 8 tasks and architecture guards across 1,394 files passed.
  • Before the latest release-notes-only main integration, exact head 3698e4f89 passed all hosted code CI: 1,273 unique test files, 14,522 tests passed, 125 skipped, zero failures; Greptile 5/5, no inline findings.
  • After integrating latest main efe092391, the four relevant files above plus tests/boundary/filesystem/releaseNotes.test.ts passed: 5 files / 81 tests / 9.60 s. check:ci and architecture guards across 1,394 files passed again. Current-head hosted CI is running; earlier evidence is not represented as its result.
  • Normal commit and pre-push checks passed; git diff --check passed.

The earlier #3299 CI qualified its frozen head, not the later concurrent main edits. A correct three-way tree reconstruction did not by itself prove semantic compatibility. The earlier byte-identical Hopper claim was wrong and has been corrected publicly. This follow-up validates the actual combined fixture and changes only the obsolete setup. No actual installed Hopper compatibility, macOS execution or speedup is claimed.

Author readiness

Human owner: @N0zoM1z0

AI-assisted preparation. Human declarations remain unchecked until explicitly supplied by the 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.

N0zoM1z0 and others added 2 commits October 14, 2026 09:17
Fixes #3341

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

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 PR appears safe to merge; the test repair preserves the intended platform-specific behavior.

Summary

Removes the obsolete fake Linux ldd setup from the Hopper doctor test.

  • Hopper doctor tests use the real Linux loader result.

Reviews (4) · Last reviewed commit: "chore: integrate current release-notes c..." · Reviewed by Greptile

Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
@N0zoM1z0 N0zoM1z0 changed the title test(ci): align JavaScript and Hopper fixtures with runtime context test(hopper): provide Linux loader context for the doctor CLI fixture Oct 14, 2026
N0zoM1z0 added a commit that referenced this pull request Oct 14, 2026
Correct two independently reproduced CI fixture preconditions: close the real Rizin child's stdin before its readiness frame, and provide scoped Linux loader evidence for the Hopper doctor shell fixture. Preserve original timeouts, rejection checks, path spelling, launch prevention and cleanup.

Current-head CI passed, including both complete reverse-tools mutation passes and 1,273 unique portable test files (14,521 passed, 126 skipped, zero failures). Each issue retains its own branch/commit; the validated integration tree includes the Hopper fix from #3410. That duplicate PR can close after the same code is verified on main.

Fixes #3295
Fixes #3406

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

N0zoM1z0 commented Oct 14, 2026 •

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.

@N0zoM1z0 N0zoM1z0 closed this 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 N0zoM1z0 changed the title test(hopper): provide Linux loader context for the doctor CLI fixture test(hopper): preserve the updated platform-specific doctor contract Oct 14, 2026
@N0zoM1z0 N0zoM1z0 reopened this Oct 14, 2026
Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

Superseded by upstream 0686b0754 (verified on main f75b1a416ba67b8421e7dbd248160afedb79581f); closing unmerged.

The latest attempted PR run 38555395945 checked out synthetic merge f2c99a6a91b1a01ecbd420cb76cf522e8c5b1730, combining head e2259b526 with concurrent main c2b79aa46. That main revision separated Hopper discovery from Linux version readiness. Removing the controlled loader then suppressed the expected version check and path discovery. This run failed the Hopper test and canceled other shards; it is not a passing current-main result and was not blindly retried.

Upstream 0686b0754 now retains the controlled loader and discovered path while correctly asserting a separate unsupported-version result. I discarded the restoration proposed here and verified a local integration tree identical to main f75b1a416: Hopper CLI, Doctor service and Rizin boundary tests passed (3 files / 47 tests / 4.33 s); check:ci and architecture guards across 1,394 files passed. No product-runtime fix, macOS execution, installed-Hopper compatibility or new full portable-suite pass is claimed.

The original Rizin readiness fix remains in #3299. No separate restoration patch is needed, and this closure does not claim that #3410 was merged. Initial human declarations were not fabricated. The performance work in #3281 will retain the current upstream Hopper fixture unchanged.

@N0zoM1z0 N0zoM1z0 closed this Oct 14, 2026
@morluto

morluto commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Thanks @N0zoM1z0 for catching the semantic merge conflict in Hopper’s platform-specific doctor fixture and reproducing the failure on main. Main now tests discovered launcher paths separately from version failures while preserving the platform-specific readiness contract (0686b0754) (main).

@morluto morluto added area: domain Domain logic, errors, and pure functions provider: hopper Analysis provider / engine: hopper labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: domain Domain logic, errors, and pure functions provider: hopper Analysis provider / engine: hopper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(hopper): satisfy the Linux loader prerequisite in the doctor CLI fixture

2 participants