Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
b0d8773
fix(node-sea): bound duplicate blob verification work
ShuaixinHuang Nov 13, 2026
8b5c792
Merge commit 'bd9f2cca45cb99c7460ab678f4fe6a3b12d6ba3a' into work/aud…
ShuaixinHuang Nov 15, 2026
85e84ff
Merge commit 'f916b3ecf5455ffc80e300d8cf7eea144d02d61c' into work/fin…
ShuaixinHuang Nov 15, 2026
010fa34
test(mcp): observe cleanup failures at their current delivery boundary
g1at Nov 16, 2026
50fb5ef
fix(mcp): preserve workflow completion progress through delivery
g1at Nov 16, 2026
f810ad1
test(setup): keep the Windows Kimi profile fixture on a supported pro…
IvenKooLab Nov 16, 2026
0199c9f
test(ci): restore verifier and MCP contract regressions
ShuaixinHuang Nov 16, 2026
439e091
Merge remote-tracking branch 'origin/main' into fix/ci-current-verifi…
ShuaixinHuang Nov 16, 2026
d540c4f
Merge remote-tracking branch 'prereq/11702' into fix/ci-current-verif…
ShuaixinHuang Nov 16, 2026
c4c4409
Merge remote-tracking branch 'prereq/11703' into fix/ci-current-verif…
ShuaixinHuang Nov 16, 2026
a1a3b89
Merge remote-tracking branch 'prereq/11725' into fix/ci-current-verif…
ShuaixinHuang Nov 16, 2026
5c44f5a
test(captures): assert adapter-owned input issue field names
ShuaixinHuang Nov 16, 2026
f93ba97
Merge commit '5c44f5af16aae3e61fa298257451639e690e9977' into repair/v…
ShuaixinHuang Nov 16, 2026
a8f98b7
fix(ghidra): avoid Java probes for missing installations
ShuaixinHuang Nov 16, 2026
4942d2d
Merge commit 'a8f98b7a951ba0c28cb91f7429d7461cad205ced' into repair/v…
ShuaixinHuang Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(ghidra): avoid Java probes for missing installations
  • Loading branch information
ShuaixinHuang committed Nov 16, 2026
commit a8f98b7a951ba0c28cb91f7429d7461cad205ced
32 changes: 32 additions & 0 deletions src/ghidra/GhidraInstallation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,38 @@ describe("Ghidra installation version admission", () => {
);
});

describe("Ghidra absent installation admission", () => {
it.each(["linux", "darwin", "win32"] as const)(
"does not run Java for an installation missing application properties (%s)",
async (platform) => {
const probeJava = vi.fn(() => javaProbeOk<GhidraJavaObservation>(JAVA));
const result = await inspectGhidraInstallation(
{
resourceOwner: inspectionResources.owner,
environment: { PATH: "/usr/bin" },
installDir: platform === "win32" ? WINDOWS_INSTALL : INSTALL,
platform,
architecture: "x64",
},
host({ readText: () => undefined, probeJava }),
);
expect(probeJava).not.toHaveBeenCalled();
expect(result.status).toBe("unavailable");
expect(result.checks).toContainEqual(
expect.objectContaining({
name: "installation",
status: "failed",
code: "executable_missing",
}),
);
expect(projectGhidraDoctorInspection(result)).toMatchObject({
available: false,
registrationEnvironment: {},
});
},
);
});

describe("Ghidra configuration paths", () => {
it.each([
[{ installDir: "./ghidra" }, "GHIDRA_INSTALL_DIR must be absolute"],
Expand Down
5 changes: 3 additions & 2 deletions src/ghidra/GhidraInstallation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,12 @@ const installationCoordinates = async (
: { source: "homebrew", command: homebrew };
})();
let javaCommand = selectedJava.command;
// Java is a prerequisite of a selected installation. Without one, or with a
// relative JAVA_HOME, configuration validation refuses Ghidra before Java can
// Java is a prerequisite of an existing installation. Missing application
// properties or a relative JAVA_HOME already refuse Ghidra before Java can
// matter, so callers such as setup and doctor must not execute a host JVM.
let javaProbe =
installDir !== null &&
properties !== undefined &&
(options.javaHome === undefined || path.isAbsolute(options.javaHome))
? await host.probeJava(
javaCommand,
Expand Down