Repository navigation
fix(ghidra): avoid Java probes for missing installations - #11732
Conversation
…file
The Windows-only case at `clientConfigurationEnvironment.test.ts:226` wrote
`rea_mcp_input_schema_profile: "full"`. That profile was retired: the reader
now refuses it ("REA_MCP_INPUT_SCHEMA_PROFILE accepts only \"compact\" …"),
so `configureClientConfiguration` returned `failed/readback` before writing
and the case failed on every Windows run, including main's own
`Windows capability and package lane`.
The case has no Windows dependency — it passes an explicit `configPath` and
the Kimi write dialect is the same everywhere — so it now runs on every
platform, which is what let the stale value rot unnoticed. The fixture keeps
the lowercase explicit key the case is about, with the supported value.
Verified on `main` `d6bcfc10`: the same fixture driven through
`configureClientConfiguration(..., "win32")` on this host reproduced
`{"status":"failed","reason":"readback"}` with the retired value and now
returns `{"status":"configured"}` with `compact`. The file's 75 cases pass
here (66 run, 9 platform-conditioned skips) and `check:fast` passes.
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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The PR appears safe to merge; it avoids unnecessary Java launches while keeping incomplete installations blocked. SummaryThe shared Ghidra inspector now skips Java probes when the selected installation’s application properties are missing.
Reviews (3) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
|
@morluto Could you please review this PR when you have time? As the author, I am finding the ongoing work of keeping these pending branches synchronized and revalidated a substantial maintenance burden. The current head's CI has passed, there are no unresolved inline review threads, and the PR description records the evidence and remaining validation limits. If this change is outside the project's priorities or scope, a clear direction would also help me avoid further unnecessary maintenance. Thank you. |
The doctor readiness fixture and process-capture progress assertions are not required by descriptor retirement or I/O failure precedence. Restoring them, and the Ghidra installation test already merged in morluto#11732, leaves this change on the iNES reader, chunk reader, and their regressions. The unused artifact chunk helper import is removed. Co-authored-by: morluto <[email protected]>
Merging main reapplied the morluto#11732 case beside the copy already on main. Co-authored-by: morluto <[email protected]>
* fix(node-sea): bound duplicate blob verification work
* test(mcp): observe cleanup failures at their current delivery boundary
* fix(mcp): preserve workflow completion progress through delivery
* test(setup): keep the Windows Kimi profile fixture on a supported profile
The Windows-only case at `clientConfigurationEnvironment.test.ts:226` wrote
`rea_mcp_input_schema_profile: "full"`. That profile was retired: the reader
now refuses it ("REA_MCP_INPUT_SCHEMA_PROFILE accepts only \"compact\" …"),
so `configureClientConfiguration` returned `failed/readback` before writing
and the case failed on every Windows run, including main's own
`Windows capability and package lane`.
The case has no Windows dependency — it passes an explicit `configPath` and
the Kimi write dialect is the same everywhere — so it now runs on every
platform, which is what let the stale value rot unnoticed. The fixture keeps
the lowercase explicit key the case is about, with the supported value.
Verified on `main` `d6bcfc10`: the same fixture driven through
`configureClientConfiguration(..., "win32")` on this host reproduced
`{"status":"failed","reason":"readback"}` with the retired value and now
returns `{"status":"configured"}` with `compact`. The file's 75 cases pass
here (66 run, 9 platform-conditioned skips) and `check:fast` passes.
* test(ci): restore verifier and MCP contract regressions
* test(captures): assert adapter-owned input issue field names
* fix(ghidra): avoid Java probes for missing installations
* test(ghidra): drop duplicate absent-installation coverage
Merging main reapplied the #11732 case beside the copy already on main.
Co-authored-by: morluto <[email protected]>
* test(node-sea): assert duplicate-blob refusal without stdout prose
The CLI coverage already checks the truncated code and limit details.
Co-authored-by: morluto <[email protected]>
---------
Co-authored-by: ShuaixinHuang <[email protected]>
Co-authored-by: g0at <[email protected]>
Co-authored-by: IvenKooLab <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: morluto <[email protected]>
…1748) * fix(artifacts): preserve iNES shutdown ownership and I/O failures * test(cli): publish complete doctor readiness before cancellation * test(mcp): observe cleanup failures at their current delivery boundary * fix(mcp): preserve workflow completion progress through delivery * test(ci): assert current MCP and evidence ownership contracts * test(setup): keep the Windows Kimi profile fixture on a supported profile The Windows-only case at `clientConfigurationEnvironment.test.ts:226` wrote `rea_mcp_input_schema_profile: "full"`. That profile was retired: the reader now refuses it ("REA_MCP_INPUT_SCHEMA_PROFILE accepts only \"compact\" …"), so `configureClientConfiguration` returned `failed/readback` before writing and the case failed on every Windows run, including main's own `Windows capability and package lane`. The case has no Windows dependency — it passes an explicit `configPath` and the Kimi write dialect is the same everywhere — so it now runs on every platform, which is what let the stale value rot unnoticed. The fixture keeps the lowercase explicit key the case is about, with the supported value. Verified on `main` `d6bcfc10`: the same fixture driven through `configureClientConfiguration(..., "win32")` on this host reproduced `{"status":"failed","reason":"readback"}` with the retired value and now returns `{"status":"configured"}` with `compact`. The file's 75 cases pass here (66 run, 9 platform-conditioned skips) and `check:fast` passes. * test(ci): restore verifier and MCP contract regressions * test(captures): assert adapter-owned input issue field names * fix(ghidra): avoid Java probes for missing installations * test(capture): retain final cleanup progress assertions * fix(artifacts): keep iNES shutdown ownership free of unrelated edits The doctor readiness fixture and process-capture progress assertions are not required by descriptor retirement or I/O failure precedence. Restoring them, and the Ghidra installation test already merged in #11732, leaves this change on the iNES reader, chunk reader, and their regressions. The unused artifact chunk helper import is removed. Co-authored-by: morluto <[email protected]> * test(artifacts): age the iNES header race before same-size rewrites Identity checks observe mtime, and a same-size overwrite inside one clock tick is indistinguishable from the original file. The admission test then reports a format error instead of source integrity. Age the fixture the same way the prefix race already does. * test(go): assert truncated Mach-O command tables by typed failure An unstored oversized command table is a truncated Mach-O load-command parse, projected as invalid_format. The old message lock named a sentence the parser no longer produces. Co-authored-by: morluto <[email protected]> * test(artifacts): fold the paused iNES inventory close into the existing case The standalone close test repeated the paused entries() refusal already covered by the close/cancel pair. The borrowed-descriptor stat stays on that close case. Co-authored-by: morluto <[email protected]> * fix(artifacts): preserve first iNES stream interruption --------- Co-authored-by: ShuaixinHuang <[email protected]> Co-authored-by: g0at <[email protected]> Co-authored-by: IvenKooLab <[email protected]> Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: morluto <[email protected]> Co-authored-by: morluto <[email protected]>
Summary
Avoid launching Java when a selected Ghidra installation has no readable
Ghidra/application.properties. Native-only MCP artifact comparison can deliberately point at an unavailable deep-analysis installation; probing the ambient JVM is unnecessary and can fail the unrelated workflow during owned process discovery.Installation metadata remains unavailable, setup/doctor registration remains refused, and Java probing for valid installations is preserved. The shared installation inspector owns the change; no process ownership or cleanup failure is suppressed.
Follow-up to merged #11727, isolated on main
552d1c710. This is an additional repair, not a replacement for that merged PR.Executed validation
Linux, Node 24.22.1 / npm 11.9.0:
npm run test:focused -- src/ghidra/GhidraInstallation.test.ts tests/acceptance/artifactComparisonHistoricalSummary.test.ts: 129 passed, 1 platform skip, required build passed.npm run check:fast, normal commit/pre-push hooks andgit diff --checkpassed. Merging main preserved the qualified source tree exactly.Hosted native Windows/macOS and the full monolithic suite were not run locally. No retry or timeout relaxation is used.
Author readiness
Human owner: @ShuaixinHuang