fix: simplify sentinel dashboard verify
This commit is contained in:
@@ -134,6 +134,7 @@ export function runWebProbeRemoteArtifactJob(options: WebProbeRemoteArtifactJobO
|
||||
if (cleanup.result !== null) commandResults.push(cleanup.result);
|
||||
const manifestExitCode = manifest?.exitCode ?? null;
|
||||
const ok = pollFailure === null && manifest !== null && manifest.exitCode === 0 && downloadFailure === null;
|
||||
const exitCode = ok ? 0 : manifestExitCode ?? (pollFailure !== null ? 1 : submit.exitCode ?? 1);
|
||||
const transport = {
|
||||
ok,
|
||||
command: "web-probe remote-artifact",
|
||||
@@ -168,7 +169,7 @@ export function runWebProbeRemoteArtifactJob(options: WebProbeRemoteArtifactJobO
|
||||
return {
|
||||
result: syntheticCommandResult(
|
||||
[transPath(), options.route, "web-probe-remote-artifact"],
|
||||
ok ? 0 : manifestExitCode ?? submit.exitCode ?? 1,
|
||||
exitCode,
|
||||
JSON.stringify(transport, null, 2),
|
||||
commandResults,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user