@overkill-dev/run 0.0.60 → 0.0.62
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/coverage-artifact.d.ts +49 -0
- package/engine/coverage-artifact.d.ts.map +1 -0
- package/engine/execution-options.d.ts +4 -1
- package/engine/execution-options.d.ts.map +1 -1
- package/engine/execution-options.js.map +1 -1
- package/engine/execution-supervision-state.d.ts +30 -0
- package/engine/execution-supervision-state.d.ts.map +1 -0
- package/engine/execution-supervision-state.js +25 -0
- package/engine/execution-supervision-state.js.map +1 -0
- package/engine/execution-supervision.d.ts +5 -25
- package/engine/execution-supervision.d.ts.map +1 -1
- package/engine/execution-supervision.js +9 -19
- package/engine/execution-supervision.js.map +1 -1
- package/engine/execution-test-plan-cases.js +108 -71
- package/engine/execution-test-plan-cases.js.map +1 -1
- package/engine/identity.d.ts +2 -0
- package/engine/identity.d.ts.map +1 -1
- package/engine/identity.js +2 -1
- package/engine/identity.js.map +1 -1
- package/engine/reporter-event-queue.js +1 -1
- package/engine/reporter-event-queue.js.map +1 -1
- package/engine/run-result.d.ts +17 -5
- package/engine/run-result.d.ts.map +1 -1
- package/engine/run-result.js.map +1 -1
- package/engine/run-timings.d.ts +1 -1
- package/engine/run-timings.d.ts.map +1 -1
- package/engine/run-timings.js +3 -0
- package/engine/run-timings.js.map +1 -1
- package/engine/test-plan.d.ts +1 -1
- package/engine/test-plan.d.ts.map +1 -1
- package/package.json +11 -3
- package/packages/engine/engine.entry-point.d.ts +3 -2
- package/packages/engine/engine.entry-point.d.ts.map +1 -1
- package/packages/engine/engine.entry-point.js.map +1 -1
- package/packages/run/config.entry-point.d.ts +3 -2
- package/packages/run/config.entry-point.d.ts.map +1 -1
- package/packages/run/config.entry-point.js +2 -1
- package/packages/run/config.entry-point.js.map +1 -1
- package/packages/run/filters.entry-point.d.ts +2 -2
- package/packages/run/filters.entry-point.d.ts.map +1 -1
- package/packages/run/filters.entry-point.js +1 -1
- package/packages/run/filters.entry-point.js.map +1 -1
- package/packages/run/run.entry-point.d.ts +5 -3
- package/packages/run/run.entry-point.d.ts.map +1 -1
- package/packages/run/run.entry-point.js +2 -8
- package/packages/run/run.entry-point.js.map +1 -1
- package/readme.md +28 -5
- package/reporters/human-reporter-rendering.js +16 -1
- package/reporters/human-reporter-rendering.js.map +1 -1
- package/reporters/line-reporter.js +4 -1
- package/reporters/line-reporter.js.map +1 -1
- package/reporters/run-summary-rendering.js +23 -0
- package/reporters/run-summary-rendering.js.map +1 -1
- package/resources/resources.d.ts +1 -0
- package/resources/resources.d.ts.map +1 -1
- package/resources/resources.js.map +1 -1
- package/resources/runtime-definition.d.ts +2 -0
- package/resources/runtime-definition.d.ts.map +1 -1
- package/resources/runtime-definition.js +1 -0
- package/resources/runtime-definition.js.map +1 -1
- package/run/collected-run-plan.js +13 -0
- package/run/collected-run-plan.js.map +1 -1
- package/run/command-line-command.d.ts +1 -1
- package/run/command-line-command.d.ts.map +1 -1
- package/run/command-line-command.js +1 -2
- package/run/command-line-command.js.map +1 -1
- package/run/command-line-runner.d.ts.map +1 -1
- package/run/command-line-runner.js +2 -0
- package/run/command-line-runner.js.map +1 -1
- package/run/coverage-config-schema.d.ts +50 -0
- package/run/coverage-config-schema.d.ts.map +1 -0
- package/run/coverage-config-schema.js +36 -0
- package/run/coverage-config-schema.js.map +1 -0
- package/run/coverage-paths.js +5 -0
- package/run/coverage-paths.js.map +1 -0
- package/run/coverage-reporting.js +191 -0
- package/run/coverage-reporting.js.map +1 -0
- package/run/coverage-session.js +7 -0
- package/run/coverage-session.js.map +1 -0
- package/run/current-process-run-orchestrator.d.ts +2 -1
- package/run/current-process-run-orchestrator.d.ts.map +1 -1
- package/run/current-process-run-orchestrator.js +30 -1
- package/run/current-process-run-orchestrator.js.map +1 -1
- package/run/direct-entrypoint-collection.js +27 -0
- package/run/direct-entrypoint-collection.js.map +1 -0
- package/run/duration-history-schema.d.ts +251 -0
- package/run/duration-history-schema.d.ts.map +1 -0
- package/run/duration-history-schema.js +121 -0
- package/run/duration-history-schema.js.map +1 -0
- package/run/duration-history.d.ts +2 -2
- package/run/duration-history.d.ts.map +1 -1
- package/run/duration-history.js +3 -82
- package/run/duration-history.js.map +1 -1
- package/run/path-containment.js +2 -0
- package/run/path-containment.js.map +1 -0
- package/run/profile-config-normalization.js +136 -0
- package/run/profile-config-normalization.js.map +1 -0
- package/run/profile-file-glob.js +18 -0
- package/run/profile-file-glob.js.map +1 -1
- package/run/resource-lifecycle-boundaries.js +20 -5
- package/run/resource-lifecycle-boundaries.js.map +1 -1
- package/run/resource-lifecycle-cache-identity.js +4 -0
- package/run/resource-lifecycle-cache-identity.js.map +1 -1
- package/run/resource-lifecycle-composition.d.ts +1 -1
- package/run/resource-lifecycle-composition.d.ts.map +1 -1
- package/run/resource-lifecycle-composition.js +4 -4
- package/run/resource-lifecycle-composition.js.map +1 -1
- package/run/run-collected-planning.js +1 -1
- package/run/run-collected-planning.js.map +1 -1
- package/run/run-collection-source-types.d.ts +12 -0
- package/run/run-collection-source-types.d.ts.map +1 -0
- package/run/run-collection-source.d.ts +9 -0
- package/run/run-collection-source.d.ts.map +1 -0
- package/run/run-collection-source.js +9 -0
- package/run/run-collection-source.js.map +1 -0
- package/run/run-config-defaults.js +26 -4
- package/run/run-config-defaults.js.map +1 -1
- package/run/run-config-schema.d.ts +63 -0
- package/run/run-config-schema.d.ts.map +1 -1
- package/run/run-config-schema.js +7 -0
- package/run/run-config-schema.js.map +1 -1
- package/run/run-config.d.ts +7 -5
- package/run/run-config.d.ts.map +1 -1
- package/run/run-config.js +14 -95
- package/run/run-config.js.map +1 -1
- package/run/run-coverage.js +47 -0
- package/run/run-coverage.js.map +1 -0
- package/run/run-discovery.js +1 -2
- package/run/run-discovery.js.map +1 -1
- package/run/run-empty-shard.js +3 -4
- package/run/run-empty-shard.js.map +1 -1
- package/run/run-engine-selection.d.ts +1 -1
- package/run/run-engine-selection.d.ts.map +1 -1
- package/run/run-errors.d.ts +3 -0
- package/run/run-errors.d.ts.map +1 -1
- package/run/run-errors.js +6 -0
- package/run/run-errors.js.map +1 -1
- package/run/run-execution-config.d.ts +28 -0
- package/run/run-execution-config.d.ts.map +1 -0
- package/run/run-facts.js +2 -0
- package/run/run-facts.js.map +1 -1
- package/run/run-filter-grammar.d.ts +1 -1
- package/run/run-filter-grammar.d.ts.map +1 -1
- package/run/run-if-main-options.d.ts +0 -5
- package/run/run-if-main-options.d.ts.map +1 -1
- package/run/run-if-main-options.js +0 -16
- package/run/run-if-main-options.js.map +1 -1
- package/run/run-if-main-profile.d.ts +1 -1
- package/run/run-if-main-profile.d.ts.map +1 -1
- package/run/run-if-main-profile.js +1 -11
- package/run/run-if-main-profile.js.map +1 -1
- package/run/run-if-main.d.ts +2 -10
- package/run/run-if-main.d.ts.map +1 -1
- package/run/run-if-main.js +56 -62
- package/run/run-if-main.js.map +1 -1
- package/run/run-in-process-execution.js +3 -3
- package/run/run-in-process-execution.js.map +1 -1
- package/run/run-input-resolution.js +11 -2
- package/run/run-input-resolution.js.map +1 -1
- package/run/run-isolated-command.js +46 -20
- package/run/run-isolated-command.js.map +1 -1
- package/run/run-isolated-process.js +68 -101
- package/run/run-isolated-process.js.map +1 -1
- package/run/run-local-command.js +132 -0
- package/run/run-local-command.js.map +1 -0
- package/run/run-local-execution.js +7 -10
- package/run/run-local-execution.js.map +1 -1
- package/run/run-local-resolution.js +10 -5
- package/run/run-local-resolution.js.map +1 -1
- package/run/run-local-test-plan.js +6 -1
- package/run/run-local-test-plan.js.map +1 -1
- package/run/run-orchestrator.d.ts +6 -0
- package/run/run-orchestrator.d.ts.map +1 -1
- package/run/run-orchestrator.entry-point.d.ts +1 -2
- package/run/run-orchestrator.entry-point.d.ts.map +1 -1
- package/run/run-orchestrator.entry-point.js +4 -4
- package/run/run-orchestrator.entry-point.js.map +1 -1
- package/run/run-orchestrator.js +11 -4
- package/run/run-orchestrator.js.map +1 -1
- package/run/run-ordering.js +36 -0
- package/run/run-ordering.js.map +1 -0
- package/run/run-request-types.d.ts +89 -0
- package/run/run-request-types.d.ts.map +1 -0
- package/run/run-selection-filters.d.ts +7 -2
- package/run/run-selection-filters.d.ts.map +1 -1
- package/run/run-selection-filters.js +114 -15
- package/run/run-selection-filters.js.map +1 -1
- package/run/run-selection.js +10 -50
- package/run/run-selection.js.map +1 -1
- package/run/run-supervised-process.js +109 -0
- package/run/run-supervised-process.js.map +1 -0
- package/run/run-support.js +28 -0
- package/run/run-support.js.map +1 -1
- package/run/run-test-plan.js +13 -5
- package/run/run-test-plan.js.map +1 -1
- package/run/run-types.d.ts +33 -96
- package/run/run-types.d.ts.map +1 -1
- package/run/run-types.js +0 -18
- package/run/run-types.js.map +1 -1
- package/run/run-validation.js +1 -1
- package/run/run-validation.js.map +1 -1
- package/run/run.d.ts +10 -0
- package/run/run.d.ts.map +1 -0
- package/run/run.js +27 -54
- package/run/run.js.map +1 -1
- package/run/runtime-matrix-expansion.js +7 -0
- package/run/runtime-matrix-expansion.js.map +1 -1
- package/run/supervised-child-process.d.ts +24 -2
- package/run/supervised-child-process.d.ts.map +1 -1
- package/run/supervised-child-process.js +40 -1
- package/run/supervised-child-process.js.map +1 -1
- package/run/supervised-child-test-plan.js +1 -0
- package/run/supervised-child-test-plan.js.map +1 -1
- package/run/supervised-child.js +2 -5
- package/run/supervised-child.js.map +1 -1
- package/run/supervised-protocol.js +2 -7
- package/run/supervised-protocol.js.map +1 -1
- package/run/supervised-run-collection.js +2 -0
- package/run/supervised-run-collection.js.map +1 -1
- package/run/supervised-run-runtime.js +4 -105
- package/run/supervised-run-runtime.js.map +1 -1
- package/run/supervised-run-state.d.ts +4 -0
- package/run/supervised-run-state.d.ts.map +1 -1
- package/run/supervised-run-state.js +22 -0
- package/run/supervised-run-state.js.map +1 -1
- package/run/supervised-run.js +11 -79
- package/run/supervised-run.js.map +1 -1
- package/run/work-distribution-config.js +1 -1
- package/run/work-distribution-config.js.map +1 -1
- package/run/work-unit-planning.js +1 -1
- package/run/work-unit-planning.js.map +1 -1
- package/run/worker-pool-command.js +3 -0
- package/run/worker-pool-command.js.map +1 -1
- package/run/worker-pool-hedged-arbitration.js +3 -1
- package/run/worker-pool-hedged-arbitration.js.map +1 -1
- package/run/worker-pool-protocol.js.map +1 -1
- package/run/worker-pool-task-events.js +7 -5
- package/run/worker-pool-task-events.js.map +1 -1
- package/run/worker-pool-worker-plan.js +1 -0
- package/run/worker-pool-worker-plan.js.map +1 -1
- package/run/worker-pool-worker.js +2 -5
- package/run/worker-pool-worker.js.map +1 -1
- package/sbom.cdx.json +72 -4
- package/run/default-run-engine.d.ts +0 -3
- package/run/default-run-engine.d.ts.map +0 -1
- package/run/direct-runtime-policy.js +0 -24
- package/run/direct-runtime-policy.js.map +0 -1
- package/run/resource-usage.d.ts +0 -17
- package/run/resource-usage.d.ts.map +0 -1
- package/run/run-if-main-facts.js +0 -95
- package/run/run-if-main-facts.js.map +0 -1
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.62",
|
|
20
|
+
"bom-ref": "pkg:npm/@overkill-dev/run@0.0.62",
|
|
21
|
+
"purl": "pkg:npm/@overkill-dev/run@0.0.62"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"components": [
|
|
@@ -113,6 +113,32 @@
|
|
|
113
113
|
],
|
|
114
114
|
"purl": "pkg:npm/is-interactive@2.0.0"
|
|
115
115
|
},
|
|
116
|
+
{
|
|
117
|
+
"type": "library",
|
|
118
|
+
"name": "monocart-coverage-reports",
|
|
119
|
+
"version": "2.13.0",
|
|
120
|
+
"bom-ref": "pkg:npm/monocart-coverage-reports@2.13.0",
|
|
121
|
+
"scope": "required",
|
|
122
|
+
"licenses": [
|
|
123
|
+
{
|
|
124
|
+
"expression": "MIT"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"purl": "pkg:npm/monocart-coverage-reports@2.13.0"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "library",
|
|
131
|
+
"name": "p-limit",
|
|
132
|
+
"version": "7.3.3",
|
|
133
|
+
"bom-ref": "pkg:npm/p-limit@7.3.3",
|
|
134
|
+
"scope": "required",
|
|
135
|
+
"licenses": [
|
|
136
|
+
{
|
|
137
|
+
"expression": "MIT"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"purl": "pkg:npm/p-limit@7.3.3"
|
|
141
|
+
},
|
|
116
142
|
{
|
|
117
143
|
"type": "library",
|
|
118
144
|
"name": "pure-rand",
|
|
@@ -139,6 +165,19 @@
|
|
|
139
165
|
],
|
|
140
166
|
"purl": "pkg:npm/string-width@8.3.0"
|
|
141
167
|
},
|
|
168
|
+
{
|
|
169
|
+
"type": "library",
|
|
170
|
+
"name": "sucrase",
|
|
171
|
+
"version": "3.35.1",
|
|
172
|
+
"bom-ref": "pkg:npm/sucrase@3.35.1",
|
|
173
|
+
"scope": "required",
|
|
174
|
+
"licenses": [
|
|
175
|
+
{
|
|
176
|
+
"expression": "MIT"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"purl": "pkg:npm/sucrase@3.35.1"
|
|
180
|
+
},
|
|
142
181
|
{
|
|
143
182
|
"type": "library",
|
|
144
183
|
"name": "tinypool",
|
|
@@ -165,6 +204,19 @@
|
|
|
165
204
|
],
|
|
166
205
|
"purl": "pkg:npm/type-fest@5.8.0"
|
|
167
206
|
},
|
|
207
|
+
{
|
|
208
|
+
"type": "library",
|
|
209
|
+
"name": "ulid",
|
|
210
|
+
"version": "3.0.2",
|
|
211
|
+
"bom-ref": "pkg:npm/ulid@3.0.2",
|
|
212
|
+
"scope": "required",
|
|
213
|
+
"licenses": [
|
|
214
|
+
{
|
|
215
|
+
"expression": "MIT"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"purl": "pkg:npm/ulid@3.0.2"
|
|
219
|
+
},
|
|
168
220
|
{
|
|
169
221
|
"type": "library",
|
|
170
222
|
"name": "yoctocolors",
|
|
@@ -197,7 +249,7 @@
|
|
|
197
249
|
"ref": "pkg:npm/@enormora/clock@0.0.3"
|
|
198
250
|
},
|
|
199
251
|
{
|
|
200
|
-
"ref": "pkg:npm/@overkill-dev/run@0.0.
|
|
252
|
+
"ref": "pkg:npm/@overkill-dev/run@0.0.62",
|
|
201
253
|
"dependsOn": [
|
|
202
254
|
"pkg:npm/@enormora/clock@0.0.3",
|
|
203
255
|
"pkg:npm/@schema-hub/zod-error-formatter@0.0.16",
|
|
@@ -206,10 +258,14 @@
|
|
|
206
258
|
"pkg:npm/figures@6.1.0",
|
|
207
259
|
"pkg:npm/hash-wasm@4.12.0",
|
|
208
260
|
"pkg:npm/is-interactive@2.0.0",
|
|
261
|
+
"pkg:npm/monocart-coverage-reports@2.13.0",
|
|
262
|
+
"pkg:npm/p-limit@7.3.3",
|
|
209
263
|
"pkg:npm/pure-rand@8.4.2",
|
|
210
264
|
"pkg:npm/string-width@8.3.0",
|
|
265
|
+
"pkg:npm/sucrase@3.35.1",
|
|
211
266
|
"pkg:npm/tinypool@2.2.0",
|
|
212
267
|
"pkg:npm/type-fest@5.8.0",
|
|
268
|
+
"pkg:npm/ulid@3.0.2",
|
|
213
269
|
"pkg:npm/yoctocolors@2.2.0",
|
|
214
270
|
"pkg:npm/zod@4.6.5"
|
|
215
271
|
]
|
|
@@ -232,18 +288,30 @@
|
|
|
232
288
|
{
|
|
233
289
|
"ref": "pkg:npm/is-interactive@2.0.0"
|
|
234
290
|
},
|
|
291
|
+
{
|
|
292
|
+
"ref": "pkg:npm/monocart-coverage-reports@2.13.0"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"ref": "pkg:npm/p-limit@7.3.3"
|
|
296
|
+
},
|
|
235
297
|
{
|
|
236
298
|
"ref": "pkg:npm/pure-rand@8.4.2"
|
|
237
299
|
},
|
|
238
300
|
{
|
|
239
301
|
"ref": "pkg:npm/string-width@8.3.0"
|
|
240
302
|
},
|
|
303
|
+
{
|
|
304
|
+
"ref": "pkg:npm/sucrase@3.35.1"
|
|
305
|
+
},
|
|
241
306
|
{
|
|
242
307
|
"ref": "pkg:npm/tinypool@2.2.0"
|
|
243
308
|
},
|
|
244
309
|
{
|
|
245
310
|
"ref": "pkg:npm/type-fest@5.8.0"
|
|
246
311
|
},
|
|
312
|
+
{
|
|
313
|
+
"ref": "pkg:npm/ulid@3.0.2"
|
|
314
|
+
},
|
|
247
315
|
{
|
|
248
316
|
"ref": "pkg:npm/yoctocolors@2.2.0"
|
|
249
317
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-run-engine.d.ts","sourceRoot":"","sources":["../../../../source/run/default-run-engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,KAAK,MAAM,EAA2B,MAAM,qBAAqB,CAAC;AAsClG,eAAO,MAAM,gBAAgB,EAAE,MAY9B,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { createRuntimeCapabilityPolicy } from "./capability-policy.js";
|
|
2
|
-
import { installIpcRestriction, installProcessExecutionRestriction } from "./node-process-capability-restrictions.js";
|
|
3
|
-
import { readProcessEnvironment, readWebStorage } from "./node-host-readers.js";
|
|
4
|
-
export function createDirectRuntimePolicy() {
|
|
5
|
-
return createRuntimeCapabilityPolicy({
|
|
6
|
-
dependencies: {
|
|
7
|
-
installIpcRestriction(record) {
|
|
8
|
-
return installIpcRestriction(process, record);
|
|
9
|
-
},
|
|
10
|
-
installProcessExecutionRestriction(record) {
|
|
11
|
-
return installProcessExecutionRestriction(process, record);
|
|
12
|
-
},
|
|
13
|
-
readEnvironment() {
|
|
14
|
-
return readProcessEnvironment(process);
|
|
15
|
-
},
|
|
16
|
-
readStorage(name) {
|
|
17
|
-
return readWebStorage(globalThis, name);
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
observedStderr: false,
|
|
21
|
-
observedStdout: false
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=direct-runtime-policy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"direct-runtime-policy.js","sourceRoot":"","sources":["../../../../source/run/direct-runtime-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,6BAA6B,EAEhC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACH,qBAAqB,EACrB,kCAAkC,EACrC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACH,sBAAsB,EACtB,cAAc,EACjB,MAAM,wBAAwB,CAAC;AAIhC,MAAM,UAAU,yBAAyB;IACrC,OAAO,6BAA6B,CAAC;QACjC,YAAY,EAAE;YACV,qBAAqB,CAAC,MAAM;gBACxB,OAAO,qBAAqB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAClD,CAAC;YACD,kCAAkC,CAAC,MAAM;gBACrC,OAAO,kCAAkC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAC/D,CAAC;YACD,eAAe;gBACX,OAAO,sBAAsB,CAAC,OAAO,CAAC,CAAC;YAC3C,CAAC;YACD,WAAW,CAAC,IAAI;gBACZ,OAAO,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;YAC5C,CAAC;SACJ;QACD,cAAc,EAAE,KAAK;QACrB,cAAc,EAAE,KAAK;KACxB,CAAC,CAAC;AACP,CAAC"}
|
package/run/resource-usage.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Clock } from '@enormora/clock';
|
|
2
|
-
import type { ResourceUsageSnapshot, RunResourceUsage, RunResourceUsageTracker } from '../engine/run-result.ts';
|
|
3
|
-
type ResourceUsageSample = ResourceUsageSnapshot;
|
|
4
|
-
type ResourceUsageTrackerDependencies = {
|
|
5
|
-
readonly readActiveResourceTypes: () => readonly string[];
|
|
6
|
-
readonly readJavaScriptEngineHeapBytes: () => number;
|
|
7
|
-
readonly readResidentSetBytes: () => number;
|
|
8
|
-
readonly wallClock: Clock;
|
|
9
|
-
};
|
|
10
|
-
export type ResourceUsageTrackerOptions = {
|
|
11
|
-
readonly samplingIntervalMilliseconds: number;
|
|
12
|
-
};
|
|
13
|
-
export declare function createResourceUsageFromSamples(start: ResourceUsageSnapshot, end: ResourceUsageSnapshot, samples: readonly ResourceUsageSample[]): RunResourceUsage;
|
|
14
|
-
export declare function createResourceUsageTracker(dependencies: ResourceUsageTrackerDependencies, options: ResourceUsageTrackerOptions): RunResourceUsageTracker;
|
|
15
|
-
export declare function createNodeResourceUsageTracker(wallClock: Clock, options: ResourceUsageTrackerOptions): RunResourceUsageTracker;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=resource-usage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-usage.d.ts","sourceRoot":"","sources":["../../../../source/run/resource-usage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,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,KAAK,CAAC;CAC7B,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,KAAK,EAChB,OAAO,EAAE,2BAA2B,GACrC,uBAAuB,CAazB"}
|
package/run/run-if-main-facts.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { resolveResourceUsagePolicy, resolveTimingCollection, runCaseFactsFromTestPlan } from "./run-facts.js";
|
|
2
|
-
import { resultWithTimingCollection } from "./run-timing-collection.js";
|
|
3
|
-
import { assertTestPlanMatchesTestFamily } from "./run-selection.js";
|
|
4
|
-
function defaultRunRequest(profileName, seed) {
|
|
5
|
-
return {
|
|
6
|
-
baselineUpdateMode: 'none',
|
|
7
|
-
capabilityRestrictions: { mode: 'enabled' },
|
|
8
|
-
capture: 'buffered',
|
|
9
|
-
debug: {
|
|
10
|
-
mode: 'off',
|
|
11
|
-
selectors: []
|
|
12
|
-
},
|
|
13
|
-
execution: { mode: 'profile-default' },
|
|
14
|
-
measureResourceUsage: null,
|
|
15
|
-
order: 'seeded',
|
|
16
|
-
paths: [],
|
|
17
|
-
profile: profileName,
|
|
18
|
-
resourceBudgetOverrides: null,
|
|
19
|
-
resourceUsageSamplingIntervalMilliseconds: null,
|
|
20
|
-
seed,
|
|
21
|
-
selection: { kind: 'all' },
|
|
22
|
-
shard: {
|
|
23
|
-
index: 0,
|
|
24
|
-
total: 1
|
|
25
|
-
},
|
|
26
|
-
timingCollection: 'profile-default',
|
|
27
|
-
verbose: false,
|
|
28
|
-
workers: null
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export function runConfig(loadedConfig, reporters) {
|
|
32
|
-
return {
|
|
33
|
-
loader: loadedConfig.loader,
|
|
34
|
-
outputRenderer: loadedConfig.outputRenderer,
|
|
35
|
-
profiles: loadedConfig.profiles,
|
|
36
|
-
reporters,
|
|
37
|
-
runtimeStateDir: loadedConfig.runtimeStateDir
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function selectedProfile(config, profileName) {
|
|
41
|
-
const profile = config.profiles[profileName];
|
|
42
|
-
if (profile === undefined) {
|
|
43
|
-
throw new Error(`Unknown direct run profile: ${profileName}.`);
|
|
44
|
-
}
|
|
45
|
-
return profile;
|
|
46
|
-
}
|
|
47
|
-
export function assertDirectTestPlanMatchesTestFamily(testPlan, testFamily) {
|
|
48
|
-
assertTestPlanMatchesTestFamily(testPlan, testFamily);
|
|
49
|
-
}
|
|
50
|
-
export function directRunFacts(input) {
|
|
51
|
-
const request = defaultRunRequest(input.profileName, input.seed);
|
|
52
|
-
const profile = selectedProfile(input.config, input.profileName);
|
|
53
|
-
return {
|
|
54
|
-
cases: runCaseFactsFromTestPlan(input.testPlan, function directRunFileSet() {
|
|
55
|
-
return input.fileSet;
|
|
56
|
-
}),
|
|
57
|
-
durationHistory: null,
|
|
58
|
-
environment: {
|
|
59
|
-
node: {
|
|
60
|
-
arch: process.arch,
|
|
61
|
-
platform: process.platform,
|
|
62
|
-
version: process.versions.node
|
|
63
|
-
},
|
|
64
|
-
projectRoot: input.projectRoot,
|
|
65
|
-
runtimeStateDir: input.config.runtimeStateDir
|
|
66
|
-
},
|
|
67
|
-
execution: {
|
|
68
|
-
baselineUpdateMode: request.baselineUpdateMode,
|
|
69
|
-
capture: request.capture,
|
|
70
|
-
debug: request.debug,
|
|
71
|
-
engine: { kind: 'default' },
|
|
72
|
-
order: request.order,
|
|
73
|
-
placementPlan: null,
|
|
74
|
-
processModel: 'in-process',
|
|
75
|
-
profile: input.profileName,
|
|
76
|
-
resourceUsagePolicy: resolveResourceUsagePolicy(request, profile),
|
|
77
|
-
scheduling: profile.execution.scheduling,
|
|
78
|
-
testFamily: profile.testFamily,
|
|
79
|
-
timingCollection: resolveTimingCollection(request, profile),
|
|
80
|
-
timeoutPolicy: profile.timeouts,
|
|
81
|
-
verbose: request.verbose
|
|
82
|
-
},
|
|
83
|
-
loader: input.config.loader,
|
|
84
|
-
reproducibility: {
|
|
85
|
-
selection: request.selection,
|
|
86
|
-
seed: String(input.seed.value),
|
|
87
|
-
shard: request.shard,
|
|
88
|
-
shardHashAlgorithm: 'xxh3-64-canonical-json-v1'
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
export function finalizeDirectRunResult(runFacts, result) {
|
|
93
|
-
return resultWithTimingCollection(runFacts.execution.timingCollection, result);
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=run-if-main-facts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-if-main-facts.js","sourceRoot":"","sources":["../../../../source/run/run-if-main-facts.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAqBrE,SAAS,iBAAiB,CAAC,WAAmB,EAAE,IAAqB;IACjE,OAAO;QACH,kBAAkB,EAAE,MAAM;QAC1B,sBAAsB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC3C,OAAO,EAAE,UAAU;QACnB,KAAK,EAAE;YACH,IAAI,EAAE,KAAK;YACX,SAAS,EAAE,EAAE;SAChB;QACD,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE;QACtC,oBAAoB,EAAE,IAAI;QAC1B,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,WAAW;QACpB,uBAAuB,EAAE,IAAI;QAC7B,yCAAyC,EAAE,IAAI;QAC/C,IAAI;QACJ,SAAS,EAAE,EAAE,IAAI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