From 912cb06398cb769c10ccdd3ac9d8540e291acf3d Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Mon, 19 Oct 2026 02:29:45 -0700 Subject: [PATCH] fix(managed-server): repair main typecheck after the byte-budget and snapshot-room PRs crossed (#30680) * fix(managed-server): import newestStateMtimeCommand from its new module #30635 and #30618 merged in parallel: #30618 moved newestStateMtimeCommand to orcad-state-newest-mtime.ts while #30635's byte-budget test imported it from orcad-state-snapshot.ts, breaking typecheck on main. Co-Authored-By: Claude Opus 5.5 * test(managed-server): measure the snapshot-space probe and record #30618's capture growth Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- src/main/managed-server/posix-host-op-byte-budget.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/managed-server/posix-host-op-byte-budget.test.ts b/src/main/managed-server/posix-host-op-byte-budget.test.ts index cd69eb1f311..765f0e035bf 100644 --- a/src/main/managed-server/posix-host-op-byte-budget.test.ts +++ b/src/main/managed-server/posix-host-op-byte-budget.test.ts @@ -34,11 +34,12 @@ import { captureOrcadStateSnapshotCommand, clearOrcadStateSnapshotMembersCommand, compareOrcadStateSnapshotCommand, - newestStateMtimeCommand, probeOrcadStateSnapshotCommand, restoreOrcadStateSnapshotCommand, serializedStateMutationCommand } from './host-state/orcad-state-snapshot' +import { newestStateMtimeCommand } from './host-state/orcad-state-newest-mtime' +import { orcadSnapshotSpaceCommand } from './host-state/orcad-state-snapshot-space' import { posixProcessGroupCommand } from './host-state/orcad-state-mutation-owner-record' import { orcadMachineClaimCommand } from './host-state/orcad-machine-claim-command' import { orcadMachineHomeProbeCommand } from './host-state/orcad-machine-home' @@ -95,7 +96,8 @@ const POSIX_HOST_OP_BYTE_BUDGET = 6 * 1024 // capture/restore/clear ops leave when they move onto the Node host script (R4-10b, decision D-J); // install-lock steal and anything else that runs before a verified Node must shrink in shell. const OVER_BUDGET_CEILINGS: Readonly> = { - captureOrcadStateSnapshotCommand: 15_327, + // #30618 added old-snapshot pruning and failure cleanup to the capture; R4-10b moves it to Node. + captureOrcadStateSnapshotCommand: 17_407, restoreOrcadStateSnapshotCommand: 20_805, clearOrcadStateSnapshotMembersCommand: 9_175, tryStealInstallLockCommand: 9_022, @@ -166,6 +168,8 @@ const BUILDERS: Readonly string>> = { compareOrcadStateSnapshotCommand: ({ host }) => compareOrcadStateSnapshotCommand(host, userDataDir, snapshotDir, baseDir), newestStateMtimeCommand: ({ host }) => newestStateMtimeCommand(host, userDataDir, baseDir), + orcadSnapshotSpaceCommand: ({ host }) => + orcadSnapshotSpaceCommand(host, userDataDir, snapshotDir, baseDir, ['keep-a', 'keep-b']) ?? '', posixProcessGroupCommand: () => posixProcessGroupCommand('"$pid"'), orcadMachineClaimCommand: ({ host }) => orcadMachineClaimCommand(host, home, 'k'.repeat(64)), orcadMachineHomeProbeCommand: ({ host }) => orcadMachineHomeProbeCommand(host),