@overkill-dev/run 0.0.42 → 0.0.43
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/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 +6 -0
- 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-config-schema.d.ts +0 -192
- package/run/run-config-schema.d.ts.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-isolated-command.js +7 -1
- package/run/run-isolated-command.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-support.js +10 -0
- package/run/run-support.js.map +1 -1
- package/run/run-types.d.ts +24 -0
- 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/worker-pool-collection.js +18 -6
- package/run/worker-pool-collection.js.map +1 -1
- package/run/worker-pool-execution.js +12 -3
- 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-run.js +36 -9
- package/run/worker-pool-run.js.map +1 -1
- package/run/worker-pool-runtime.js +30 -9
- package/run/worker-pool-runtime.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
|
@@ -8,7 +8,7 @@ function workerPoolEntryPointHref(entryPoint) {
|
|
|
8
8
|
const workerPoolEntryPointUrl = new URL('./worker-pool-worker.ts', import.meta.url);
|
|
9
9
|
return workerPoolEntryPointUrl.href + entryPointWorkerName.slice(0, 0);
|
|
10
10
|
}
|
|
11
|
-
const workerPoolEntryPoint = workerPoolEntryPointHref({
|
|
11
|
+
export const workerPoolEntryPoint = workerPoolEntryPointHref({
|
|
12
12
|
compatibility: null,
|
|
13
13
|
worker: workerPoolWorkerEntryPoint
|
|
14
14
|
});
|
|
@@ -41,15 +41,20 @@ export function workerPoolCollectedPlan(resolvedRun) {
|
|
|
41
41
|
}
|
|
42
42
|
return resolvedRun.plan.collectedPlan;
|
|
43
43
|
}
|
|
44
|
-
function createPoolResourceUsageTracker(resolvedRun, dependencies) {
|
|
44
|
+
function createPoolResourceUsageTracker(pool, resolvedRun, dependencies) {
|
|
45
45
|
if (!resolvedRun.facts.execution.resourceUsagePolicy.measure) {
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
|
+
if (pool.createResourceUsageTracker !== undefined) {
|
|
49
|
+
return pool.createResourceUsageTracker({
|
|
50
|
+
samplingIntervalMilliseconds: resolvedRun.facts.execution.resourceUsagePolicy.samplingIntervalMilliseconds
|
|
51
|
+
});
|
|
52
|
+
}
|
|
48
53
|
return dependencies.createResourceUsageTracker({
|
|
49
54
|
samplingIntervalMilliseconds: resolvedRun.facts.execution.resourceUsagePolicy.samplingIntervalMilliseconds
|
|
50
55
|
});
|
|
51
56
|
}
|
|
52
|
-
function workerPoolExecutionFacts(resolvedRun) {
|
|
57
|
+
export function workerPoolExecutionFacts(resolvedRun) {
|
|
53
58
|
if (resolvedRun.facts.execution.processModel !== 'worker-pool') {
|
|
54
59
|
throw new Error('Worker-pool execution requires worker-pool execution facts.');
|
|
55
60
|
}
|
|
@@ -62,20 +67,36 @@ export function workerPoolPlacementPlan(resolvedRun) {
|
|
|
62
67
|
}
|
|
63
68
|
return placementPlan;
|
|
64
69
|
}
|
|
65
|
-
export async function createWorkerPoolRuntime(
|
|
70
|
+
export async function createWorkerPoolRuntime(input) {
|
|
71
|
+
const { collectionRunnerErrors, createdPool, dependencies, resolvedRun, runState } = input;
|
|
66
72
|
const placementPlan = workerPoolPlacementPlan(resolvedRun);
|
|
67
73
|
const execution = workerPoolExecutionFacts(resolvedRun);
|
|
68
74
|
const taskResults = [];
|
|
75
|
+
const pool = createdPool ?? dependencies.createWorkerPool({
|
|
76
|
+
cwd: resolvedRun.cwd,
|
|
77
|
+
hostProcess: execution.hostProcess.kind === 'direct'
|
|
78
|
+
? { kind: 'direct' }
|
|
79
|
+
: {
|
|
80
|
+
kind: 'child',
|
|
81
|
+
nodeArguments: Array.from(execution.hostProcess.nodeArguments)
|
|
82
|
+
},
|
|
83
|
+
workerCount: placementPlan.lanes.length,
|
|
84
|
+
workerLifecycle: execution.workerLifecycle
|
|
85
|
+
});
|
|
86
|
+
pool.setHostOutputSink?.(function recordHostOutput(stream, chunk) {
|
|
87
|
+
if (execution.capture === 'live') {
|
|
88
|
+
dependencies.liveOutput[stream].write(chunk);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
runState.recordCapturedOutput(stream, chunk, dependencies.wallClock.currentTimestampInMilliseconds);
|
|
92
|
+
});
|
|
69
93
|
return {
|
|
70
94
|
activeTasks: new Set(),
|
|
71
95
|
collectedPlan: workerPoolCollectedPlan(resolvedRun),
|
|
72
96
|
collectionRunnerErrors,
|
|
73
97
|
dependencies,
|
|
74
|
-
pool
|
|
75
|
-
|
|
76
|
-
workerLifecycle: execution.workerLifecycle
|
|
77
|
-
}),
|
|
78
|
-
poolResourceUsageTracker: createPoolResourceUsageTracker(resolvedRun, dependencies),
|
|
98
|
+
pool,
|
|
99
|
+
poolResourceUsageTracker: createPoolResourceUsageTracker(pool, resolvedRun, dependencies),
|
|
79
100
|
previousPoolSample: createStoredRunValue(null),
|
|
80
101
|
reporterDelivery: await createReporterDelivery(resolvedRun, dependencies),
|
|
81
102
|
reporterEvents: createReporterEventQueue(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-pool-runtime.js","sourceRoot":"","sources":["../../../../source/run/worker-pool-runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"worker-pool-runtime.js","sourceRoot":"","sources":["../../../../source/run/worker-pool-runtime.ts"],"names":[],"mappings":"AAiBA,OAAO,EACH,sBAAsB,EACtB,wBAAwB,EAE3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACH,oBAAoB,EAGvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,uBAAuB,EAG1B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAEhF,MAAM,QAAQ,GAAG,uBAAuB,EAAE,CAAC;AA+D3C,SAAS,wBA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,CAA+B,IAAI,CAAC;QAC5E,gBAAgB,EAAE,MAAM,sBAAsB,CAAC,WAAW,EAAE,YAAY,CAAC;QACzE,cAAc,EAAE,wBAAwB,EAAE;QAC1C,WAAW;QACX,QAAQ;QACR,WAAW;QACX,eAAe,EAAE,oBAAoB,CAAC,KAAK,CAAC;KAC/C,CAAC;AACN,CAAC"}
|
package/sbom.cdx.json
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"component": {
|
|
17
17
|
"type": "library",
|
|
18
18
|
"name": "@overkill-dev/run",
|
|
19
|
-
"version": "0.0.
|
|
20
|
-
"bom-ref": "pkg:npm/@overkill-dev/run@0.0.
|
|
21
|
-
"purl": "pkg:npm/@overkill-dev/run@0.0.
|
|
19
|
+
"version": "0.0.43",
|
|
20
|
+
"bom-ref": "pkg:npm/@overkill-dev/run@0.0.43",
|
|
21
|
+
"purl": "pkg:npm/@overkill-dev/run@0.0.43"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"components": [
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"ref": "pkg:npm/@enormora/wall-clock@0.0.3"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
|
-
"ref": "pkg:npm/@overkill-dev/run@0.0.
|
|
161
|
+
"ref": "pkg:npm/@overkill-dev/run@0.0.43",
|
|
162
162
|
"dependsOn": [
|
|
163
163
|
"pkg:npm/@enormora/wall-clock@0.0.3",
|
|
164
164
|
"pkg:npm/@schema-hub/zod-error-formatter@0.0.16",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { runSupervisedChildProcessEntryPoint } from "./supervised-child-process.js";
|
|
2
|
-
export const supervisedChildProcessEntryPointUrl = import.meta.url;
|
|
3
|
-
await runSupervisedChildProcessEntryPoint(process.argv, async function loadSupervisedChild() {
|
|
4
|
-
return await import("./supervised-child.entry-point.js");
|
|
5
|
-
});
|
|
6
|
-
//# sourceMappingURL=supervised-child-process.entry-point.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supervised-child-process.entry-point.js","sourceRoot":"","sources":["../../../../source/run/supervised-child-process.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mCAAmC,EACtC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,MAAM,mCAAmC,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AAEnE,MAAM,mCAAmC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,UAAU,mBAAmB;IACtF,OAAO,MAAM,MAAM,CAAC,mCAAmC,CAAC,CAAC;AAC7D,CAAC,CAAC,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { CaseId } from '../engine/identity.ts';
|
|
2
|
-
import type { ReporterEvent } from '../engine/reporter.ts';
|
|
3
|
-
import type { ResourceUsageSnapshot, RunResult } from '../engine/run-result.ts';
|
|
4
|
-
import type { CollectedRunPlan, RunRequest, RunEngineSelection, RunResourceBudgets, RunScheduling, RunTestFamily } from './run-types.ts';
|
|
5
|
-
type SupervisedCommandBase = {
|
|
6
|
-
readonly capabilityRestrictions: {
|
|
7
|
-
readonly mode: 'disabled' | 'enabled';
|
|
8
|
-
};
|
|
9
|
-
readonly capture: RunRequest['capture'];
|
|
10
|
-
readonly collectionTimeoutMilliseconds: number;
|
|
11
|
-
readonly cwd: string;
|
|
12
|
-
readonly engine: Exclude<RunEngineSelection, {
|
|
13
|
-
readonly kind: 'instance';
|
|
14
|
-
}>;
|
|
15
|
-
readonly paths: readonly string[];
|
|
16
|
-
readonly hardTimeoutMilliseconds: number;
|
|
17
|
-
readonly resourceBudgets: RunResourceBudgets;
|
|
18
|
-
readonly resourceUsageSamplingIntervalMilliseconds: number;
|
|
19
|
-
readonly scheduling: RunScheduling;
|
|
20
|
-
readonly testFamily: RunTestFamily;
|
|
21
|
-
readonly timeoutMilliseconds: number;
|
|
22
|
-
};
|
|
23
|
-
export type SupervisedCollectCommand = SupervisedCommandBase & {
|
|
24
|
-
readonly kind: 'collect';
|
|
25
|
-
};
|
|
26
|
-
export type SupervisedRunCommand = SupervisedCommandBase & {
|
|
27
|
-
readonly kind: 'run';
|
|
28
|
-
};
|
|
29
|
-
export type SupervisedChildCommand = SupervisedCollectCommand | SupervisedRunCommand;
|
|
30
|
-
export type SupervisedAssignmentCommand = {
|
|
31
|
-
readonly assignedCases: readonly CaseId[];
|
|
32
|
-
readonly kind: 'assign';
|
|
33
|
-
};
|
|
34
|
-
export type SupervisedChildMessage = {
|
|
35
|
-
readonly collectedPlan: CollectedRunPlan;
|
|
36
|
-
readonly kind: 'collected';
|
|
37
|
-
readonly runnerErrors: readonly RunResult['runnerErrors'][number][];
|
|
38
|
-
} | {
|
|
39
|
-
readonly event: ReporterEvent;
|
|
40
|
-
readonly kind: 'event';
|
|
41
|
-
} | {
|
|
42
|
-
readonly kind: 'result';
|
|
43
|
-
readonly result: RunResult;
|
|
44
|
-
} | {
|
|
45
|
-
readonly kind: 'sample';
|
|
46
|
-
readonly sample: ResourceUsageSnapshot;
|
|
47
|
-
};
|
|
48
|
-
export {};
|
|
49
|
-
//# sourceMappingURL=supervised-protocol.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supervised-protocol.d.ts","sourceRoot":"","sources":["../../../../source/run/supervised-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,KAAK,EACR,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,aAAa,EAChB,MAAM,gBAAgB,CAAC;AAExB,KAAK,qBAAqB,GAAG;IACzB,QAAQ,CAAC,sBAAsB,EAAE;QAC7B,QAAQ,CAAC,IAAI,EAAE,UAA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