feat(errors): carry the value of Go, Rust, IL2CPP, sigrok, Electron fuse, CDP, projection and assetutil allowances (#11645)

Each of these fixed allowances now passes limit and unit, traced to the constant or parse refusal that produced it. The Electron fuse, CDP runtime retention and assetutil names no longer embed the value.
This commit is contained in:
morluto authored and GitHub committed 2026-11-16 09:40:58 +08:00
1 parent 836ac2fea6
commit 680c83f88c
14 files changed
+123 -42

No files matched your search

@@ -553,6 +553,9 @@ it.each([
diagnostics: { catalog_path: "Assets.car" },
capturedOutput: { stderr: "specific catalog diagnostic" },
...(code === "ETIMEDOUT" ? { timeoutMs: 60000 } : {}),
...(code === "ERR_CHILD_PROCESS_STDIO_MAXBUFFER"
? { fixedAllowance: { limit: 64 * 1024 * 1024, unit: "bytes" } }
: {}),
});
},
);
@@ -477,10 +477,10 @@ const assetUtilFailure = (cause: unknown, entry: ArtifactEntry): unknown => {
{ maximum_output_bytes: MAX_CATALOG_BYTES },
{
...options,
...fixedAllowanceOptions(
"the fixed 64 MiB assetutil capture allowance",
"capture",
),
...fixedAllowanceOptions("The assetutil capture allowance", "capture", {
limit: MAX_CATALOG_BYTES,
unit: "bytes",
}),
},
);
if (output !== undefined) {