@overkill-dev/run 0.0.42 → 0.0.44
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/assertion-protocol/source-location-forwarding.d.ts +4 -0
- package/assertion-protocol/source-location-forwarding.d.ts.map +1 -0
- package/engine/case-execution.d.ts +1 -0
- package/engine/case-execution.d.ts.map +1 -1
- package/engine/case-execution.js +112 -27
- package/engine/case-execution.js.map +1 -1
- package/engine/execution-async-leak-policy.d.ts.map +1 -1
- package/engine/execution-async-leak-policy.js +1 -0
- package/engine/execution-async-leak-policy.js.map +1 -1
- package/engine/execution-supervision.d.ts +1 -0
- package/engine/execution-supervision.d.ts.map +1 -1
- package/engine/execution-supervision.js +8 -1
- package/engine/execution-supervision.js.map +1 -1
- package/engine/execution.d.ts.map +1 -1
- package/engine/execution.js +37 -4
- package/engine/execution.js.map +1 -1
- package/engine/run-result.d.ts +11 -0
- package/engine/run-result.d.ts.map +1 -1
- package/engine/run-result.js +32 -0
- package/engine/run-result.js.map +1 -1
- package/engine/test-body-resource-attachment.d.ts.map +1 -1
- package/engine/test-body-resource-attachment.js +34 -0
- package/engine/test-body-resource-attachment.js.map +1 -1
- package/package.json +5 -3
- package/packages/engine/engine.entry-point.d.ts +54 -0
- package/packages/engine/engine.entry-point.d.ts.map +1 -0
- package/packages/engine/engine.entry-point.js +1 -0
- package/packages/engine/engine.entry-point.js.map +1 -1
- package/packages/run/command-line.entry-point.d.ts.map +1 -1
- package/packages/run/command-line.entry-point.js +3 -2
- package/packages/run/command-line.entry-point.js.map +1 -1
- package/packages/run/run.entry-point.d.ts +1 -1
- package/packages/run/run.entry-point.d.ts.map +1 -1
- package/readme.md +17 -8
- package/run/child-process-protocol.js +30 -0
- package/run/child-process-protocol.js.map +1 -0
- package/run/child-process-roles.js +13 -0
- package/run/child-process-roles.js.map +1 -0
- package/run/child-process.entry-point.js +15 -0
- package/run/child-process.entry-point.js.map +1 -0
- package/run/current-process-run-orchestrator.d.ts +1 -0
- package/run/current-process-run-orchestrator.d.ts.map +1 -1
- package/run/current-process-run-orchestrator.js +1 -0
- package/run/current-process-run-orchestrator.js.map +1 -1
- package/run/node-command-line-runner.d.ts +2 -0
- package/run/node-command-line-runner.d.ts.map +1 -1
- package/run/node-command-line-runner.js +2 -1
- package/run/node-command-line-runner.js.map +1 -1
- package/run/node-worker-pool-factory.js +13 -0
- package/run/node-worker-pool-factory.js.map +1 -0
- package/run/resource-usage.d.ts +3 -1
- package/run/resource-usage.d.ts.map +1 -1
- package/run/resource-usage.js +2 -2
- package/run/resource-usage.js.map +1 -1
- package/run/run-collected-resolution.js +7 -4
- package/run/run-collected-resolution.js.map +1 -1
- package/run/run-config-schema.d.ts +27 -195
- package/run/run-config-schema.d.ts.map +1 -1
- package/run/run-config-schema.js +27 -2
- package/run/run-config-schema.js.map +1 -1
- package/run/run-config.d.ts +29 -14
- package/run/run-config.d.ts.map +1 -1
- package/run/run-config.js +7 -10
- package/run/run-config.js.map +1 -1
- package/run/run-facts.js +2 -0
- package/run/run-facts.js.map +1 -1
- package/run/run-host-process.js +86 -0
- package/run/run-host-process.js.map +1 -0
- package/run/run-if-main.d.ts.map +1 -1
- package/run/run-if-main.js +2 -1
- package/run/run-if-main.js.map +1 -1
- package/run/run-input-resolution.js +0 -12
- package/run/run-input-resolution.js.map +1 -1
- package/run/run-isolated-command.js +7 -1
- package/run/run-isolated-command.js.map +1 -1
- package/run/run-local-resolution.js +3 -4
- package/run/run-local-resolution.js.map +1 -1
- package/run/run-orchestrator-dependencies.d.ts +19 -6
- package/run/run-orchestrator-dependencies.d.ts.map +1 -1
- package/run/run-orchestrator.d.ts +2 -1
- package/run/run-orchestrator.d.ts.map +1 -1
- package/run/run-orchestrator.entry-point.d.ts +1 -0
- package/run/run-orchestrator.entry-point.d.ts.map +1 -1
- package/run/run-orchestrator.entry-point.js +47 -40
- package/run/run-orchestrator.entry-point.js.map +1 -1
- package/run/run-orchestrator.js +5 -2
- package/run/run-orchestrator.js.map +1 -1
- package/run/run-selection.js +44 -0
- package/run/run-selection.js.map +1 -1
- package/run/run-support.js +15 -1
- package/run/run-support.js.map +1 -1
- package/run/run-types.d.ts +36 -1
- package/run/run-types.d.ts.map +1 -1
- package/run/run-types.js.map +1 -1
- package/run/run-validation.js +4 -0
- package/run/run-validation.js.map +1 -1
- package/run/supervised-child-process.d.ts +3 -3
- package/run/supervised-child-process.d.ts.map +1 -1
- package/run/supervised-child-process.js +4 -4
- package/run/supervised-child-process.js.map +1 -1
- package/run/supervised-child.entry-point.js +14 -7
- package/run/supervised-child.entry-point.js.map +1 -1
- package/run/supervised-protocol.js +9 -0
- package/run/supervised-protocol.js.map +1 -0
- package/run/supervised-run-runtime.js +8 -4
- package/run/supervised-run-runtime.js.map +1 -1
- package/run/supervised-run.js +17 -6
- package/run/supervised-run.js.map +1 -1
- package/run/tinypool-node-compatibility.js.map +1 -1
- package/run/work-distribution-config.js +42 -12
- package/run/work-distribution-config.js.map +1 -1
- package/run/work-unit-planning.js +184 -67
- package/run/work-unit-planning.js.map +1 -1
- package/run/worker-pool-collection.js +18 -6
- package/run/worker-pool-collection.js.map +1 -1
- package/run/worker-pool-execution.js +13 -4
- package/run/worker-pool-execution.js.map +1 -1
- package/run/worker-pool-host-process.js +328 -0
- package/run/worker-pool-host-process.js.map +1 -0
- package/run/worker-pool-host-protocol.js +50 -0
- package/run/worker-pool-host-protocol.js.map +1 -0
- package/run/worker-pool-host.entry-point.js +164 -0
- package/run/worker-pool-host.entry-point.js.map +1 -0
- package/run/worker-pool-lanes.js +132 -0
- package/run/worker-pool-lanes.js.map +1 -0
- package/run/worker-pool-run.js +36 -9
- package/run/worker-pool-run.js.map +1 -1
- package/run/worker-pool-runtime.js +273 -19
- package/run/worker-pool-runtime.js.map +1 -1
- package/run/worker-pool-worker-plan.js +7 -4
- package/run/worker-pool-worker-plan.js.map +1 -1
- package/sbom.cdx.json +4 -4
- package/run/supervised-child-process.entry-point.js +0 -6
- package/run/supervised-child-process.entry-point.js.map +0 -1
- package/run/supervised-protocol.d.ts +0 -49
- package/run/supervised-protocol.d.ts.map +0 -1
package/run/resource-usage.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { WallClock } from '@enormora/wall-clock';
|
|
2
|
-
import type { RunResourceUsageTracker } from '../engine/run-result.ts';
|
|
2
|
+
import type { ResourceUsageSnapshot, RunResourceUsage, RunResourceUsageTracker } from '../engine/run-result.ts';
|
|
3
|
+
type ResourceUsageSample = ResourceUsageSnapshot;
|
|
3
4
|
type ResourceUsageTrackerDependencies = {
|
|
4
5
|
readonly readActiveResourceTypes: () => readonly string[];
|
|
5
6
|
readonly readJavaScriptEngineHeapBytes: () => number;
|
|
@@ -9,6 +10,7 @@ type ResourceUsageTrackerDependencies = {
|
|
|
9
10
|
export type ResourceUsageTrackerOptions = {
|
|
10
11
|
readonly samplingIntervalMilliseconds: number;
|
|
11
12
|
};
|
|
13
|
+
export declare function createResourceUsageFromSamples(start: ResourceUsageSnapshot, end: ResourceUsageSnapshot, samples: readonly ResourceUsageSample[]): RunResourceUsage;
|
|
12
14
|
export declare function createResourceUsageTracker(dependencies: ResourceUsageTrackerDependencies, options: ResourceUsageTrackerOptions): RunResourceUsageTracker;
|
|
13
15
|
export declare function createNodeResourceUsageTracker(wallClock: WallClock, options: ResourceUsageTrackerOptions): RunResourceUsageTracker;
|
|
14
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-usage.d.ts","sourceRoot":"","sources":["../../../../source/run/resource-usage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"resource-usage.d.ts","sourceRoot":"","sources":["../../../../source/run/resource-usage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EACR,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EAC1B,MAAM,yBAAyB,CAAC;AAIjC,KAAK,mBAAmB,GAAG,qBAAqB,CAAC;AAEjD,KAAK,gCAAgC,GAAG;IACpC,QAAQ,CAAC,uBAAuB,EAAE,MAAM,SAAS,MAAM,EAAE,CAAC;IAC1D,QAAQ,CAAC,6BAA6B,EAAE,MAAM,MAAM,CAAC;IACrD,QAAQ,CAAC,oBAAoB,EAAE,MAAM,MAAM,CAAC;IAC5C,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACtC,QAAQ,CAAC,4BAA4B,EAAE,MAAM,CAAC;CACjD,CAAC;AA4DF,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,qBAAqB,EAC5B,GAAG,EAAE,qBAAqB,EAC1B,OAAO,EAAE,SAAS,mBAAmB,EAAE,GACxC,gBAAgB,CA4BlB;AAED,wBAAgB,0BAA0B,CACtC,YAAY,EAAE,gCAAgC,EAC9C,OAAO,EAAE,2BAA2B,GACrC,uBAAuB,CAoCzB;AAED,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,2BAA2B,GACrC,uBAAuB,CAazB"}
|
package/run/resource-usage.js
CHANGED
|
@@ -37,7 +37,7 @@ function peakResidentSetGrowthBytesPerSecond(samples) {
|
|
|
37
37
|
}
|
|
38
38
|
return peakGrowthBytesPerSecond;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
export function createResourceUsageFromSamples(start, end, samples) {
|
|
41
41
|
return {
|
|
42
42
|
activeResourceTypes: sortedUnique(samples.flatMap(function toActiveResourceTypes(sample) {
|
|
43
43
|
return sample.activeResourceTypes;
|
|
@@ -72,7 +72,7 @@ export function createResourceUsageTracker(dependencies, options) {
|
|
|
72
72
|
}
|
|
73
73
|
const endSnapshot = readResourceUsageSample(dependencies);
|
|
74
74
|
samples = [...samples, endSnapshot];
|
|
75
|
-
return
|
|
75
|
+
return createResourceUsageFromSamples(startSnapshot, endSnapshot, samples);
|
|
76
76
|
},
|
|
77
77
|
start(onSample) {
|
|
78
78
|
if (startSnapshot !== null) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-usage.js","sourceRoot":"","sources":["../../../../source/run/resource-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAQ5C,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAenC,SAAS,YAAY,CAAC,MAAyB;IAC3C,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,WAAW,CAAC,UAAU,EAAE,WAAW;QACpF,OAAO,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,uBAAuB,CAAC,YAA8C;IAC3E,MAAM,mBAAmB,GAAG,YAAY,CAAC,uBAAuB,EAAE,CAAC;IAEnE,OAAO;QACH,mBAAmB,EAAE,mBAAmB,CAAC,MAAM;QAC/C,mBAAmB,EAAE,YAAY,CAAC,mBAAmB,CAAC;QACtD,sBAAsB,EAAE,YAAY,CAAC,SAAS,CAAC,8BAA8B;QAC7E,yBAAyB,EAAE,YAAY,CAAC,6BAA6B,EAAE;QACvE,gBAAgB,EAAE,YAAY,CAAC,oBAAoB,EAAE;KACxD,CAAC;AACN,CAAC;AAED,SAAS,kBAAkB,CACvB,OAAuC,EACvC,SAAkD;IAElD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,+BAA+B,CACpC,cAAmC,EACnC,UAA+B;IAE/B,MAAM,mBAAmB,GAAG,UAAU,CAAC,sBAAsB,GAAG,cAAc,CAAC,sBAAsB,CAAC;IAEtG,IAAI,mBAAmB,IAAI,CAA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AAC;QACrC,CAAC;QACD,SAAS;KACZ,EAAE,OAAO,CAAC,CAAC;AAChB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { collectedRunCaseEntries, collectedRunCaseFactsFromEntries, collectedRunPlanFromTestPlanCases, createRunResultFromCollectedPlan } from "./collected-run-plan.js";
|
|
2
2
|
import { createRunFacts } from "./run-facts.js";
|
|
3
|
-
import {
|
|
4
|
-
import { assertCollectedRunPlanHasCases, assertCollectedRunPlanMatchesTestFamily, orderedRunItems, selectedCollectedRunPlan } from "./run-selection.js";
|
|
3
|
+
import { assertCollectedRunPlanHasCases, assertCollectedRunPlanMatchesTestFamily, assertCollectedRunPlanCasesMatchProfilePolicy, orderedRunItems, selectedCollectedRunPlan } from "./run-selection.js";
|
|
5
4
|
import { collectedRunCaseEntriesFromWorkUnits, createWorkerPoolPlacementPlan } from "./work-unit-planning.js";
|
|
6
5
|
import { freezeValue, resolveRunReporters } from "./run-support.js";
|
|
7
6
|
function fileSetForDiscoveredFiles(files) {
|
|
@@ -14,7 +13,7 @@ function fileSetForDiscoveredFiles(files) {
|
|
|
14
13
|
}
|
|
15
14
|
function createResolvedRunFromCollectedPlan(input) {
|
|
16
15
|
assertCollectedRunPlanMatchesTestFamily(input.collectedPlan, input.profile.testFamily);
|
|
17
|
-
|
|
16
|
+
assertCollectedRunPlanCasesMatchProfilePolicy(input.collectedPlan, input.profile);
|
|
18
17
|
if (!input.allowEmptySelection) {
|
|
19
18
|
assertCollectedRunPlanHasCases(input.collectedPlan);
|
|
20
19
|
}
|
|
@@ -25,9 +24,13 @@ function createResolvedRunFromCollectedPlan(input) {
|
|
|
25
24
|
order: input.request.order,
|
|
26
25
|
seed: input.request.seed,
|
|
27
26
|
selectedPlan: input.collectedPlan,
|
|
27
|
+
scheduling: input.profile.execution.scheduling,
|
|
28
28
|
workDistribution: input.profile.execution.processModel === 'worker-pool'
|
|
29
29
|
? input.profile.execution.workDistribution
|
|
30
|
-
: { mode: 'file' }
|
|
30
|
+
: { mode: 'file' },
|
|
31
|
+
workerLifecycle: input.profile.execution.processModel === 'worker-pool'
|
|
32
|
+
? input.profile.execution.workerLifecycle
|
|
33
|
+
: 'reuse'
|
|
31
34
|
})
|
|
32
35
|
: null;
|
|
33
36
|
const orderedCases = placementPlan === null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-collected-resolution.js","sourceRoot":"","sources":["../../../../source/run/run-collected-resolution.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,gCAAgC,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,cAAc,EACjB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"run-collected-resolution.js","sourceRoot":"","sources":["../../../../source/run/run-collected-resolution.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,gCAAgC,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,cAAc,EACjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACH,8BAA8B,EAC9B,uCAAuC,EACvC,6CAA6C,EAC7C,eAAe,EACf,wBAAwB,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACH,oCAAoC,EACpC,6BAA6B,EAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,WAAW,EACX,mBAAmB,EACtB,MAAM,kBAAkB,CAAC;AA8C1B,SAAS,yBAAyB,CAAC,KAAgC;IAC/D,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,cAAc,CAAC,IAAI;QAC3D,OAAO,CAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAE,CAAC;IACvC,CAAC,CAAC,CAAC,CAAC;IAEJ,OAAO,SAAS,cAAc,CAAC,IAAI;QAC/B,OAAO,IAAI,KAAK,IAAI,CAAC,CAA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AC;QACtC,GAAG,KAAK;QACR,sBAAsB,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QAC9E,aAAa,EAAE,WAAW,CAAC,aAAa,CAAC;KAC5C,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,0BAA0B,CACtC,QAAkB,EAClB,YAAyC;IAEzC,MAAM,WAAW,GAAG,YAAY,CAAC,SAAS,CAAC,8BAA8B,CAAC;IAE1E,OAAO,WAAW,CAAC,gCAAgC,CAC/C,iCAAiC,CAAC,QAAQ,EAAE,EAAE,CAAC,EAC/C,EAAE,EACF,EAAE,EACF;QACI,aAAa,EAAE,IAAI;QACnB,WAAW;QACX,SAAS,EAAE,YAAY,CAAC,SAAS;KACpC,CACJ,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -69,13 +69,21 @@ export declare const integrationExecutionSchema: z.ZodDiscriminatedUnion<[z.ZodR
|
|
|
69
69
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
70
70
|
groups: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
|
|
71
71
|
fileSets: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
72
|
+
granularity: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"case">, z.ZodLiteral<"file">, z.ZodLiteral<"group">]>>;
|
|
72
73
|
name: z.ZodString;
|
|
74
|
+
order: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"lexical">, z.ZodLiteral<"plan">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"seeded">]>>;
|
|
75
|
+
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"serial">]>>;
|
|
76
|
+
workerLifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"reuse">]>>;
|
|
73
77
|
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
|
|
74
78
|
fileSets: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
79
|
+
granularity: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"case">, z.ZodLiteral<"file">, z.ZodLiteral<"group">]>>;
|
|
75
80
|
name: z.ZodString;
|
|
81
|
+
order: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"lexical">, z.ZodLiteral<"plan">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"seeded">]>>;
|
|
82
|
+
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"serial">]>>;
|
|
83
|
+
workerLifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"reuse">]>>;
|
|
76
84
|
}, z.core.$strict>>>>;
|
|
77
85
|
mode: z.ZodLiteral<"group">;
|
|
78
|
-
unmatched: z.ZodOptional<z.ZodLiteral<"reject">>;
|
|
86
|
+
unmatched: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"file">, z.ZodLiteral<"reject">]>>;
|
|
79
87
|
}, z.core.$strict>>], "mode">>;
|
|
80
88
|
workerLifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"reuse">]>>;
|
|
81
89
|
}, z.core.$strict>>], "processModel">;
|
|
@@ -133,13 +141,21 @@ export declare const integrationProfileSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
133
141
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
134
142
|
groups: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
|
|
135
143
|
fileSets: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
144
|
+
granularity: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"case">, z.ZodLiteral<"file">, z.ZodLiteral<"group">]>>;
|
|
136
145
|
name: z.ZodString;
|
|
146
|
+
order: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"lexical">, z.ZodLiteral<"plan">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"seeded">]>>;
|
|
147
|
+
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"serial">]>>;
|
|
148
|
+
workerLifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"reuse">]>>;
|
|
137
149
|
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
|
|
138
150
|
fileSets: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
151
|
+
granularity: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"case">, z.ZodLiteral<"file">, z.ZodLiteral<"group">]>>;
|
|
139
152
|
name: z.ZodString;
|
|
153
|
+
order: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"lexical">, z.ZodLiteral<"plan">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"seeded">]>>;
|
|
154
|
+
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"serial">]>>;
|
|
155
|
+
workerLifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"reuse">]>>;
|
|
140
156
|
}, z.core.$strict>>>>;
|
|
141
157
|
mode: z.ZodLiteral<"group">;
|
|
142
|
-
unmatched: z.ZodOptional<z.ZodLiteral<"reject">>;
|
|
158
|
+
unmatched: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"file">, z.ZodLiteral<"reject">]>>;
|
|
143
159
|
}, z.core.$strict>>], "mode">>;
|
|
144
160
|
workerLifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"reuse">]>>;
|
|
145
161
|
}, z.core.$strict>>], "processModel">>;
|
|
@@ -175,196 +191,6 @@ export declare const integrationProfileSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
175
191
|
softMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
176
192
|
}, z.core.$strict>>>;
|
|
177
193
|
}, z.core.$strict>>;
|
|
178
|
-
declare const profileSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
179
|
-
execution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
180
|
-
processModel: z.ZodLiteral<"supervised-process">;
|
|
181
|
-
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>>;
|
|
182
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
183
|
-
processModel: z.ZodLiteral<"worker-pool">;
|
|
184
|
-
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>>;
|
|
185
|
-
workDistribution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
186
|
-
mode: z.ZodLiteral<"file">;
|
|
187
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
188
|
-
mode: z.ZodLiteral<"case">;
|
|
189
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
190
|
-
groups: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
|
|
191
|
-
fileSets: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
192
|
-
name: z.ZodString;
|
|
193
|
-
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
|
|
194
|
-
fileSets: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
195
|
-
name: z.ZodString;
|
|
196
|
-
}, z.core.$strict>>>>;
|
|
197
|
-
mode: z.ZodLiteral<"group">;
|
|
198
|
-
unmatched: z.ZodOptional<z.ZodLiteral<"reject">>;
|
|
199
|
-
}, z.core.$strict>>], "mode">>;
|
|
200
|
-
workerLifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"reuse">]>>;
|
|
201
|
-
}, z.core.$strict>>], "processModel">>;
|
|
202
|
-
files: z.ZodReadonly<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
203
|
-
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
204
|
-
include: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
205
|
-
sets: z.ZodOptional<z.ZodNever>;
|
|
206
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
207
|
-
exclude: z.ZodOptional<z.ZodNever>;
|
|
208
|
-
include: z.ZodOptional<z.ZodNever>;
|
|
209
|
-
sets: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
210
|
-
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
211
|
-
include: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
212
|
-
}, z.core.$strict>>>>;
|
|
213
|
-
}, z.core.$strict>>]>>;
|
|
214
|
-
reporters: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodCustom<DefinedReporter, DefinedReporter>], z.ZodCustom<DefinedReporter, DefinedReporter>>>>;
|
|
215
|
-
resourceUsage: z.ZodOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
216
|
-
budgets: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
217
|
-
activeResourceCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
218
|
-
javaScriptEngineHeapBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
219
|
-
residentSetBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
220
|
-
residentSetGrowthBytesPerSecond: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
221
|
-
}, z.core.$strict>>>;
|
|
222
|
-
measure: z.ZodLiteral<true>;
|
|
223
|
-
samplingIntervalMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
224
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
225
|
-
measure: z.ZodOptional<z.ZodLiteral<false>>;
|
|
226
|
-
}, z.core.$strict>>]>>;
|
|
227
|
-
testFamily: z.ZodLiteral<"integration">;
|
|
228
|
-
timeouts: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
229
|
-
collectionMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
230
|
-
hardMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
231
|
-
softMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
232
|
-
}, z.core.$strict>>>;
|
|
233
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
234
|
-
execution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
235
|
-
processModel: z.ZodLiteral<"in-process">;
|
|
236
|
-
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>>;
|
|
237
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
238
|
-
processModel: z.ZodLiteral<"supervised-process">;
|
|
239
|
-
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>>;
|
|
240
|
-
}, z.core.$strict>>], "processModel">>;
|
|
241
|
-
files: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
242
|
-
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
243
|
-
include: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
244
|
-
sets: z.ZodOptional<z.ZodNever>;
|
|
245
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
246
|
-
exclude: z.ZodOptional<z.ZodNever>;
|
|
247
|
-
include: z.ZodOptional<z.ZodNever>;
|
|
248
|
-
sets: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
249
|
-
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
250
|
-
include: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
251
|
-
}, z.core.$strict>>>>;
|
|
252
|
-
}, z.core.$strict>>]>>>;
|
|
253
|
-
reporters: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodCustom<DefinedReporter, DefinedReporter>], z.ZodCustom<DefinedReporter, DefinedReporter>>>>;
|
|
254
|
-
resourceUsage: z.ZodOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
255
|
-
budgets: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
256
|
-
activeResourceCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
257
|
-
javaScriptEngineHeapBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
258
|
-
residentSetBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
259
|
-
residentSetGrowthBytesPerSecond: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
260
|
-
}, z.core.$strict>>>;
|
|
261
|
-
measure: z.ZodLiteral<true>;
|
|
262
|
-
samplingIntervalMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
263
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
264
|
-
measure: z.ZodOptional<z.ZodLiteral<false>>;
|
|
265
|
-
}, z.core.$strict>>]>>;
|
|
266
|
-
testFamily: z.ZodLiteral<"microtest">;
|
|
267
|
-
timeouts: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
268
|
-
collectionMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
269
|
-
hardMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
270
|
-
softMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
271
|
-
}, z.core.$strict>>>;
|
|
272
|
-
}, z.core.$strict>>], "testFamily">;
|
|
273
|
-
declare const profilesSchema: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
274
|
-
execution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
275
|
-
processModel: z.ZodLiteral<"supervised-process">;
|
|
276
|
-
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>>;
|
|
277
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
278
|
-
processModel: z.ZodLiteral<"worker-pool">;
|
|
279
|
-
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>>;
|
|
280
|
-
workDistribution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
281
|
-
mode: z.ZodLiteral<"file">;
|
|
282
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
283
|
-
mode: z.ZodLiteral<"case">;
|
|
284
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
285
|
-
groups: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
|
|
286
|
-
fileSets: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
287
|
-
name: z.ZodString;
|
|
288
|
-
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
|
|
289
|
-
fileSets: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
290
|
-
name: z.ZodString;
|
|
291
|
-
}, z.core.$strict>>>>;
|
|
292
|
-
mode: z.ZodLiteral<"group">;
|
|
293
|
-
unmatched: z.ZodOptional<z.ZodLiteral<"reject">>;
|
|
294
|
-
}, z.core.$strict>>], "mode">>;
|
|
295
|
-
workerLifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"reuse">]>>;
|
|
296
|
-
}, z.core.$strict>>], "processModel">>;
|
|
297
|
-
files: z.ZodReadonly<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
298
|
-
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
299
|
-
include: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
300
|
-
sets: z.ZodOptional<z.ZodNever>;
|
|
301
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
302
|
-
exclude: z.ZodOptional<z.ZodNever>;
|
|
303
|
-
include: z.ZodOptional<z.ZodNever>;
|
|
304
|
-
sets: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
305
|
-
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
306
|
-
include: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
307
|
-
}, z.core.$strict>>>>;
|
|
308
|
-
}, z.core.$strict>>]>>;
|
|
309
|
-
reporters: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodCustom<DefinedReporter, DefinedReporter>], z.ZodCustom<DefinedReporter, DefinedReporter>>>>;
|
|
310
|
-
resourceUsage: z.ZodOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
311
|
-
budgets: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
312
|
-
activeResourceCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
313
|
-
javaScriptEngineHeapBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
314
|
-
residentSetBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
315
|
-
residentSetGrowthBytesPerSecond: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
316
|
-
}, z.core.$strict>>>;
|
|
317
|
-
measure: z.ZodLiteral<true>;
|
|
318
|
-
samplingIntervalMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
319
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
320
|
-
measure: z.ZodOptional<z.ZodLiteral<false>>;
|
|
321
|
-
}, z.core.$strict>>]>>;
|
|
322
|
-
testFamily: z.ZodLiteral<"integration">;
|
|
323
|
-
timeouts: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
324
|
-
collectionMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
325
|
-
hardMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
326
|
-
softMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
327
|
-
}, z.core.$strict>>>;
|
|
328
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
329
|
-
execution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
330
|
-
processModel: z.ZodLiteral<"in-process">;
|
|
331
|
-
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>>;
|
|
332
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
333
|
-
processModel: z.ZodLiteral<"supervised-process">;
|
|
334
|
-
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>>;
|
|
335
|
-
}, z.core.$strict>>], "processModel">>;
|
|
336
|
-
files: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
337
|
-
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
338
|
-
include: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
339
|
-
sets: z.ZodOptional<z.ZodNever>;
|
|
340
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
341
|
-
exclude: z.ZodOptional<z.ZodNever>;
|
|
342
|
-
include: z.ZodOptional<z.ZodNever>;
|
|
343
|
-
sets: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodObject<{
|
|
344
|
-
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
345
|
-
include: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
346
|
-
}, z.core.$strict>>>>;
|
|
347
|
-
}, z.core.$strict>>]>>>;
|
|
348
|
-
reporters: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodCustom<DefinedReporter, DefinedReporter>], z.ZodCustom<DefinedReporter, DefinedReporter>>>>;
|
|
349
|
-
resourceUsage: z.ZodOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
350
|
-
budgets: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
351
|
-
activeResourceCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
352
|
-
javaScriptEngineHeapBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
353
|
-
residentSetBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
354
|
-
residentSetGrowthBytesPerSecond: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
355
|
-
}, z.core.$strict>>>;
|
|
356
|
-
measure: z.ZodLiteral<true>;
|
|
357
|
-
samplingIntervalMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
358
|
-
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
359
|
-
measure: z.ZodOptional<z.ZodLiteral<false>>;
|
|
360
|
-
}, z.core.$strict>>]>>;
|
|
361
|
-
testFamily: z.ZodLiteral<"microtest">;
|
|
362
|
-
timeouts: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
363
|
-
collectionMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
364
|
-
hardMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
365
|
-
softMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
366
|
-
}, z.core.$strict>>>;
|
|
367
|
-
}, z.core.$strict>>], "testFamily">>>;
|
|
368
194
|
export declare const projectConfigSchema: z.ZodReadonly<z.ZodObject<{
|
|
369
195
|
loader: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
370
196
|
sourceMaps: z.ZodBoolean;
|
|
@@ -385,13 +211,21 @@ export declare const projectConfigSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
385
211
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
386
212
|
groups: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
|
|
387
213
|
fileSets: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
214
|
+
granularity: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"case">, z.ZodLiteral<"file">, z.ZodLiteral<"group">]>>;
|
|
388
215
|
name: z.ZodString;
|
|
216
|
+
order: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"lexical">, z.ZodLiteral<"plan">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"seeded">]>>;
|
|
217
|
+
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"serial">]>>;
|
|
218
|
+
workerLifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"reuse">]>>;
|
|
389
219
|
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
|
|
390
220
|
fileSets: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
221
|
+
granularity: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"case">, z.ZodLiteral<"file">, z.ZodLiteral<"group">]>>;
|
|
391
222
|
name: z.ZodString;
|
|
223
|
+
order: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"lexical">, z.ZodLiteral<"plan">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"seeded">]>>;
|
|
224
|
+
scheduling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"serial">]>>;
|
|
225
|
+
workerLifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"profile-default">, z.ZodLiteral<"reuse">]>>;
|
|
392
226
|
}, z.core.$strict>>>>;
|
|
393
227
|
mode: z.ZodLiteral<"group">;
|
|
394
|
-
unmatched: z.ZodOptional<z.ZodLiteral<"reject">>;
|
|
228
|
+
unmatched: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"file">, z.ZodLiteral<"reject">]>>;
|
|
395
229
|
}, z.core.$strict>>], "mode">>;
|
|
396
230
|
workerLifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"reuse">]>>;
|
|
397
231
|
}, z.core.$strict>>], "processModel">>;
|
|
@@ -479,8 +313,6 @@ export type RunProjectIntegrationExecution = z.infer<typeof integrationExecution
|
|
|
479
313
|
export type RunProjectIntegrationProfileConfig = z.infer<typeof integrationProfileSchema>;
|
|
480
314
|
export type RunProjectMicrotestExecution = z.infer<typeof microtestExecutionSchema>;
|
|
481
315
|
export type RunProjectMicrotestProfileConfig = z.infer<typeof microtestProfileSchema>;
|
|
482
|
-
export type RunProjectProfileConfig = z.infer<typeof profileSchema>;
|
|
483
|
-
export type RunProjectProfilesConfig = z.infer<typeof profilesSchema>;
|
|
484
316
|
export type RunProjectConfig = z.infer<typeof projectConfigSchema>;
|
|
485
317
|
export {};
|
|
486
318
|
//# sourceMappingURL=run-config-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-config-schema.d.ts","sourceRoot":"","sources":["../../../../source/run/run-config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AA6CzE,QAAA,MAAM,kBAAkB;;;;;;;;;;;sBAA2E,CAAC;AAEpG,eAAO,MAAM,qBAAqB;;;;;mBAOnB,CAAC;AAEhB,QAAA,MAAM,2BAA2B;;;;;;;;;mBAMlB,CAAC;AAEhB,QAAA,MAAM,6BAA6B;;mBAIpB,CAAC;AAEhB,eAAO,MAAM,mBAAmB;;;;;;;;;;;qBAA0E,CAAC;AAE3G,eAAO,MAAM,aAAa;;;;mBAMX,CAAC;AAEhB,eAAO,MAAM,wBAAwB;;;;;;qCAanC,CAAC;
|
|
1
|
+
{"version":3,"file":"run-config-schema.d.ts","sourceRoot":"","sources":["../../../../source/run/run-config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AA6CzE,QAAA,MAAM,kBAAkB;;;;;;;;;;;sBAA2E,CAAC;AAEpG,eAAO,MAAM,qBAAqB;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B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACxF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACpF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/run/run-config-schema.js
CHANGED
|
@@ -80,10 +80,35 @@ const workerLifecycleSchema = z.union([
|
|
|
80
80
|
z.literal('fresh-worker-per-unit'),
|
|
81
81
|
z.literal('reuse')
|
|
82
82
|
]);
|
|
83
|
+
const workGroupGranularitySchema = z.union([
|
|
84
|
+
z.literal('case'),
|
|
85
|
+
z.literal('file'),
|
|
86
|
+
z.literal('group')
|
|
87
|
+
]);
|
|
88
|
+
const workGroupOrderSchema = z.union([
|
|
89
|
+
z.literal('lexical'),
|
|
90
|
+
z.literal('plan'),
|
|
91
|
+
z.literal('profile-default'),
|
|
92
|
+
z.literal('seeded')
|
|
93
|
+
]);
|
|
94
|
+
const workGroupSchedulingSchema = z.union([
|
|
95
|
+
z.literal('concurrent'),
|
|
96
|
+
z.literal('profile-default'),
|
|
97
|
+
z.literal('serial')
|
|
98
|
+
]);
|
|
99
|
+
const workGroupWorkerLifecycleSchema = z.union([
|
|
100
|
+
z.literal('fresh-worker-per-unit'),
|
|
101
|
+
z.literal('profile-default'),
|
|
102
|
+
z.literal('reuse')
|
|
103
|
+
]);
|
|
83
104
|
const workGroupSchema = z
|
|
84
105
|
.strictObject({
|
|
85
106
|
fileSets: z.tuple([z.string()]).rest(z.string()).readonly(),
|
|
86
|
-
|
|
107
|
+
granularity: z.optional(workGroupGranularitySchema),
|
|
108
|
+
name: z.string(),
|
|
109
|
+
order: z.optional(workGroupOrderSchema),
|
|
110
|
+
scheduling: z.optional(workGroupSchedulingSchema),
|
|
111
|
+
workerLifecycle: z.optional(workGroupWorkerLifecycleSchema)
|
|
87
112
|
})
|
|
88
113
|
.readonly();
|
|
89
114
|
const workDistributionSchema = z.discriminatedUnion('mode', [
|
|
@@ -101,7 +126,7 @@ const workDistributionSchema = z.discriminatedUnion('mode', [
|
|
|
101
126
|
.strictObject({
|
|
102
127
|
groups: z.tuple([workGroupSchema]).rest(workGroupSchema).readonly(),
|
|
103
128
|
mode: z.literal('group'),
|
|
104
|
-
unmatched: z.optional(z.literal('reject'))
|
|
129
|
+
unmatched: z.optional(z.union([z.literal('file'), z.literal('reject')]))
|
|
105
130
|
})
|
|
106
131
|
.readonly()
|
|
107
132
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-config-schema.js","sourceRoot":"","sources":["../../../../source/run/run-config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAA8B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAwB,MAAM,uBAAuB,CAAC;AAEzE,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAkB,UAAU,EAAE,0CAA0C,CAAC,CAAC;AAEzG,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CACjC,gBAAgB,EAChB,gDAAgD,CACnD,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC;KACjB,YAAY,CAAC;IACV,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;CACrC,CAAC;KACD,QAAQ,EAAE,CAAC;AAEhB,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,SAAS,qBAAqB,CAAC,KAAK;IACpF,OAAO,MAAM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AC,GAAG,CAAC,CAAC,CAAC,CAAC;CACjD,CAAC;KACD,QAAQ,EAAE,CAAC"}
|
package/run/run-config.d.ts
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import type { NonEmptyReadonlyArray } from '../assertion-protocol/assertion-node-shape.ts';
|
|
2
2
|
import { type DefinedOutputRenderer } from '../engine/reporter-output.ts';
|
|
3
3
|
import type { DefinedReporter } from '../engine/reporter.ts';
|
|
4
|
-
import { type RunProjectConfig as ParsedRunProjectConfig, type RunProjectIntegrationExecution as ParsedRunProjectIntegrationExecution, type RunProjectIntegrationProfileConfig as ParsedRunProjectIntegrationProfileConfig, type RunProjectMeasuredResourceUsage as ParsedRunProjectMeasuredResourceUsage, type RunProjectMicrotestExecution as ParsedRunProjectMicrotestExecution, type RunProjectMicrotestProfileConfig as ParsedRunProjectMicrotestProfileConfig, type RunProjectProfileFiles as ParsedRunProjectProfileFiles, type
|
|
4
|
+
import { type RunProjectConfig as ParsedRunProjectConfig, type RunProjectIntegrationExecution as ParsedRunProjectIntegrationExecution, type RunProjectIntegrationProfileConfig as ParsedRunProjectIntegrationProfileConfig, type RunProjectMeasuredResourceUsage as ParsedRunProjectMeasuredResourceUsage, type RunProjectMicrotestExecution as ParsedRunProjectMicrotestExecution, type RunProjectMicrotestProfileConfig as ParsedRunProjectMicrotestProfileConfig, type RunProjectProfileFiles as ParsedRunProjectProfileFiles, type RunProjectResourceBudgets as ParsedRunProjectResourceBudgets, type RunProjectResourceUsageConfig as ParsedRunProjectResourceUsageConfig, type RunProjectTimeoutConfig as ParsedRunProjectTimeoutConfig, type RunProjectUnmeasuredResourceUsage as ParsedRunProjectUnmeasuredResourceUsage } from './run-config-schema.ts';
|
|
5
5
|
import { type RunLoaderConfig, type RunProfilesConfig } from './run-types.ts';
|
|
6
|
-
|
|
7
|
-
export type RunProjectIntegrationExecution = ParsedRunProjectIntegrationExecution;
|
|
8
|
-
export type RunProjectIntegrationProfileConfig = ParsedRunProjectIntegrationProfileConfig;
|
|
9
|
-
export type RunProjectMeasuredResourceUsage = ParsedRunProjectMeasuredResourceUsage;
|
|
10
|
-
export type RunProjectMicrotestExecution = ParsedRunProjectMicrotestExecution;
|
|
11
|
-
export type RunProjectMicrotestProfileConfig = ParsedRunProjectMicrotestProfileConfig;
|
|
12
|
-
export type RunProjectProfileFiles = ParsedRunProjectProfileFiles;
|
|
13
|
-
export type RunProjectProfileConfig = ParsedRunProjectProfileConfig;
|
|
14
|
-
export type RunProjectProfilesConfig = ParsedRunProjectProfilesConfig;
|
|
15
|
-
export type RunProjectResourceBudgets = ParsedRunProjectResourceBudgets;
|
|
16
|
-
export type RunProjectResourceUsageConfig = ParsedRunProjectResourceUsageConfig;
|
|
17
|
-
export type RunProjectTimeoutConfig = ParsedRunProjectTimeoutConfig;
|
|
18
|
-
export type RunProjectUnmeasuredResourceUsage = ParsedRunProjectUnmeasuredResourceUsage;
|
|
6
|
+
type ProjectHostProcessGuard = Readonly<Partial<Record<'hostProcess', never>>>;
|
|
19
7
|
export type LoadedRunConfig = {
|
|
20
8
|
readonly configPath: string | null;
|
|
21
9
|
readonly loader: RunLoaderConfig;
|
|
@@ -24,6 +12,32 @@ export type LoadedRunConfig = {
|
|
|
24
12
|
readonly reporters: NonEmptyReadonlyArray<DefinedReporter> | null;
|
|
25
13
|
readonly runtimeStateDir: string;
|
|
26
14
|
};
|
|
15
|
+
export type RunProjectIntegrationExecution = ParsedRunProjectIntegrationExecution & ProjectHostProcessGuard;
|
|
16
|
+
export type RunProjectIntegrationProfileConfig = {
|
|
17
|
+
readonly execution?: RunProjectIntegrationExecution | undefined;
|
|
18
|
+
readonly files: ParsedRunProjectIntegrationProfileConfig['files'];
|
|
19
|
+
readonly reporters?: ParsedRunProjectIntegrationProfileConfig['reporters'];
|
|
20
|
+
readonly resourceUsage?: ParsedRunProjectIntegrationProfileConfig['resourceUsage'];
|
|
21
|
+
readonly testFamily: ParsedRunProjectIntegrationProfileConfig['testFamily'];
|
|
22
|
+
readonly timeouts?: ParsedRunProjectIntegrationProfileConfig['timeouts'];
|
|
23
|
+
};
|
|
24
|
+
export type RunProjectMicrotestExecution = ParsedRunProjectMicrotestExecution;
|
|
25
|
+
export type RunProjectMicrotestProfileConfig = ParsedRunProjectMicrotestProfileConfig;
|
|
26
|
+
export type RunProjectProfileFiles = ParsedRunProjectProfileFiles;
|
|
27
|
+
export type RunProjectProfileConfig = RunProjectIntegrationProfileConfig | RunProjectMicrotestProfileConfig;
|
|
28
|
+
export type RunProjectProfilesConfig = Readonly<Record<string, RunProjectProfileConfig>>;
|
|
29
|
+
export type RunProjectResourceBudgets = ParsedRunProjectResourceBudgets;
|
|
30
|
+
export type RunProjectMeasuredResourceUsage = ParsedRunProjectMeasuredResourceUsage;
|
|
31
|
+
export type RunProjectUnmeasuredResourceUsage = ParsedRunProjectUnmeasuredResourceUsage;
|
|
32
|
+
export type RunProjectResourceUsageConfig = ParsedRunProjectResourceUsageConfig;
|
|
33
|
+
export type RunProjectTimeoutConfig = ParsedRunProjectTimeoutConfig;
|
|
34
|
+
export type RunProjectConfig = {
|
|
35
|
+
readonly loader?: ParsedRunProjectConfig['loader'];
|
|
36
|
+
readonly outputRenderer?: ParsedRunProjectConfig['outputRenderer'];
|
|
37
|
+
readonly profiles?: RunProjectProfilesConfig | undefined;
|
|
38
|
+
readonly reporters?: ParsedRunProjectConfig['reporters'];
|
|
39
|
+
readonly runtimeStateDir?: ParsedRunProjectConfig['runtimeStateDir'];
|
|
40
|
+
};
|
|
27
41
|
export type RunConfigLoadRequest = {
|
|
28
42
|
readonly configPath: string | null;
|
|
29
43
|
readonly cwd: string;
|
|
@@ -38,4 +52,5 @@ export declare class RunConfigError extends Error {
|
|
|
38
52
|
}
|
|
39
53
|
export declare function defineConfig(config: RunProjectConfig): RunProjectConfig;
|
|
40
54
|
export declare function createRunConfigLoader(dependencies: RunConfigLoaderDependencies): RunConfigLoader;
|
|
55
|
+
export {};
|
|
41
56
|
//# sourceMappingURL=run-config.d.ts.map
|
package/run/run-config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-config.d.ts","sourceRoot":"","sources":["../../../../source/run/run-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAA6B,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAEH,KAAK,gBAAgB,IAAI,sBAAsB,EAC/C,KAAK,8BAA8B,IAAI,oCAAoC,EAC3E,KAAK,kCAAkC,IAAI,wCAAwC,EACnF,KAAK,+BAA+B,IAAI,qCAAqC,EAC7E,KAAK,4BAA4B,IAAI,kCAAkC,EACvE,KAAK,gCAAgC,IAAI,sCAAsC,EAC/E,KAAK,sBAAsB,IAAI,4BAA4B,EAC3D,KAAK,
|
|
1
|
+
{"version":3,"file":"run-config.d.ts","sourceRoot":"","sources":["../../../../source/run/run-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAA6B,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAEH,KAAK,gBAAgB,IAAI,sBAAsB,EAC/C,KAAK,8BAA8B,IAAI,oCAAoC,EAC3E,KAAK,kCAAkC,IAAI,wCAAwC,EACnF,KAAK,+BAA+B,IAAI,qCAAqC,EAC7E,KAAK,4BAA4B,IAAI,kCAAkC,EACvE,KAAK,gCAAgC,IAAI,sCAAsC,EAC/E,KAAK,sBAAsB,IAAI,4BAA4B,EAC3D,KAAK,yBAAyB,IAAI,+BAA+B,EACjE,KAAK,6BAA6B,IAAI,mCAAmC,EACzE,KAAK,uBAAuB,IAAI,6BAA6B,EAC7D,KAAK,iCAAi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AK,OAAO,CAAC,eAAe,CAAC,CAAC;AAE1F,qBAAa,cAAe,SAAQ,KAAK;gBAClB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;CAIvE;AAiDD,wBAAgB,YAAY,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,CAEvE;AAqZD,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,2BAA2B,GAAG,eAAe,CAahG"}
|
package/run/run-config.js
CHANGED
|
@@ -47,14 +47,10 @@ const defaultMicrotestExecution = {
|
|
|
47
47
|
processModel: 'supervised-process',
|
|
48
48
|
scheduling: 'concurrent'
|
|
49
49
|
};
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
workerLifecycle: 'reuse'
|
|
55
|
-
};
|
|
56
|
-
const defaultWorkerLifecycle = defaultIntegrationExecution.workerLifecycle;
|
|
57
|
-
const defaultWorkDistribution = defaultIntegrationExecution.workDistribution;
|
|
50
|
+
const defaultIntegrationProcessModel = 'worker-pool';
|
|
51
|
+
const defaultIntegrationScheduling = 'concurrent';
|
|
52
|
+
const defaultWorkerLifecycle = 'reuse';
|
|
53
|
+
const defaultWorkDistribution = { mode: 'file' };
|
|
58
54
|
export function defineConfig(config) {
|
|
59
55
|
return config;
|
|
60
56
|
}
|
|
@@ -260,6 +256,7 @@ function assertValidWorkDistribution(execution, files) {
|
|
|
260
256
|
}
|
|
261
257
|
function normalizeWorkerPoolExecution(execution, scheduling) {
|
|
262
258
|
return {
|
|
259
|
+
hostProcess: { kind: 'direct' },
|
|
263
260
|
processModel: 'worker-pool',
|
|
264
261
|
scheduling,
|
|
265
262
|
workDistribution: normalizeWorkDistribution(execution, defaultWorkDistribution),
|
|
@@ -267,8 +264,8 @@ function normalizeWorkerPoolExecution(execution, scheduling) {
|
|
|
267
264
|
};
|
|
268
265
|
}
|
|
269
266
|
function normalizeIntegrationExecution(execution) {
|
|
270
|
-
const processModel = execution?.processModel ??
|
|
271
|
-
const scheduling = execution?.scheduling ??
|
|
267
|
+
const processModel = execution?.processModel ?? defaultIntegrationProcessModel;
|
|
268
|
+
const scheduling = execution?.scheduling ?? defaultIntegrationScheduling;
|
|
272
269
|
if (processModel === 'worker-pool') {
|
|
273
270
|
return normalizeWorkerPoolExecution(execution, scheduling);
|
|
274
271
|
}
|