From c818ca9042dae02a8e572c546aa95ee5767a26fc Mon Sep 17 00:00:00 2001 From: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> Date: Sun, 8 Nov 2026 14:32:49 +0800 Subject: [PATCH] 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 --- scripts/verify-packaged-ghidra-windows.mjs | 6 ++++-- scripts/verify/apple/dispatch.mjs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/verify-packaged-ghidra-windows.mjs b/scripts/verify-packaged-ghidra-windows.mjs index c37da5b673..6770e09709 100644 --- a/scripts/verify-packaged-ghidra-windows.mjs +++ b/scripts/verify-packaged-ghidra-windows.mjs @@ -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); diff --git a/scripts/verify/apple/dispatch.mjs b/scripts/verify/apple/dispatch.mjs index 9d7c4a3054..cfb77eff32 100644 --- a/scripts/verify/apple/dispatch.mjs +++ b/scripts/verify/apple/dispatch.mjs @@ -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");