// the playwright driver writes its browser-host stderr to a tmpdir log, and // that log carries the only hardware-WebGL proof the hosted recorder accepts. // the driver names the file and the recorder scans for it, so the prefix lives // here rather than as a literal in both. it was already renamed once // (sootsim- -> rnx-) without the recorder following, which silently failed // every hosted job with "run completed without hardware WebGL proof" even when // the preview itself uploaded fine. export const PLAYWRIGHT_HOST_LOG_PREFIX = 'rnx-playwright-host-' export function playwrightHostLogName(nowMs: number, pid: number): string { return `${PLAYWRIGHT_HOST_LOG_PREFIX}${nowMs.toString(36)}-${pid}.log` } export function isPlaywrightHostLog(name: string): boolean { return name.startsWith(PLAYWRIGHT_HOST_LOG_PREFIX) && name.endsWith('.log') }