Files
orca/config/scripts/run-ssh-docker-custom-agent-e2e.mjs
Jinjing cebafbe042 Persist cleaned launch configs and harden failure records
Persist cleaned config (trimmed args, env-stripped) instead of raw handoff to
avoid subtle bugs on resume. Whitelist failure record fields to prevent forged
payloads from storing secrets. Add post-migration exit guidance UI and disable
silent-no-op recovery actions. Expand e2e surface coverage.
2026-09-01 03:53:17 -07:00

41 lines
768 B
JavaScript

import { spawnSync } from 'node:child_process'
const extraArgs = process.argv.slice(2)
const pnpm = process.platform === 'win32' ? 'pnpm.cmd' : 'pnpm'
const env = {
...process.env,
ORCA_E2E_SSH_DOCKER: '1'
}
const runtime = spawnSync(pnpm, ['run', 'ensure:electron-runtime'], {
stdio: 'inherit',
env
})
if (runtime.status !== 0) {
process.exit(runtime.status ?? 1)
}
const result = spawnSync(
pnpm,
[
'exec',
'playwright',
'test',
'tests/e2e/ssh-custom-agent-launch.spec.ts',
'tests/e2e/ssh-custom-agent-surfaces.spec.ts',
'--config',
'tests/playwright.config.ts',
'--project',
'electron-headless',
'--workers=1',
...extraArgs
],
{
stdio: 'inherit',
env
}
)
process.exit(result.status ?? 1)