stablyai/orca · error · Error

Fresh production sidecar/helper build did not produce the ex

Error message

Fresh production sidecar/helper build did not produce the expected artifacts

What it means

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.

Source

Thrown at config/scripts/macos-computer-helper-owner-loss-benchmark.mjs:540

  throwBenchmarkTrialFailures(trialError, cleanupError)
  return parsedResult
}

function runBenchmark() {
  if (process.platform !== 'darwin') {
    throw new Error('The computer-use helper owner benchmark is macOS-only')
  }
  const options = parseArgs(process.argv.slice(2))
  const dirty = execFileSync('git', ['status', '--porcelain'], {
    cwd: repoRoot,
    encoding: 'utf8'
  }).trim()
  if (dirty) {
    throw new Error('Commit or stash changes before running the provenance-bound benchmark')
  }
  buildArtifacts()
  if (!existsSync(sidecarPath) || !existsSync(helperPath)) {
    throw new Error('Fresh production sidecar/helper build did not produce the expected artifacts')
  }
  const executable = electronPath()
  const results = Array.from({ length: options.trials }, () => runTrial(executable, options.expect))
  const rssBytes = results.map((result) => result.connectedRssBytes)
  const cpuMilliseconds = results.map((result) => result.connectedCpuMilliseconds)
  const activeRequestTotals = results.map((result) => result.activeRequests.totalMs)
  const activeRequestRates = results.map((result) => result.activeRequests.requestsPerSecond)
  const activeRequestMedians = results.map((result) => result.activeRequests.medianLatencyMs)
  const activeRequestP95s = results.map((result) => result.activeRequests.p95LatencyMs)
  const activeRequestMaxes = results.map((result) => result.activeRequests.maxLatencyMs)
  const postLossRssBytes = results.map((result) => result.postLossRssBytes)
  const report = {
    benchmark: 'macos-computer-helper-authenticated-owner-loss',
    revision: execFileSync('git', ['rev-parse', 'HEAD'], {
      cwd: repoRoot,
      encoding: 'utf8'
    }).trim(),
    artifacts: {

View on GitHub (pinned to 1136503c6a)

Solutions

  1. Run `pnpm exec electron-vite build` and `pnpm build:computer-macos` manually and verify the output paths
  2. Confirm sidecarPath (out/main/computer-sidecar.js) and helperPath constants match actual build output
  3. Check the native build for silent failures: missing Xcode, code signing errors, or skipped targets
  4. Ensure the Swift helper build target name and .app bundle name match Orca Computer Use.app

Example fix

// before: build config changed the output dir to out/dist
// sidecarPath = path.join(repoRoot, 'out', 'main', 'computer-sidecar.js') // stale

// after: align constant with actual build output
const sidecarPath = path.join(repoRoot, 'out', 'dist', 'main', 'computer-sidecar.js')
Defensive patterns

Strategy: validation

Validate before calling

// Verify build artifacts exist before running the benchmark
const sidecarPath = path.join(repoRoot, 'out', 'main', 'computer-sidecar.js')
const helperPath = path.join(repoRoot, 'native', 'computer-use-macos', '.build', 'release', 'Orca Computer Use.app', 'Contents', 'MacOS', 'orca-computer-use-macos')
if (!existsSync(sidecarPath) || !existsSync(helperPath)) {
  throw new Error('Build artifacts missing — run pnpm exec electron-vite build && pnpm build:computer-macos first')
}

Prevention

When it happens

Trigger: 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.

Common situations: 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.

Related errors


AI-assisted analysis of stablyai/orca@1136503c6a (2026-08-12). Data as JSON: /api/errors/e261f9ba3655b2b6. Report an issue: GitHub.