@overkill-dev/run 0.0.66 → 0.0.68
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/{run/attachment-json.js → attachments/json-snapshot.js} +4 -4
- package/attachments/json-snapshot.js.map +1 -0
- package/baselines/performance-adapter.d.ts +60 -0
- package/baselines/performance-adapter.d.ts.map +1 -0
- package/baselines/performance-baseline.d.ts +48 -0
- package/baselines/performance-baseline.d.ts.map +1 -0
- package/baselines/performance-baseline.js +9 -0
- package/baselines/performance-baseline.js.map +1 -0
- package/baselines/performance-evaluation.js +88 -0
- package/baselines/performance-evaluation.js.map +1 -0
- package/baselines/performance-plan.js +33 -0
- package/baselines/performance-plan.js.map +1 -0
- package/baselines/performance-report.js +57 -0
- package/baselines/performance-report.js.map +1 -0
- package/baselines/performance-schema.js +12 -0
- package/baselines/performance-schema.js.map +1 -0
- package/baselines/performance-store.js +134 -0
- package/baselines/performance-store.js.map +1 -0
- package/baselines/performance-workflow.js +180 -0
- package/baselines/performance-workflow.js.map +1 -0
- package/bench/calibration-schema.js +12 -0
- package/bench/calibration-schema.js.map +1 -0
- package/canonical-identity.js +54 -0
- package/canonical-identity.js.map +1 -0
- 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} +55 -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/performance-baselines.js +24 -0
- package/config/performance-baselines.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} +210 -28
- package/config/schema.d.ts.map +1 -0
- package/{run/run-config-schema.js → config/schema.js} +40 -12
- package/config/schema.js.map +1 -0
- package/config/snapshot.js +205 -0
- package/config/snapshot.js.map +1 -0
- package/config/types.d.ts +160 -0
- package/config/types.d.ts.map +1 -0
- package/config/validation.js +93 -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/{run/run-identity-schema.js → engine/identity-schema.js} +1 -1
- package/engine/identity-schema.js.map +1 -0
- package/file-store.js +48 -0
- package/file-store.js.map +1 -0
- package/package.json +23 -9
- package/packages/run/benchmark-calibration.entry-point.d.ts +22 -0
- package/packages/run/benchmark-calibration.entry-point.d.ts.map +1 -0
- package/packages/run/benchmark-calibration.entry-point.js +129 -0
- package/packages/run/benchmark-calibration.entry-point.js.map +1 -0
- 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 +64 -13
- package/run/assertion-result-schema.js +1 -1
- package/run/assertion-result-schema.js.map +1 -1
- package/run/attachment-eligibility.js +1 -1
- package/run/attachment-eligibility.js.map +1 -1
- package/run/attachment-execution.js +2 -2
- package/run/attachment-execution.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/attachment-retention.js +2 -2
- package/run/attachment-retention.js.map +1 -1
- package/run/benchmark-baseline-commands.js +70 -0
- package/run/benchmark-baseline-commands.js.map +1 -0
- package/run/benchmark-baseline-finalization.js +67 -0
- package/run/benchmark-baseline-finalization.js.map +1 -0
- package/run/benchmark-baseline-operations.js +53 -0
- package/run/benchmark-baseline-operations.js.map +1 -0
- package/run/benchmark-baseline-run.js +58 -0
- package/run/benchmark-baseline-run.js.map +1 -0
- package/run/benchmark-baseline-session.js +72 -0
- package/run/benchmark-baseline-session.js.map +1 -0
- package/run/benchmark-calibration.entry-point.js +3 -0
- package/run/benchmark-calibration.entry-point.js.map +1 -0
- package/run/benchmark-calibration.js +41 -0
- package/run/benchmark-calibration.js.map +1 -0
- package/run/benchmark-command-policy.d.ts +8 -0
- package/run/benchmark-command-policy.d.ts.map +1 -0
- package/run/benchmark-command-policy.js +37 -0
- package/run/benchmark-command-policy.js.map +1 -0
- package/run/benchmark-commands.d.ts +4 -0
- package/run/benchmark-commands.d.ts.map +1 -0
- package/run/benchmark-commands.js +61 -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/child-process-roles.js +1 -0
- package/run/child-process-roles.js.map +1 -1
- package/run/child-process.entry-point.js +5 -1
- package/run/child-process.entry-point.js.map +1 -1
- package/run/collected-run-plan-schema.js +1 -1
- package/run/collected-run-plan-schema.js.map +1 -1
- 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 +43 -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/execution-plan-resolution.js +7 -0
- package/run/execution-plan-resolution.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/node-run-execution.js +2 -2
- package/run/node-run-execution.js.map +1 -1
- package/run/reporter-event-schema.js +1 -1
- package/run/reporter-event-schema.js.map +1 -1
- package/run/request-snapshot.js +40 -0
- package/run/request-snapshot.js.map +1 -0
- package/run/run-artifact-id-schema.js +1 -1
- package/run/run-artifact-id-schema.js.map +1 -1
- package/run/run-artifact-schema.js +1 -1
- package/run/run-artifact-schema.js.map +1 -1
- package/run/run-collected-planning.js +13 -7
- package/run/run-collected-planning.js.map +1 -1
- package/run/run-collected-resolution.js +1 -0
- 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-execution.js +54 -0
- package/run/run-execution.js.map +1 -0
- package/run/run-facts.js +6 -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 +32 -10
- package/run/run-input-resolution.js.map +1 -1
- package/run/run-isolated-command.js +3 -3
- package/run/run-isolated-command.js.map +1 -1
- package/run/run-isolated-process.js +24 -9
- package/run/run-isolated-process.js.map +1 -1
- package/run/run-local-command.js +12 -14
- package/run/run-local-command.js.map +1 -1
- package/run/run-local-execution.js.map +1 -1
- package/run/run-local-resolution.js +6 -5
- 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 +65 -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-result-schema.js +2 -1
- package/run/run-result-schema.js.map +1 -1
- package/run/run-selection.js.map +1 -1
- package/run/run-sharding.js +3 -55
- package/run/run-sharding.js.map +1 -1
- package/run/run-supervised-finalization.js +2 -1
- package/run/run-supervised-finalization.js.map +1 -1
- package/run/run-supervised-process.js +6 -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 +63 -168
- package/run/run-types.d.ts.map +1 -1
- package/run/run-types.js.map +1 -1
- package/run/run-validation.js +11 -63
- package/run/run-validation.js.map +1 -1
- package/run/run.d.ts.map +1 -1
- package/run/run.js +51 -21
- package/run/run.js.map +1 -1
- package/run/simulation-witness.js +2 -2
- package/run/simulation-witness.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-schema.js +1 -1
- package/run/supervised-protocol-schema.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 +2 -2
- 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-results.js +2 -2
- package/run/worker-pool-results.js.map +1 -1
- package/run/worker-pool-routing.js.map +1 -1
- package/run/worker-pool-run.js +5 -4
- package/run/worker-pool-run.js.map +1 -1
- package/run/worker-pool-runtime.js.map +1 -1
- package/run/worker-pool-task-schema.js +1 -1
- package/run/worker-pool-task-schema.js.map +1 -1
- package/sbom.cdx.json +26 -43
- package/run/attachment-json.js.map +0 -1
- package/run/coverage-config-schema.d.ts.map +0 -1
- package/run/coverage-config-schema.js.map +0 -1
- package/run/node-runtime-state-store.js +0 -38
- package/run/node-runtime-state-store.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/run-identity-schema.js.map +0 -1
- package/run/work-distribution-config.js.map +0 -1
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",
|
|
@@ -34,6 +33,10 @@
|
|
|
34
33
|
"import": "./packages/run/run.entry-point.js",
|
|
35
34
|
"types": "./packages/run/run.entry-point.d.ts"
|
|
36
35
|
},
|
|
36
|
+
"./benchmark-calibration": {
|
|
37
|
+
"import": "./packages/run/benchmark-calibration.entry-point.js",
|
|
38
|
+
"types": "./packages/run/benchmark-calibration.entry-point.d.ts"
|
|
39
|
+
},
|
|
37
40
|
"./command-line": {
|
|
38
41
|
"import": "./packages/run/command-line.entry-point.js",
|
|
39
42
|
"types": "./packages/run/command-line.entry-point.d.ts"
|
|
@@ -73,12 +76,23 @@
|
|
|
73
76
|
"./assertion-protocol/source-location-forwarding.js",
|
|
74
77
|
"./attachments/attachment-context.js",
|
|
75
78
|
"./attachments/failure-artifact-stream.js",
|
|
79
|
+
"./attachments/json-snapshot.js",
|
|
76
80
|
"./attachments/resource-failure-context.js",
|
|
81
|
+
"./baselines/performance-report.js",
|
|
82
|
+
"./baselines/performance-schema.js",
|
|
83
|
+
"./bench/calibration-schema.js",
|
|
84
|
+
"./config/config-error.js",
|
|
85
|
+
"./config/coverage-schema.js",
|
|
86
|
+
"./config/host-process.js",
|
|
87
|
+
"./config/performance-baselines.js",
|
|
88
|
+
"./config/profile-file-discovery.js",
|
|
89
|
+
"./config/schema.js",
|
|
77
90
|
"./engine/assertion-recorder.js",
|
|
78
91
|
"./engine/async-leak-diagnostics.js",
|
|
79
92
|
"./engine/execution-async-leak-policy.js",
|
|
80
93
|
"./engine/execution-global-error-observer.js",
|
|
81
94
|
"./engine/execution-options.js",
|
|
95
|
+
"./engine/identity-schema.js",
|
|
82
96
|
"./engine/reporter-error-delivery-tracking.js",
|
|
83
97
|
"./engine/reporter-output-scope.js",
|
|
84
98
|
"./engine/reporter-output.js",
|
|
@@ -90,6 +104,7 @@
|
|
|
90
104
|
"./engine/test-data.js",
|
|
91
105
|
"./engine/test-node.js",
|
|
92
106
|
"./package-version.js",
|
|
107
|
+
"./packages/run/benchmark-calibration.entry-point.js",
|
|
93
108
|
"./packages/run/command-line.entry-point.js",
|
|
94
109
|
"./packages/run/config.entry-point.js",
|
|
95
110
|
"./packages/run/run.entry-point.js",
|
|
@@ -106,19 +121,20 @@
|
|
|
106
121
|
"./resources/runtime-matrix-definition.js",
|
|
107
122
|
"./run/assertion-result-schema.js",
|
|
108
123
|
"./run/attachment-coordinator-context.js",
|
|
109
|
-
"./run/attachment-json.js",
|
|
110
124
|
"./run/attachment-wire-schema.js",
|
|
111
125
|
"./run/attachment-worker-context.js",
|
|
126
|
+
"./run/benchmark-calibration.entry-point.js",
|
|
112
127
|
"./run/capability-policy.js",
|
|
113
128
|
"./run/child-process-protocol.js",
|
|
114
129
|
"./run/child-process-shutdown.js",
|
|
115
130
|
"./run/child-process.entry-point.js",
|
|
116
131
|
"./run/collected-run-plan-schema.js",
|
|
117
132
|
"./run/command-line-command.js",
|
|
118
|
-
"./run/coverage-
|
|
133
|
+
"./run/coverage-method-ranges.js",
|
|
119
134
|
"./run/coverage-native-data.js",
|
|
120
135
|
"./run/coverage-runtime-source.js",
|
|
121
136
|
"./run/coverage-source-map.js",
|
|
137
|
+
"./run/coverage-tokens.js",
|
|
122
138
|
"./run/default-run-engine.js",
|
|
123
139
|
"./run/definition-location-capture.js",
|
|
124
140
|
"./run/diff-schema.js",
|
|
@@ -134,12 +150,9 @@
|
|
|
134
150
|
"./run/run-artifact-schema.js",
|
|
135
151
|
"./run/run-collection-source.js",
|
|
136
152
|
"./run/run-command-schema.js",
|
|
137
|
-
"./run/run-config-schema.js",
|
|
138
153
|
"./run/run-coverage.js",
|
|
139
154
|
"./run/run-errors.js",
|
|
140
155
|
"./run/run-filter-grammar.js",
|
|
141
|
-
"./run/run-host-process.js",
|
|
142
|
-
"./run/run-identity-schema.js",
|
|
143
156
|
"./run/run-if-main.js",
|
|
144
157
|
"./run/run-isolated-process.js",
|
|
145
158
|
"./run/run-orchestrator.entry-point.js",
|
|
@@ -149,6 +162,7 @@
|
|
|
149
162
|
"./run/run-supervised-process.js",
|
|
150
163
|
"./run/run-timing-collection.js",
|
|
151
164
|
"./run/run-types.js",
|
|
165
|
+
"./run/run-validation.js",
|
|
152
166
|
"./run/serialized-value-schema.js",
|
|
153
167
|
"./run/supervised-child-process.js",
|
|
154
168
|
"./run/supervised-child.entry-point.js",
|
|
@@ -168,5 +182,5 @@
|
|
|
168
182
|
"./transcript/transcript-store.js"
|
|
169
183
|
],
|
|
170
184
|
"type": "module",
|
|
171
|
-
"version": "0.0.
|
|
185
|
+
"version": "0.0.68"
|
|
172
186
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { JsonValue, ReadonlyDeep } from 'type-fest';
|
|
2
|
+
export type ComparableCalibration = {
|
|
3
|
+
readonly context: ReadonlyDeep<JsonValue>;
|
|
4
|
+
readonly kind: 'comparable';
|
|
5
|
+
readonly machineClass: string;
|
|
6
|
+
readonly metadata: ReadonlyDeep<JsonValue>;
|
|
7
|
+
};
|
|
8
|
+
type NonComparableCalibration = {
|
|
9
|
+
readonly kind: 'non-comparable';
|
|
10
|
+
readonly metadata: ReadonlyDeep<JsonValue>;
|
|
11
|
+
readonly reason: string;
|
|
12
|
+
};
|
|
13
|
+
export type BenchmarkCalibrationResult = ComparableCalibration | NonComparableCalibration;
|
|
14
|
+
type DurationNormalizationInput = {
|
|
15
|
+
readonly actualCalibration: ComparableCalibration;
|
|
16
|
+
readonly baselineCalibration: ComparableCalibration;
|
|
17
|
+
readonly durationMicroseconds: number;
|
|
18
|
+
};
|
|
19
|
+
export declare function calibrateBenchmarkHost(): BenchmarkCalibrationResult;
|
|
20
|
+
export declare function normalizeBenchmarkDuration(input: DurationNormalizationInput): number;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=benchmark-calibration.entry-point.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"benchmark-calibration.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/run/benchmark-calibration.entry-point.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzD,MAAM,MAAM,qBAAqB,GAAG;IAChC,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;CAC9C,CAAC;AACF,KAAK,wBAAwB,GAAG;IAC5B,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAC3C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,GAAG,wBAAwB,CAAC;AAkC1F,KAAK,0BAA0B,GAAG;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;IAClD,QAAQ,CAAC,mBAAmB,EAAE,qBAAqB,CAAC;IACpD,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;CACzC,CAAC;AAuFF,wBAAgB,sBAAsB,IAAI,0BAA0B,CAanE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,0BAA0B,GAAG,MAAM,CAcpF"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import os from 'node:os';
|
|
3
|
+
import { z } from 'zod/v4';
|
|
4
|
+
const iterations = 2_000_000;
|
|
5
|
+
const sampleCount = 7;
|
|
6
|
+
const referenceWorkload = 'integer-mix-v1';
|
|
7
|
+
const multiplier = 1_664_525;
|
|
8
|
+
const increment = 1_013_904_223;
|
|
9
|
+
const integerRange = 4_294_967_296;
|
|
10
|
+
const nanosecondsPerMicrosecond = 1000;
|
|
11
|
+
const machineClassDigestLength = 16;
|
|
12
|
+
const medianDivisor = 2;
|
|
13
|
+
const referenceContextSchema = z
|
|
14
|
+
.strictObject({
|
|
15
|
+
checksum: z.number().int().nonnegative(),
|
|
16
|
+
iterations: z.literal(iterations),
|
|
17
|
+
medianMicroseconds: z.number().positive(),
|
|
18
|
+
samplesMicroseconds: z.array(z.number().positive()).length(sampleCount),
|
|
19
|
+
workload: z.literal(referenceWorkload)
|
|
20
|
+
})
|
|
21
|
+
.readonly();
|
|
22
|
+
function referenceChecksum() {
|
|
23
|
+
let checksum = 1;
|
|
24
|
+
for (let index = 0; index < iterations; index += 1) {
|
|
25
|
+
checksum = Math.abs(Math.imul(checksum + index, multiplier) + increment) % integerRange;
|
|
26
|
+
}
|
|
27
|
+
return checksum;
|
|
28
|
+
}
|
|
29
|
+
function hostMetadata() {
|
|
30
|
+
const cpus = os.cpus();
|
|
31
|
+
return {
|
|
32
|
+
architecture: process.arch,
|
|
33
|
+
availableParallelism: os.availableParallelism(),
|
|
34
|
+
cpuCount: cpus.length,
|
|
35
|
+
cpuModels: Array
|
|
36
|
+
.from(new Set(cpus.map(function cpuModel(cpu) {
|
|
37
|
+
return cpu.model;
|
|
38
|
+
})))
|
|
39
|
+
.toSorted(function alphabetical(left, right) {
|
|
40
|
+
return left.localeCompare(right);
|
|
41
|
+
}),
|
|
42
|
+
freeMemoryBytes: os.freemem(),
|
|
43
|
+
loadAverage: os.loadavg(),
|
|
44
|
+
nodeArguments: Array.from(process.execArgv),
|
|
45
|
+
nodeVersion: process.versions.node,
|
|
46
|
+
operatingSystem: process.platform,
|
|
47
|
+
operatingSystemRelease: os.release(),
|
|
48
|
+
totalMemoryBytes: os.totalmem()
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function machineClass(metadata) {
|
|
52
|
+
const classification = JSON.stringify({
|
|
53
|
+
architecture: metadata.architecture,
|
|
54
|
+
cpuCount: metadata.cpuCount,
|
|
55
|
+
cpuModels: metadata.cpuModels.map(function (model) {
|
|
56
|
+
return model.normalize('NFC');
|
|
57
|
+
}),
|
|
58
|
+
nodeArguments: metadata.nodeArguments.map(function (argument) {
|
|
59
|
+
return argument.normalize('NFC');
|
|
60
|
+
}),
|
|
61
|
+
nodeMajor: metadata.nodeVersion.split('.', 1)[0],
|
|
62
|
+
operatingSystem: metadata.operatingSystem,
|
|
63
|
+
totalMemoryBytes: metadata.totalMemoryBytes
|
|
64
|
+
});
|
|
65
|
+
const digest = createHash('sha256').update(classification).digest('hex').slice(0, machineClassDigestLength);
|
|
66
|
+
return `${metadata.operatingSystem}-${metadata.architecture}-${digest}`;
|
|
67
|
+
}
|
|
68
|
+
function calibrationSamples(expectedChecksum) {
|
|
69
|
+
referenceChecksum();
|
|
70
|
+
const samples = [];
|
|
71
|
+
for (let index = 0; index < sampleCount; index += 1) {
|
|
72
|
+
const startedAt = process.hrtime.bigint();
|
|
73
|
+
const checksum = referenceChecksum();
|
|
74
|
+
const elapsedMicroseconds = Number(process.hrtime.bigint() - startedAt) / nanosecondsPerMicrosecond;
|
|
75
|
+
if (checksum !== expectedChecksum || !Number.isFinite(elapsedMicroseconds) || elapsedMicroseconds <= 0) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
samples.push(elapsedMicroseconds);
|
|
79
|
+
}
|
|
80
|
+
return samples;
|
|
81
|
+
}
|
|
82
|
+
function referenceCalibration() {
|
|
83
|
+
const expectedChecksum = referenceChecksum();
|
|
84
|
+
const samples = calibrationSamples(expectedChecksum);
|
|
85
|
+
if (samples === null) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
const sorted = samples.toSorted(function byDuration(left, right) {
|
|
89
|
+
return left - right;
|
|
90
|
+
});
|
|
91
|
+
const medianMicroseconds = sorted[Math.floor(sampleCount / medianDivisor)];
|
|
92
|
+
return medianMicroseconds === undefined ? null : {
|
|
93
|
+
checksum: expectedChecksum,
|
|
94
|
+
iterations,
|
|
95
|
+
medianMicroseconds,
|
|
96
|
+
samplesMicroseconds: Array.from(samples),
|
|
97
|
+
workload: referenceWorkload
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export function calibrateBenchmarkHost() {
|
|
101
|
+
const metadata = hostMetadata();
|
|
102
|
+
if (metadata.cpuModels.length === 0) {
|
|
103
|
+
return {
|
|
104
|
+
kind: 'non-comparable',
|
|
105
|
+
metadata,
|
|
106
|
+
reason: 'CPU metadata is unavailable for machine-class attribution.'
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
const context = referenceCalibration();
|
|
110
|
+
return context === null
|
|
111
|
+
? { kind: 'non-comparable', metadata, reason: 'CPU reference calibration did not produce valid samples.' }
|
|
112
|
+
: { context, kind: 'comparable', machineClass: machineClass(metadata), metadata };
|
|
113
|
+
}
|
|
114
|
+
export function normalizeBenchmarkDuration(input) {
|
|
115
|
+
if (!Number.isFinite(input.durationMicroseconds) || input.durationMicroseconds < 0) {
|
|
116
|
+
throw new TypeError('Benchmark duration must be a finite, nonnegative number.');
|
|
117
|
+
}
|
|
118
|
+
if (input.actualCalibration.machineClass !== input.baselineCalibration.machineClass) {
|
|
119
|
+
throw new TypeError('Benchmark durations cannot be normalized across machine classes.');
|
|
120
|
+
}
|
|
121
|
+
const actual = referenceContextSchema.parse(input.actualCalibration.context);
|
|
122
|
+
const baseline = referenceContextSchema.parse(input.baselineCalibration.context);
|
|
123
|
+
const normalized = input.durationMicroseconds * (baseline.medianMicroseconds / actual.medianMicroseconds);
|
|
124
|
+
if (!Number.isFinite(normalized)) {
|
|
125
|
+
throw new TypeError('Normalized benchmark duration is not finite.');
|
|
126
|
+
}
|
|
127
|
+
return normalized;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=benchmark-calibration.entry-point.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"benchmark-calibration.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/run/benchmark-calibration.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAe3B,MAAM,UAAU,GAAG,SAAS,CAAC;AAC7B,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAC3C,MAAM,UAAU,GAAG,SAAS,CAAC;AAC7B,MAAM,SAAS,GAAG,aAAa,CAAC;AAChC,MAAM,YAAY,GAAG,aAAa,CAAC;AACnC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AACvC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,sBAAsB,GAAG,CAAC;KAC3B,YAAY,CAAC;IACV,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACxC,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IACjC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;IACvE,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;CACzC,CAAC;KACD,QAAQ,EAAE,CAAC;AAqBhB,SAAS,iBAAiB;IACtB,IAAI,QAAQ,GAAG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AAO,OAAO,KAAK,IAAI;QACnB,CAAC,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,0DAA0D,EAAE;QAC1G,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;AAC1F,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,KAAiC;IACxE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,oBAAoB,CAAC,IAAI,KAAK,CAAC,oBAAoB,GAAG,CAAC,EAAE,CAAC;QACjF,MAAM,IAAI,SAAS,CAAC,0DAA0D,CAAC,CAAC;IACpF,CAAC;IACD,IAAI,KAAK,CAAC,iBAAiB,CAAC,YAAY,KAAK,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,CAAC;QAClF,MAAM,IAAI,SAAS,CAAC,kEAAkE,CAAC,CAAC;IAC5F,CAAC;IACD,MAAM,MAAM,GAAG,sBAAsB,CAAC,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC7E,MAAM,QAAQ,GAAG,sBAAsB,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACjF,MAAM,UAAU,GAAG,KAAK,CAAC,oBAAoB,GAAG,CAAC,QAAQ,CAAC,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC1G,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,SAAS,CAAC,8CAA8C,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,UAAU,CAAC;AACtB,CAAC"}
|
|
@@ -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, CommandLineBenchmarkBaselineCommands, CommandLineBenchmarkBaselineListRequest, CommandLineBenchmarkBaselineRequest, 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,oCAAoC,EACpC,uCAAuC,EACvC,mCAAmC,EACnC,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"}
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import { createCommandLineCommandNamespace } from "../../run/command-line-command-namespace.js";
|
|
2
|
-
import { createUnimplementedCommand, loadUnimplementedBaselineCommands
|
|
3
|
-
import {
|
|
2
|
+
import { createUnimplementedCommand, loadUnimplementedBaselineCommands } from "../../run/command-line-unimplemented-commands.js";
|
|
3
|
+
import { loadConfig } from "./config.entry-point.js";
|
|
4
4
|
export { commandLineExitCodes } from "../../run/command-line-command.js";
|
|
5
|
-
export { defineConfig,
|
|
5
|
+
export { defineConfig, normalizeConfig, loadConfig, ConfigError } from "./config.entry-point.js";
|
|
6
6
|
const commandLoaders = {
|
|
7
7
|
loadBaselineCommands: loadUnimplementedBaselineCommands,
|
|
8
|
-
loadBenchmarkCommands
|
|
8
|
+
async loadBenchmarkCommands() {
|
|
9
|
+
const { createBenchmarkCommands } = await import("../../run/benchmark-commands.js");
|
|
10
|
+
const [runnerModule, orchestratorModule] = await Promise.all([
|
|
11
|
+
import("../../run/command-line-runner.js"),
|
|
12
|
+
import("../../run/run-orchestrator.entry-point.js")
|
|
13
|
+
]);
|
|
14
|
+
return createBenchmarkCommands({
|
|
15
|
+
createDefaultReporter: runnerModule.loadDefaultLineReporter,
|
|
16
|
+
loadConfig,
|
|
17
|
+
orchestrator: orchestratorModule.orchestrator
|
|
18
|
+
});
|
|
19
|
+
}
|
|
9
20
|
};
|
|
10
21
|
export function createNodeCommandLineRunner(options) {
|
|
11
22
|
const nodeCommandNamespace = createCommandLineCommandNamespace(commandLoaders);
|
|
@@ -24,7 +35,7 @@ export function createNodeCommandLineRunner(options) {
|
|
|
24
35
|
discoverRunFilesWithProjectRoot: runDependencies.runDiscovery.discoverRunFilesWithProjectRoot,
|
|
25
36
|
loadRunEngineModule: runDependencies.loadRunEngineModule,
|
|
26
37
|
loadRunTestModules: runDependencies.loadRunTestModules,
|
|
27
|
-
|
|
38
|
+
loadConfig,
|
|
28
39
|
startSupervisedChild: childProcessStarters.startSupervisedChild,
|
|
29
40
|
startWorkerPoolHost: childProcessStarters.startWorkerPoolHost
|
|
30
41
|
}
|
|
@@ -35,7 +46,17 @@ export function createNodeCommandLineRunner(options) {
|
|
|
35
46
|
};
|
|
36
47
|
return {
|
|
37
48
|
baseline: nodeCommandNamespace.baseline,
|
|
38
|
-
bench:
|
|
49
|
+
bench: {
|
|
50
|
+
baseline: nodeCommandNamespace.bench.baseline,
|
|
51
|
+
async listBenchmarks(request) {
|
|
52
|
+
const loadedRunner = await loadRunner();
|
|
53
|
+
return await loadedRunner.bench.listBenchmarks(request);
|
|
54
|
+
},
|
|
55
|
+
async runBenchmarks(request) {
|
|
56
|
+
const loadedRunner = await loadRunner();
|
|
57
|
+
return await loadedRunner.bench.runBenchmarks(request);
|
|
58
|
+
}
|
|
59
|
+
},
|
|
39
60
|
async listTests(request) {
|
|
40
61
|
const loadedRunner = await loadRunner();
|
|
41
62
|
return await loadedRunner.listTests(request);
|
|
@@ -61,7 +82,7 @@ async function loadDefaultRunner() {
|
|
|
61
82
|
discoverRunFilesWithProjectRoot: dependenciesModule.runDiscovery.discoverRunFilesWithProjectRoot,
|
|
62
83
|
loadRunEngineModule: dependenciesModule.loadRunEngineModule,
|
|
63
84
|
loadRunTestModules: dependenciesModule.loadRunTestModules,
|
|
64
|
-
|
|
85
|
+
loadConfig,
|
|
65
86
|
startSupervisedChild: childProcessStarters.startSupervisedChild,
|
|
66
87
|
startWorkerPoolHost: childProcessStarters.startWorkerPoolHost
|
|
67
88
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/run/command-line.entry-point.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iCAAiC,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,EACH,0BAA0B,EAC1B,iCAAiC,
|
|
1
|
+
{"version":3,"file":"command-line.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/run/command-line.entry-point.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iCAAiC,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,EACH,0BAA0B,EAC1B,iCAAiC,EACpC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EACH,oBAAoB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,YAAY,EACZ,eAAe,EACf,UAAU,EACV,WAAW,EACd,MAAM,yBAAyB,CAAC;AAEjC,MAAM,cAAc,GAAG;IACnB,oBAAoB,EAAE,iCAAiC;IACvD,KAAK,CAAC,qBAAqB;QACvB,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC;QAEpF,MAAM,CAAE,YAAY,EAAE,kBAAkB,CAAE,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAC3D,MAAM,CAAC,kCAAkC,CAAC;YAC1C,MAAM,CAAC,2CAA2C,CAAC;SACtD,CAAC,CAAC;QAEH,OAAO,uBAAuB,CAAC;YAC3B,qBAAqB,EAAE,YAAY,CAAC,uBAAuB;YAC3D,UAAU;YACV,YAAY,EAAE,kBAAkB,CAAC,YAAY;SAChD,CAAC,CAAC;IACP,CAAC;CACJ,CAAC;AAEF,MAAM,UAAU,2BAA2B,CAAC,OAAqC;IAC7E,MAAM,oBAAoB,GAAG,iCAAiC,CAAC,cAAc,C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E3E,MAAM,CAAC,MAAM,iBAAiB,GAAsB;IAChD,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;IACnC,KAAK,EAAE,gBAAgB,CAAC,KAAK;IAC7B,SAAS,EAAE,0BAA0B,CAAC,QAAQ,CAAC;IAC/C,aAAa,EAAE,0BAA0B,CAAC,gBAAgB,CAAC;IAC3D,KAAK,CAAC,SAAS,CAAC,OAAO;QACnB,MAAM,MAAM,GAAG,MAAM,iBAAiB,EAAE,CAAC;QAEzC,OAAO,MAAM,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IACD,KAAK,CAAC,QAAQ,CAAC,OAAO;QAClB,MAAM,MAAM,GAAG,MAAM,iBAAiB,EAAE,CAAC;QAEzC,OAAO,MAAM,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export { defineConfig } from '../../
|
|
3
|
-
export {
|
|
4
|
-
export type { IntegrationRetryPolicy, RetryArtifactPolicy } from '../../
|
|
5
|
-
export type {
|
|
6
|
-
export type {
|
|
1
|
+
export declare const loadConfig: import("../../config/config.ts").ConfigLoader;
|
|
2
|
+
export { defineConfig, normalizeConfig } from '../../config/config.ts';
|
|
3
|
+
export { ConfigError } from '../../config/config-error.ts';
|
|
4
|
+
export type { IntegrationRetryPolicy, RetryArtifactPolicy } from '../../config/execution.ts';
|
|
5
|
+
export type { ProjectIntegrationRetryPolicy } from '../../config/schema.ts';
|
|
6
|
+
export type { LoadedConfig, ConfigLoader, ConfigLoaderDependencies, ConfigLoadRequest, ProjectCoverageOutput, ProjectCoveragePolicy, ProjectCoverageSources, ProjectCoverageThresholds, ProjectAttachmentLimits, Config, ProjectIntegrationExecution, ProjectIntegrationProfileConfig, ProjectMeasuredResourceUsage, ProjectMicrotestExecution, ProjectMicrotestProfileConfig, ProjectProfileConfig, ProjectProfileFiles, ProjectProfilesConfig, ProjectResourceBudgets, ProjectResourceUsageConfig, ProjectTimingProfilePolicy, ProjectTimeoutConfig, ProjectUnmeasuredResourceUsage } from '../../config/config.ts';
|
|
7
|
+
export type { NormalizedConfig, ProfileConfig, BenchmarkProfileConfig, TestProfileConfig } from '../../config/types.ts';
|
|
8
|
+
export type { ProjectBenchmarkProfileConfig } from '../../config/schema.ts';
|
|
7
9
|
//# sourceMappingURL=config.entry-point.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/run/config.entry-point.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"config.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/run/config.entry-point.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,UAAU,+CAGrB,CAAC;AAEH,OAAO,EACH,YAAY,EACZ,eAAe,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAC7F,YAAY,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAC5E,YAAY,EACR,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,MAAM,EACN,2BAA2B,EAC3B,+BAA+B,EAC/B,4BAA4B,EAC5B,yBAAyB,EACzB,6BAA6B,EAC7B,oBAAoB,EACpB,mBAAmB,EACnB,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"}
|
|
@@ -8,7 +8,7 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte
|
|
|
8
8
|
};
|
|
9
9
|
import fs from 'node:fs/promises';
|
|
10
10
|
import { pathToFileURL } from 'node:url';
|
|
11
|
-
import {
|
|
11
|
+
import { createConfigLoader } from "../../config/config.js";
|
|
12
12
|
async function fileExists(filePath) {
|
|
13
13
|
try {
|
|
14
14
|
await fs.access(filePath);
|
|
@@ -21,10 +21,10 @@ async function fileExists(filePath) {
|
|
|
21
21
|
async function importModule(configPath) {
|
|
22
22
|
return await import(__rewriteRelativeImportExtension(pathToFileURL(configPath).href));
|
|
23
23
|
}
|
|
24
|
-
export const
|
|
24
|
+
export const loadConfig = createConfigLoader({
|
|
25
25
|
fileExists,
|
|
26
26
|
importModule
|
|
27
27
|
});
|
|
28
|
-
export { defineConfig } from "../../
|
|
29
|
-
export {
|
|
28
|
+
export { defineConfig, normalizeConfig } from "../../config/config.js";
|
|
29
|
+
export { ConfigError } from "../../config/config-error.js";
|
|
30
30
|
//# sourceMappingURL=config.entry-point.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/run/config.entry-point.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"config.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/run/config.entry-point.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,KAAK,UAAU,UAAU,CAAC,QAAgB;IACtC,IAAI,CAAC;QACD,MAAM,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAE1B,OAAO,IAAI,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC;AAED,KAAK,UAAU,YAAY,CAAC,UAAkB;IAC1C,OAAO,MAAM,MAAM,kCAAC,aAAa,CAAC,UAAU,CAAC,CAAC,IAAI,EAAY,CAAC;AACnE,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC;IACzC,UAAU;IACV,YAAY;CACf,CAAC,CAAC;AAEH,OAAO,EACH,YAAY,EACZ,eAAe,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const runIfMain: import("../../run/run-if-main.ts").RunIfMain;
|
|
2
2
|
export { orchestrator } from '../../run/run-orchestrator.entry-point.ts';
|
|
3
|
-
export { defineConfig,
|
|
3
|
+
export { defineConfig, normalizeConfig, loadConfig, ConfigError } from './config.entry-point.ts';
|
|
4
4
|
export { RunExecutionPlanError, RunResolutionError } from '../../run/run-errors.ts';
|
|
5
|
-
export type { IntegrationRetryPolicy, RetryArtifactPolicy,
|
|
5
|
+
export type { IntegrationRetryPolicy, RetryArtifactPolicy, ProjectIntegrationRetryPolicy } from './config.entry-point.ts';
|
|
6
6
|
export type { PlannedResourceOwner, ResourceOwnerPlacement, ResourceOwnershipPlan } from '../../run/resource-ownership-plan.ts';
|
|
7
|
-
export type {
|
|
7
|
+
export type { LoadedConfig, ConfigLoader, ConfigLoaderDependencies, ConfigLoadRequest, ProjectCoverageOutput, ProjectCoveragePolicy, ProjectCoverageSources, ProjectCoverageThresholds, ProjectAttachmentLimits, Config, ProjectIntegrationExecution, ProjectIntegrationProfileConfig, ProjectMeasuredResourceUsage, ProjectMicrotestExecution, ProjectMicrotestProfileConfig, ProjectProfileFiles, ProjectProfileConfig, ProjectProfilesConfig, ProjectResourceBudgets, ProjectResourceUsageConfig, ProjectTimingProfilePolicy, ProjectTimeoutConfig, ProjectUnmeasuredResourceUsage } from '../../config/config.ts';
|
|
8
8
|
export type { RunIfMain, RunIfMainDependencies } from '../../run/run-if-main.ts';
|
|
9
9
|
export type { RunIfMainProfileResolver, RunIfMainProfileResolverDependencies } from '../../run/run-if-main-profile.ts';
|
|
10
10
|
export type { RunIfMainOptions, RunIfMainRootOptions } from '../../run/run-if-main-options.ts';
|
|
@@ -12,8 +12,10 @@ export type { ExecutionPlanResourceFacts, RunExecutionPlanConflict, RunResolutio
|
|
|
12
12
|
export type { RunInvocationTimingOptions } from '../../run/run-timing-collection.ts';
|
|
13
13
|
export type { RuntimeDimensions, RuntimeId, RuntimeScenarioBindings, WorkId, WorkloadId } from '../../engine/identity.ts';
|
|
14
14
|
export type { DynamicWorkUnitId, PlacementAttemptId, PlacementAttemptInterruptionCause, PlacementAttemptReason, PlacementRecoveryDecision, PlacementTrace, PlacementTraceEntry, PlacementWorkerId, TraceWorkUnitId } from '../../run/placement-trace.ts';
|
|
15
|
-
export type {
|
|
15
|
+
export type { CollectedRunCase, CollectedRunFile, CollectedRunPlan, ExecutorDescriptor, PlacementAssignment, PlacementLane, PlacementPlan, ResolvedRun, ResolvedRunPlan, RunCaseFacts, RunCommand, RunDebugRequest, RunEngineFacts, RunEnvironmentFacts, RunExecutionRequest, RunFacts, RunExecutionFacts, RunHostProcessFacts, RunHostProcessReason, BenchmarkOrchestrator, BenchmarkBaselineCommand, BenchmarkBaselineListCommand, BenchmarkBaselineOrchestrator, BenchmarkBaselineRunResult, RunReporterDeliveryResult, RunOrchestrator, RunReproducibilityFacts, RunRequest, RunSeed, RunShard, RunTestFamily, RunWorkerCountFacts, SerializedValue, DuplicateExecutionSafety, WorkUnitId, WorkUnit, WorkUnitMode } from '../../run/run-types.ts';
|
|
16
|
+
export type { CoverageOutput, NormalizedConfig, CoveragePolicy, CoverageSourcePolicy, CoverageThresholds, HostProcess, IntegrationExecution, IntegrationProfileConfig, LoaderConfig, MaxConcurrency, MicrotestExecution, MicrotestProfileConfig, RunOrder, ProcessModel, ProfileConfig, BenchmarkExecution, BenchmarkProfileConfig, TestProfileConfig, ProfileFiles, ProfilesConfig, ResourceBudgets, ResourceUsagePolicy, Scheduling, TimeoutPolicy, TimingCollectionMode, TimingCollectionOverride, TimingProfilePolicy, WorkDistribution, WorkGroup, WorkGroupGranularity, WorkGroupOrder, WorkGroupScheduling, WorkGroupWorkerLifecycle, WorkerPoolAssignmentPolicy, WorkerPoolDispatchPolicy, WorkerPoolHedgingPolicy, WorkerLifecycle } from '../../config/types.ts';
|
|
16
17
|
export type { RunEngineSelection } from '../../run/run-request-types.ts';
|
|
17
18
|
export type { RunFilter, RunRuntimeDimensionFilter, RunRuntimeFilter, RunRuntimeScenarioFilter, RunRuntimeVariantFilter, RunSelection, RunStringFilterField } from '../../run/run-request-types.ts';
|
|
18
19
|
export type { ResolvedRuntime, RunRecord, RunRecordCoverage, RunRecordRequest, RunRecordResult, RunRecordVersions } from '../../run/run-record-types.ts';
|
|
20
|
+
export type { ProjectBenchmarkProfileConfig } from '../../config/schema.ts';
|
|
19
21
|
//# sourceMappingURL=run.entry-point.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/run/run.entry-point.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,SAAS,8CAapB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EACH,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"run.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/run/run.entry-point.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,SAAS,8CAapB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAA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AAoB,EACvB,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACR,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACpB,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -3,11 +3,11 @@ import { fileURLToPath } from 'node:url';
|
|
|
3
3
|
import { createRunIfMain } from "../../run/run-if-main.js";
|
|
4
4
|
import { createDirectProfileResolver } from "../../run/run-if-main-profile.js";
|
|
5
5
|
import { runDirectEntrypoint } from "../../run/run-orchestrator.entry-point.js";
|
|
6
|
-
import {
|
|
6
|
+
import { loadConfig } from "./config.entry-point.js";
|
|
7
7
|
const resolveDirectProfile = createDirectProfileResolver({
|
|
8
8
|
fileURLToPath,
|
|
9
9
|
glob,
|
|
10
|
-
|
|
10
|
+
loadConfig,
|
|
11
11
|
realpath,
|
|
12
12
|
stat
|
|
13
13
|
});
|
|
@@ -26,6 +26,6 @@ export const runIfMain = createRunIfMain({
|
|
|
26
26
|
stderr: process.stderr
|
|
27
27
|
});
|
|
28
28
|
export { orchestrator } from "../../run/run-orchestrator.entry-point.js";
|
|
29
|
-
export { defineConfig,
|
|
29
|
+
export { defineConfig, normalizeConfig, loadConfig, ConfigError } from "./config.entry-point.js";
|
|
30
30
|
export { RunExecutionPlanError, RunResolutionError } from "../../run/run-errors.js";
|
|
31
31
|
//# sourceMappingURL=run.entry-point.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/run/run.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"run.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/run/run.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,MAAM,oBAAoB,GAAG,2BAA2B,CAAC;IACrD,aAAa;IACb,IAAI;IACJ,UAAU;IACV,QAAQ;IACR,IAAI;CACP,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC;IACrC,uBAAuB;QACnB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC;IACzB,CAAC;IACD,YAAY;QACR,OAAO,OAAO,CAAC,QAAQ,CAAC;IAC5B,CAAC;IACD,oBAAoB;IACpB,mBAAmB;IACnB,WAAW,CAAC,QAAQ;QAChB,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAChC,CAAC;IACD,MAAM,EAAE,OAAO,CAAC,MAAM;CACzB,CAAC,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EACH,YAAY,EACZ,eAAe,EACf,UAAU,EACV,WAAW,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
|