Repository navigation
test(managed): expect resolved target rows on inspected call edges and field accesses - #11213
Merged
Merged
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] This test-only change appears safe to merge. SummaryUpdates two exact expectations in
Reviews (2) · Last reviewed commit: "test(managed): expect resolved target ro..." · Reviewed by Greptile |
Merged
22 tasks
This was referenced Nov 15, 2026
This was referenced Nov 15, 2026
12 of 22 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 addedtarget_row_resolvedto every inspected call edge and field access, but this test compares both arrays with exacttoEqual. Found while sweeping main for test failures after #11145-#11147.Problem and expected behavior
ManagedMemberRows.tsnow reportstarget_row_resolved: truewhen the target row resolved (here, a MemberRef.ctorand 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: trueto 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) producestarget_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
src/dotnet/ManagedMemberInspector.test.ts(two expectations).origin/main(664fab7) the test failed with the received call edge carrying"target_row_resolved": truethat the expectation lacked (1 failed, 205 passed).git log -S target_row_resolvedgives fix(managed): compare verified same-artifact TypeSpec targets #11163 (2d4a97b), which merged after this test's last change (fix(errors): rethrow internal invariant violations from plist consumers and the native output projection #11029). I did not run the test at the parent commit.Validation performed
vitest run src/dotnet/on origin/main — 1 failed (this test), 600 passed.npm run test:local -- src/dotnet/ManagedMemberInspector.test.tswith the fix — 206 passed.npm run check:fast— passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.