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 <noreply@anthropic.com>

* test(managed-server): measure the snapshot-space probe and record #30618's capture growth

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Neil
2026-10-19 02:29:45 -07:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 0e1d0ad4a8
commit 912cb06398
@@ -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<Record<string, number>> = {
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<Record<string, (c: HostCase) => 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),