mirror of
https://github.com/stablyai/orca.git
synced 2026-10-28 00:02:54 +00:00
test(terminal): retention-budget force-park e2e with a retentionLimit override (C1 6b)
ORCA_E2E_TERMINAL_RETENTION_LIMIT flows preload → e2e-config → getTerminalParkingPolicyOverrides (exposeStore-gated, positive-integer only) so a spec can shrink the force-park budget to 1. The Docker-gated spec opens two remote worktrees on one relay target (second pre-seeded remote repo), disables terminalSshViewParking to make both un-parkable, hides both behind the local context, and proves the older one force-parks while the last-active exemption spares the newest; re-activating the evicted worktree restores the marker tail via relay replay. Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -23,5 +23,6 @@ export const preloadE2EConfig = createE2EConfig({
|
||||
userDataDir: process.env.ORCA_E2E_USER_DATA_DIR ?? null,
|
||||
// Why: Number('') is 0 and Number(undefined) is NaN; both coerce to null so
|
||||
// only a real positive override reaches the renderer parking policy.
|
||||
terminalParkingDelayMs: Number(process.env.ORCA_E2E_TERMINAL_PARKING_DELAY_MS) || null
|
||||
terminalParkingDelayMs: Number(process.env.ORCA_E2E_TERMINAL_PARKING_DELAY_MS) || null,
|
||||
terminalRetentionLimit: Number(process.env.ORCA_E2E_TERMINAL_RETENTION_LIMIT) || null
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user