fix(ci): consume owned command failure output in verifiers (#9334)

* fix(ci): read owned CLI failure output in Apple verifier

* fix(ci): preserve packaged Ghidra command failure diagnostics

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
This commit is contained in:
gensokyo-devandgensokyo-dev authored and GitHub committed 2026-11-08 06:32:49 +00:00
1 parent 2ac8578827
commit c818ca9042
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -75,8 +75,10 @@ if (!internalWorkspace) {
commands === undefined ? workspaceOwner.close() : commands.close(),
]);
} catch (cause) {
if (typeof cause.stdout === "string") process.stdout.write(cause.stdout);
if (typeof cause.stderr === "string") process.stderr.write(cause.stderr);
const stdout = cause?.snapshot?.stdout?.text;
const stderr = cause?.snapshot?.stderr?.text;
if (typeof stdout === "string") process.stdout.write(stdout);
if (typeof stderr === "string") process.stderr.write(stderr);
throw cause;
}
const report = JSON.parse(result.stdout);
+1 -1
View File
@@ -394,7 +394,7 @@ try {
} catch (cause) {
assert.equal(cause.code, 1);
cliFailure = analysisErrorProjectionSchema.parse(
cliOperationFailurePayload(JSON.parse(cause.stdout)),
cliOperationFailurePayload(JSON.parse(cause.snapshot.stdout.text)),
);
}
assert.equal(cliFailure.code, "unsupported_target");