refactor(tools): remove remaining arbitrary workflow caps
This commit is contained in:
@@ -5,14 +5,11 @@ import {
|
||||
import type { ProviderProcessDiagnostic } from "../process/ProviderProcess.js";
|
||||
import { parseLinuxPrivateDisplayDiagnostic } from "./LinuxPrivateDisplayDiagnostic.js";
|
||||
|
||||
/** Extract only a matching, versioned Linux adapter failure record. */
|
||||
/** Extract only a matching Linux adapter failure record. */
|
||||
export const hopperLauncherFailureDiagnostic = (
|
||||
event: Extract<ProviderProcessDiagnostic, { readonly type: "exit" }>,
|
||||
): HopperStartupFailureDiagnostic | undefined => {
|
||||
const parsed = parseLinuxPrivateDisplayDiagnostic(
|
||||
event.snapshot.stderr.text,
|
||||
event.snapshot.stderr.truncated,
|
||||
);
|
||||
const parsed = parseLinuxPrivateDisplayDiagnostic(event.snapshot.stderr.text);
|
||||
if (!parsed.ok) return undefined;
|
||||
const expected = hopperStartupFailure(event.code)?.code;
|
||||
return parsed.value.operation === "launch" &&
|
||||
|
||||
Reference in New Issue
Block a user