fix(ghidra): keep JVM warnings out of LaunchSupport output (#1698)
* fix(ghidra): keep JVM warnings out of LaunchSupport output Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(ghidra): retain LaunchSupport warnings in session diagnostics * fix(ghidra): select helper logging flags by observed JVM identity * fix(ghidra): preserve diagnostics through typed failure projection --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
morluto
parent
0043d9b134
commit
e20994a8ea
@@ -46,6 +46,7 @@ const installationHost = (): GhidraInstallationHost => ({
|
||||
home: "/usr/lib/jvm/jdk-21",
|
||||
bits: 64,
|
||||
runtime: "jdk",
|
||||
vmName: "OpenJDK 64-Bit Server VM",
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -599,6 +600,11 @@ describe("Ghidra client projection", () => {
|
||||
expect.objectContaining({
|
||||
runId: "11111111-1111-4111-8111-111111111111",
|
||||
platform: "linux",
|
||||
launcher: expect.objectContaining({
|
||||
options: expect.objectContaining({
|
||||
javaVmName: "OpenJDK 64-Bit Server VM",
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
]);
|
||||
expect(toolCalls).toEqual([
|
||||
@@ -756,6 +762,11 @@ describe("Ghidra result projection", () => {
|
||||
ok: false,
|
||||
error: { _tag: tag },
|
||||
});
|
||||
if (!result.ok)
|
||||
expect(projectAnalysisError(result.error)).toMatchObject({
|
||||
code: "cancelled",
|
||||
details: { diagnostics: { remote_code: code } },
|
||||
});
|
||||
});
|
||||
|
||||
it("returns cancellation before profile work", async () => {
|
||||
@@ -1691,7 +1702,10 @@ it("projects Ghidra startup failure and its incomplete cleanup together", async
|
||||
diagnostics: {
|
||||
primary_error: {
|
||||
code: "provider_timeout",
|
||||
details: { timeout_ms: 250 },
|
||||
details: {
|
||||
timeout_ms: 250,
|
||||
diagnostics: { failure_kind: "timeout" },
|
||||
},
|
||||
},
|
||||
cleanup_error: { code: "cleanup_incomplete" },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user