@cnc-tools/storm 0.15.0 → 0.16.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-QUHY6FGN.js → chunk-2MAD5NKK.js} +1 -1
- package/dist/chunks/{chunk-XEVHP5ZW.js → chunk-3L52KNQA.js} +1 -1
- package/dist/chunks/{chunk-E4PJNZVG.js → chunk-7EENF73W.js} +12 -13
- package/dist/chunks/{chunk-4U4DZ7VG.js → chunk-CK2GZEPK.js} +1 -1
- package/dist/chunks/{chunk-L36GBUBB.js → chunk-DC2CDHNK.js} +398 -158
- package/dist/chunks/{chunk-PN5ULTTH.js → chunk-DWEAHX4T.js} +1 -1
- package/dist/chunks/{chunk-5GBMR4HM.js → chunk-FCQUJDA4.js} +4 -7
- package/dist/chunks/{chunk-YV7GE6EV.js → chunk-FOZWA52V.js} +1 -1
- package/dist/chunks/{chunk-OX7X4B2L.js → chunk-G3PHMXH5.js} +1 -1
- package/dist/chunks/{chunk-CXAT7ZKP.js → chunk-HVNK3I45.js} +1 -1
- package/dist/chunks/{chunk-QVS7HRU7.js → chunk-OIY3DMF2.js} +2 -2
- package/dist/chunks/{chunk-SZEURWRS.js → chunk-P357TZAY.js} +2 -2
- package/dist/chunks/{chunk-KC4KDJ5K.js → chunk-V4IKA3WI.js} +153 -139
- package/dist/chunks/{chunk-RAQEXKL6.js → chunk-Z5PBVG3Y.js} +26 -18
- package/dist/chunks/{live-app-PI3BAN6Y.js → live-app-WECQOQ4C.js} +4 -4
- package/dist/commands/exec/across-sandboxes-outcomes.js +2 -1
- package/dist/commands/exec/command.d.ts +8 -2
- package/dist/commands/exec/command.js +11 -11
- package/dist/commands/exec/metadata.js +1 -1
- package/dist/commands/exec/outcomes.d.ts +4 -1
- package/dist/commands/exec/outcomes.js +2 -2
- package/dist/commands/exec/plan-only.js +1 -2
- package/dist/commands/exec/planned-outcome.js +8 -1
- package/dist/commands/exec/run-command.d.ts +6 -7
- package/dist/commands/exec/run-command.js +8 -9
- package/dist/commands/exec/run-metadata.js +1 -1
- package/dist/commands/runs/facts.d.ts +2 -1
- package/dist/commands/runs/facts.js +11 -3
- package/dist/commands/runs/list/command.d.ts +2 -0
- package/dist/commands/runs/list/command.js +6 -6
- package/dist/commands/runs/list/outcomes.d.ts +1 -0
- package/dist/commands/runs/logs/command.d.ts +6 -2
- package/dist/commands/runs/logs/command.js +6 -6
- package/dist/commands/runs/logs/outcomes.d.ts +3 -1
- package/dist/commands/runs/past-run.d.ts +14 -5
- package/dist/commands/runs/past-run.js +16 -5
- package/dist/commands/runs/show/command.d.ts +6 -2
- package/dist/commands/runs/show/command.js +9 -9
- package/dist/commands/runs/show/outcomes.d.ts +3 -1
- package/dist/commands/snapshots/build/command.js +11 -11
- package/dist/commands/snapshots/list/command.d.ts +3 -3
- package/dist/commands/snapshots/list/command.js +6 -6
- package/dist/commands/snapshots/list/metadata.js +1 -1
- package/dist/commands/suites/list/command.js +7 -6
- package/dist/commands/suites/list/outcomes.js +2 -2
- package/dist/commands/test/command.d.ts +8 -2
- package/dist/commands/test/command.js +38 -40
- package/dist/commands/test/metadata.js +1 -1
- package/dist/commands/test/outcomes.d.ts +4 -1
- package/dist/commands/test/outcomes.js +2 -2
- package/dist/commands/test/plan.d.ts +2 -2
- package/dist/commands/test/plan.js +2 -5
- package/dist/config/check-runner.d.ts +4 -2
- package/dist/config/check-runner.js +27 -2
- package/dist/config/check-suites.js +1 -0
- package/dist/config/gateways.d.ts +7 -3
- package/dist/config/index.d.ts +2 -3
- package/dist/config/index.js +2 -3
- package/dist/config/live/config-gateway.js +5 -2
- package/dist/config/load.d.ts +21 -4
- package/dist/config/load.js +129 -15
- package/dist/config/runner.d.ts +5 -6
- package/dist/config/runner.js +1 -1
- package/dist/config/schema.d.ts +15 -3
- package/dist/config/schema.js +10 -2
- package/dist/config/typed-options.d.ts +1 -6
- package/dist/config/typed-options.js +2 -10
- package/dist/config-file/define.d.ts +1 -11
- package/dist/config-file/define.js +3 -3
- package/dist/config-file/runner.d.ts +2 -3
- package/dist/config-file/toolchain.d.ts +13 -7
- package/dist/config-file/toolchain.js +51 -35
- package/dist/extensions/github/resource.d.ts +1 -1
- package/dist/extensions/github/resource.js +1 -1
- package/dist/extensions/testserver/commands/pool/create/command.js +1 -1
- package/dist/extensions/testserver/resource.d.ts +2 -2
- package/dist/extensions/testserver/resource.js +2 -2
- package/dist/planning/plan-only.d.ts +4 -1
- package/dist/planning/plan-only.js +5 -2
- package/dist/planning/run-plan.d.ts +1 -2
- package/dist/planning/test-plan.js +1 -2
- package/dist/runner/base.d.ts +0 -6
- package/dist/runner/base.js +0 -15
- package/dist/runner/build-snapshots.js +7 -8
- package/dist/runner/gateways.d.ts +5 -0
- package/dist/runner/index.d.ts +1 -1
- package/dist/runner/live/sandbox-gateway.js +12 -0
- package/dist/runner/prepare.d.ts +16 -15
- package/dist/runner/prepare.js +11 -12
- package/dist/runner/recipe.d.ts +66 -67
- package/dist/runner/recipe.js +204 -120
- package/dist/runner/snapshot-build.d.ts +1 -1
- package/dist/runner/snapshot-build.js +10 -3
- package/dist/runner/snapshot-inspect.d.ts +4 -4
- package/dist/runner/snapshot-inspect.js +7 -7
- package/dist/runner/snapshot-key.d.ts +23 -15
- package/dist/runner/snapshot-key.js +46 -27
- package/dist/sdk/extension/resource-definition.d.ts +3 -2
- package/dist/sdk/extension/resource-definition.js +3 -2
- package/dist/sdk/extension/resource-factory.js +3 -4
- package/dist/sdk/run/present.d.ts +3 -3
- package/dist/sdk/run/present.js +1 -3
- package/package.json +1 -1
- package/skills/overview.md +2 -0
- package/skills/plan-runs.md +1 -1
- package/dist/config/recipe-run.d.ts +0 -33
- package/dist/config/recipe-run.js +0 -28
package/dist/bin/storm.js
CHANGED
|
@@ -115,7 +115,7 @@ var accessible = process.env["VERCEL_ACCESSIBLE"] === "1";
|
|
|
115
115
|
var noColor = hasNoColorFlag(process.argv.slice(2));
|
|
116
116
|
var status = await runNodeCli(await loadStormApplication(version, { accessible, root }), {
|
|
117
117
|
app: async (host) => {
|
|
118
|
-
const [{ liveStormApp }, built] = await Promise.all([import("../chunks/live-app-
|
|
118
|
+
const [{ liveStormApp }, built] = await Promise.all([import("../chunks/live-app-WECQOQ4C.js"), commit()]);
|
|
119
119
|
return liveStormApp(host, { version: manifest.version, commit: built }, exit, { noColor });
|
|
120
120
|
}
|
|
121
121
|
});
|
package/dist/build-info.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
runnerRequestFor,
|
|
21
21
|
sandboxesDefaultErrors,
|
|
22
22
|
sandboxesErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Z5PBVG3Y.js";
|
|
24
24
|
import {
|
|
25
25
|
versionText
|
|
26
26
|
} from "./chunk-I5GZLOLQ.js";
|
|
@@ -34,42 +34,41 @@ import {
|
|
|
34
34
|
testsChart,
|
|
35
35
|
testsSummaryLines,
|
|
36
36
|
waterfallLines
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-FCQUJDA4.js";
|
|
38
38
|
import {
|
|
39
39
|
DEFINITION_SET
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-DWEAHX4T.js";
|
|
41
41
|
import {
|
|
42
42
|
redactStrings,
|
|
43
43
|
redactingObserver,
|
|
44
44
|
redactingTerminal,
|
|
45
45
|
redactor
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-HVNK3I45.js";
|
|
47
47
|
import {
|
|
48
48
|
sandboxConnectPage,
|
|
49
49
|
sandboxStateText,
|
|
50
50
|
sandboxTableLines,
|
|
51
51
|
sandboxTotalsLine,
|
|
52
52
|
sandboxesText
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-2MAD5NKK.js";
|
|
54
54
|
import {
|
|
55
55
|
recordAcrossSandboxes
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-P357TZAY.js";
|
|
57
57
|
import {
|
|
58
58
|
isoSecondsText,
|
|
59
59
|
keepTimeText,
|
|
60
60
|
paint,
|
|
61
61
|
seconds
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-G3PHMXH5.js";
|
|
63
63
|
import {
|
|
64
64
|
acrossSandboxesExitStatus,
|
|
65
65
|
executeAcrossSandboxes,
|
|
66
66
|
timedProgress
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-FOZWA52V.js";
|
|
68
68
|
import {
|
|
69
69
|
parseKeepTime,
|
|
70
|
-
prepareRunner
|
|
71
|
-
|
|
72
|
-
} from "./chunk-L36GBUBB.js";
|
|
70
|
+
prepareRunner
|
|
71
|
+
} from "./chunk-DC2CDHNK.js";
|
|
73
72
|
import {
|
|
74
73
|
refused
|
|
75
74
|
} from "./chunk-VL7WFTVQ.js";
|
|
@@ -721,7 +720,7 @@ function runHelp(words, field, options = {}) {
|
|
|
721
720
|
}
|
|
722
721
|
var DRIVER_SANDBOXES_HELP = {
|
|
723
722
|
valueLabel: "N",
|
|
724
|
-
description: "Run in N runner sandboxes at once, a run across runner sandboxes, with a driver that has file list support, else driver_sandboxes_refused: storm lists the run's test files on this machine, whether or not storm.config.ts sets testPlan, sorts them, deals them in turn into N file lists, the first file to runner sandbox 0's list, the second to runner sandbox 1's, and so on, and runs each file list in its own runner sandbox, all started from one runner snapshot, with the run's arguments unchanged and each runner sandbox's file list in STORM_RUN. With fewer test files than N, the run has one runner sandbox for each test file, and the plan line says so. N is a whole number from 1 to runner.sandboxes.max in storm.config.ts, and a config file without runner.sandboxes takes no --sandboxes. Each runner sandbox's command output goes only to its command.log in the run directory, under sandboxes/<index>/, and the run prints one status line for each runner sandbox's step, then each runner sandbox's waterfall, a table of the runner sandboxes, and a warning, file_list_mismatch, for each runner sandbox that reported nothing for a test file of its list or reported a test file not in its list; storm exits 0 when every runner sandbox passed, else 1, warning or not. The run keeps each runner sandbox only with --keep-sandbox. To give your own lists, use --file-lists. Fits the Vercel Sandbox runner only. Not with --show-output. Config key: runner.sandboxes.default, the number of runner sandboxes of a run with neither --sandboxes nor --file-lists, a whole number or a
|
|
723
|
+
description: "Run in N runner sandboxes at once, a run across runner sandboxes, with a driver that has file list support, else driver_sandboxes_refused: storm lists the run's test files on this machine, whether or not storm.config.ts sets testPlan, sorts them, deals them in turn into N file lists, the first file to runner sandbox 0's list, the second to runner sandbox 1's, and so on, and runs each file list in its own runner sandbox, all started from one runner snapshot, with the run's arguments unchanged and each runner sandbox's file list in STORM_RUN. With fewer test files than N, the run has one runner sandbox for each test file, and the plan line says so. N is a whole number from 1 to runner.sandboxes.max in storm.config.ts, and a config file without runner.sandboxes takes no --sandboxes. Each runner sandbox's command output goes only to its command.log in the run directory, under sandboxes/<index>/, and the run prints one status line for each runner sandbox's step, then each runner sandbox's waterfall, a table of the runner sandboxes, and a warning, file_list_mismatch, for each runner sandbox that reported nothing for a test file of its list or reported a test file not in its list; storm exits 0 when every runner sandbox passed, else 1, warning or not. The run keeps each runner sandbox only with --keep-sandbox. To give your own lists, use --file-lists. Fits the Vercel Sandbox runner only. Not with --show-output. Config key: runner.sandboxes.default, the number of runner sandboxes of a run with neither --sandboxes nor --file-lists, a whole number or a declared { filesPerSandbox, max? } rule, lowered to runner.sandboxes.max when it is above it; with it, every such run is a run across runner sandboxes, also with one runner sandbox."
|
|
725
724
|
};
|
|
726
725
|
var DRIVER_FILE_LISTS_HELP = {
|
|
727
726
|
valueLabel: "PATH",
|
|
@@ -754,7 +753,7 @@ async function plannedVcpus(app, lifecycles, { where, configFile, resources, san
|
|
|
754
753
|
const prepared = await prepareRunner(app.context, {
|
|
755
754
|
cwd: app.cwd,
|
|
756
755
|
recipe: where.recipe,
|
|
757
|
-
|
|
756
|
+
vcpuRun: { resources: recipeResources(resources), sandboxes: sandboxes?.sandboxes.length ?? 1 }
|
|
758
757
|
});
|
|
759
758
|
if (prepared.kind === "ok") return { ok: true, vcpus: prepared.prepared.vcpus };
|
|
760
759
|
const refusal = prepareRefusal(prepared, configFile);
|