refactor(process): build provider captured output through one owner (#11330)

* refactor(process): build provider captured output through one owner

* fix(process): report only declared diagnostics on successful provider results
This commit is contained in:
morluto authored and GitHub committed 2026-11-16 03:46:35 +08:00
1 parent 264dcd5fee
commit 0d35ea065d
25 files changed
+198 -147

No files matched your search

+2 -2
View File
@@ -1,3 +1,4 @@
import { capturedProviderOutput } from "../process/capturedProviderOutput.js";
import { randomUUID } from "node:crypto";
import { rm } from "node:fs/promises";
@@ -14,7 +15,6 @@ import {
runOwnedCommand,
} from "../process/OwnedCommand.js";
import { DarwinProcessOwnershipInspectionError } from "../process/DarwinProcessRunTokenReader.js";
import { artifactCommandOutput } from "../process/ArtifactAnalysisResources.js";
import {
AnalysisOutputError,
cancelledBy,
@@ -142,7 +142,7 @@ export const runDesktopBuildOwnedCommand = async (input: {
? preparation instanceof DarwinProcessOwnershipInspectionError
? preparation.capturedOutput
: undefined
: artifactCommandOutput(command.snapshot);
: capturedProviderOutput(command.snapshot);
const reason = desktopBuildOwnedCommandReason(failure);
const physical =
failure instanceof AnalysisError