{"record":{"id":"728179b7a07f3e0b","repo":"stablyai/orca","slug":"mac-release-build-workflow-completedrun-html-url","errorCode":null,"errorMessage":"Mac release build workflow ${completedRun.html_url ?? completedRun.id} concluded ${completedRun.conclusion ?? 'without a conclusion'}.","messagePattern":"Mac release build workflow (.+?) concluded (.+?)\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"config/scripts/run-release-mac-build-workflow.mjs","lineNumber":54,"sourceCode":"  const workflowRun =\n    readWorkflowRunFromDispatchResult(dispatchResult) ??\n    (await findDispatchedReleaseMacBuildRun(api, options, {\n      dispatchStartedAtMs,\n      now,\n      sleep\n    }))\n\n  console.log(\n    `Waiting for mac release build workflow run ${workflowRun.id}: ${workflowRun.html_url}`\n  )\n\n  const completedRun = await waitForReleaseMacBuildRun(api, workflowRun.id, options, {\n    now,\n    sleep\n  })\n\n  if (completedRun.conclusion !== 'success') {\n    throw new Error(\n      `Mac release build workflow ${completedRun.html_url ?? completedRun.id} concluded ${\n        completedRun.conclusion ?? 'without a conclusion'\n      }.`\n    )\n  }\n\n  console.log(`Mac release build workflow succeeded: ${completedRun.html_url}`)\n  return completedRun\n}\n\nexport async function dispatchReleaseMacBuildWorkflow(api, options) {\n  const body = {\n    inputs: {\n      release_run_id: options.releaseRunId,\n      tag: options.tag\n    },\n    ref: options.ref\n  }","sourceCodeStart":36,"sourceCodeEnd":72,"githubUrl":"https://github.com/stablyai/orca/blob/1136503c6a231a16dce8f921f6fadb63d181e8db/config/scripts/run-release-mac-build-workflow.mjs#L36-L72","documentation":"Thrown by runReleaseMacBuildWorkflow when a dispatched mac release build workflow run reaches status 'completed' but its conclusion is anything other than 'success' (e.g. failure, cancelled, skipped, or null). The html_url/id and conclusion are included so the operator can jump straight to the failed run.","triggerScenarios":"waitForReleaseMacBuildRun returns a run whose status === 'completed' and conclusion !== 'success'. The mac build job inside the release workflow failed, was cancelled, or has no conclusion.","commonSituations":"Code-signing/notarization failure, missing macOS secrets (APPLE_*), runner unavailable/withdrawn, manual cancellation, upstream release artifact missing, workflow YAML error.","solutions":["Open completedRun.html_url from the message and read the failed job logs.","Confirm required mac-build secrets (signing cert, notarization credentials, GITHUB_TOKEN) are present in the repo/environment.","Re-trigger by re-running the release workflow after fixing the root cause.","If cancelled intentionally, treat as expected rather than retrying blindly."],"exampleFix":"// before\nconst completedRun = await waitForReleaseMacBuildRun(api, workflowRun.id, options)\n// after\nconst completedRun = await waitForReleaseMacBuildRun(api, workflowRun.id, options)\nif (completedRun.conclusion !== 'success') {\n  console.error(`Inspect failures: ${completedRun.html_url}`)\n  process.exitCode = 1\n  return completedRun\n}","handlingStrategy":"try-catch","validationCode":"if (run.status === 'completed' && run.conclusion !== 'success') {\n  // surface url early instead of throwing blindly\n  console.error(`Mac build failed: ${run.html_url} (${run.conclusion})`)\n}","typeGuard":"function isSuccessfulRun(run) {\n  return run?.status === 'completed' && run?.conclusion === 'success'\n}","tryCatchPattern":"try {\n  await runReleaseMacBuildWorkflow(options)\n} catch (err) {\n  if (/Mac release build workflow .* concluded/.test(err.message)) {\n    // extract the html_url from the message and fetch job logs for triage\n    process.exitCode = 1\n    return\n  }\n  throw err\n}","preventionTips":["Ensure mac signing/notarization secrets are present before dispatching.","Monitor runner capacity; cancelled runs often stem from runner withdrawal.","Pin the workflow to a known-good ref to avoid YAML regressions."],"tags":["ci","github-actions","release","mac"],"backgroundTag":null,"analyzedSha":"1136503c6a231a16dce8f921f6fadb63d181e8db","analyzedAt":"2026-08-12T23:15:58.167Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}