{"record":{"id":"e261f9ba3655b2b6","repo":"stablyai/orca","slug":"fresh-production-sidecar-helper-build-did-not-prod","errorCode":null,"errorMessage":"Fresh production sidecar/helper build did not produce the expected artifacts","messagePattern":"Fresh production sidecar/helper build did not produce the expected artifacts","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"config/scripts/macos-computer-helper-owner-loss-benchmark.mjs","lineNumber":540,"sourceCode":"  throwBenchmarkTrialFailures(trialError, cleanupError)\n  return parsedResult\n}\n\nfunction runBenchmark() {\n  if (process.platform !== 'darwin') {\n    throw new Error('The computer-use helper owner benchmark is macOS-only')\n  }\n  const options = parseArgs(process.argv.slice(2))\n  const dirty = execFileSync('git', ['status', '--porcelain'], {\n    cwd: repoRoot,\n    encoding: 'utf8'\n  }).trim()\n  if (dirty) {\n    throw new Error('Commit or stash changes before running the provenance-bound benchmark')\n  }\n  buildArtifacts()\n  if (!existsSync(sidecarPath) || !existsSync(helperPath)) {\n    throw new Error('Fresh production sidecar/helper build did not produce the expected artifacts')\n  }\n  const executable = electronPath()\n  const results = Array.from({ length: options.trials }, () => runTrial(executable, options.expect))\n  const rssBytes = results.map((result) => result.connectedRssBytes)\n  const cpuMilliseconds = results.map((result) => result.connectedCpuMilliseconds)\n  const activeRequestTotals = results.map((result) => result.activeRequests.totalMs)\n  const activeRequestRates = results.map((result) => result.activeRequests.requestsPerSecond)\n  const activeRequestMedians = results.map((result) => result.activeRequests.medianLatencyMs)\n  const activeRequestP95s = results.map((result) => result.activeRequests.p95LatencyMs)\n  const activeRequestMaxes = results.map((result) => result.activeRequests.maxLatencyMs)\n  const postLossRssBytes = results.map((result) => result.postLossRssBytes)\n  const report = {\n    benchmark: 'macos-computer-helper-authenticated-owner-loss',\n    revision: execFileSync('git', ['rev-parse', 'HEAD'], {\n      cwd: repoRoot,\n      encoding: 'utf8'\n    }).trim(),\n    artifacts: {","sourceCodeStart":522,"sourceCodeEnd":558,"githubUrl":"https://github.com/stablyai/orca/blob/1136503c6a231a16dce8f921f6fadb63d181e8db/config/scripts/macos-computer-helper-owner-loss-benchmark.mjs#L522-L558","documentation":"After buildArtifacts() runs `pnpm exec electron-vite build` and `pnpm build:computer-macos`, the script checks that out/main/computer-sidecar.js and the helper .app/Contents/MacOS/orca-computer-use-macos exist. If either is missing, the build failed silently or produced output at a different path.","triggerScenarios":"existsSync(sidecarPath) or existsSync(helperPath) returns false at line 539, meaning the build completed without error but did not produce the expected files at the hardcoded paths.","commonSituations":"Build config change moved the output directory; native build (Swift/Xcode) skipped due to missing toolchain; the helper .app bundle structure changed; electron-vite output dir was customized; build exited 0 but a sub-step was skipped.","solutions":["Run `pnpm exec electron-vite build` and `pnpm build:computer-macos` manually and verify the output paths","Confirm sidecarPath (out/main/computer-sidecar.js) and helperPath constants match actual build output","Check the native build for silent failures: missing Xcode, code signing errors, or skipped targets","Ensure the Swift helper build target name and .app bundle name match Orca Computer Use.app"],"exampleFix":"// before: build config changed the output dir to out/dist\n// sidecarPath = path.join(repoRoot, 'out', 'main', 'computer-sidecar.js') // stale\n\n// after: align constant with actual build output\nconst sidecarPath = path.join(repoRoot, 'out', 'dist', 'main', 'computer-sidecar.js')","handlingStrategy":"validation","validationCode":"// Verify build artifacts exist before running the benchmark\nconst sidecarPath = path.join(repoRoot, 'out', 'main', 'computer-sidecar.js')\nconst helperPath = path.join(repoRoot, 'native', 'computer-use-macos', '.build', 'release', 'Orca Computer Use.app', 'Contents', 'MacOS', 'orca-computer-use-macos')\nif (!existsSync(sidecarPath) || !existsSync(helperPath)) {\n  throw new Error('Build artifacts missing — run pnpm exec electron-vite build && pnpm build:computer-macos first')\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run the build steps manually first and verify output paths","Check that build config (electron-vite, Swift package) targets the expected output directories","Ensure the native build toolchain (Xcode, Swift) is installed"],"tags":["build","benchmark"],"backgroundTag":null,"analyzedSha":"1136503c6a231a16dce8f921f6fadb63d181e8db","analyzedAt":"2026-08-12T23:15:58.167Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}