rightsize 0.7.8 → 0.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend-docker/backend.d.ts +4 -1
- package/dist/backend-docker/backend.d.ts.map +1 -1
- package/dist/backend-docker/backend.js +4 -0
- package/dist/backend-docker/backend.js.map +1 -1
- package/dist/backend-msb/backend.d.ts +618 -68
- package/dist/backend-msb/backend.d.ts.map +1 -1
- package/dist/backend-msb/backend.js +1236 -133
- package/dist/backend-msb/backend.js.map +1 -1
- package/dist/backend-msb/commands.d.ts +160 -16
- package/dist/backend-msb/commands.d.ts.map +1 -1
- package/dist/backend-msb/commands.js +197 -31
- package/dist/backend-msb/commands.js.map +1 -1
- package/dist/backend-msb/provisioner.d.ts +1 -1
- package/dist/backend-msb/provisioner.d.ts.map +1 -1
- package/dist/backend-msb/provisioner.js +1 -1
- package/dist/backend-msb/provisioner.js.map +1 -1
- package/dist/backend-msb/restore-access-denied.d.ts +50 -0
- package/dist/backend-msb/restore-access-denied.d.ts.map +1 -0
- package/dist/backend-msb/restore-access-denied.js +52 -0
- package/dist/backend-msb/restore-access-denied.js.map +1 -0
- package/dist/backend-msb/restore-broker.d.ts +181 -0
- package/dist/backend-msb/restore-broker.d.ts.map +1 -0
- package/dist/backend-msb/restore-broker.js +264 -0
- package/dist/backend-msb/restore-broker.js.map +1 -0
- package/dist/backend-msb/sandbox-already-exists.d.ts +32 -0
- package/dist/backend-msb/sandbox-already-exists.d.ts.map +1 -0
- package/dist/backend-msb/sandbox-already-exists.js +35 -0
- package/dist/backend-msb/sandbox-already-exists.js.map +1 -0
- package/dist/backend-msb/snapshot-create.d.ts +22 -0
- package/dist/backend-msb/snapshot-create.d.ts.map +1 -0
- package/dist/backend-msb/snapshot-create.js +33 -0
- package/dist/backend-msb/snapshot-create.js.map +1 -0
- package/dist/backend-msb/snapshot-import.d.ts +30 -14
- package/dist/backend-msb/snapshot-import.d.ts.map +1 -1
- package/dist/backend-msb/snapshot-import.js +35 -17
- package/dist/backend-msb/snapshot-import.js.map +1 -1
- package/dist/backend-msb/snapshot-rm.d.ts +28 -0
- package/dist/backend-msb/snapshot-rm.d.ts.map +1 -0
- package/dist/backend-msb/snapshot-rm.js +30 -0
- package/dist/backend-msb/snapshot-rm.js.map +1 -0
- package/dist/core/backend.d.ts +53 -22
- package/dist/core/backend.d.ts.map +1 -1
- package/dist/core/checkpoint/api.d.ts +2 -2
- package/dist/core/checkpoint/api.js +2 -2
- package/dist/core/checkpoint/registry.d.ts +34 -0
- package/dist/core/checkpoint/registry.d.ts.map +1 -1
- package/dist/core/checkpoint/registry.js +20 -1
- package/dist/core/checkpoint/registry.js.map +1 -1
- package/dist/core/errors.d.ts +49 -0
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +61 -0
- package/dist/core/errors.js.map +1 -1
- package/dist/core/generic-container.d.ts +58 -10
- package/dist/core/generic-container.d.ts.map +1 -1
- package/dist/core/generic-container.js +222 -27
- package/dist/core/generic-container.js.map +1 -1
- package/dist/core/model.d.ts +3 -2
- package/dist/core/model.d.ts.map +1 -1
- package/dist/core/sandbox-name.d.ts +3 -0
- package/dist/core/sandbox-name.d.ts.map +1 -0
- package/dist/core/sandbox-name.js +19 -0
- package/dist/core/sandbox-name.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/minio.d.ts +5 -3
- package/dist/modules/minio.d.ts.map +1 -1
- package/dist/modules/minio.js +14 -4
- package/dist/modules/minio.js.map +1 -1
- package/package.json +1 -1
- package/dist/backend-msb/snapshot-list.d.ts +0 -43
- package/dist/backend-msb/snapshot-list.d.ts.map +0 -1
- package/dist/backend-msb/snapshot-list.js +0 -53
- package/dist/backend-msb/snapshot-list.js.map +0 -1
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Pure msb CLI argv construction. Every spelling here was checked against the
|
|
3
3
|
* real `msb` binary, not guessed from `--help` text alone. ATTACHED mode (no
|
|
4
|
-
* `-d`) is the whole ballgame
|
|
5
|
-
* the image's own ENTRYPOINT/CMD, only attached mode does — see
|
|
6
|
-
* `MsbCliBackend.start` for the supervision this forces.
|
|
4
|
+
* `-d`) is the whole ballgame for `run()`: `msb run -d` boots the microVM but
|
|
5
|
+
* never runs the image's own ENTRYPOINT/CMD, only attached mode does — see
|
|
6
|
+
* `MsbCliBackend.start` for the supervision this forces. `restore()` is a
|
|
7
|
+
* different shape entirely — see its own doc and `MsbCliBackend.bootRestoreOnce`'s
|
|
8
|
+
* for why: `msb restore` always detaches and exits once activation is
|
|
9
|
+
* confirmed, well before the sandbox itself finishes booting, and it is
|
|
10
|
+
* never held open as a supervisor the way `run` is.
|
|
7
11
|
*/
|
|
8
12
|
export const MsbCommands = {
|
|
9
13
|
run(spec) {
|
|
@@ -50,15 +54,12 @@ export const MsbCommands = {
|
|
|
50
54
|
for (const mount of spec.mounts) {
|
|
51
55
|
argv.push("--mount-file", `${mount.hostPath}:${mount.guestPath}:${mount.readOnly ? "ro" : "rw"},nodev`);
|
|
52
56
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
else {
|
|
60
|
-
argv.push(spec.image);
|
|
61
|
-
}
|
|
57
|
+
// `checkpointRef` never reaches here: msb 0.7.1 removed `run --from-snapshot`
|
|
58
|
+
// outright (clap rejects it as an unexpected argument now), so a spec that
|
|
59
|
+
// carries a checkpointRef is routed to `restore()` below, one layer up in
|
|
60
|
+
// `MsbCliBackend.bootOnce` — this function only ever builds an ordinary
|
|
61
|
+
// image boot.
|
|
62
|
+
argv.push(spec.image);
|
|
62
63
|
if (spec.command !== undefined) {
|
|
63
64
|
// undefined => the image's own ENTRYPOINT/CMD runs unmodified.
|
|
64
65
|
argv.push("--", ...spec.command);
|
|
@@ -66,36 +67,175 @@ export const MsbCommands = {
|
|
|
66
67
|
return argv;
|
|
67
68
|
},
|
|
68
69
|
/**
|
|
69
|
-
* `msb
|
|
70
|
-
*
|
|
71
|
-
*
|
|
70
|
+
* `msb restore <ref> --name <name> [-m SIZE] [--no-net] [--volume
|
|
71
|
+
* SOURCE:GUEST:OPTS]... [-p HOST:GUEST]...` — the checkpoint-reboot argv,
|
|
72
|
+
* replacing the removed `run --from-snapshot` (msb 0.7.1 moved restore to
|
|
73
|
+
* this dedicated subcommand). NEVER emits `--disk-only`: EMPIRICALLY
|
|
74
|
+
* VERIFIED against a real msb 0.7.1 binary, a disk-scope snapshot — the
|
|
75
|
+
* only kind `msb snapshot create --from-sandbox` produces, and therefore
|
|
76
|
+
* the only kind this library's checkpoints ever restore — REJECTS that
|
|
77
|
+
* flag outright (`invalid config: disk_only requires a full snapshot with
|
|
78
|
+
* checkpoint state`). Restoring a disk-scope snapshot is inherently a cold
|
|
79
|
+
* boot of the captured disk with no processes/RAM resumed — the same
|
|
80
|
+
* semantics the old `run --from-snapshot` boot and the removed
|
|
81
|
+
* `--disk-only` flag both had, and the only restore mode this library's
|
|
82
|
+
* checkpoint contract documents — so nothing observable changes for
|
|
83
|
+
* callers; only the argv shrinks by one flag msb no longer accepts here.
|
|
84
|
+
*
|
|
85
|
+
* Deliberately narrower than `run()` in one respect only: `msb restore`
|
|
86
|
+
* has no `-e`/`--env` flag at all, so env is never threaded through here —
|
|
87
|
+
* a restore replays the sandbox's own captured configuration, which makes
|
|
88
|
+
* re-passing env redundant (see `GenericContainer.fromCheckpoint`'s own
|
|
89
|
+
* doc on why an env the caller has actually changed beyond the
|
|
90
|
+
* checkpoint's own is refused before this is ever reached, rather than
|
|
91
|
+
* silently dropped here). There is likewise no `--root-disk` equivalent —
|
|
92
|
+
* the snapshot pins the root disk, and `withDiskLimit()` on a
|
|
93
|
+
* `fromCheckpoint()` container is rejected at `start()` before any backend
|
|
94
|
+
* call.
|
|
95
|
+
*
|
|
96
|
+
* Mounts and network are NOT in that category — they thread through here,
|
|
97
|
+
* mirroring `run()`'s own `--mount-file`/`--net private`. Per msb's own
|
|
98
|
+
* source (`sdk/rust/lib/sandbox/restore_builder.rs`'s `RestoreBuilder::new`),
|
|
99
|
+
* every restore starts with `mounts`/`ports`/`vsock` CLEARED and
|
|
100
|
+
* `restore_resources.require_complete` true — they are the destination's
|
|
101
|
+
* OWN fresh bindings for this specific restore, not something msb
|
|
102
|
+
* re-derives from the snapshot, and an un-resupplied captured external
|
|
103
|
+
* mount is a hard failure, not a silent drop. `createCheckpoint`'s
|
|
104
|
+
* stop/snapshot/reboot cycle (see `MsbCliBackend.createCheckpoint`) hands
|
|
105
|
+
* this function `handle.spec` itself — the ORIGINAL sandbox's live
|
|
106
|
+
* `mounts`/`networkDisabled` exactly as the caller set them via
|
|
107
|
+
* `.withCopyFileToContainer()`/`.withNetworkDisabled()`, not anything
|
|
108
|
+
* "carried over from a captured spec" — so they must be re-emitted here or
|
|
109
|
+
* they silently vanish across the reboot (or, if msb classifies the
|
|
110
|
+
* now-missing mount as a required external resource, throw instead).
|
|
111
|
+
* `GenericContainer.fromCheckpoint()` is the unrelated case the checkpoints
|
|
112
|
+
* guide's "network topology, mounts, and keepAlive are never carried over
|
|
113
|
+
* from the source spec" actually describes: it never copies
|
|
114
|
+
* `cp.spec.mounts`/`networkDisabled` onto the new container's own builder
|
|
115
|
+
* state in the first place (see its own doc), so a `fromCheckpoint()`
|
|
116
|
+
* container's `spec.mounts` is `[]` and `networkDisabled` is `false`
|
|
117
|
+
* unless the caller adds them back explicitly via
|
|
118
|
+
* `.withCopyFileToContainer()`/`.withNetworkDisabled()` on it directly —
|
|
119
|
+
* in which case this function threads those through exactly the same as
|
|
120
|
+
* for any other spec, as it should.
|
|
121
|
+
*
|
|
122
|
+
* `--volume SOURCE:GUEST[:OPTIONS]` is restore's own mount flag (`-v`
|
|
123
|
+
* short form; `RestoreResourceArgs.volume` in
|
|
124
|
+
* crates/cli/lib/commands/restore.rs) — spelled differently from `run()`'s
|
|
125
|
+
* `--mount-file`, but parsed by the identical shared grammar
|
|
126
|
+
* (`parse_cli_mount_spec`, confirmed in crates/cli/lib/commands/common.rs:
|
|
127
|
+
* `--volume`'s `parse_restore_volume` and `--mount-file`'s
|
|
128
|
+
* `apply_explicit_file_mount` both call it with the same
|
|
129
|
+
* `CliMountOptionSupport`), so `run()`'s own comment on why the option
|
|
130
|
+
* block (`ro`/`rw,nodev`) is always spelled out rather than left to
|
|
131
|
+
* defaults applies here verbatim. `--no-net` is restore's equivalent of
|
|
132
|
+
* `run()`'s `--net private`: msb's own default restore network policy is
|
|
133
|
+
* open (`RestoreBuilder::new` clears mounts/ports/vsock/user but never
|
|
134
|
+
* touches the network policy field, so it keeps whatever a fresh
|
|
135
|
+
* `SandboxBuilder`'s default is — the same open-by-default policy `run()`
|
|
136
|
+
* itself relies on when `networkDisabled` is unset), so `--no-net` is
|
|
137
|
+
* emitted only when `networkDisabled` is true, exactly mirroring `run()`'s
|
|
138
|
+
* own `--net private` condition.
|
|
139
|
+
*/
|
|
140
|
+
restore(spec) {
|
|
141
|
+
if (spec.checkpointRef === undefined) {
|
|
142
|
+
throw new Error("MsbCommands.restore requires spec.checkpointRef");
|
|
143
|
+
}
|
|
144
|
+
const argv = ["restore", spec.checkpointRef, "--name", spec.name];
|
|
145
|
+
if (spec.memoryLimitMb !== undefined) {
|
|
146
|
+
argv.push("-m", `${spec.memoryLimitMb}M`);
|
|
147
|
+
}
|
|
148
|
+
if (spec.networkDisabled) {
|
|
149
|
+
argv.push("--no-net");
|
|
150
|
+
}
|
|
151
|
+
for (const port of spec.ports) {
|
|
152
|
+
argv.push("-p", `${port.hostPort}:${port.guestPort}`);
|
|
153
|
+
}
|
|
154
|
+
for (const mount of spec.mounts) {
|
|
155
|
+
// Same option grammar and Windows rationale as `run()`'s `--mount-file` —
|
|
156
|
+
// see this function's own doc.
|
|
157
|
+
argv.push("--volume", `${mount.hostPath}:${mount.guestPath}:${mount.readOnly ? "ro" : "rw"},nodev`);
|
|
158
|
+
}
|
|
159
|
+
return argv;
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
* `msb snapshot create --from-sandbox <sandbox> <name>` — requires
|
|
163
|
+
* `sandbox` STOPPED. `name` is a caller-supplied label, EMPIRICALLY
|
|
164
|
+
* VERIFIED against a real msb 0.7.1 binary to no longer determine where
|
|
165
|
+
* the artifact lands: it only appears in msb's own index (as
|
|
166
|
+
* `<sandbox>:<name>`, visible in `msb snapshot list`) and in `snapshot
|
|
167
|
+
* inspect` output. The artifact itself always lands under
|
|
168
|
+
* `<destDir-or-default>/<sandbox>/snap_<32-hex-digest>` — a
|
|
169
|
+
* content-addressed path `name` has no say over — which is why
|
|
170
|
+
* `MsbCliBackend.createCheckpoint` parses it back out of this command's
|
|
171
|
+
* own stdout (see `parseSnapshotCreateArtifactPath`) instead of
|
|
172
|
+
* constructing it. `destDir` (this library's own `--dest-dir`, when the
|
|
173
|
+
* ref is a path ref) still controls the artifact's PARENT directory —
|
|
174
|
+
* `<destDir>/<sandbox>/snap_<digest>` when given, msb's own default
|
|
175
|
+
* snapshot store (`~/.microsandbox/snapshots/<sandbox>/snap_<digest>`)
|
|
176
|
+
* otherwise.
|
|
72
177
|
*/
|
|
73
178
|
snapshotCreate(sandbox, name, destDir) {
|
|
74
|
-
const argv = ["snapshot", "create", "--from", sandbox, name];
|
|
179
|
+
const argv = ["snapshot", "create", "--from-sandbox", sandbox, name];
|
|
75
180
|
if (destDir !== undefined) {
|
|
76
181
|
argv.push("--dest-dir", destDir);
|
|
77
182
|
}
|
|
78
183
|
return argv;
|
|
79
184
|
},
|
|
80
|
-
/**
|
|
81
|
-
|
|
82
|
-
|
|
185
|
+
/**
|
|
186
|
+
* `msb snapshot rm <ref> -f` — best-effort per `removeCheckpoint`'s own
|
|
187
|
+
* contract; "not found" is fine. `ref` must be the snapshot's own artifact
|
|
188
|
+
* PATH, never a bare name or `group:member` form: EMPIRICALLY VERIFIED
|
|
189
|
+
* against a real msb 0.7.1 binary, name-based removal does not resolve —
|
|
190
|
+
* the artifact path is the only address that reliably works. `-f` forces
|
|
191
|
+
* the removal; without it a plain `msb snapshot rm` prompts for
|
|
192
|
+
* confirmation, which would hang a non-interactive CLI invocation forever.
|
|
193
|
+
* A non-zero exit can ALSO mean msb refused because `ref` is the current
|
|
194
|
+
* head of older siblings from the same source sandbox — see
|
|
195
|
+
* `isSnapshotHeadRemovalRefused`, which `removeCheckpoint` propagates
|
|
196
|
+
* rather than swallowing alongside an ordinary "not found."
|
|
197
|
+
*/
|
|
198
|
+
snapshotRemove(ref) {
|
|
199
|
+
return ["snapshot", "rm", ref, "-f"];
|
|
83
200
|
},
|
|
84
|
-
/**
|
|
85
|
-
|
|
86
|
-
|
|
201
|
+
/**
|
|
202
|
+
* `msb snapshot inspect <ref>` — exit 0 means the snapshot exists,
|
|
203
|
+
* non-zero means it doesn't (or the probe itself failed); `hasCheckpoint`'s
|
|
204
|
+
* backend call for a bare-name ref. `ref` should be the snapshot's own
|
|
205
|
+
* artifact PATH for the same reason `snapshotRemove` requires one —
|
|
206
|
+
* EMPIRICALLY VERIFIED against a real msb 0.7.1 binary, name-based inspect
|
|
207
|
+
* does not resolve either.
|
|
208
|
+
*/
|
|
209
|
+
snapshotInspect(ref) {
|
|
210
|
+
return ["snapshot", "inspect", ref];
|
|
87
211
|
},
|
|
88
|
-
/**
|
|
212
|
+
/**
|
|
213
|
+
* `msb snapshot save <ref> <dest>` — writes a `.tar.zst` artifact archive;
|
|
214
|
+
* deliberately never `--with-image` (its import fails an integrity check
|
|
215
|
+
* in 0.6.6, see the checkpoints guide). Upstream renamed the subcommand
|
|
216
|
+
* from `export` to `save` for msb 0.7.1 (EMPIRICALLY VERIFIED against a
|
|
217
|
+
* real 0.7.1 binary — `snapshot export` no longer exists at all); `<ref>`
|
|
218
|
+
* and `<dest>` are still plain positionals with the explicit filename
|
|
219
|
+
* preserved, so nothing about the argv shape besides the verb changes.
|
|
220
|
+
* `exportCheckpoint`'s backend call.
|
|
221
|
+
*/
|
|
89
222
|
snapshotExport(ref, dest) {
|
|
90
223
|
return ["snapshot", "save", ref, dest];
|
|
91
224
|
},
|
|
92
|
-
/**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
225
|
+
/**
|
|
226
|
+
* `msb snapshot load <archive> --dest <destDir>` — upstream renamed the
|
|
227
|
+
* subcommand from `import` to `load` for msb 0.7.1 (EMPIRICALLY VERIFIED
|
|
228
|
+
* against a real 0.7.1 binary — `snapshot import` no longer exists at
|
|
229
|
+
* all) and added `--dest`, which this always passes: omitting it imports
|
|
230
|
+
* into msb's own global default snapshot store instead of this library's
|
|
231
|
+
* checkpoints directory, which is exactly the placement bug `--dest`
|
|
232
|
+
* exists to avoid (mirrors `snapshotCreate`'s own `--dest-dir`, a
|
|
233
|
+
* differently-spelled flag on a different subcommand). `destDir` is
|
|
234
|
+
* always the checkpoints cache directory (see `MsbCliBackend.importCheckpoint`).
|
|
235
|
+
* `importCheckpoint`'s backend call.
|
|
236
|
+
*/
|
|
237
|
+
snapshotImport(archive, destDir) {
|
|
238
|
+
return ["snapshot", "load", archive, "--dest", destDir];
|
|
99
239
|
},
|
|
100
240
|
/** `msb copy -q <hostPath> <name>:<containerPath>` — host-to-guest transfer, `cp -r`-style destination naming for a directory source. */
|
|
101
241
|
copyIn(hostPath, name, containerPath) {
|
|
@@ -108,6 +248,30 @@ export const MsbCommands = {
|
|
|
108
248
|
exec(name, cmd) {
|
|
109
249
|
return ["exec", name, "--", ...cmd];
|
|
110
250
|
},
|
|
251
|
+
/**
|
|
252
|
+
* `msb exec -e KEY=VALUE... <name> -- <cmd...>` — the workload-revival exec
|
|
253
|
+
* variant `MsbCliBackend.reviveWorkload` spawns to restart a restored
|
|
254
|
+
* sandbox's captured workload with its ORIGINAL env (a restore's own `msb
|
|
255
|
+
* restore` has no `-e`/`--env` flag at all — see `restore()`'s own doc —
|
|
256
|
+
* so this is the one place that env reaches a restored sandbox's guest).
|
|
257
|
+
* Distinct from the plain `exec()` builder above, which every other
|
|
258
|
+
* one-shot exec call this backend makes (the `nc` probe, `/etc/hosts`
|
|
259
|
+
* alias install, `mkdir -p`, ...) uses and which never carries env — those
|
|
260
|
+
* calls have no reason to widen the guest command's environment, and
|
|
261
|
+
* `msb exec` accepts `-e` at all only because a genuine workload restart
|
|
262
|
+
* needs it. `-e` is repeatable (mirrors `run()`'s own `-e`) and is emitted
|
|
263
|
+
* right after `exec`, before the sandbox NAME positional — the same
|
|
264
|
+
* relative placement `run()` gives its own `-e` flags among its other
|
|
265
|
+
* options, ahead of the trailing positional(s).
|
|
266
|
+
*/
|
|
267
|
+
execWithEnv(name, env, cmd) {
|
|
268
|
+
const argv = ["exec"];
|
|
269
|
+
for (const [key, value] of env) {
|
|
270
|
+
argv.push("-e", `${key}=${value}`);
|
|
271
|
+
}
|
|
272
|
+
argv.push(name, "--", ...cmd);
|
|
273
|
+
return argv;
|
|
274
|
+
},
|
|
111
275
|
execStream(name, cmd) {
|
|
112
276
|
return ["exec", "--stream", name, "--", ...cmd];
|
|
113
277
|
},
|
|
@@ -119,7 +283,9 @@ export const MsbCommands = {
|
|
|
119
283
|
* diagnostics channel, distinct from the workload log `logs()` above
|
|
120
284
|
* fetches. This is where the boot-completion marker line lives (see
|
|
121
285
|
* `hasSandboxStartedMarker`); the fast-exit post-mortem classification in
|
|
122
|
-
* `MsbCliBackend.
|
|
286
|
+
* `MsbCliBackend.bootRunOnce` and the restore poll's own failure
|
|
287
|
+
* diagnostics in `MsbCliBackend.bootRestoreOnce` are this builder's only
|
|
288
|
+
* callers.
|
|
123
289
|
*/
|
|
124
290
|
systemLog(name) {
|
|
125
291
|
return ["logs", name, "--source", "system", "--tail", "1000"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/backend-msb/commands.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot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O,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC;IAClD,CAAC;IAED,IAAI,CAAC,IAAY;QACf,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,IAAY;QACpB,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAChE,CAAC;IAED,UAAU,CAAC,IAAY;QACrB,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,IAAI,CAAC,IAAY;QACf,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,EAAE,CAAC,IAAY;QACb,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,EAAE;QACA,qEAAqE;QACrE,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IACpC,CAAC;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,SAAiB;QAC3B,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IACxC,CAAC;CACF,CAAC"}
|
|
@@ -4,7 +4,7 @@ import type { Platform } from "./platform.js";
|
|
|
4
4
|
* while msb 0.6.10-0.6.13 were broken on Windows (fixed upstream in 0.6.14).
|
|
5
5
|
* MSB_PATH users on Windows must avoid 0.6.10-0.6.13.
|
|
6
6
|
*/
|
|
7
|
-
export declare const MSB_VERSION = "0.
|
|
7
|
+
export declare const MSB_VERSION = "0.7.1";
|
|
8
8
|
/** Test seam: the full resolution logic parameterized over the release base URL, cache dir, and environment. */
|
|
9
9
|
export declare function ensureInstalledAt(baseUrl: string, cacheDir: string, env: Record<string, string | undefined>): Promise<string>;
|
|
10
10
|
/** Resolves (downloading and verifying if needed) a runnable `msb` binary path, using the real GitHub release base, `RIGHTSIZE_CACHE_DIR`, and `process.env`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provisioner.d.ts","sourceRoot":"","sources":["../../src/backend-msb/provisioner.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"provisioner.d.ts","sourceRoot":"","sources":["../../src/backend-msb/provisioner.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,WAAW,UAAU,CAAC;AAiRnC,gHAAgH;AAChH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GACtC,OAAO,CAAC,MAAM,CAAC,CA8CjB;AAED,iKAAiK;AACjK,wBAAgB,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAEjD;AAED,2GAA2G;AAC3G,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAEzE;AAED,gHAAgH;AAChH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;;;;;;;GAQG;AACH,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -12,7 +12,7 @@ import { PlatformInfo } from "./platform.js";
|
|
|
12
12
|
* while msb 0.6.10-0.6.13 were broken on Windows (fixed upstream in 0.6.14).
|
|
13
13
|
* MSB_PATH users on Windows must avoid 0.6.10-0.6.13.
|
|
14
14
|
*/
|
|
15
|
-
export const MSB_VERSION = "0.
|
|
15
|
+
export const MSB_VERSION = "0.7.1";
|
|
16
16
|
function releaseBaseUrl(version) {
|
|
17
17
|
return `https://github.com/superradcompany/microsandbox/releases/download/v${version}`;
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provisioner.js","sourceRoot":"","sources":["../../src/backend-msb/provisioner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC;AAEpC,SAAS,cAAc,CAAC,OAAe;IACrC,OAAO,sEAAsE,OAAO,EAAE,CAAC;AACzF,CAAC;AAED,MAAM,YAAY,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AACjD,MAAM,uBAAuB,GAAG,OAAO,CAAC;AACxC,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AACxC,MAAM,YAAY,GAAG,GAAG,CAAC;AACzB,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEhC;;;;;;;;GAQG;AACH,SAAS,gBAAgB,CAAC,CAAS;IACjC,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,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B,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,iKAAiK;AACjK,MAAM,UAAU,eAAe;IAC7B,OAAO,iBAAiB,CAAC,YAAY,EAAE,eAAe,EAAE,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;AACzE,CAAC;AAED,2GAA2G;AAC3G,MAAM,UAAU,uBAAuB,CAAC,IAAY;IAClD,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC;AAED,gHAAgH;AAChH,MAAM,UAAU,uBAAuB,CAAC,OAAe;IACrD,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,OAAe,EACf,QAAkB,EAClB,UAAkB,EAClB,OAAe,EACf,QAAgB;IAEhB,OAAO,kBAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True if `output` (an `msb restore` invocation's combined stdout+stderr)
|
|
3
|
+
* carries a Windows `ERROR_ACCESS_DENIED` against the just-written snapshot
|
|
4
|
+
* artifact it was asked to restore. Captured shape (mirrors
|
|
5
|
+
* `isSnapshotSaveAccessDeniedFailure`'s own Windows fsync failure, a
|
|
6
|
+
* sibling access-denied signature on the SAME artifact class, one step
|
|
7
|
+
* earlier in the checkpoint cycle):
|
|
8
|
+
*
|
|
9
|
+
* ```text
|
|
10
|
+
* error: io error: Access is denied. (os error 5)
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* Observed on Windows CI immediately after the source sandbox's own
|
|
14
|
+
* teardown in the stop/snapshot/reboot checkpoint cycle — msb's docs
|
|
15
|
+
* describe deferred file-handle release on Windows, and the just-written
|
|
16
|
+
* snapshot artifact (or the block device backing the restored sandbox
|
|
17
|
+
* itself — unix's twin of this same class of failure is a block-device open
|
|
18
|
+
* `PermissionDenied`, os error 13) can still be mid-release by the OS for a
|
|
19
|
+
* brief window right after the process that wrote it (or the one that just
|
|
20
|
+
* stopped the source sandbox) exits. Retrying the SAME `--name` does not
|
|
21
|
+
* simply wait that lag out, though: EMPIRICALLY VERIFIED against a real msb
|
|
22
|
+
* 0.7.1 binary, this failure happens AFTER msb's own artifact validation —
|
|
23
|
+
* which leaves `--name` behind as a STOPPED SANDBOX RECORD — so a same-name
|
|
24
|
+
* retry collides with msb's own restore-time collision check immediately,
|
|
25
|
+
* rather than ever getting a second shot at the transient (see
|
|
26
|
+
* `MsbCliBackend`'s own doc on `CHECKPOINT_REBOOT_ALREADY_EXISTS_RETRY_BUDGET_MS`
|
|
27
|
+
* for the full live-verified account). `MsbCliBackend.retryRestoreAfterAccessDenied`
|
|
28
|
+
* (the ordinary `start()`/`fromCheckpoint().start()` path) and
|
|
29
|
+
* `MsbCliBackend.rebootUnderFreshName` (`createCheckpoint`'s own reboot)
|
|
30
|
+
* both retry a restore that hits this a bounded number of times, each under
|
|
31
|
+
* a FRESH name rather than the one that just failed (see
|
|
32
|
+
* `RESTORE_ACCESS_DENIED_RETRY_LIMIT`/`RESTORE_ACCESS_DENIED_RETRY_DELAY_MS`
|
|
33
|
+
* for the former's own budget/delay) rather than surfacing it as an
|
|
34
|
+
* ordinary restore failure on the first hit.
|
|
35
|
+
*
|
|
36
|
+
* Matches CONSERVATIVELY — both `"Access is denied"` (Windows' own
|
|
37
|
+
* `FormatMessage` text for `ERROR_ACCESS_DENIED`, present regardless of the
|
|
38
|
+
* machine's display language in every capture seen so far) AND one of
|
|
39
|
+
* `"io error"` (the Rust error variant wrapping it) or `"os error 5"` (the
|
|
40
|
+
* numeric errno Rust appends) must be present — reducing the chance of
|
|
41
|
+
* matching some unrelated "access denied" phrasing (a genuine permission
|
|
42
|
+
* error, say) that happens to share only one of the two phrases. Nothing
|
|
43
|
+
* here is Windows-specific by construction — the signature simply never
|
|
44
|
+
* occurs on unix, so the platform check some callers might expect isn't
|
|
45
|
+
* needed at the match site — which also keeps this exercisable by unit
|
|
46
|
+
* tests on any host, the same rationale `salvageStagedArchive` documents for
|
|
47
|
+
* its own platform-agnostic helper.
|
|
48
|
+
*/
|
|
49
|
+
export declare function isRestoreAccessDeniedFailure(output: string): boolean;
|
|
50
|
+
//# sourceMappingURL=restore-access-denied.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-access-denied.d.ts","sourceRoot":"","sources":["../../src/backend-msb/restore-access-denied.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEpE"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True if `output` (an `msb restore` invocation's combined stdout+stderr)
|
|
3
|
+
* carries a Windows `ERROR_ACCESS_DENIED` against the just-written snapshot
|
|
4
|
+
* artifact it was asked to restore. Captured shape (mirrors
|
|
5
|
+
* `isSnapshotSaveAccessDeniedFailure`'s own Windows fsync failure, a
|
|
6
|
+
* sibling access-denied signature on the SAME artifact class, one step
|
|
7
|
+
* earlier in the checkpoint cycle):
|
|
8
|
+
*
|
|
9
|
+
* ```text
|
|
10
|
+
* error: io error: Access is denied. (os error 5)
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* Observed on Windows CI immediately after the source sandbox's own
|
|
14
|
+
* teardown in the stop/snapshot/reboot checkpoint cycle — msb's docs
|
|
15
|
+
* describe deferred file-handle release on Windows, and the just-written
|
|
16
|
+
* snapshot artifact (or the block device backing the restored sandbox
|
|
17
|
+
* itself — unix's twin of this same class of failure is a block-device open
|
|
18
|
+
* `PermissionDenied`, os error 13) can still be mid-release by the OS for a
|
|
19
|
+
* brief window right after the process that wrote it (or the one that just
|
|
20
|
+
* stopped the source sandbox) exits. Retrying the SAME `--name` does not
|
|
21
|
+
* simply wait that lag out, though: EMPIRICALLY VERIFIED against a real msb
|
|
22
|
+
* 0.7.1 binary, this failure happens AFTER msb's own artifact validation —
|
|
23
|
+
* which leaves `--name` behind as a STOPPED SANDBOX RECORD — so a same-name
|
|
24
|
+
* retry collides with msb's own restore-time collision check immediately,
|
|
25
|
+
* rather than ever getting a second shot at the transient (see
|
|
26
|
+
* `MsbCliBackend`'s own doc on `CHECKPOINT_REBOOT_ALREADY_EXISTS_RETRY_BUDGET_MS`
|
|
27
|
+
* for the full live-verified account). `MsbCliBackend.retryRestoreAfterAccessDenied`
|
|
28
|
+
* (the ordinary `start()`/`fromCheckpoint().start()` path) and
|
|
29
|
+
* `MsbCliBackend.rebootUnderFreshName` (`createCheckpoint`'s own reboot)
|
|
30
|
+
* both retry a restore that hits this a bounded number of times, each under
|
|
31
|
+
* a FRESH name rather than the one that just failed (see
|
|
32
|
+
* `RESTORE_ACCESS_DENIED_RETRY_LIMIT`/`RESTORE_ACCESS_DENIED_RETRY_DELAY_MS`
|
|
33
|
+
* for the former's own budget/delay) rather than surfacing it as an
|
|
34
|
+
* ordinary restore failure on the first hit.
|
|
35
|
+
*
|
|
36
|
+
* Matches CONSERVATIVELY — both `"Access is denied"` (Windows' own
|
|
37
|
+
* `FormatMessage` text for `ERROR_ACCESS_DENIED`, present regardless of the
|
|
38
|
+
* machine's display language in every capture seen so far) AND one of
|
|
39
|
+
* `"io error"` (the Rust error variant wrapping it) or `"os error 5"` (the
|
|
40
|
+
* numeric errno Rust appends) must be present — reducing the chance of
|
|
41
|
+
* matching some unrelated "access denied" phrasing (a genuine permission
|
|
42
|
+
* error, say) that happens to share only one of the two phrases. Nothing
|
|
43
|
+
* here is Windows-specific by construction — the signature simply never
|
|
44
|
+
* occurs on unix, so the platform check some callers might expect isn't
|
|
45
|
+
* needed at the match site — which also keeps this exercisable by unit
|
|
46
|
+
* tests on any host, the same rationale `salvageStagedArchive` documents for
|
|
47
|
+
* its own platform-agnostic helper.
|
|
48
|
+
*/
|
|
49
|
+
export function isRestoreAccessDeniedFailure(output) {
|
|
50
|
+
return output.includes("Access is denied") && (output.includes("io error") || output.includes("os error 5"));
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=restore-access-denied.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-access-denied.js","sourceRoot":"","sources":["../../src/backend-msb/restore-access-denied.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,UAAU,4BAA4B,CAAC,MAAc;IACzD,OAAO,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;AAC/G,CAAC"}
|