Skip to content

test(managed): expect resolved target rows on inspected call edges and field accesses - #11213

Merged
morluto merged 1 commit into
mainfrom
test/managed-call-edge-row-resolved
Nov 15, 2026
Merged

morluto merged 1 commit into
mainfrom
test/managed-call-edge-row-resolved

Conversation

@morluto

@morluto morluto commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Summary

src/dotnet/ManagedMemberInspector.test.ts > "inspects metadata members, signatures, CIL hashes, call edges, and field anchors" fails on main since #11163 (2d4a97b). That PR intentionally added target_row_resolved to every inspected call edge and field access, but this test compares both arrays with exact toEqual. Found while sweeping main for test failures after #11145-#11147.

Problem and expected behavior

ManagedMemberRows.ts now reports target_row_resolved: true when the target row resolved (here, a MemberRef .ctor and a FieldDef with identity digests). The field is part of the managed Evidence contract (managedArtifact.ts) and is what the comparison reads, so the product behaviour is correct; the test expectations are stale.

Change and scope

Test-only: add target_row_resolved: true to the expected call edge and field access. No product change. Other producers' tests (ManagedSignatureResolution.test.ts, ManagedCilDecoding.test.ts, ManagedNativeBoundaryInspector.test.ts) passed on main.

Contribution scope: not applicable (test-only fix).

Contract and boundary impact

  • Semantic owner and earliest changed stage: ManagedMemberRows.ts (unchanged) produces target_row_resolved.

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

  • 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 src/dotnet/ on origin/main — 1 failed (this test), 600 passed.
  • npm run test:local -- src/dotnet/ManagedMemberInspector.test.ts with the fix — 206 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:23:44.242816Z
We couldn’t complete this review. Comment @codex review to try again.
a1c7fe0 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] This test-only change appears safe to merge.

Summary

Updates two exact expectations in ManagedMemberInspector.test.ts to include target_row_resolved: true.

  • Managed-member tests now expect resolved call and field rows.

Reviews (2) · Last reviewed commit: "test(managed): expect resolved target ro..." · 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 456ca8e into main Nov 15, 2026
15 of 16 checks passed
@morluto
morluto deleted the test/managed-call-edge-row-resolved 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant