@overkill-dev/run 0.0.9 → 0.0.11
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/engine/engine.d.ts +27 -0
- package/engine/engine.d.ts.map +1 -0
- package/engine/engine.js +40 -0
- package/engine/engine.js.map +1 -0
- package/engine/execution-result.js +77 -0
- package/engine/execution-result.js.map +1 -0
- package/engine/execution.d.ts +2 -1
- package/engine/execution.d.ts.map +1 -1
- package/engine/execution.js +23 -76
- package/engine/execution.js.map +1 -1
- package/engine/identity.d.ts +1 -1
- package/engine/identity.d.ts.map +1 -1
- package/engine/identity.js +16 -1
- package/engine/identity.js.map +1 -1
- package/engine/run-if-main.d.ts +28 -0
- package/engine/run-if-main.d.ts.map +1 -0
- package/engine/run-if-main.js +46 -0
- package/engine/run-if-main.js.map +1 -0
- package/engine/run-result.d.ts +22 -0
- package/engine/run-result.d.ts.map +1 -1
- package/engine/run-result.js.map +1 -1
- package/engine/test-node.d.ts +1 -0
- package/engine/test-node.d.ts.map +1 -1
- package/engine/test-node.js +137 -0
- package/engine/test-node.js.map +1 -0
- package/engine/test-plan.d.ts +11 -1
- package/engine/test-plan.d.ts.map +1 -1
- package/engine/test-plan.js +174 -0
- package/engine/test-plan.js.map +1 -0
- package/package.json +6 -2
- package/packages/engine/engine.entry-point.js +67 -0
- package/packages/engine/engine.entry-point.js.map +1 -0
- package/packages/run/command-line.entry-point.d.ts +1 -1
- package/packages/run/command-line.entry-point.d.ts.map +1 -1
- package/packages/run/run.entry-point.d.ts +4 -2
- package/packages/run/run.entry-point.d.ts.map +1 -1
- package/packages/run/run.entry-point.js +2 -1
- package/packages/run/run.entry-point.js.map +1 -1
- package/readme.md +23 -5
- package/run/command-line-command.d.ts +1 -3
- package/run/command-line-command.d.ts.map +1 -1
- package/run/command-line-command.js +4 -1
- package/run/command-line-command.js.map +1 -1
- package/run/command-line-runner.d.ts +1 -1
- package/run/command-line-runner.d.ts.map +1 -1
- package/run/command-line-runner.js +5 -3
- package/run/command-line-runner.js.map +1 -1
- package/run/command-line-unimplemented-commands.js +1 -1
- package/run/command-line-unimplemented-commands.js.map +1 -1
- package/run/default-run-engine.js +14 -0
- package/run/default-run-engine.js.map +1 -0
- package/run/resource-usage.d.ts +15 -0
- package/run/resource-usage.d.ts.map +1 -0
- package/run/resource-usage.js +107 -0
- package/run/resource-usage.js.map +1 -0
- package/run/run-config.d.ts +30 -5
- package/run/run-config.d.ts.map +1 -1
- package/run/run-config.js +62 -1
- package/run/run-config.js.map +1 -1
- package/run/run-discovery.js +75 -0
- package/run/run-discovery.js.map +1 -0
- package/run/run-errors.d.ts +16 -0
- package/run/run-errors.d.ts.map +1 -0
- package/run/run-errors.js +37 -0
- package/run/run-errors.js.map +1 -0
- package/run/run-orchestrator.d.ts +3 -0
- package/run/run-orchestrator.d.ts.map +1 -0
- package/run/run-orchestrator.js +43 -0
- package/run/run-orchestrator.js.map +1 -0
- package/run/run-test-modules.js +53 -0
- package/run/run-test-modules.js.map +1 -0
- package/run/run.d.ts +35 -13
- package/run/run.d.ts.map +1 -1
- package/run/run.js +200 -66
- package/run/run.js.map +1 -1
- package/sbom.cdx.json +4 -4
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
9
|
+
import { invalidRequest, RunCollectionError } from "./run-errors.js";
|
|
10
|
+
async function importUnknownModule(href) {
|
|
11
|
+
return await import(__rewriteRelativeImportExtension(href));
|
|
12
|
+
}
|
|
13
|
+
function isTestModuleNamespace(value) {
|
|
14
|
+
return typeof value === 'object' && value !== null;
|
|
15
|
+
}
|
|
16
|
+
async function importRawTestModule(file) {
|
|
17
|
+
try {
|
|
18
|
+
return await importUnknownModule(file.href);
|
|
19
|
+
}
|
|
20
|
+
catch (error) {
|
|
21
|
+
throw new RunCollectionError(`Failed to load test module: ${file.file}`, { cause: error }, 'loader');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
async function importTestModule(file) {
|
|
25
|
+
const moduleNamespace = await importRawTestModule(file);
|
|
26
|
+
if (!isTestModuleNamespace(moduleNamespace)) {
|
|
27
|
+
throw new RunCollectionError(`Test module namespace must be an object: ${file.file}`, { cause: null }, 'loader');
|
|
28
|
+
}
|
|
29
|
+
return moduleNamespace;
|
|
30
|
+
}
|
|
31
|
+
function readTestNode(moduleNamespace, file, engine) {
|
|
32
|
+
if (!Object.hasOwn(moduleNamespace, 'testNode')) {
|
|
33
|
+
invalidRequest(`Test module must export testNode: ${file.file}`);
|
|
34
|
+
}
|
|
35
|
+
const { testNode } = moduleNamespace;
|
|
36
|
+
if (!engine.ownsTestNode(testNode)) {
|
|
37
|
+
invalidRequest(`Test module testNode must be created by the selected engine: ${file.file}`);
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
file: file.file,
|
|
41
|
+
testNode
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export async function loadRunTestModules(files, engine) {
|
|
45
|
+
const [firstFile, ...remainingFiles] = files;
|
|
46
|
+
const firstTestFile = readTestNode(await importTestModule(firstFile), firstFile, engine);
|
|
47
|
+
const remainingTestFiles = [];
|
|
48
|
+
for (const file of remainingFiles) {
|
|
49
|
+
remainingTestFiles.push(readTestNode(await importTestModule(file), file, engine));
|
|
50
|
+
}
|
|
51
|
+
return [firstTestFile, ...remainingTestFiles];
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=run-test-modules.js.map
|
|
@@ -0,0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;IAED,MAAM,EAAE,QAAQ,EAAE,GAAG,eAAe,CAAC;IAErC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjC,cAAc,CAAC,gEAAgE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,OAAO;QACH,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,QAAQ;KACX,CAAC;AACN,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACpC,KAA+C,EAC/C,MAAc;IAEd,MAAM,CAAE,SAAS,EAAE,GAAG,cAAc,CAAE,GAAG,KAAK,CAAC;IAC/C,MAAM,aAAa,GAAG,YAAY,CAAC,MAAM,gBAAgB,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACzF,MAAM,kBAAkB,GAAmB,EAAE,CAAC;IAE9C,KAAK,MAAM,IAAI,IAAI,cAAc,EAAE,CAAC;QAChC,kBAAkB,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,gBAAgB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IACtF,CAAC;IAED,OAAO,CAAE,aAAa,EAAE,GAAG,kBAAkB,CAAE,CAAC;AACpD,CAAC"}
|
package/run/run.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type SerializedValue as SerializedValueShape } from '../compare/serialized-value.ts';
|
|
2
|
-
import {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
2
|
+
import type { Execute } from '../engine/execution.ts';
|
|
3
|
+
import type { RunResourceUsageTracker, RunResult } from '../engine/run-result.ts';
|
|
4
|
+
import type { Engine } from '../engine/engine.ts';
|
|
5
5
|
import type { TestPlan } from '../engine/test-plan.ts';
|
|
6
|
+
import type { ResourceUsageTrackerOptions } from './resource-usage.ts';
|
|
6
7
|
export type SerializedValue = SerializedValueShape;
|
|
7
8
|
type RunExecuteOptions = NonNullable<Parameters<Execute>[1]>;
|
|
8
9
|
type RunOutputRenderer = NonNullable<RunExecuteOptions['outputRenderer']>;
|
|
@@ -26,11 +27,32 @@ export type RunDebugRequest = {
|
|
|
26
27
|
};
|
|
27
28
|
export type RunLoaderConfig = {
|
|
28
29
|
readonly sourceMaps: boolean;
|
|
29
|
-
readonly stripMode: 'strip-only'
|
|
30
|
+
readonly stripMode: 'strip-only';
|
|
31
|
+
};
|
|
32
|
+
export type RunResourceBudgets = {
|
|
33
|
+
readonly activeResourceCount: number | null;
|
|
34
|
+
readonly javaScriptEngineHeapBytes: number | null;
|
|
35
|
+
readonly residentSetBytes: number | null;
|
|
36
|
+
readonly residentSetGrowthBytesPerSecond: number | null;
|
|
37
|
+
};
|
|
38
|
+
export type ResourceBudgetOverrides = {
|
|
39
|
+
readonly activeResourceCount: number | null;
|
|
40
|
+
readonly javaScriptEngineHeapBytes: number | null;
|
|
41
|
+
readonly residentSetBytes: number | null;
|
|
42
|
+
readonly residentSetGrowthBytesPerSecond: number | null;
|
|
43
|
+
};
|
|
44
|
+
export type RunResourceUsagePolicy = {
|
|
45
|
+
readonly measureResourceUsage: boolean;
|
|
46
|
+
readonly resourceBudgets: RunResourceBudgets;
|
|
47
|
+
readonly resourceUsageSamplingIntervalMilliseconds: number;
|
|
48
|
+
};
|
|
49
|
+
export type RunProfilesConfig = {
|
|
50
|
+
readonly microtest: RunResourceUsagePolicy;
|
|
30
51
|
};
|
|
31
52
|
export type RunConfig = {
|
|
32
53
|
readonly loader: RunLoaderConfig;
|
|
33
54
|
readonly outputRenderer: RunOutputRenderer;
|
|
55
|
+
readonly profiles: RunProfilesConfig;
|
|
34
56
|
readonly reporters: RunReporters;
|
|
35
57
|
readonly runtimeStateDir: string;
|
|
36
58
|
};
|
|
@@ -40,9 +62,12 @@ export type RunRequest = {
|
|
|
40
62
|
readonly coverage: false;
|
|
41
63
|
readonly debug: RunDebugRequest;
|
|
42
64
|
readonly execution: RunExecutionRequest;
|
|
65
|
+
readonly measureResourceUsage: boolean | null;
|
|
43
66
|
readonly order: 'plan';
|
|
44
67
|
readonly paths: readonly string[];
|
|
45
68
|
readonly profile: 'microtest';
|
|
69
|
+
readonly resourceBudgetOverrides: ResourceBudgetOverrides | null;
|
|
70
|
+
readonly resourceUsageSamplingIntervalMilliseconds: number | null;
|
|
46
71
|
readonly seed: RunSeed;
|
|
47
72
|
readonly selection: RunSelection;
|
|
48
73
|
readonly shard: RunShard;
|
|
@@ -50,8 +75,9 @@ export type RunRequest = {
|
|
|
50
75
|
};
|
|
51
76
|
export type RunCommand = {
|
|
52
77
|
readonly config: RunConfig;
|
|
78
|
+
readonly cwd: string;
|
|
79
|
+
readonly engine: Engine | null;
|
|
53
80
|
readonly request: RunRequest;
|
|
54
|
-
readonly testPlan: TestPlan;
|
|
55
81
|
};
|
|
56
82
|
export type RunFacts = {
|
|
57
83
|
readonly cases: readonly RunCaseFacts[];
|
|
@@ -61,7 +87,7 @@ export type RunFacts = {
|
|
|
61
87
|
readonly reproducibility: RunReproducibilityFacts;
|
|
62
88
|
};
|
|
63
89
|
export type RunCaseFacts = {
|
|
64
|
-
readonly id:
|
|
90
|
+
readonly id: TestPlan['cases'][number]['id'];
|
|
65
91
|
readonly metadata: SerializedValue;
|
|
66
92
|
};
|
|
67
93
|
export type RunEnvironmentFacts = {
|
|
@@ -80,6 +106,7 @@ export type RunExecutionFacts = {
|
|
|
80
106
|
readonly mode: 'concurrent-in-process';
|
|
81
107
|
readonly order: 'plan';
|
|
82
108
|
readonly profile: 'microtest';
|
|
109
|
+
readonly resourceUsagePolicy: RunResourceUsagePolicy;
|
|
83
110
|
readonly verbose: false;
|
|
84
111
|
};
|
|
85
112
|
export type RunReproducibilityFacts = {
|
|
@@ -93,14 +120,10 @@ export type ResolvedRun = {
|
|
|
93
120
|
readonly request: RunRequest;
|
|
94
121
|
readonly testPlan: TestPlan;
|
|
95
122
|
};
|
|
96
|
-
export type RunResolutionErrorCode = 'invalid-request' | 'unsupported-request';
|
|
97
|
-
export declare class RunResolutionError extends Error {
|
|
98
|
-
private readonly errorCode;
|
|
99
|
-
constructor(message: string, options: Readonly<ErrorOptions> | undefined, code: RunResolutionErrorCode);
|
|
100
|
-
code(): RunResolutionErrorCode;
|
|
101
|
-
}
|
|
102
123
|
export type RunOrchestratorDependencies = {
|
|
103
124
|
readonly createSeed: () => bigint;
|
|
125
|
+
readonly createResourceUsageTracker: (options: ResourceUsageTrackerOptions) => RunResourceUsageTracker;
|
|
126
|
+
readonly defaultEngine: Engine;
|
|
104
127
|
readonly execute: Execute;
|
|
105
128
|
readonly node: {
|
|
106
129
|
readonly arch: string;
|
|
@@ -114,6 +137,5 @@ export type RunOrchestrator = {
|
|
|
114
137
|
readonly run: (command: RunCommand) => Promise<RunResult>;
|
|
115
138
|
};
|
|
116
139
|
export declare function createRunOrchestrator(dependencies: RunOrchestratorDependencies): RunOrchestrator;
|
|
117
|
-
export declare const orchestrator: RunOrchestrator;
|
|
118
140
|
export {};
|
|
119
141
|
//# sourceMappingURL=run.d.ts.map
|
package/run/run.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../source/run/run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../source/run/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,eAAe,IAAI,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC9G,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAQvD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAIvE,MAAM,MAAM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AAI,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;KAC5B,CAAC;IACF,QAAQ,CAAC,aAAa,EAAE,MAAM,MAAM,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;IAChE,QAAQ,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7D,CAAC;AAuXF,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,2BAA2B,GAAG,eAAe,CA2BhG"}
|
package/run/run.js
CHANGED
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
import { randomBytes } from 'node:crypto';
|
|
2
|
-
import { createWallClock } from '@enormora/wall-clock';
|
|
3
1
|
import { serializeValue } from "../compare/serialized-value.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { discoverRunFiles } from "./run-discovery.js";
|
|
3
|
+
import { invalidRequest, RunCollectionError, unsupportedRequest } from "./run-errors.js";
|
|
4
|
+
import { loadRunTestModules } from "./run-test-modules.js";
|
|
6
5
|
const minimumSeedValue = 0n;
|
|
7
|
-
const seedByteLength = 8;
|
|
8
|
-
export class RunResolutionError extends Error {
|
|
9
|
-
errorCode;
|
|
10
|
-
constructor(message, options, code) {
|
|
11
|
-
super(message, options);
|
|
12
|
-
this.name = 'RunResolutionError';
|
|
13
|
-
this.errorCode = code;
|
|
14
|
-
}
|
|
15
|
-
code() {
|
|
16
|
-
return this.errorCode;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function unsupportedRequest(message) {
|
|
20
|
-
throw new RunResolutionError(message, undefined, 'unsupported-request');
|
|
21
|
-
}
|
|
22
|
-
function invalidRequest(message) {
|
|
23
|
-
throw new RunResolutionError(message, undefined, 'invalid-request');
|
|
24
|
-
}
|
|
25
|
-
function validateRunPaths(request) {
|
|
26
|
-
if (request.paths.length > 0) {
|
|
27
|
-
unsupportedRequest('Path discovery is not implemented yet.');
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
6
|
function validateRunShard(request) {
|
|
31
7
|
if (request.shard.index !== 0 || request.shard.total !== 1) {
|
|
32
8
|
unsupportedRequest('Sharding is not implemented yet.');
|
|
@@ -37,10 +13,51 @@ function validateRunSeed(request) {
|
|
|
37
13
|
invalidRequest('Run seed must be a nonnegative bigint.');
|
|
38
14
|
}
|
|
39
15
|
}
|
|
16
|
+
function validatePositiveSafeInteger(value, label) {
|
|
17
|
+
if (value !== null && (!Number.isSafeInteger(value) || value <= 0)) {
|
|
18
|
+
invalidRequest(`${label} must be a positive safe integer.`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function validateResourceBudgets(resourceBudgets) {
|
|
22
|
+
validatePositiveSafeInteger(resourceBudgets.activeResourceCount, 'Active resource count budget');
|
|
23
|
+
validatePositiveSafeInteger(resourceBudgets.javaScriptEngineHeapBytes, 'JavaScript engine heap budget');
|
|
24
|
+
validatePositiveSafeInteger(resourceBudgets.residentSetBytes, 'Resident set budget');
|
|
25
|
+
validatePositiveSafeInteger(resourceBudgets.residentSetGrowthBytesPerSecond, 'Resident set growth budget');
|
|
26
|
+
}
|
|
27
|
+
function validateSamplingInterval(value) {
|
|
28
|
+
validatePositiveSafeInteger(value, 'Resource usage sampling interval');
|
|
29
|
+
}
|
|
30
|
+
function hasResourceBudgets(resourceBudgets) {
|
|
31
|
+
return resourceBudgets.activeResourceCount !== null ||
|
|
32
|
+
resourceBudgets.javaScriptEngineHeapBytes !== null ||
|
|
33
|
+
resourceBudgets.residentSetBytes !== null ||
|
|
34
|
+
resourceBudgets.residentSetGrowthBytesPerSecond !== null;
|
|
35
|
+
}
|
|
36
|
+
function validateRunResourceUsageRequest(request) {
|
|
37
|
+
if (request.resourceBudgetOverrides !== null) {
|
|
38
|
+
validateResourceBudgets(request.resourceBudgetOverrides);
|
|
39
|
+
}
|
|
40
|
+
validateSamplingInterval(request.resourceUsageSamplingIntervalMilliseconds);
|
|
41
|
+
if (request.measureResourceUsage === false &&
|
|
42
|
+
request.resourceBudgetOverrides !== null &&
|
|
43
|
+
hasResourceBudgets(request.resourceBudgetOverrides)) {
|
|
44
|
+
invalidRequest('Resource budget overrides require resource usage measurement.');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
40
47
|
function validateRunRequest(request) {
|
|
41
|
-
validateRunPaths(request);
|
|
42
48
|
validateRunShard(request);
|
|
43
49
|
validateRunSeed(request);
|
|
50
|
+
validateRunResourceUsageRequest(request);
|
|
51
|
+
}
|
|
52
|
+
function validateRunResourceUsagePolicy(policy) {
|
|
53
|
+
validateResourceBudgets(policy.resourceBudgets);
|
|
54
|
+
validateSamplingInterval(policy.resourceUsageSamplingIntervalMilliseconds);
|
|
55
|
+
if (!policy.measureResourceUsage && hasResourceBudgets(policy.resourceBudgets)) {
|
|
56
|
+
invalidRequest('Resource budgets require resource usage measurement.');
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function validateRunConfig(config) {
|
|
60
|
+
validateRunResourceUsagePolicy(config.profiles.microtest);
|
|
44
61
|
}
|
|
45
62
|
function resolvedSeed(request, dependencies) {
|
|
46
63
|
return request.seed.value ?? dependencies.createSeed();
|
|
@@ -57,6 +74,32 @@ function copyRunShard(shard) {
|
|
|
57
74
|
total: shard.total
|
|
58
75
|
};
|
|
59
76
|
}
|
|
77
|
+
function copyResourceBudgets(resourceBudgets) {
|
|
78
|
+
return {
|
|
79
|
+
activeResourceCount: resourceBudgets.activeResourceCount,
|
|
80
|
+
javaScriptEngineHeapBytes: resourceBudgets.javaScriptEngineHeapBytes,
|
|
81
|
+
residentSetBytes: resourceBudgets.residentSetBytes,
|
|
82
|
+
residentSetGrowthBytesPerSecond: resourceBudgets.residentSetGrowthBytesPerSecond
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function copyResourceBudgetOverrides(overrides) {
|
|
86
|
+
if (overrides === null) {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
return copyResourceBudgets(overrides);
|
|
90
|
+
}
|
|
91
|
+
function copyResourceUsagePolicy(policy) {
|
|
92
|
+
return {
|
|
93
|
+
measureResourceUsage: policy.measureResourceUsage,
|
|
94
|
+
resourceBudgets: copyResourceBudgets(policy.resourceBudgets),
|
|
95
|
+
resourceUsageSamplingIntervalMilliseconds: policy.resourceUsageSamplingIntervalMilliseconds
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function copyRunProfilesConfig(profiles) {
|
|
99
|
+
return {
|
|
100
|
+
microtest: copyResourceUsagePolicy(profiles.microtest)
|
|
101
|
+
};
|
|
102
|
+
}
|
|
60
103
|
function copyRunRequest(request) {
|
|
61
104
|
return {
|
|
62
105
|
baselineUpdateMode: request.baselineUpdateMode,
|
|
@@ -67,9 +110,12 @@ function copyRunRequest(request) {
|
|
|
67
110
|
selectors: []
|
|
68
111
|
},
|
|
69
112
|
execution: { mode: request.execution.mode },
|
|
113
|
+
measureResourceUsage: request.measureResourceUsage,
|
|
70
114
|
order: request.order,
|
|
71
115
|
paths: Array.from(request.paths),
|
|
72
116
|
profile: request.profile,
|
|
117
|
+
resourceBudgetOverrides: copyResourceBudgetOverrides(request.resourceBudgetOverrides),
|
|
118
|
+
resourceUsageSamplingIntervalMilliseconds: request.resourceUsageSamplingIntervalMilliseconds,
|
|
73
119
|
seed: { value: request.seed.value },
|
|
74
120
|
selection: { kind: request.selection.kind },
|
|
75
121
|
shard: copyRunShard(request.shard),
|
|
@@ -80,6 +126,7 @@ function copyRunConfig(config) {
|
|
|
80
126
|
return {
|
|
81
127
|
loader: copyLoaderConfig(config.loader),
|
|
82
128
|
outputRenderer: config.outputRenderer,
|
|
129
|
+
profiles: copyRunProfilesConfig(config.profiles),
|
|
83
130
|
reporters: Array.from(config.reporters),
|
|
84
131
|
runtimeStateDir: config.runtimeStateDir
|
|
85
132
|
};
|
|
@@ -90,9 +137,51 @@ function runCaseFacts(metadata, id) {
|
|
|
90
137
|
metadata: serializeValue(metadata)
|
|
91
138
|
};
|
|
92
139
|
}
|
|
93
|
-
function
|
|
140
|
+
function disabledResourceBudgets() {
|
|
141
|
+
return {
|
|
142
|
+
activeResourceCount: null,
|
|
143
|
+
javaScriptEngineHeapBytes: null,
|
|
144
|
+
residentSetBytes: null,
|
|
145
|
+
residentSetGrowthBytesPerSecond: null
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function readBudgetOverride(configValue, requestValue) {
|
|
149
|
+
return requestValue ?? configValue;
|
|
150
|
+
}
|
|
151
|
+
function resolveResourceBudgets(configBudgets, requestOverrides) {
|
|
152
|
+
if (requestOverrides === null) {
|
|
153
|
+
return copyResourceBudgets(configBudgets);
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
activeResourceCount: readBudgetOverride(configBudgets.activeResourceCount, requestOverrides.activeResourceCount),
|
|
157
|
+
javaScriptEngineHeapBytes: readBudgetOverride(configBudgets.javaScriptEngineHeapBytes, requestOverrides.javaScriptEngineHeapBytes),
|
|
158
|
+
residentSetBytes: readBudgetOverride(configBudgets.residentSetBytes, requestOverrides.residentSetBytes),
|
|
159
|
+
residentSetGrowthBytesPerSecond: readBudgetOverride(configBudgets.residentSetGrowthBytesPerSecond, requestOverrides.residentSetGrowthBytesPerSecond)
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function assertResourceBudgetOverridesAllowed(measureResourceUsage, requestOverrides) {
|
|
163
|
+
if (!measureResourceUsage && requestOverrides !== null && hasResourceBudgets(requestOverrides)) {
|
|
164
|
+
invalidRequest('Resource budget overrides require resource usage measurement.');
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
function resolveResourceUsagePolicy(request, config) {
|
|
168
|
+
const configuredPolicy = config.profiles.microtest;
|
|
169
|
+
const measureResourceUsage = request.measureResourceUsage ?? configuredPolicy.measureResourceUsage;
|
|
170
|
+
const resourceUsageSamplingIntervalMilliseconds = request.resourceUsageSamplingIntervalMilliseconds ??
|
|
171
|
+
configuredPolicy.resourceUsageSamplingIntervalMilliseconds;
|
|
172
|
+
const resourceBudgets = measureResourceUsage
|
|
173
|
+
? resolveResourceBudgets(configuredPolicy.resourceBudgets, request.resourceBudgetOverrides)
|
|
174
|
+
: disabledResourceBudgets();
|
|
175
|
+
assertResourceBudgetOverridesAllowed(measureResourceUsage, request.resourceBudgetOverrides);
|
|
176
|
+
return {
|
|
177
|
+
measureResourceUsage,
|
|
178
|
+
resourceBudgets,
|
|
179
|
+
resourceUsageSamplingIntervalMilliseconds
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
function createRunFacts(testPlan, request, config, dependencies) {
|
|
94
183
|
return {
|
|
95
|
-
cases:
|
|
184
|
+
cases: testPlan.cases.map(function toRunCaseFacts(testCase) {
|
|
96
185
|
return runCaseFacts(testCase.metadata, testCase.id);
|
|
97
186
|
}),
|
|
98
187
|
environment: {
|
|
@@ -111,6 +200,7 @@ function createRunFacts(command, request, config, dependencies) {
|
|
|
111
200
|
mode: request.execution.mode,
|
|
112
201
|
order: request.order,
|
|
113
202
|
profile: request.profile,
|
|
203
|
+
resourceUsagePolicy: resolveResourceUsagePolicy(request, config),
|
|
114
204
|
verbose: request.verbose
|
|
115
205
|
},
|
|
116
206
|
loader: config.loader,
|
|
@@ -129,65 +219,109 @@ function freezeValue(value) {
|
|
|
129
219
|
}
|
|
130
220
|
return value;
|
|
131
221
|
}
|
|
132
|
-
function
|
|
222
|
+
function resolveRunEngine(command, dependencies) {
|
|
223
|
+
return command.engine ?? dependencies.defaultEngine;
|
|
224
|
+
}
|
|
225
|
+
async function createTestPlan(command, dependencies) {
|
|
226
|
+
const engine = resolveRunEngine(command, dependencies);
|
|
227
|
+
const files = await discoverRunFiles({ cwd: command.cwd, paths: command.request.paths });
|
|
228
|
+
const testFiles = await loadRunTestModules(files, engine);
|
|
229
|
+
try {
|
|
230
|
+
return engine.createTestPlanFromTestFiles({
|
|
231
|
+
files: testFiles,
|
|
232
|
+
root: {
|
|
233
|
+
metadata: {},
|
|
234
|
+
name: command.cwd
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
catch (error) {
|
|
239
|
+
throw new RunCollectionError('Failed to collect tests from explicit run inputs.', { cause: error }, 'loader');
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
async function createResolvedRun(command, dependencies) {
|
|
133
243
|
validateRunRequest(command.request);
|
|
244
|
+
validateRunConfig(command.config);
|
|
134
245
|
const request = freezeValue(copyRunRequest(command.request));
|
|
135
246
|
const config = freezeValue(copyRunConfig(command.config));
|
|
136
|
-
const
|
|
247
|
+
const testPlan = await createTestPlan(command, dependencies);
|
|
248
|
+
const facts = freezeValue(createRunFacts(testPlan, request, config, dependencies));
|
|
137
249
|
return freezeValue({
|
|
138
250
|
config,
|
|
139
251
|
facts,
|
|
140
252
|
reporters: config.reporters,
|
|
141
253
|
request,
|
|
142
|
-
testPlan
|
|
254
|
+
testPlan
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
function assertRunnableResourceUsagePolicy(policy) {
|
|
258
|
+
if (hasResourceBudgets(policy.resourceBudgets)) {
|
|
259
|
+
unsupportedRequest('Resource budget enforcement is not implemented yet.');
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function createExecutionResourceUsageTracker(policy, dependencies) {
|
|
263
|
+
if (!policy.measureResourceUsage) {
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
return dependencies.createResourceUsageTracker({
|
|
267
|
+
samplingIntervalMilliseconds: policy.resourceUsageSamplingIntervalMilliseconds
|
|
143
268
|
});
|
|
144
269
|
}
|
|
270
|
+
function createCollectionErrorRunResult(error) {
|
|
271
|
+
return {
|
|
272
|
+
artifacts: [],
|
|
273
|
+
bySuite: {},
|
|
274
|
+
orphans: [],
|
|
275
|
+
perTest: [],
|
|
276
|
+
resourceUsage: null,
|
|
277
|
+
runnerErrors: [error.runnerError()],
|
|
278
|
+
summary: {
|
|
279
|
+
defined: 0,
|
|
280
|
+
discovered: 0,
|
|
281
|
+
failed: 0,
|
|
282
|
+
inconclusive: 0,
|
|
283
|
+
passed: 0,
|
|
284
|
+
planned: 0,
|
|
285
|
+
skipped: 0
|
|
286
|
+
},
|
|
287
|
+
wallTimeMs: 0
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function isRunResult(value) {
|
|
291
|
+
return Object.hasOwn(value, 'summary');
|
|
292
|
+
}
|
|
293
|
+
async function createResolvedRunOrCollectionErrorResult(command, dependencies) {
|
|
294
|
+
try {
|
|
295
|
+
return await createResolvedRun(command, dependencies);
|
|
296
|
+
}
|
|
297
|
+
catch (error) {
|
|
298
|
+
if (error instanceof RunCollectionError) {
|
|
299
|
+
return createCollectionErrorRunResult(error);
|
|
300
|
+
}
|
|
301
|
+
throw error;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
145
304
|
export function createRunOrchestrator(dependencies) {
|
|
146
305
|
return {
|
|
147
306
|
async resolve(command) {
|
|
148
|
-
return createResolvedRun(command, dependencies);
|
|
307
|
+
return await createResolvedRun(command, dependencies);
|
|
149
308
|
},
|
|
150
309
|
async run(command) {
|
|
151
|
-
const resolvedRun =
|
|
310
|
+
const resolvedRun = await createResolvedRunOrCollectionErrorResult(command, dependencies);
|
|
311
|
+
if (isRunResult(resolvedRun)) {
|
|
312
|
+
return resolvedRun;
|
|
313
|
+
}
|
|
314
|
+
const { resourceUsagePolicy } = resolvedRun.facts.execution;
|
|
315
|
+
assertRunnableResourceUsagePolicy(resourceUsagePolicy);
|
|
152
316
|
return await dependencies.execute(resolvedRun.testPlan, {
|
|
153
317
|
execution: { mode: 'concurrent-in-process' },
|
|
154
318
|
outputRenderer: resolvedRun.config.outputRenderer,
|
|
155
319
|
reporters: resolvedRun.reporters,
|
|
320
|
+
resourceUsageTracker: createExecutionResourceUsageTracker(resourceUsagePolicy, dependencies),
|
|
156
321
|
runFacts: resolvedRun.facts,
|
|
157
322
|
startedAt: dependencies.readStartedAt()
|
|
158
323
|
});
|
|
159
324
|
}
|
|
160
325
|
};
|
|
161
326
|
}
|
|
162
|
-
function createDefaultSeed() {
|
|
163
|
-
return randomBytes(seedByteLength).readBigUInt64BE();
|
|
164
|
-
}
|
|
165
|
-
const defaultWallClock = createWallClock();
|
|
166
|
-
function writeStdoutLine(line) {
|
|
167
|
-
process.stdout.write(`${line}\n`);
|
|
168
|
-
}
|
|
169
|
-
function writeStderrLine(line) {
|
|
170
|
-
process.stderr.write(`${line}\n`);
|
|
171
|
-
}
|
|
172
|
-
const defaultRunOrchestrator = createRunOrchestrator({
|
|
173
|
-
createSeed: createDefaultSeed,
|
|
174
|
-
execute: createExecute({
|
|
175
|
-
reporterDispatcher: createReporterDispatcher({
|
|
176
|
-
stderr: { writeLine: writeStderrLine },
|
|
177
|
-
stdout: { writeLine: writeStdoutLine },
|
|
178
|
-
wallClock: defaultWallClock
|
|
179
|
-
}),
|
|
180
|
-
wallClock: defaultWallClock
|
|
181
|
-
}),
|
|
182
|
-
node: {
|
|
183
|
-
arch: process.arch,
|
|
184
|
-
platform: process.platform,
|
|
185
|
-
version: process.versions.node
|
|
186
|
-
},
|
|
187
|
-
readStartedAt() {
|
|
188
|
-
const startedAt = new Date(defaultWallClock.currentTimestampInMilliseconds);
|
|
189
|
-
return startedAt.toISOString();
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
export const orchestrator = defaultRunOrchestrator;
|
|
193
327
|
//# sourceMappingURL=run.js.map
|
package/run/run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../source/run/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../source/run/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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,MAAM,EAAE,mBAAmB,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC;YAE5D,iCAAiC,CAAC,mBAAmB,CAAC,CAAC;YAEvD,OAAO,MAAM,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE;gBACpD,SAAS,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE;gBAC5C,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,cAAc;gBACjD,SAAS,EAAE,WAAW,CAAC,SAAS;gBAChC,oBAAoB,EAAE,mCAAmC,CAAC,mBAAmB,EAAE,YAAY,CAAC;gBAC5F,QAAQ,EAAE,WAAW,CAAC,KAAK;gBAC3B,SAAS,EAAE,YAAY,CAAC,aAAa,EAAE;aAC1C,CAAC,CAAC;QACP,CAAC;KACJ,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.11",
|
|
20
|
+
"bom-ref": "pkg:npm/@overkill-dev/run@0.0.11",
|
|
21
|
+
"purl": "pkg:npm/@overkill-dev/run@0.0.11"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"components": [
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"ref": "pkg:npm/@enormora/wall-clock@0.0.3"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
"ref": "pkg:npm/@overkill-dev/run@0.0.
|
|
135
|
+
"ref": "pkg:npm/@overkill-dev/run@0.0.11",
|
|
136
136
|
"dependsOn": [
|
|
137
137
|
"pkg:npm/@enormora/wall-clock@0.0.3",
|
|
138
138
|
"pkg:npm/@schema-hub/zod-error-formatter@0.0.16",
|