@cnc-tools/storm 0.12.0 → 0.13.0
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/bin/storm.js +1 -1
- package/dist/build-info.js +1 -1
- package/dist/chunks/{chunk-4XT5RC5T.js → chunk-2NZXL6OH.js} +6 -42
- package/dist/chunks/{chunk-ISGQJIQM.js → chunk-5UMJNVKT.js} +1 -1
- package/dist/chunks/{chunk-FSP3SJ35.js → chunk-6EQKA7LI.js} +16 -46
- package/dist/chunks/{chunk-Y3BUNNRG.js → chunk-AX4EQZUS.js} +4 -4
- package/dist/chunks/{chunk-RYRJNHL7.js → chunk-DOFB2ACU.js} +3 -9
- package/dist/chunks/{chunk-SXW6XN4R.js → chunk-EGNP3S6C.js} +3 -3
- package/dist/chunks/{chunk-FK4RLDEK.js → chunk-N7E6DAUE.js} +1 -1
- package/dist/chunks/{chunk-U7M3ZB3Z.js → chunk-Q4TKRILH.js} +33 -167
- package/dist/chunks/{chunk-TMQQYHUX.js → chunk-RTILVSYQ.js} +1 -1
- package/dist/chunks/{chunk-7D6LC5JY.js → chunk-X4WBJIOF.js} +7 -39
- package/dist/chunks/{chunk-TEEZL3GA.js → chunk-YGS5VRQT.js} +11 -68
- package/dist/chunks/{chunk-ODQHQJLE.js → chunk-ZDJLKF2G.js} +742 -1117
- package/dist/chunks/{live-app-AZ5N5HBD.js → live-app-QFHS54SX.js} +4 -4
- package/dist/commands/exec/command.d.ts +2 -90
- package/dist/commands/exec/command.js +10 -10
- package/dist/commands/exec/define-run-command.d.ts +2 -90
- package/dist/commands/exec/live-view.js +18 -22
- package/dist/commands/exec/outcomes.d.ts +2 -106
- package/dist/commands/exec/outcomes.js +4 -35
- package/dist/commands/exec/progress.d.ts +3 -19
- package/dist/commands/exec/progress.js +16 -60
- package/dist/commands/exec/run-command.d.ts +4 -23
- package/dist/commands/exec/run-command.js +5 -79
- package/dist/commands/exec/run-metadata.d.ts +0 -6
- package/dist/commands/exec/run-metadata.js +2 -8
- package/dist/commands/exec/snapshot-text.d.ts +7 -16
- package/dist/commands/exec/snapshot-text.js +9 -49
- package/dist/commands/exec/view.js +2 -12
- package/dist/commands/playwright/command.d.ts +2 -90
- package/dist/commands/playwright/command.js +11 -11
- package/dist/commands/runs/facts.d.ts +1 -37
- package/dist/commands/runs/facts.js +4 -36
- package/dist/commands/runs/list/command.d.ts +0 -72
- package/dist/commands/runs/list/command.js +5 -5
- package/dist/commands/runs/list/outcomes.d.ts +0 -36
- package/dist/commands/runs/logs/command.js +5 -5
- package/dist/commands/runs/show/command.d.ts +0 -72
- package/dist/commands/runs/show/command.js +13 -40
- package/dist/commands/runs/show/metadata.js +1 -1
- package/dist/commands/runs/show/outcomes.d.ts +0 -36
- package/dist/commands/runs/show/outcomes.js +8 -42
- package/dist/commands/snapshots/build/command.d.ts +14 -411
- package/dist/commands/snapshots/build/command.js +56 -231
- package/dist/commands/snapshots/build/metadata.js +10 -7
- package/dist/commands/snapshots/build/outcomes.d.ts +11 -241
- package/dist/commands/snapshots/build/outcomes.js +29 -196
- package/dist/commands/snapshots/list/command.d.ts +2 -36
- package/dist/commands/snapshots/list/command.js +17 -53
- package/dist/commands/snapshots/list/metadata.js +1 -1
- package/dist/commands/snapshots/list/outcomes.d.ts +2 -37
- package/dist/commands/snapshots/list/outcomes.js +13 -53
- package/dist/commands/vitest/command.d.ts +2 -90
- package/dist/commands/vitest/command.js +11 -11
- package/dist/core/events.d.ts +5 -6
- package/dist/core/run-state.d.ts +7 -29
- package/dist/core/run-state.js +3 -26
- package/dist/core/run.d.ts +6 -14
- package/dist/core/run.js +17 -28
- package/dist/extensions/testserver/commands/pool/create/command.js +1 -1
- package/dist/run-directory/index.d.ts +1 -1
- package/dist/run-directory/index.js +0 -1
- package/dist/run-directory/recording.js +2 -2
- package/dist/run-directory/run-record.d.ts +14 -132
- package/dist/run-directory/run-record.js +8 -68
- package/dist/runner/build-snapshots.d.ts +50 -114
- package/dist/runner/build-snapshots.js +70 -159
- package/dist/runner/events.d.ts +4 -88
- package/dist/runner/gateways.d.ts +5 -23
- package/dist/runner/index.d.ts +5 -6
- package/dist/runner/index.js +1 -1
- package/dist/runner/live/snapshot-records.js +7 -18
- package/dist/runner/prepare.d.ts +11 -22
- package/dist/runner/prepare.js +6 -17
- package/dist/runner/ready.d.ts +16 -45
- package/dist/runner/ready.js +34 -59
- package/dist/runner/recipe.d.ts +0 -44
- package/dist/runner/recipe.js +0 -41
- package/dist/runner/scope.d.ts +8 -25
- package/dist/runner/scope.js +4 -8
- package/dist/runner/session.d.ts +18 -65
- package/dist/runner/session.js +15 -83
- package/dist/runner/snapshot-build.d.ts +2 -2
- package/dist/runner/snapshot-cache.d.ts +22 -74
- package/dist/runner/snapshot-cache.js +15 -107
- package/dist/runner/snapshot-inspect.d.ts +9 -13
- package/dist/runner/snapshot-inspect.js +48 -57
- package/dist/runner/snapshot-key.d.ts +9 -14
- package/dist/runner/snapshot-key.js +15 -22
- package/package.json +1 -1
- package/skills/read-run-output.md +8 -9
- package/dist/runner/snapshot-save.d.ts +0 -70
- package/dist/runner/snapshot-save.js +0 -160
- package/dist/runner/snapshot-start.d.ts +0 -25
- package/dist/runner/snapshot-start.js +0 -16
package/dist/bin/storm.js
CHANGED
|
@@ -101,7 +101,7 @@ var exit = { status: void 0 };
|
|
|
101
101
|
var accessible = process.env["VERCEL_ACCESSIBLE"] === "1";
|
|
102
102
|
var status = await runNodeCli(await loadStormApplication(version, { accessible, root }), {
|
|
103
103
|
app: async (host) => {
|
|
104
|
-
const [{ liveStormApp }, built] = await Promise.all([import("../chunks/live-app-
|
|
104
|
+
const [{ liveStormApp }, built] = await Promise.all([import("../chunks/live-app-QFHS54SX.js"), commit()]);
|
|
105
105
|
return liveStormApp(host, { version: manifest.version, commit: built }, exit);
|
|
106
106
|
}
|
|
107
107
|
});
|
package/dist/build-info.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
short
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RTILVSYQ.js";
|
|
4
4
|
|
|
5
5
|
// src/commands/exec/snapshot-text.ts
|
|
6
6
|
var REJECTIONS_SHOWN = 5;
|
|
@@ -8,11 +8,11 @@ function commitsText(count) {
|
|
|
8
8
|
return `${count} ${count === 1 ? "commit" : "commits"}`;
|
|
9
9
|
}
|
|
10
10
|
function builtAtText(snapshot) {
|
|
11
|
-
const at = `(${short(snapshot.
|
|
11
|
+
const at = `(${short(snapshot.base)})`;
|
|
12
12
|
if (snapshot.builtBehind === 0) return `built at this commit ${at}`;
|
|
13
|
-
if (snapshot.
|
|
13
|
+
if (snapshot.base === snapshot.mergeBase) return `built at the merge-base ${at}`;
|
|
14
14
|
if (snapshot.builtBehind !== null) return `built ${commitsText(snapshot.builtBehind)} before HEAD ${at}`;
|
|
15
|
-
return `built at commit ${short(snapshot.
|
|
15
|
+
return `built at commit ${short(snapshot.base)}`;
|
|
16
16
|
}
|
|
17
17
|
function rejectionText(reason, snapshot) {
|
|
18
18
|
switch (reason) {
|
|
@@ -20,63 +20,28 @@ function rejectionText(reason, snapshot) {
|
|
|
20
20
|
return "expired";
|
|
21
21
|
case "expires-soon":
|
|
22
22
|
return "expires within the hour";
|
|
23
|
-
case "other-checkout":
|
|
24
|
-
return `saved by another checkout (${snapshot.repoRoot ?? "unknown"})`;
|
|
25
|
-
case "reuse-off":
|
|
26
|
-
return "reuse of dev snapshots is switched off";
|
|
27
|
-
case "not-trusted":
|
|
28
|
-
return "the runner recipe doesn't trust dev snapshots";
|
|
29
23
|
case "other-base":
|
|
30
24
|
return `its base ${short(snapshot.base)} is not the merge-base`;
|
|
31
25
|
case "steps-changed":
|
|
32
26
|
return "the recipe's snapshot steps changed since it was built";
|
|
33
|
-
case "not-in-history":
|
|
34
|
-
return `its commit ${short(snapshot.builtAt)} is not in HEAD's history`;
|
|
35
27
|
case "other-owner":
|
|
36
28
|
return "built for another team or project";
|
|
37
|
-
case "not-picked":
|
|
38
|
-
return "the pick preferred another snapshot";
|
|
39
29
|
}
|
|
40
30
|
}
|
|
41
31
|
function rejectionLines(rejected) {
|
|
42
32
|
const shown = rejected.slice(0, REJECTIONS_SHOWN);
|
|
43
33
|
const more = rejected.length - shown.length;
|
|
44
34
|
return [
|
|
45
|
-
...shown.map(
|
|
46
|
-
({ entry, reason }) => ` ${entry.snapshotId}: ${rejectionText(reason, { repoRoot: entry.repoRoot ?? null, builtAt: entry.head ?? entry.base, base: entry.base })}`
|
|
47
|
-
),
|
|
35
|
+
...shown.map(({ entry, reason }) => ` ${entry.snapshotId}: ${rejectionText(reason, entry)}`),
|
|
48
36
|
...more === 0 ? [] : [` and ${more} more: storm snapshots list shows them`]
|
|
49
37
|
];
|
|
50
38
|
}
|
|
51
|
-
function noSaveText(reason) {
|
|
52
|
-
switch (reason) {
|
|
53
|
-
case "already-saved":
|
|
54
|
-
return "this commit already has one";
|
|
55
|
-
case "command-failed":
|
|
56
|
-
return "the command did not exit 0";
|
|
57
|
-
case "ci":
|
|
58
|
-
return "CI is set";
|
|
59
|
-
case "keep-sandbox":
|
|
60
|
-
return "--keep-sandbox keeps the runner sandbox instead";
|
|
61
|
-
case "no-save-flag":
|
|
62
|
-
return "--save-dev-snapshot=false";
|
|
63
|
-
case "recipe":
|
|
64
|
-
return "saveDevSnapshot is false in the runner recipe";
|
|
65
|
-
case "not-trusted":
|
|
66
|
-
return "the runner recipe doesn't trust dev snapshots (trustDevSnapshots)";
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
39
|
var REJECTION_REASONS = [
|
|
70
40
|
"expired",
|
|
71
41
|
"expires-soon",
|
|
72
|
-
"other-checkout",
|
|
73
|
-
"reuse-off",
|
|
74
|
-
"not-trusted",
|
|
75
42
|
"other-base",
|
|
76
43
|
"steps-changed",
|
|
77
|
-
"
|
|
78
|
-
"other-owner",
|
|
79
|
-
"not-picked"
|
|
44
|
+
"other-owner"
|
|
80
45
|
];
|
|
81
46
|
function snapshotCacheNoteText(note) {
|
|
82
47
|
switch (note.kind) {
|
|
@@ -92,7 +57,6 @@ export {
|
|
|
92
57
|
builtAtText,
|
|
93
58
|
rejectionText,
|
|
94
59
|
rejectionLines,
|
|
95
|
-
noSaveText,
|
|
96
60
|
REJECTION_REASONS,
|
|
97
61
|
snapshotCacheNoteText
|
|
98
62
|
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
parseTestEvent,
|
|
8
8
|
systemClock,
|
|
9
9
|
systemTimer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZDJLKF2G.js";
|
|
11
11
|
|
|
12
12
|
// src/core/reports.ts
|
|
13
13
|
var WARNINGS_HEADING = "Warnings";
|
|
@@ -301,9 +301,7 @@ function applyEvent(resources, state, event, at) {
|
|
|
301
301
|
snapshot: void 0,
|
|
302
302
|
uploadBytes: void 0,
|
|
303
303
|
activity: void 0,
|
|
304
|
-
kept: void 0
|
|
305
|
-
save: void 0,
|
|
306
|
-
noSave: void 0
|
|
304
|
+
kept: void 0
|
|
307
305
|
}
|
|
308
306
|
};
|
|
309
307
|
case "minting":
|
|
@@ -362,7 +360,7 @@ function applyEvent(resources, state, event, at) {
|
|
|
362
360
|
status: "running",
|
|
363
361
|
startedAt: at,
|
|
364
362
|
endedAt: void 0,
|
|
365
|
-
|
|
363
|
+
keepMs: event.keepMs,
|
|
366
364
|
resources: event.resources,
|
|
367
365
|
resourceWarnings: 0,
|
|
368
366
|
notStopped: 0,
|
|
@@ -436,9 +434,7 @@ function applyRunnerEvent(state, event, at) {
|
|
|
436
434
|
kind: "reused",
|
|
437
435
|
id: event.snapshotId,
|
|
438
436
|
base: event.base,
|
|
439
|
-
|
|
440
|
-
head: event.head,
|
|
441
|
-
snapshot: event.snapshot
|
|
437
|
+
builtBehind: event.builtBehind
|
|
442
438
|
}
|
|
443
439
|
})
|
|
444
440
|
);
|
|
@@ -455,14 +451,7 @@ function applyRunnerEvent(state, event, at) {
|
|
|
455
451
|
kind: "built",
|
|
456
452
|
id: event.snapshotId,
|
|
457
453
|
base: event.base,
|
|
458
|
-
|
|
459
|
-
head: null,
|
|
460
|
-
// A run builds its base snapshot at its own base.
|
|
461
|
-
snapshot: {
|
|
462
|
-
kind: "base",
|
|
463
|
-
builtAt: event.base,
|
|
464
|
-
builtBehind: event.builtBehind
|
|
465
|
-
}
|
|
454
|
+
builtBehind: event.builtBehind
|
|
466
455
|
},
|
|
467
456
|
activity: void 0
|
|
468
457
|
})
|
|
@@ -505,23 +494,11 @@ function applyRunnerEvent(state, event, at) {
|
|
|
505
494
|
);
|
|
506
495
|
case "sandbox-kept":
|
|
507
496
|
return withRunner(state, () => ({ kept: { name: event.name, stopsAt: event.stopsAt } }));
|
|
508
|
-
case "dev-snapshot-saving":
|
|
509
|
-
return withRunner(state, () => ({ save: { kind: "saving", branch: event.branch } }));
|
|
510
|
-
case "dev-snapshot-saved":
|
|
511
|
-
return withRunner(state, () => ({
|
|
512
|
-
save: { kind: "saved", id: event.snapshotId, branch: event.branch, head: event.head }
|
|
513
|
-
}));
|
|
514
|
-
case "dev-snapshot-not-saved":
|
|
515
|
-
return withRunner(state, () => ({ save: { kind: "not-saved" } }));
|
|
516
|
-
case "dev-snapshot-skipped":
|
|
517
|
-
return withRunner(state, () => ({ noSave: event.reason }));
|
|
518
497
|
// A step's outcome comes from its lane's end, not from the end of its output.
|
|
519
498
|
case "output-started":
|
|
520
499
|
case "output-ended":
|
|
521
500
|
case "snapshot-entry-not-written":
|
|
522
501
|
case "command-output-started":
|
|
523
|
-
case "dev-snapshots-dropped":
|
|
524
|
-
case "dev-snapshots-not-dropped":
|
|
525
502
|
return state;
|
|
526
503
|
}
|
|
527
504
|
}
|
|
@@ -1200,16 +1177,17 @@ async function executeRun(definitionSet, context, resourceContexts2, request, co
|
|
|
1200
1177
|
});
|
|
1201
1178
|
}
|
|
1202
1179
|
let cleanupStarted = false;
|
|
1203
|
-
const
|
|
1180
|
+
const keepMs = request.runner === void 0 ? null : request.runner.keepMs;
|
|
1181
|
+
const startCleanup = async () => {
|
|
1204
1182
|
if (cleanupStarted) return;
|
|
1205
1183
|
cleanupStarted = true;
|
|
1206
|
-
await progress.emit({ kind: "cleanup-started",
|
|
1184
|
+
await progress.emit({ kind: "cleanup-started", keepMs, resources: releasedResources(instances) });
|
|
1207
1185
|
};
|
|
1208
1186
|
let resourceCleanup = {};
|
|
1209
1187
|
let releasing;
|
|
1210
|
-
const release = (
|
|
1188
|
+
const release = () => releasing ??= (async () => {
|
|
1211
1189
|
try {
|
|
1212
|
-
await startCleanup(
|
|
1190
|
+
await startCleanup();
|
|
1213
1191
|
} finally {
|
|
1214
1192
|
resourceCleanup = await releaseResources(instances, progress);
|
|
1215
1193
|
}
|
|
@@ -1219,7 +1197,7 @@ async function executeRun(definitionSet, context, resourceContexts2, request, co
|
|
|
1219
1197
|
try {
|
|
1220
1198
|
({ ended, runnerCleanup } = request.runner === void 0 ? { ended: await runUnsandboxed(context, request, instances, control, progress), runnerCleanup: null } : await runSandboxed(context, request, instances, control, progress, { startCleanup, release }));
|
|
1221
1199
|
} finally {
|
|
1222
|
-
await release(
|
|
1200
|
+
await release();
|
|
1223
1201
|
}
|
|
1224
1202
|
await progress.emit({
|
|
1225
1203
|
kind: "cleanup-finished",
|
|
@@ -1295,11 +1273,7 @@ async function runSandboxed(context, request, instances, control, progress, clea
|
|
|
1295
1273
|
const session = openRunnerSession(context, request.runner, { signal: control.signal, cleanup }, runnerProgress);
|
|
1296
1274
|
try {
|
|
1297
1275
|
const ended = await runInSandbox(context, request, instances, session, control, progress);
|
|
1298
|
-
|
|
1299
|
-
return {
|
|
1300
|
-
ended: ended.kind === "command-ended" ? { ...ended, runner: { ...ended.runner, save: finished.save, noSave: finished.noSave } } : ended,
|
|
1301
|
-
runnerCleanup: finished.cleanup
|
|
1302
|
-
};
|
|
1276
|
+
return { ended, runnerCleanup: await session.finish() };
|
|
1303
1277
|
} finally {
|
|
1304
1278
|
await session.close();
|
|
1305
1279
|
}
|
|
@@ -1371,19 +1345,15 @@ async function runInSandbox(context, request, instances, session, control, progr
|
|
|
1371
1345
|
resources: resourcesRan(instances),
|
|
1372
1346
|
command,
|
|
1373
1347
|
runner: {
|
|
1374
|
-
snapshotId: ready.
|
|
1375
|
-
base: ready.
|
|
1376
|
-
snapshotBranch: ready.startedFrom.branch ?? null,
|
|
1377
|
-
snapshotHead: ready.startedFrom.head ?? null,
|
|
1348
|
+
snapshotId: ready.snapshotId,
|
|
1349
|
+
base: ready.base,
|
|
1378
1350
|
built: ready.built,
|
|
1379
|
-
|
|
1351
|
+
builtBehind: ready.builtBehind,
|
|
1380
1352
|
uploadBytes: ready.uploadBytes,
|
|
1381
1353
|
vcpus: ready.vcpus,
|
|
1382
1354
|
region: ready.region,
|
|
1383
1355
|
runtime: ready.runtime,
|
|
1384
|
-
buildMs: ready.buildMs
|
|
1385
|
-
save: null,
|
|
1386
|
-
noSave: null
|
|
1356
|
+
buildMs: ready.buildMs
|
|
1387
1357
|
}
|
|
1388
1358
|
};
|
|
1389
1359
|
}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DEFINITION_SET,
|
|
3
3
|
EXTENSIONS,
|
|
4
4
|
RESOURCES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5UMJNVKT.js";
|
|
6
6
|
import {
|
|
7
7
|
median,
|
|
8
8
|
paint,
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
shortFile,
|
|
11
11
|
truncate,
|
|
12
12
|
visibleLength
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RTILVSYQ.js";
|
|
14
14
|
import {
|
|
15
15
|
megabytesText,
|
|
16
16
|
sameRow,
|
|
17
17
|
setupPhaseKey,
|
|
18
18
|
setupPhaseWords
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6EQKA7LI.js";
|
|
20
20
|
import {
|
|
21
21
|
CONFIG_FILE_NAME
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZDJLKF2G.js";
|
|
23
23
|
import {
|
|
24
24
|
defaultResourceKey,
|
|
25
25
|
optionKeyPath
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
RESOURCE_FLAG_HELP,
|
|
3
3
|
RESOURCE_USAGE_FLAGS,
|
|
4
4
|
resourceRunExamples
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AX4EQZUS.js";
|
|
6
6
|
|
|
7
7
|
// src/commands/exec/run-metadata.ts
|
|
8
|
-
var RUN_USAGE_FLAGS = `${RESOURCE_USAGE_FLAGS} [--credential <SOURCE>] [--scope <TEAM> --project <PROJECT>] [--unsandboxed | [--
|
|
8
|
+
var RUN_USAGE_FLAGS = `${RESOURCE_USAGE_FLAGS} [--credential <SOURCE>] [--scope <TEAM> --project <PROJECT>] [--unsandboxed | [--show-output] [--keep-sandbox <DURATION>]] [--verbose]`;
|
|
9
9
|
var ownRunFields = (verbose) => ({
|
|
10
10
|
credential: {
|
|
11
11
|
valueLabel: "SOURCE",
|
|
@@ -14,15 +14,9 @@ var ownRunFields = (verbose) => ({
|
|
|
14
14
|
unsandboxed: {
|
|
15
15
|
description: "Run the command on this machine, with no isolation: it sees this machine's files and environment, less the variables the resources drop. Without it, the command runs in a Vercel Sandbox started from a runner snapshot of the base, with this checkout's changes applied, installed and built, from the runner key of storm.config.ts, and its output streams back with paths rewritten to this checkout's. No config key."
|
|
16
16
|
},
|
|
17
|
-
saveDevSnapshot: {
|
|
18
|
-
description: "Save the runner sandbox as a dev snapshot at HEAD's commit once the command ends on its own, after a successful install and build, whatever the command's exit code and whatever the run started from, under CI too, so a later run from this checkout at that commit, or at a commit on top of it, starts from this run's installed packages and build outputs. Not with --unsandboxed, or with --keep-sandbox above 0. --save-dev-snapshot=false saves none. Without the flag, a sandboxed run saves one when the command exits 0, unless it started from a dev snapshot built at HEAD's commit, so each commit saves once; it saves none when the command fails, when CI is set, with --keep-sandbox above 0, or when the runner recipe's install or build step names a runner secret and the recipe doesn't set trustDevSnapshots: true, since those steps would run in a later run on top of what the command wrote in this run. Such a recipe also reuses no dev snapshot, and this flag is a usage error for it: only the recipe's trustDevSnapshots: true grants that trust. A detached HEAD saves as any HEAD does. The save resets the working tree to the snapshot's base, keeps .git and ignored files such as node_modules and build outputs, and empties /tmp; the snapshot keeps whatever the command wrote there and to $HOME, a resource's token included. A run that starts a save keeps no runner sandbox, however the save ends; a run that starts none, such as one a signal stops, one whose install or build fails, or, without the flag, one whose command fails, keeps it for the keep time. Without the flag and without --keep-sandbox above 0, saveDevSnapshot in the runner recipe says the same as the flag for every run: false saves none, true saves as --save-dev-snapshot does."
|
|
19
|
-
},
|
|
20
|
-
noReuseDevSnapshot: {
|
|
21
|
-
description: "Start this run from a base snapshot: no dev snapshot counts when the run picks its runner snapshot. The run may still save one. Without the flag, a run starts from the cached runner snapshot of its merge-base whose commit is the fewest commits behind HEAD in HEAD's history, and a dev snapshot counts only when this checkout saved it at HEAD's commit or at an ancestor of it. reuseDevSnapshot: false in the runner recipe says the same for every run."
|
|
22
|
-
},
|
|
23
17
|
keepSandbox: {
|
|
24
18
|
valueLabel: "DURATION",
|
|
25
|
-
description: "How long the runner sandbox keeps running once the run ends, however it ends, so you can connect to it from its page in the Vercel dashboard: 0, which stops and deletes it with the run's other sandboxes, or a whole number of minutes or hours up to 5h (30m, 2h).
|
|
19
|
+
description: "How long the runner sandbox keeps running once the run ends, however it ends, so you can connect to it from its page in the Vercel dashboard: 0, which stops and deletes it with the run's other sandboxes, or a whole number of minutes or hours up to 5h (30m, 2h). The run asks Vercel Sandbox to extend the runner sandbox's timeout when it would stop sooner; it never shortens it, so the sandbox may run past the keep time until its own timeout. The run says until when it runs, and storm runs show and runs list say so too. Default: keepSandbox in the runner recipe, else 30m, or 0 when CI is set. Not with --unsandboxed."
|
|
26
20
|
},
|
|
27
21
|
showOutput: {
|
|
28
22
|
description: "In a sandboxed run on a terminal, print the runner's step output (a snapshot build, the install, the build) above the live view instead of keeping only each step's last line there. Plain output always prints it. Either way, the run directory keeps it whole. Not with --unsandboxed. No config key."
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runHelp
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DOFB2ACU.js";
|
|
4
4
|
import {
|
|
5
5
|
RAN_DESCRIPTION,
|
|
6
6
|
RUN_CLI_OPTIONS,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
renderRan,
|
|
13
13
|
runCommand,
|
|
14
14
|
runProblems
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q4TKRILH.js";
|
|
16
16
|
import {
|
|
17
17
|
planSchema
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YGS5VRQT.js";
|
|
19
19
|
import {
|
|
20
20
|
DRIVER_PLAN_FAILURE_KINDS
|
|
21
21
|
} from "./chunk-YT5OROR7.js";
|