fix(artifacts): preserve reader failure diagnostics (#987)

* fix(artifacts): preserve filesystem and DMG diagnostics

* fix(artifacts): classify DMG verification failures

* fix(artifacts): distinguish inaccessible disk images

* fix(artifacts): classify damaged image checksums
This commit is contained in:
morluto
2026-10-07 23:58:07 +08:00
committed by GitHub
parent abd7a5ed09
commit fc4a9a0592
6 changed files with 537 additions and 20 deletions
+9
View File
@@ -23,4 +23,13 @@ describe("execFileOutput", () => {
),
).rejects.toMatchObject({ code: "ERR_CHILD_PROCESS_STDIO_MAXBUFFER" });
});
it("retains both captured streams on a failed child process", async () => {
await expect(
execFileOutput(process.execPath, [
"-e",
'process.stdout.write("out"); process.stderr.write("err"); process.exitCode = 7;',
]),
).rejects.toMatchObject({ code: 7, stdout: "out", stderr: "err" });
});
});