Repository navigation
test(native): assert failed-callee call identities and edge caps - #2888
Conversation
Codex Review SummaryThis 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. |
[Low impact] The test-only change appears safe to merge. SummaryStrengthens the failed-callee regression without changing production code.
Reviews (8) · Last reviewed commit: "Merge remote-tracking branch 'upstream/m..." · Reviewed by Greptile |
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. The regression checked only edge count, so wrong or repeated call-site pairs could pass. The existing public regression now asserts all three exact source/target pairs and the capped edge slice. Source inspection only; no tests ran. |
4b9a8ee to
7ef9981
Compare
7ef9981 to
f558c24
Compare
Preserve XML and Interface Builder identity at their parsing boundary, retain usable Objective-C slots with precise coverage, and keep native trace failures distinct from absence. Add caller-selected Interface Builder summaries backed by complete retained Evidence, and preserve comparison limitations. Reviewed fixes: #1969, #2088, #2108, #2513, #2639, #2684, #2731, #2759, #2875, #2888, #2889, #2970, #2971, #3002. Validation: relevant native/domain focused lane passed 142 tests; earlier Interface Builder/MCP checks passed 24 tests. Real native UI and Ghidra producer coverage was not repeated.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
The previous head's CI failed in five JavaScript/Electron-domain test files ( 5a96fd8 syncs with current
The PR's remaining diff is unchanged: the failed-callee regression now asserts the exact three source/target pairs and the two-edge prefix under |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
TL;DR: The new assertions pass on current main. They catch a bug that the old count check missed. With every call edge sharing one source, the old test passed and the new test failed. I tested head 5a96fd8 on main 5b16f24. The patch (made from merge base cf6ea09) applied cleanly. The real CI on this PR ran 13 checks that passed and 19 that skipped, with no failures. Results
Not run
Thanks, IvenKooLab, for the work. Commandsgit -C ~/code/rea-mirror/rea.git fetch origin
git -C ~/code/rea-mirror/rea.git archive 5b16f2431062eea6ffd245a9e05512790007cb13 | tar -x -C /tmp/look-1015/main
git -C ~/code/rea-mirror/rea.git diff cf6ea09711 refs/pull/2888/head > /tmp/look-1015/patches/2888.patch
git -C /tmp/look-1015/t2888-after apply /tmp/look-1015/patches/2888.patch # exit 0
npm ci # Node 24.18.0, exit 0
npm run test:focused -- src/application/native/NativeValueTrace.test.ts src/application/native/EnhancedNativeInvestigation.test.ts # exit 0
# mutation: in src/application/native/NativeValueTrace.ts, call edges get source: "0x1000/bad-1"
npm run test:focused -- src/application/native/NativeValueTrace.test.ts # old test on main: exit 1, 3 other tests fail, failed-callee test passes
npm run test:focused -- src/application/native/NativeValueTrace.test.ts # PR test: exit 1, the same 3 plus the failed-callee test failTest setup🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
Thanks for rerunning this on 5b16f24 and checking the wrong-source mutation. The 40-test number in the body came from an earlier local run; I have labeled it accordingly and linked your independently reported 42/42 result separately. The PR branch is unchanged. |
Summary
Strengthen the failed-callee regression so it verifies each call site's exact source and destination, including the two-edge prefix under
max_edges=2. Three incorrect edges could previously satisfy the count-only assertion.The original failed-selector traversal fix and the shared node-budget work are already present in upstream commit 55dd21a5e, which references #2888 and #2889. After syncing main, this PR's remaining diff is only the regression assertion update.
Problem and expected behavior
Review finding: checking only the call-edge count misses repeated source IDs or incorrect destinations. The test now requires
bad-1 → 0x2000,bad-2 → 0x2000, andgood → 0x3000, with fully qualified source IDs, and checks the exact first two relationships when the edge budget truncates output.Change and scope
Reuse the existing regression fixture and production application traversal. Keep exact expected pairs in one local test value and assert both the complete and capped results. The existing retry-across-invocations, failure reason, function coverage, and truncation checks remain.
Routine test correction within existing static-analysis scope. No separate issue; the linked review finding is the concrete problem. No new provider or target capability; an advance maintainer scope decision is not applicable.
Contract and boundary impact
Expected effects of the final diff: execute local simulated regression tests only.
Evidence and regression coverage
A temporary mutation forced all three call edges to share
bad-1as their source, preserving the edge count. The strengthened assertion failed on the incorrect source pairs. The mutation was restored and is not committed.After merging current main, the remaining diff is one test file, 21 insertions and one deletion. Original production fixes are already incorporated upstream; no further production refactor is needed for this assertion gap.
Validation performed
Earlier local run with pinned Node 24.18.0/npm 11.16.0 and the locked dependencies available at that time:
npm run test:local -- src/application/native/NativeValueTrace.test.ts src/application/native/EnhancedNativeInvestigation.test.ts— 40 tests passed in that earlier local run.npm run check— passed (typecheck, lint, format, knip, metadata, compile dependency, and architecture guards).git diff --check— passed.Independent verification by CassieFox23 applied this patch to main
5b16f2431and reported 42/42 tests passing across the same two files. Their wrong-source mutation also confirmed that the new assertion catches a case the old count check missed. These are independently reported results on the specified main snapshot; that run was not repeated during this update.Compatibility, safety, and release
No runtime behavior, schema, migration, package metadata, or authority change. No real-provider or end-to-end CLI/MCP run was performed for this test-only follow-up. The earlier runtime performance measurements do not describe a new runtime change in the final diff.
Before merge
Author readiness
Human owner: @IvenKooLab