@overkill-dev/run 0.0.66 → 0.0.67
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/config/benchmark-execution.js +30 -0
- package/config/benchmark-execution.js.map +1 -0
- package/config/config-error.d.ts +4 -0
- package/config/config-error.d.ts.map +1 -0
- package/config/config-error.js +7 -0
- package/config/config-error.js.map +1 -0
- package/config/config.d.ts +57 -0
- package/config/config.d.ts.map +1 -0
- package/{run/run-config.js → config/config.js} +54 -19
- package/config/config.js.map +1 -0
- package/{run/coverage-config-schema.d.ts → config/coverage-schema.d.ts} +7 -7
- package/config/coverage-schema.d.ts.map +1 -0
- package/{run/coverage-config-schema.js → config/coverage-schema.js} +1 -1
- package/config/coverage-schema.js.map +1 -0
- package/{run/run-config-defaults.js → config/defaults.js} +6 -1
- package/config/defaults.js.map +1 -0
- package/{run/run-execution-config.d.ts → config/execution.d.ts} +5 -7
- package/config/execution.d.ts.map +1 -0
- package/config/host-process.js +41 -0
- package/config/host-process.js.map +1 -0
- package/config/profile-file-discovery.js +88 -0
- package/config/profile-file-discovery.js.map +1 -0
- package/{run/profile-config-normalization.js → config/profile-normalization.js} +13 -13
- package/config/profile-normalization.js.map +1 -0
- package/{run/profile-file-glob.js → config/profile-patterns.js} +6 -10
- package/config/profile-patterns.js.map +1 -0
- package/{run/run-config-schema.d.ts → config/schema.d.ts} +208 -28
- package/config/schema.d.ts.map +1 -0
- package/{run/run-config-schema.js → config/schema.js} +38 -12
- package/config/schema.js.map +1 -0
- package/config/snapshot.js +204 -0
- package/config/snapshot.js.map +1 -0
- package/config/types.d.ts +157 -0
- package/config/types.d.ts.map +1 -0
- package/config/validation.js +91 -0
- package/config/validation.js.map +1 -0
- package/{run/work-distribution-config.js → config/work-distribution.js} +3 -3
- package/config/work-distribution.js.map +1 -0
- package/package.json +10 -7
- package/packages/run/command-line.entry-point.d.ts +5 -3
- package/packages/run/command-line.entry-point.d.ts.map +1 -1
- package/packages/run/command-line.entry-point.js +28 -7
- package/packages/run/command-line.entry-point.js.map +1 -1
- package/packages/run/config.entry-point.d.ts +8 -6
- package/packages/run/config.entry-point.d.ts.map +1 -1
- package/packages/run/config.entry-point.js +4 -4
- package/packages/run/config.entry-point.js.map +1 -1
- package/packages/run/run.entry-point.d.ts +6 -4
- package/packages/run/run.entry-point.d.ts.map +1 -1
- package/packages/run/run.entry-point.js +3 -3
- package/packages/run/run.entry-point.js.map +1 -1
- package/readme.md +43 -13
- package/run/attachment-eligibility.js +1 -1
- package/run/attachment-eligibility.js.map +1 -1
- package/run/attachment-record.js +2 -2
- package/run/attachment-record.js.map +1 -1
- package/run/attachment-results.js.map +1 -1
- package/run/benchmark-commands.d.ts +10 -0
- package/run/benchmark-commands.d.ts.map +1 -0
- package/run/benchmark-commands.js +82 -0
- package/run/benchmark-commands.js.map +1 -0
- package/run/child-process-outbox.js +36 -0
- package/run/child-process-outbox.js.map +1 -0
- package/run/command-line-command-namespace.d.ts.map +1 -1
- package/run/command-line-command-namespace.js.map +1 -1
- package/run/command-line-command.d.ts +26 -18
- package/run/command-line-command.d.ts.map +1 -1
- package/run/command-line-command.js +3 -2
- package/run/command-line-command.js.map +1 -1
- package/run/command-line-config.d.ts +5 -0
- package/run/command-line-config.d.ts.map +1 -0
- package/run/command-line-config.js +51 -0
- package/run/command-line-config.js.map +1 -0
- package/run/command-line-execution.js +82 -0
- package/run/command-line-execution.js.map +1 -0
- package/run/command-line-runner.d.ts +4 -5
- package/run/command-line-runner.d.ts.map +1 -1
- package/run/command-line-runner.js +6 -124
- package/run/command-line-runner.js.map +1 -1
- package/run/command-line-unimplemented-commands.js +1 -8
- package/run/command-line-unimplemented-commands.js.map +1 -1
- package/run/coverage-loaded-sources.js +8 -9
- package/run/coverage-loaded-sources.js.map +1 -1
- package/run/coverage-method-ranges.js +100 -0
- package/run/coverage-method-ranges.js.map +1 -0
- package/run/coverage-paths.js.map +1 -1
- package/run/coverage-reporting.js.map +1 -1
- package/run/coverage-runtime-source.js +66 -28
- package/run/coverage-runtime-source.js.map +1 -1
- package/run/coverage-session.js.map +1 -1
- package/run/coverage-source-map.js +2 -3
- package/run/coverage-source-map.js.map +1 -1
- package/run/coverage-source-selection.js +9 -7
- package/run/coverage-source-selection.js.map +1 -1
- package/run/coverage-tokens.js +26 -0
- package/run/coverage-tokens.js.map +1 -0
- package/run/duration-history-schema.js +1 -1
- package/run/duration-history-schema.js.map +1 -1
- package/run/node-command-line-runner.d.ts +1 -1
- package/run/node-command-line-runner.d.ts.map +1 -1
- package/run/node-command-line-runner.js +18 -10
- package/run/node-command-line-runner.js.map +1 -1
- package/run/request-snapshot.js +40 -0
- package/run/request-snapshot.js.map +1 -0
- package/run/run-collected-planning.js +9 -0
- package/run/run-collected-planning.js.map +1 -1
- package/run/run-collected-resolution.js.map +1 -1
- package/run/run-collection-error-result.js +3 -2
- package/run/run-collection-error-result.js.map +1 -1
- package/run/run-command-schema.js +1 -1
- package/run/run-command-schema.js.map +1 -1
- package/run/run-coverage.js.map +1 -1
- package/run/run-discovery-types.d.ts +2 -2
- package/run/run-discovery-types.d.ts.map +1 -1
- package/run/run-discovery.js +14 -96
- package/run/run-discovery.js.map +1 -1
- package/run/run-engine-primitives.d.ts.map +1 -1
- package/run/run-errors.d.ts +5 -7
- package/run/run-errors.d.ts.map +1 -1
- package/run/run-errors.js +0 -6
- package/run/run-errors.js.map +1 -1
- package/run/run-facts.js +5 -70
- package/run/run-facts.js.map +1 -1
- package/run/run-host-process.js +1 -40
- package/run/run-host-process.js.map +1 -1
- package/run/run-if-main-options.js.map +1 -1
- package/run/run-if-main-profile.d.ts +8 -10
- package/run/run-if-main-profile.d.ts.map +1 -1
- package/run/run-if-main-profile.js +25 -112
- package/run/run-if-main-profile.js.map +1 -1
- package/run/run-if-main.d.ts.map +1 -1
- package/run/run-if-main.js.map +1 -1
- package/run/run-in-process-execution.js +2 -0
- package/run/run-in-process-execution.js.map +1 -1
- package/run/run-input-resolution.js +11 -6
- package/run/run-input-resolution.js.map +1 -1
- package/run/run-isolated-command.js +2 -2
- package/run/run-isolated-command.js.map +1 -1
- package/run/run-isolated-process.js +12 -7
- package/run/run-isolated-process.js.map +1 -1
- package/run/run-local-command.js +7 -10
- package/run/run-local-command.js.map +1 -1
- package/run/run-local-execution.js.map +1 -1
- package/run/run-local-resolution.js +1 -3
- package/run/run-local-resolution.js.map +1 -1
- package/run/run-local-test-plan.js.map +1 -1
- package/run/run-orchestrator-dependencies.d.ts +4 -4
- package/run/run-orchestrator-dependencies.d.ts.map +1 -1
- package/run/run-ordering.js.map +1 -1
- package/run/run-process-engine.js.map +1 -1
- package/run/run-profile-facts.js +62 -0
- package/run/run-profile-facts.js.map +1 -0
- package/run/run-record-types.d.ts +5 -4
- package/run/run-record-types.d.ts.map +1 -1
- package/run/run-reporter-resolution.js +4 -1
- package/run/run-reporter-resolution.js.map +1 -1
- package/run/run-result-reporting.js.map +1 -1
- package/run/run-selection.js.map +1 -1
- package/run/run-supervised-process.js +3 -4
- package/run/run-supervised-process.js.map +1 -1
- package/run/run-support.js +1 -222
- package/run/run-support.js.map +1 -1
- package/run/run-types.d.ts +40 -166
- package/run/run-types.d.ts.map +1 -1
- package/run/run-types.js.map +1 -1
- package/run/run-validation.js +4 -63
- package/run/run-validation.js.map +1 -1
- package/run/run.d.ts.map +1 -1
- package/run/run.js +32 -16
- package/run/run.js.map +1 -1
- package/run/supervised-child-process.js +1 -1
- package/run/supervised-child-process.js.map +1 -1
- package/run/supervised-child.entry-point.js +9 -6
- package/run/supervised-child.entry-point.js.map +1 -1
- package/run/supervised-child.js +1 -1
- package/run/supervised-child.js.map +1 -1
- package/run/supervised-protocol.js.map +1 -1
- package/run/supervised-run-resource-policy.js.map +1 -1
- package/run/supervised-run-state.js.map +1 -1
- package/run/test-profile.js +21 -0
- package/run/test-profile.js.map +1 -0
- package/run/work-unit-identity.js.map +1 -1
- package/run/work-unit-planning.js +6 -6
- package/run/work-unit-planning.js.map +1 -1
- package/run/work-unit-resource-constraints.js +1 -1
- package/run/work-unit-resource-constraints.js.map +1 -1
- package/run/worker-pool-host-protocol-schema.js +1 -1
- package/run/worker-pool-host-protocol-schema.js.map +1 -1
- package/run/worker-pool-host.entry-point.js +7 -4
- package/run/worker-pool-host.entry-point.js.map +1 -1
- package/run/worker-pool-lanes.js.map +1 -1
- package/run/worker-pool-lifecycle-lanes.js.map +1 -1
- package/run/worker-pool-placement-planning.js.map +1 -1
- package/run/worker-pool-protocol.js.map +1 -1
- package/run/worker-pool-routing.js.map +1 -1
- package/run/worker-pool-runtime.js.map +1 -1
- package/sbom.cdx.json +26 -43
- package/run/coverage-config-schema.d.ts.map +0 -1
- package/run/coverage-config-schema.js.map +0 -1
- package/run/profile-config-normalization.js.map +0 -1
- package/run/profile-file-glob.js.map +0 -1
- package/run/run-config-defaults.js.map +0 -1
- package/run/run-config-schema.d.ts.map +0 -1
- package/run/run-config-schema.js.map +0 -1
- package/run/run-config.d.ts +0 -62
- package/run/run-config.d.ts.map +0 -1
- package/run/run-config.js.map +0 -1
- package/run/run-execution-config.d.ts.map +0 -1
- package/run/work-distribution-config.js.map +0 -1
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
function copyLoaderConfig(loader) {
|
|
2
|
+
return {
|
|
3
|
+
sourceMaps: loader.sourceMaps,
|
|
4
|
+
stripMode: loader.stripMode
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export function copyResourceBudgets(resourceBudgets) {
|
|
8
|
+
return {
|
|
9
|
+
activeResourceCount: resourceBudgets.activeResourceCount,
|
|
10
|
+
javaScriptEngineHeapBytes: resourceBudgets.javaScriptEngineHeapBytes,
|
|
11
|
+
residentSetBytes: resourceBudgets.residentSetBytes,
|
|
12
|
+
residentSetGrowthBytesPerSecond: resourceBudgets.residentSetGrowthBytesPerSecond
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function copyResourceUsagePolicy(policy) {
|
|
16
|
+
return {
|
|
17
|
+
budgets: copyResourceBudgets(policy.budgets),
|
|
18
|
+
measure: policy.measure,
|
|
19
|
+
samplingIntervalMilliseconds: policy.samplingIntervalMilliseconds
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function copyTimingProfilePolicy(policy) {
|
|
23
|
+
return {
|
|
24
|
+
collection: policy.collection
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function copyTimeoutPolicy(policy) {
|
|
28
|
+
return {
|
|
29
|
+
collectionMilliseconds: policy.collectionMilliseconds,
|
|
30
|
+
hardMilliseconds: policy.hardMilliseconds,
|
|
31
|
+
softMilliseconds: policy.softMilliseconds
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function copyMicrotestExecution(execution) {
|
|
35
|
+
return {
|
|
36
|
+
maxConcurrency: execution.maxConcurrency,
|
|
37
|
+
processModel: execution.processModel,
|
|
38
|
+
scheduling: execution.scheduling
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function copyWorkGroup(group) {
|
|
42
|
+
return {
|
|
43
|
+
fileSets: [group.fileSets[0], ...group.fileSets.slice(1)],
|
|
44
|
+
granularity: group.granularity,
|
|
45
|
+
name: group.name,
|
|
46
|
+
order: group.order,
|
|
47
|
+
scheduling: group.scheduling,
|
|
48
|
+
workerLifecycle: group.workerLifecycle
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function copyWorkDistribution(distribution) {
|
|
52
|
+
if (distribution.mode !== 'group') {
|
|
53
|
+
return { mode: distribution.mode };
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
groups: [
|
|
57
|
+
copyWorkGroup(distribution.groups[0]),
|
|
58
|
+
...distribution.groups.slice(1).map(copyWorkGroup)
|
|
59
|
+
],
|
|
60
|
+
mode: 'group',
|
|
61
|
+
unmatched: distribution.unmatched
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function copyHostProcess(hostProcess) {
|
|
65
|
+
if (hostProcess.kind === 'direct') {
|
|
66
|
+
return { kind: 'direct' };
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
kind: 'child',
|
|
70
|
+
nodeArguments: Array.from(hostProcess.nodeArguments)
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function copyIntegrationExecution(execution) {
|
|
74
|
+
if (execution.processModel === 'worker-pool') {
|
|
75
|
+
return {
|
|
76
|
+
assignmentPolicy: execution.assignmentPolicy,
|
|
77
|
+
dispatchPolicy: execution.dispatchPolicy,
|
|
78
|
+
hedging: { ...execution.hedging },
|
|
79
|
+
hostProcess: copyHostProcess(execution.hostProcess),
|
|
80
|
+
maxConcurrency: execution.maxConcurrency,
|
|
81
|
+
maxWorkers: execution.maxWorkers,
|
|
82
|
+
processModel: execution.processModel,
|
|
83
|
+
scheduling: execution.scheduling,
|
|
84
|
+
workDistribution: copyWorkDistribution(execution.workDistribution),
|
|
85
|
+
workerLifecycle: execution.workerLifecycle
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
maxConcurrency: execution.maxConcurrency,
|
|
90
|
+
processModel: execution.processModel,
|
|
91
|
+
scheduling: execution.scheduling
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function hasProfileFileSets(files) {
|
|
95
|
+
return files.sets !== undefined;
|
|
96
|
+
}
|
|
97
|
+
function copyProfileFiles(files) {
|
|
98
|
+
if (hasProfileFileSets(files)) {
|
|
99
|
+
return {
|
|
100
|
+
sets: Object.fromEntries(Object.entries(files.sets).map(function copyProfileFileSet([name, set]) {
|
|
101
|
+
return [
|
|
102
|
+
name,
|
|
103
|
+
{
|
|
104
|
+
exclude: Array.from(set.exclude),
|
|
105
|
+
include: [set.include[0], ...set.include.slice(1)]
|
|
106
|
+
}
|
|
107
|
+
];
|
|
108
|
+
}))
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
exclude: Array.from(files.exclude),
|
|
113
|
+
include: [files.include[0], ...files.include.slice(1)]
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function copyCoveragePolicy(policy) {
|
|
117
|
+
return {
|
|
118
|
+
outputDirectory: policy.outputDirectory,
|
|
119
|
+
outputs: Array.from(policy.outputs),
|
|
120
|
+
sources: policy.sources.mode === 'loaded'
|
|
121
|
+
? { exclude: Array.from(policy.sources.exclude), mode: 'loaded' }
|
|
122
|
+
: {
|
|
123
|
+
exclude: Array.from(policy.sources.exclude),
|
|
124
|
+
include: [policy.sources.include[0], ...policy.sources.include.slice(1)],
|
|
125
|
+
mode: 'all'
|
|
126
|
+
},
|
|
127
|
+
thresholds: {
|
|
128
|
+
branches: policy.thresholds.branches,
|
|
129
|
+
functions: policy.thresholds.functions,
|
|
130
|
+
lines: policy.thresholds.lines
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function copyIntegrationFiles(files) {
|
|
135
|
+
if (files === null) {
|
|
136
|
+
throw new Error('Integration profiles require files.');
|
|
137
|
+
}
|
|
138
|
+
return copyProfileFiles(files);
|
|
139
|
+
}
|
|
140
|
+
function copyReporters(reporters) {
|
|
141
|
+
return reporters === null ? null : Array.from(reporters);
|
|
142
|
+
}
|
|
143
|
+
function copyBenchmarkExecution(execution) {
|
|
144
|
+
return execution.processModel === 'worker-pool'
|
|
145
|
+
? {
|
|
146
|
+
...execution,
|
|
147
|
+
hedging: { mode: 'off' },
|
|
148
|
+
hostProcess: copyHostProcess(execution.hostProcess),
|
|
149
|
+
workDistribution: copyWorkDistribution(execution.workDistribution)
|
|
150
|
+
}
|
|
151
|
+
: { ...execution };
|
|
152
|
+
}
|
|
153
|
+
function copyProfileConfig(profile) {
|
|
154
|
+
if (profile.testFamily === 'benchmark') {
|
|
155
|
+
return {
|
|
156
|
+
attachments: { ...profile.attachments },
|
|
157
|
+
execution: copyBenchmarkExecution(profile.execution),
|
|
158
|
+
files: copyProfileFiles(profile.files),
|
|
159
|
+
reporters: copyReporters(profile.reporters),
|
|
160
|
+
resourceUsage: copyResourceUsagePolicy(profile.resourceUsage),
|
|
161
|
+
testFamily: profile.testFamily,
|
|
162
|
+
timings: copyTimingProfilePolicy(profile.timings),
|
|
163
|
+
timeouts: copyTimeoutPolicy(profile.timeouts)
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
if (profile.testFamily === 'integration') {
|
|
167
|
+
return {
|
|
168
|
+
attachments: { ...profile.attachments },
|
|
169
|
+
execution: copyIntegrationExecution(profile.execution),
|
|
170
|
+
files: copyIntegrationFiles(profile.files),
|
|
171
|
+
reporters: copyReporters(profile.reporters),
|
|
172
|
+
retries: profile.retries === null ? null : { ...profile.retries },
|
|
173
|
+
resourceUsage: copyResourceUsagePolicy(profile.resourceUsage),
|
|
174
|
+
testFamily: profile.testFamily,
|
|
175
|
+
timings: copyTimingProfilePolicy(profile.timings),
|
|
176
|
+
timeouts: copyTimeoutPolicy(profile.timeouts)
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
return {
|
|
180
|
+
coverage: copyCoveragePolicy(profile.coverage),
|
|
181
|
+
execution: copyMicrotestExecution(profile.execution),
|
|
182
|
+
files: profile.files === null ? null : copyProfileFiles(profile.files),
|
|
183
|
+
reporters: copyReporters(profile.reporters),
|
|
184
|
+
resourceUsage: copyResourceUsagePolicy(profile.resourceUsage),
|
|
185
|
+
testFamily: profile.testFamily,
|
|
186
|
+
timings: copyTimingProfilePolicy(profile.timings),
|
|
187
|
+
timeouts: copyTimeoutPolicy(profile.timeouts)
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function copyProfilesConfig(profiles) {
|
|
191
|
+
return Object.fromEntries(Object.entries(profiles).map(function copyProfileEntry([name, profile]) {
|
|
192
|
+
return [name, copyProfileConfig(profile)];
|
|
193
|
+
}));
|
|
194
|
+
}
|
|
195
|
+
export function copyConfig(config) {
|
|
196
|
+
return {
|
|
197
|
+
loader: copyLoaderConfig(config.loader),
|
|
198
|
+
outputRenderer: config.outputRenderer,
|
|
199
|
+
profiles: copyProfilesConfig(config.profiles),
|
|
200
|
+
reporters: copyReporters(config.reporters),
|
|
201
|
+
runtimeStateDir: config.runtimeStateDir
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=snapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../source/config/snapshot.ts"],"names":[],"mappings":"AAuBA,SAAS,gBAAgB,CAAC,MAAoB;IAC1C,OAAO;QACH,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,SAAS,EAAE,MAAM,CAAC,SAAS;KAC9B,CAAC;AACN,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,eAAgC;IAChE,OAAO;QACH,mBAAmB,EAAE,eAAe,CAAC,mBAAmB;QACxD,yBAAyB,EAAE,eAAe,CAAC,yBAAyB;QACpE,gBAAgB,EAAE,eAAe,CAAC,gBAAgB;QAClD,+BAA+B,EAAE,eAAe,CAAC,+BAA+B;KACnF,CAAC;AACN,CAAC;AAED,SAAS,uBAAuB,CAAC,MAA2B;IACxD,OAAO;QACH,OAAO,EAAE,mBAAmB,CAAC,MAAM,CAAC,OAAO,CAAC;QAC5C,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,4BAA4B,EAAE,MAAM,CAAC,4BAA4B;KACpE,CAAC;AACN,CAAC;AAED,SAAS,uBAAuB,CAAC,MAA2B;IACxD,OAAO;QACH,UAAU,EAAE,MAAM,CAAC,UAAU;KAChC,CAAC;AACN,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAqB;IAC5C,OAAO;QACH,sBAAsB,EAAE,MAAM,CAAC,sBAAsB;QACrD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;QACzC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;KAC5C,CAAC;AACN,CAAC;AAED,SAAS,sBAAsB,CAAC,SAA6B;IACzD,OAAO;QACH,cAAc,EAAE,SAAS,CAAC,cAAc;QACxC,YAAY,EAAE,SAAS,CAAC,YAAY;QACpC,UAAU,E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AAC;IAChD,CAAC,CAAC,CACL,CAAC;AACN,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAAwB;IAC/C,OAAO;QACH,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,cAAc,EAAE,MAAM,CAAC,cAAc;QACrC,QAAQ,EAAE,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC;QAC7C,SAAS,EAAE,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC;QAC1C,eAAe,EAAE,MAAM,CAAC,eAAe;KAC1C,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import type { NonEmptyReadonlyArray } from '../assertion-protocol/assertion-node-shape.ts';
|
|
2
|
+
import type { AttachmentLimits } from '../engine/runtime-attachment.ts';
|
|
3
|
+
import type { DefinedReporter } from '../engine/reporter.ts';
|
|
4
|
+
import type { DefinedOutputRenderer } from '../engine/reporter-output.ts';
|
|
5
|
+
import type { IntegrationRetryPolicy, IntegrationExecutionShape, MicrotestExecutionShape } from './execution.ts';
|
|
6
|
+
export type LoaderConfig = {
|
|
7
|
+
readonly sourceMaps: boolean;
|
|
8
|
+
readonly stripMode: 'strip-only';
|
|
9
|
+
};
|
|
10
|
+
export type ResourceBudgets = {
|
|
11
|
+
readonly activeResourceCount: number | null;
|
|
12
|
+
readonly javaScriptEngineHeapBytes: number | null;
|
|
13
|
+
readonly residentSetBytes: number | null;
|
|
14
|
+
readonly residentSetGrowthBytesPerSecond: number | null;
|
|
15
|
+
};
|
|
16
|
+
export type TimingCollectionMode = 'precise' | 'summary';
|
|
17
|
+
export type TimingCollectionOverride = 'precise' | 'profile-default';
|
|
18
|
+
export type TimingProfilePolicy = {
|
|
19
|
+
readonly collection: TimingCollectionMode;
|
|
20
|
+
};
|
|
21
|
+
export type CoverageOutput = 'html' | 'json' | 'lcov' | 'text' | 'v8';
|
|
22
|
+
export type CoverageSourcePolicy = {
|
|
23
|
+
readonly exclude: readonly string[];
|
|
24
|
+
readonly include: NonEmptyReadonlyArray<string>;
|
|
25
|
+
readonly mode: 'all';
|
|
26
|
+
} | {
|
|
27
|
+
readonly exclude: readonly string[];
|
|
28
|
+
readonly mode: 'loaded';
|
|
29
|
+
};
|
|
30
|
+
export type CoverageThresholds = {
|
|
31
|
+
readonly branches: number | null;
|
|
32
|
+
readonly functions: number | null;
|
|
33
|
+
readonly lines: number | null;
|
|
34
|
+
};
|
|
35
|
+
export type CoveragePolicy = {
|
|
36
|
+
readonly outputDirectory: string | null;
|
|
37
|
+
readonly outputs: readonly CoverageOutput[];
|
|
38
|
+
readonly sources: CoverageSourcePolicy;
|
|
39
|
+
readonly thresholds: CoverageThresholds;
|
|
40
|
+
};
|
|
41
|
+
export type ProcessModel = 'in-process' | 'supervised-process' | 'worker-pool';
|
|
42
|
+
export type MicrotestProcessModel = Exclude<ProcessModel, 'worker-pool'>;
|
|
43
|
+
export type MaxConcurrency = number | 'unlimited';
|
|
44
|
+
export type Scheduling = 'concurrent' | 'serial';
|
|
45
|
+
export type WorkerLifecycle = 'fresh-worker-per-unit' | 'reuse';
|
|
46
|
+
export type WorkerPoolAssignmentPolicy = 'case-count-balanced' | 'duration-history-balanced' | 'stable';
|
|
47
|
+
export type WorkerPoolDispatchPolicy = 'dynamic-lease' | 'static-assignment';
|
|
48
|
+
export type WorkerPoolHedgingPolicy = {
|
|
49
|
+
readonly durationMultiplier: number;
|
|
50
|
+
readonly minimumDelayMilliseconds: number;
|
|
51
|
+
readonly mode: 'on';
|
|
52
|
+
} | {
|
|
53
|
+
readonly mode: 'off';
|
|
54
|
+
};
|
|
55
|
+
export type WorkGroupGranularity = 'case' | 'file' | 'group';
|
|
56
|
+
export type WorkGroupOrder = RunOrder | 'profile-default';
|
|
57
|
+
export type WorkGroupScheduling = Scheduling | 'profile-default';
|
|
58
|
+
export type WorkGroupWorkerLifecycle = WorkerLifecycle | 'profile-default';
|
|
59
|
+
export type HostProcess = {
|
|
60
|
+
readonly kind: 'child';
|
|
61
|
+
readonly nodeArguments: readonly string[];
|
|
62
|
+
} | {
|
|
63
|
+
readonly kind: 'direct';
|
|
64
|
+
};
|
|
65
|
+
type FileWorkDistribution = {
|
|
66
|
+
readonly mode: 'file';
|
|
67
|
+
};
|
|
68
|
+
type CaseWorkDistribution = {
|
|
69
|
+
readonly mode: 'case';
|
|
70
|
+
};
|
|
71
|
+
export type WorkGroup = {
|
|
72
|
+
readonly fileSets: NonEmptyReadonlyArray<string>;
|
|
73
|
+
readonly granularity: WorkGroupGranularity;
|
|
74
|
+
readonly name: string;
|
|
75
|
+
readonly order: WorkGroupOrder;
|
|
76
|
+
readonly scheduling: WorkGroupScheduling;
|
|
77
|
+
readonly workerLifecycle: WorkGroupWorkerLifecycle;
|
|
78
|
+
};
|
|
79
|
+
type GroupWorkDistribution = {
|
|
80
|
+
readonly groups: NonEmptyReadonlyArray<WorkGroup>;
|
|
81
|
+
readonly mode: 'group';
|
|
82
|
+
readonly unmatched: 'file' | 'reject';
|
|
83
|
+
};
|
|
84
|
+
export type WorkDistribution = CaseWorkDistribution | FileWorkDistribution | GroupWorkDistribution;
|
|
85
|
+
export type MicrotestExecution = MicrotestExecutionShape<MaxConcurrency, MicrotestProcessModel, Scheduling>;
|
|
86
|
+
export type IntegrationExecution = IntegrationExecutionShape<WorkerPoolAssignmentPolicy, WorkerPoolDispatchPolicy, WorkerPoolHedgingPolicy, HostProcess, MaxConcurrency, Scheduling, WorkerLifecycle, WorkDistribution>;
|
|
87
|
+
export type ResourceUsagePolicy = {
|
|
88
|
+
readonly budgets: ResourceBudgets;
|
|
89
|
+
readonly measure: boolean;
|
|
90
|
+
readonly samplingIntervalMilliseconds: number;
|
|
91
|
+
};
|
|
92
|
+
export type TimeoutPolicy = {
|
|
93
|
+
readonly collectionMilliseconds: number;
|
|
94
|
+
readonly hardMilliseconds: number;
|
|
95
|
+
readonly softMilliseconds: number;
|
|
96
|
+
};
|
|
97
|
+
type ProfileFilePatterns = {
|
|
98
|
+
readonly exclude: readonly string[];
|
|
99
|
+
readonly include: NonEmptyReadonlyArray<string>;
|
|
100
|
+
readonly sets?: never;
|
|
101
|
+
};
|
|
102
|
+
export type ProfileFileSet = {
|
|
103
|
+
readonly exclude: readonly string[];
|
|
104
|
+
readonly include: NonEmptyReadonlyArray<string>;
|
|
105
|
+
};
|
|
106
|
+
export type ProfileFiles = ProfileFilePatterns | {
|
|
107
|
+
readonly exclude?: never;
|
|
108
|
+
readonly include?: never;
|
|
109
|
+
readonly sets: Readonly<Record<string, ProfileFileSet>>;
|
|
110
|
+
};
|
|
111
|
+
export type MicrotestProfileConfig = {
|
|
112
|
+
readonly coverage: CoveragePolicy;
|
|
113
|
+
readonly execution: MicrotestExecution;
|
|
114
|
+
readonly files: ProfileFiles | null;
|
|
115
|
+
readonly reporters: readonly DefinedReporter[] | null;
|
|
116
|
+
readonly resourceUsage: ResourceUsagePolicy;
|
|
117
|
+
readonly testFamily: 'microtest';
|
|
118
|
+
readonly timings: TimingProfilePolicy;
|
|
119
|
+
readonly timeouts: TimeoutPolicy;
|
|
120
|
+
};
|
|
121
|
+
export type IntegrationProfileConfig = {
|
|
122
|
+
readonly attachments: AttachmentLimits;
|
|
123
|
+
readonly retries: IntegrationRetryPolicy | null;
|
|
124
|
+
readonly execution: IntegrationExecution;
|
|
125
|
+
readonly files: ProfileFiles;
|
|
126
|
+
readonly reporters: readonly DefinedReporter[] | null;
|
|
127
|
+
readonly resourceUsage: ResourceUsagePolicy;
|
|
128
|
+
readonly testFamily: 'integration';
|
|
129
|
+
readonly timings: TimingProfilePolicy;
|
|
130
|
+
readonly timeouts: TimeoutPolicy;
|
|
131
|
+
};
|
|
132
|
+
export type BenchmarkExecution = IntegrationExecutionShape<WorkerPoolAssignmentPolicy, WorkerPoolDispatchPolicy, Extract<WorkerPoolHedgingPolicy, {
|
|
133
|
+
readonly mode: 'off';
|
|
134
|
+
}>, HostProcess, 1, 'serial', WorkerLifecycle, WorkDistribution>;
|
|
135
|
+
export type BenchmarkProfileConfig = {
|
|
136
|
+
readonly attachments: AttachmentLimits;
|
|
137
|
+
readonly execution: BenchmarkExecution;
|
|
138
|
+
readonly files: ProfileFiles;
|
|
139
|
+
readonly reporters: readonly DefinedReporter[] | null;
|
|
140
|
+
readonly resourceUsage: ResourceUsagePolicy;
|
|
141
|
+
readonly testFamily: 'benchmark';
|
|
142
|
+
readonly timings: TimingProfilePolicy;
|
|
143
|
+
readonly timeouts: TimeoutPolicy;
|
|
144
|
+
};
|
|
145
|
+
export type TestProfileConfig = IntegrationProfileConfig | MicrotestProfileConfig;
|
|
146
|
+
export type ProfileConfig = BenchmarkProfileConfig | TestProfileConfig;
|
|
147
|
+
export type ProfilesConfig = Readonly<Record<string, ProfileConfig>>;
|
|
148
|
+
export type NormalizedConfig = {
|
|
149
|
+
readonly loader: LoaderConfig;
|
|
150
|
+
readonly outputRenderer: DefinedOutputRenderer;
|
|
151
|
+
readonly profiles: ProfilesConfig;
|
|
152
|
+
readonly reporters: readonly DefinedReporter[] | null;
|
|
153
|
+
readonly runtimeStateDir: string;
|
|
154
|
+
};
|
|
155
|
+
export type RunOrder = 'lexical' | 'plan' | 'seeded';
|
|
156
|
+
export {};
|
|
157
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../source/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAEjH,MAAM,MAAM,YAAY,GAAG;IACvB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F,MAAM,MAAM,iBAAiB,GAAG,wBAAwB,GAAG,sBAAsB,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,iBAAiB,CAAC;AAEvE,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,cAAc,EAAE,qBAAqB,CAAC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,SAAS,eAAe,EAAE,GAAG,IAAI,CAAC;IACtD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;CACpC,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ConfigError } from "./config-error.js";
|
|
2
|
+
import { validateHostProcess } from "./host-process.js";
|
|
3
|
+
import { assertValidProfileName, normalizeRequiredProfileFiles } from "./profile-normalization.js";
|
|
4
|
+
import { validateBenchmarkExecution } from "./benchmark-execution.js";
|
|
5
|
+
function validatePositiveSafeInteger(value, label) {
|
|
6
|
+
if (value !== null && (!Number.isSafeInteger(value) || value <= 0)) {
|
|
7
|
+
throw new ConfigError(`${label} must be a positive safe integer.`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
function validateResourceBudgets(resourceBudgets) {
|
|
11
|
+
validatePositiveSafeInteger(resourceBudgets.activeResourceCount, 'Active resource count budget');
|
|
12
|
+
validatePositiveSafeInteger(resourceBudgets.javaScriptEngineHeapBytes, 'JavaScript engine heap budget');
|
|
13
|
+
validatePositiveSafeInteger(resourceBudgets.residentSetBytes, 'Resident set budget');
|
|
14
|
+
validatePositiveSafeInteger(resourceBudgets.residentSetGrowthBytesPerSecond, 'Resident set growth budget');
|
|
15
|
+
}
|
|
16
|
+
function validateSamplingInterval(value) {
|
|
17
|
+
validatePositiveSafeInteger(value, 'Resource usage sampling interval');
|
|
18
|
+
}
|
|
19
|
+
function validateTimeoutPolicy(policy) {
|
|
20
|
+
validatePositiveSafeInteger(policy.collectionMilliseconds, 'Collection timeout');
|
|
21
|
+
validatePositiveSafeInteger(policy.softMilliseconds, 'Soft timeout');
|
|
22
|
+
validatePositiveSafeInteger(policy.hardMilliseconds, 'Hard timeout');
|
|
23
|
+
if (policy.softMilliseconds > policy.hardMilliseconds) {
|
|
24
|
+
throw new ConfigError('Soft timeout must not exceed hard timeout.');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function hasResourceBudgets(resourceBudgets) {
|
|
28
|
+
return resourceBudgets.activeResourceCount !== null ||
|
|
29
|
+
resourceBudgets.javaScriptEngineHeapBytes !== null ||
|
|
30
|
+
resourceBudgets.residentSetBytes !== null ||
|
|
31
|
+
resourceBudgets.residentSetGrowthBytesPerSecond !== null;
|
|
32
|
+
}
|
|
33
|
+
export function validateResourceUsagePolicy(policy) {
|
|
34
|
+
validateResourceBudgets(policy.budgets);
|
|
35
|
+
validateSamplingInterval(policy.samplingIntervalMilliseconds);
|
|
36
|
+
if (!policy.measure && hasResourceBudgets(policy.budgets)) {
|
|
37
|
+
throw new ConfigError('Resource budgets require resource usage measurement.');
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function validateMicrotestProfile(profile) {
|
|
41
|
+
validateResourceUsagePolicy(profile.resourceUsage);
|
|
42
|
+
validateTimeoutPolicy(profile.timeouts);
|
|
43
|
+
}
|
|
44
|
+
function validateAttachmentLimits(profile) {
|
|
45
|
+
if (profile.testFamily === 'microtest') {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
for (const [name, value] of Object.entries(profile.attachments)) {
|
|
49
|
+
validatePositiveSafeInteger(value, `Attachment ${name}`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function validateIntegrationProfile(profile) {
|
|
53
|
+
validateAttachmentLimits(profile);
|
|
54
|
+
validateResourceUsagePolicy(profile.resourceUsage);
|
|
55
|
+
validateTimeoutPolicy(profile.timeouts);
|
|
56
|
+
if (profile.execution.processModel === 'worker-pool') {
|
|
57
|
+
validatePositiveSafeInteger(profile.execution.maxWorkers, 'Profile worker maximum');
|
|
58
|
+
validateHostProcess(profile.execution.hostProcess);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function validateBenchmarkProfile(profileName, profile) {
|
|
62
|
+
try {
|
|
63
|
+
normalizeRequiredProfileFiles(profile.files);
|
|
64
|
+
validateIntegrationProfile(profile);
|
|
65
|
+
validateBenchmarkExecution(profile.execution, profile.timeouts);
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
throw new ConfigError(`Invalid benchmark profile "${profileName}": ${String(error)}`, { cause: error });
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function validateProfileFamily(profileName, testFamily) {
|
|
72
|
+
if (testFamily !== 'benchmark' && testFamily !== 'integration' && testFamily !== 'microtest') {
|
|
73
|
+
throw new ConfigError(`Invalid profile "${profileName}": testFamily must be "benchmark", "integration", or "microtest".`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export function validateNormalizedConfig(config) {
|
|
77
|
+
for (const [profileName, profile] of Object.entries(config.profiles)) {
|
|
78
|
+
assertValidProfileName(profileName);
|
|
79
|
+
validateProfileFamily(profileName, profile.testFamily);
|
|
80
|
+
if (profile.testFamily === 'benchmark') {
|
|
81
|
+
validateBenchmarkProfile(profileName, profile);
|
|
82
|
+
}
|
|
83
|
+
else if (profile.testFamily === 'microtest') {
|
|
84
|
+
validateMicrotestProfile(profile);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
validateIntegrationProfile(profile);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=validation.js.map
|
|
@@ -0,0 +1 @@
|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BAAwB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACnD,CAAC;aAAM,IAAI,OAAO,CAAC,UAAU,KAAK,WAAW,EAAE,CAAC;YAC5C,wBAAwB,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;aAAM,CAAC;YACJ,0BAA0B,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;IACL,CAAC;AACL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { invalidProfileFileSetNameMessage } from "./profile-patterns.js";
|
|
2
2
|
function normalizeWorkGroup(group) {
|
|
3
3
|
return {
|
|
4
4
|
fileSets: [group.fileSets[0], ...group.fileSets.slice(1)],
|
|
@@ -30,7 +30,7 @@ function hasFileSets(files) {
|
|
|
30
30
|
return files.sets !== undefined;
|
|
31
31
|
}
|
|
32
32
|
function invalidWorkGroupNameMessage(group) {
|
|
33
|
-
const message =
|
|
33
|
+
const message = invalidProfileFileSetNameMessage(group.name);
|
|
34
34
|
return message === null ? null : message.replace('file set name', 'work group name');
|
|
35
35
|
}
|
|
36
36
|
function invalidDuplicateGroupNameMessage(group, assignedGroupNames) {
|
|
@@ -108,4 +108,4 @@ export function invalidWorkDistributionConfigMessage(execution, files) {
|
|
|
108
108
|
? invalidGroupDistributionMessage(execution.workDistribution, files)
|
|
109
109
|
: null;
|
|
110
110
|
}
|
|
111
|
-
//# sourceMappingURL=work-distribution
|
|
111
|
+
//# sourceMappingURL=work-distribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-distribution.js","sourceRoot":"","sources":["../../../../source/config/work-distribution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AA2BzE,SAAS,kBAAkB,CAAC,KAAqD;IAC7E,OAAO;QACH,QAAQ,EAAE,CAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK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gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAE,GAAG,gBAAgB,EAAE,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAE,CAAC,CAAC;IAC3F,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAS,+BAA+B,CACpC,YAA8B,EAC9B,KAAmB;IAEnB,IAAI,YAAY,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,wDAAwD,CAAC;IACpE,CAAC;IAED,OAAO,4BAA4B,CAAC,YAAY,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACxF,CAAC;AAED,MAAM,UAAU,oCAAoC,CAChD,SAA+B,EAC/B,KAAmB;IAEnB,OAAO,SAAS,CAAC,YAAY,KAAK,aAAa;QAC3C,CAAC,CAAC,+BAA+B,CAAC,SAAS,CAAC,gBAAgB,EAAE,KAAK,CAAC;QACpE,CAAC,CAAC,IAAI,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -7,18 +7,17 @@
|
|
|
7
7
|
"@enormora/clock": "0.0.3",
|
|
8
8
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
9
9
|
"@schema-hub/zod-error-formatter": "0.0.19",
|
|
10
|
-
"acorn": "8.18.0",
|
|
11
10
|
"ansi-escapes": "7.3.0",
|
|
12
11
|
"convert-source-map": "2.0.0",
|
|
13
12
|
"diff": "9.0.0",
|
|
14
13
|
"figures": "6.1.0",
|
|
15
14
|
"hash-wasm": "4.12.0",
|
|
16
15
|
"is-interactive": "2.0.0",
|
|
17
|
-
"
|
|
16
|
+
"js-tokens": "10.0.0",
|
|
17
|
+
"monocart-coverage-reports": "2.13.1",
|
|
18
18
|
"p-limit": "7.3.3",
|
|
19
19
|
"pure-rand": "8.4.2",
|
|
20
20
|
"string-width": "8.3.0",
|
|
21
|
-
"sucrase": "3.35.1",
|
|
22
21
|
"tinypool": "2.2.0",
|
|
23
22
|
"type-fest": "5.10.0",
|
|
24
23
|
"ulid": "3.0.2",
|
|
@@ -74,6 +73,11 @@
|
|
|
74
73
|
"./attachments/attachment-context.js",
|
|
75
74
|
"./attachments/failure-artifact-stream.js",
|
|
76
75
|
"./attachments/resource-failure-context.js",
|
|
76
|
+
"./config/config-error.js",
|
|
77
|
+
"./config/coverage-schema.js",
|
|
78
|
+
"./config/host-process.js",
|
|
79
|
+
"./config/profile-file-discovery.js",
|
|
80
|
+
"./config/schema.js",
|
|
77
81
|
"./engine/assertion-recorder.js",
|
|
78
82
|
"./engine/async-leak-diagnostics.js",
|
|
79
83
|
"./engine/execution-async-leak-policy.js",
|
|
@@ -115,10 +119,11 @@
|
|
|
115
119
|
"./run/child-process.entry-point.js",
|
|
116
120
|
"./run/collected-run-plan-schema.js",
|
|
117
121
|
"./run/command-line-command.js",
|
|
118
|
-
"./run/coverage-
|
|
122
|
+
"./run/coverage-method-ranges.js",
|
|
119
123
|
"./run/coverage-native-data.js",
|
|
120
124
|
"./run/coverage-runtime-source.js",
|
|
121
125
|
"./run/coverage-source-map.js",
|
|
126
|
+
"./run/coverage-tokens.js",
|
|
122
127
|
"./run/default-run-engine.js",
|
|
123
128
|
"./run/definition-location-capture.js",
|
|
124
129
|
"./run/diff-schema.js",
|
|
@@ -134,11 +139,9 @@
|
|
|
134
139
|
"./run/run-artifact-schema.js",
|
|
135
140
|
"./run/run-collection-source.js",
|
|
136
141
|
"./run/run-command-schema.js",
|
|
137
|
-
"./run/run-config-schema.js",
|
|
138
142
|
"./run/run-coverage.js",
|
|
139
143
|
"./run/run-errors.js",
|
|
140
144
|
"./run/run-filter-grammar.js",
|
|
141
|
-
"./run/run-host-process.js",
|
|
142
145
|
"./run/run-identity-schema.js",
|
|
143
146
|
"./run/run-if-main.js",
|
|
144
147
|
"./run/run-isolated-process.js",
|
|
@@ -168,5 +171,5 @@
|
|
|
168
171
|
"./transcript/transcript-store.js"
|
|
169
172
|
],
|
|
170
173
|
"type": "module",
|
|
171
|
-
"version": "0.0.
|
|
174
|
+
"version": "0.0.67"
|
|
172
175
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { CommandLineRunner } from '../../run/command-line-runner.ts';
|
|
2
2
|
import type { NodeCommandLineRunnerOptions } from '../../run/node-command-line-runner.ts';
|
|
3
3
|
export { commandLineExitCodes } from '../../run/command-line-command.ts';
|
|
4
|
-
export { defineConfig,
|
|
4
|
+
export { defineConfig, normalizeConfig, loadConfig, ConfigError } from './config.entry-point.ts';
|
|
5
5
|
export declare function createNodeCommandLineRunner(options: NodeCommandLineRunnerOptions): CommandLineRunner;
|
|
6
6
|
export declare const commandLineRunner: CommandLineRunner;
|
|
7
|
-
export type { CommandLineBaselineCommands, CommandLineBenchmarkCommands, CommandLineCommand, CommandLineCommandContext, CommandLineExitCode, CommandLineListTestsRequest, CommandLineRunnerResult, CommandLineRunTestsRequest } from '../../run/command-line-command.ts';
|
|
7
|
+
export type { CommandLineBaselineCommands, CommandLineBenchmarkCommands, BenchmarkRunRequest, CommandLineBenchmarkRunRequest, CommandLineBenchmarkListRequest, CommandLineCommand, CommandLineCommandContext, CommandLineExitCode, CommandLineListTestsRequest, CommandLineRunnerResult, CommandLineRunTestsRequest } from '../../run/command-line-command.ts';
|
|
8
8
|
export type { CommandLineRunner, CommandLineRunnerDependencies } from '../../run/command-line-runner.ts';
|
|
9
9
|
export type { NodeCommandLineRunnerOptions } from '../../run/node-command-line-runner.ts';
|
|
10
|
-
export type {
|
|
10
|
+
export type { LoadedConfig, ConfigLoader, ConfigLoaderDependencies, ConfigLoadRequest, Config, ProjectIntegrationExecution, ProjectIntegrationProfileConfig, ProjectMeasuredResourceUsage, ProjectMicrotestExecution, ProjectMicrotestProfileConfig, ProjectProfileFiles, ProjectProfileConfig, ProjectProfilesConfig, ProjectResourceBudgets, ProjectResourceUsageConfig, ProjectTimingProfilePolicy, ProjectTimeoutConfig, ProjectUnmeasuredResourceUsage } from '../../config/config.ts';
|
|
11
|
+
export type { NormalizedConfig, ProfileConfig, BenchmarkProfileConfig, TestProfileConfig } from '../../config/types.ts';
|
|
12
|
+
export type { ProjectBenchmarkProfileConfig } from '../../config/schema.ts';
|
|
11
13
|
//# sourceMappingURL=command-line.entry-point.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/run/command-line.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"command-line.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/run/command-line.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAQ1F,OAAO,EACH,oBAAoB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,YAAY,EACZ,eAAe,EACf,UAAU,EACV,WAAW,EACd,MAAM,yBAAyB,CAAC;AAoBjC,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,4BAA4B,GAAG,iBAAiB,CA2DpG;AA8BD,eAAO,MAAM,iBAAiB,EAAE,iBAe/B,CAAC;AAEF,YAAY,EACR,2BAA2B,EAC3B,4BAA4B,EAC5B,mBAAmB,EACnB,8BAA8B,EAC9B,+BAA+B,EAC/B,kBAAkB,EAClB,yBAAyB,EACzB,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,0BAA0B,EAC7B,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EACR,iBAAiB,EACjB,6BAA6B,EAChC,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EACR,4BAA4B,EAC/B,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EACR,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,MAAM,EACN,2BAA2B,EAC3B,+BAA+B,EAC/B,4BAA4B,EAC5B,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,oBAAoB,EACpB,8BAA8B,EACjC,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAExH,YAAY,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC"}
|