Skip to content

test(native): bind lipo refusal fixture to a real source - #7977

Merged
morluto merged 2 commits into
morluto:mainfrom
WenyuChiou:fix/native-lipo-fixture-20261029
Nov 4, 2026
Merged

morluto merged 2 commits into
morluto:mainfrom
WenyuChiou:fix/native-lipo-fixture-20261029

Conversation

@WenyuChiou

@WenyuChiou WenyuChiou commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Strengthen coverage of unreadable lipo output and source admission. The former fixture failed at source admission rather than reaching the intended lipo refusal; upstream independently repaired that fixture in 429355c. This branch retains the upstream inspectionImage() Mach-O fixture and adds distinct assertions.

Change and scope

  • For both inspect_macho and list_architectures, assert lipo is called exactly once with the selected path, and the captured-output error identifies the operation.
  • Add a missing-source control showing inspect_macho refuses before running lipo. Close clients in finally; the existing temporary-directory fixture owns cleanup.

This is a test-only change within existing boundaries. No production behavior, schema, package, generated metadata, or authority changes.

Evidence and validation

  • Originally, on unmodified base 7ca216a2663376243702d117ce23059680f8ba1f, the named inspect_macho test failed with ProviderAdapterError before reaching lipo. Upstream subsequently fixed the fixture.
  • After merging main 54f5cf7e14e347d20828b07a991b644eafd080c9, the three related source test files passed: 57 tests on main, 58 on the resolved candidate. Changed-file oxlint and oxfmt checks and git diff --check passed.
  • The latest checks ran on Linux, Node 24.22.1 and npm 11.9.0 using an existing lockfile dependency installation. The runner is simulated; this does not establish real macOS/lipo behavior. Full suite and aggregate checks were not run locally; see hosted CI for its own scope and result.
  • Prior Greptile review reported no blocker on the original head. No approval or merge is requested.

Author readiness

Human owner: @WenyuChiou

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

This existing declaration is retained; later pushes do not invalidate it under the contribution guidance.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Strengthens the filesystem-backed tests for unreadable lipo output.

  • Native lipo tests now distinguish source refusal from unreadable output.

The previous and current commits have different merge bases with the target commit, so the full PR diff was reviewed as new changes. No previous review threads were supplied.

Reviews (2) · Last reviewed commit: "Merge upstream main into native lipo fix..." · Reviewed by Greptile

@WenyuChiou
WenyuChiou marked this pull request as ready for review October 29, 2026 06:38
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-29T06:38:43.951737Z
We couldn’t complete this review. Comment @codex review to try again.
7fa6e15 Draft marked ready
ℹ️ 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

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.

@morluto
morluto merged commit 9cc3417 into morluto:main Nov 4, 2026
42 of 44 checks passed
@morluto morluto added the area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants