(repoRoot: string)
| 532 | // secrets or restarting live panes. |
| 533 | if (sessionAlreadyRunning && reuseRunning) { |
| 534 | const manifest = readManifest(repoRoot); |
| 535 | const missing = await missingRunningServices(manifest, sessionName, serviceNames, { |
| 536 | repoRoot, |
| 537 | waitMs: 30_000, |
| 538 | pollMs: 500, |
| 539 | }); |
| 540 | if (missing.length > 0) |
| 541 | throw new Error( |
| 542 | `Cannot reuse session ${sessionName}; requested services are missing or stayed down for 30s: ${missing.join(', ')}. ` + |
| 543 | 'Do not rerun without --reuse-running while another verifier may use the stack. Retry the same command once; if it still fails, stop every shard, stop the stack, and start a fresh round.' |
| 544 | ); |
| 545 | console.log(`Reusing running session ${sessionName} without restarting services.`); |
| 546 | return noAttach ? undefined : sessionName; |
no test coverage detected