Repository navigation
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. |
|
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
TL;DR: The PR's tests pass on Node 22, 24 and 26. The new tests fail on the PR's base, so they catch the problem. Main already has one of the two source changes. Only the invoke-coverage check is still missing there. Thanks, LcokHcak, for the fix. I tested head a1093d2. Its merge base is 97268f4 (#2704), and main was at 40f73f6 (#3735). ResultsI ran two test files each time. One is the PR's changed Jadx analysis file. The other is the Jadx protocol file, which the PR does not change but whose source it does.
Not run
Commandsgit -C ~/code/rea-mirror/rea.git fetch origin
git -C ~/code/rea-mirror/rea.git archive a1093d263b2afd85b5dfc8e73d5369a3b6ac7f93 | tar -x -C /tmp/fresh-1015/2850-head
npm ci && npm run build && npm run test:prepare # Node 24.18.0, all exit 0
node scripts/run-development-tests.mjs focused \
tests/boundary/android/JadxAnalysis.test.ts \
tests/boundary/android/jadxProtocol.test.ts
# head: exit 0 on Node 22, 24 and 26 (16 passed)
# merge base source files swapped in: exit 1 (3 failed, 13 passed)
# base test files and base source: exit 0 (12 passed)
npm run typecheck # head, base source, main with PR changes: each exit 0
git merge-file main.copy base.copy pr.copy # JadxAnalysis.test.ts, exit 0
# fresh main tree (40f73f62b): own tests exit 0 (17 passed); merged tests exit 1 (2 failed);
# with the PR's JadxProtocol.ts copied in: exit 0 (20 passed)Test setup🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
Thank you for tracking the invoke-coverage contract. Current main already requires the nullable |
The JADX bridge emits or removes direct_invokes and direct_invokes_exhaustive together. A protocol item carrying only the coverage flag reached trace_android_references as a reference that claimed true or false coverage over a null site list, while the coverage summary counted it as unknown. The protocol schema now rejects that combination. Rebased onto current main from #2850. The companion change that removed the null default from the result schema already landed on main. Co-authored-by: LcokHcak <[email protected]>
Summary
direct_invokes_exhaustivein the Android result schema while allowingnullwhen coverage is unavailable.nullin the boundary tests.direct_invokessite list. Keep validtrueandfalsecoverage values when the list is present.The analyzer already serializes this field as
reference.direct_invokes_exhaustive ?? null. Keeping the schema optional made the parsed output type includeundefined, which is not a validJsonValueand caused TS2322 inJadxAnalysis.tsafter #2439 was merged.Verification
npm run deps:check— passed afternpm ci.npx vitest run tests/boundary/android/JadxAnalysis.test.ts tests/boundary/android/jadxProtocol.test.ts— 16 tests passed.npm run typecheck— passed.oxlintandoxfmt --checkon the changed files — passed.npm run lint— blocked bysrc/dotnet/ManagedCilDecoding.test.ts:248exceeding the max-lines-per-function limit, outside this patch. The latestmainhas a separate edit to that test.Follow-up to #2439; this commit was pushed to its source branch after #2439 had already merged, so it needs a separate PR.