@overkill-dev/run 0.0.60 → 0.0.61

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.
Files changed (228) hide show
  1. package/engine/coverage-artifact.d.ts +36 -0
  2. package/engine/coverage-artifact.d.ts.map +1 -0
  3. package/engine/execution-options.d.ts +4 -1
  4. package/engine/execution-options.d.ts.map +1 -1
  5. package/engine/execution-options.js.map +1 -1
  6. package/engine/execution-supervision-state.d.ts +30 -0
  7. package/engine/execution-supervision-state.d.ts.map +1 -0
  8. package/engine/execution-supervision-state.js +25 -0
  9. package/engine/execution-supervision-state.js.map +1 -0
  10. package/engine/execution-supervision.d.ts +5 -25
  11. package/engine/execution-supervision.d.ts.map +1 -1
  12. package/engine/execution-supervision.js +9 -19
  13. package/engine/execution-supervision.js.map +1 -1
  14. package/engine/execution-test-plan-cases.js +108 -71
  15. package/engine/execution-test-plan-cases.js.map +1 -1
  16. package/engine/identity.d.ts +2 -0
  17. package/engine/identity.d.ts.map +1 -1
  18. package/engine/identity.js +2 -1
  19. package/engine/identity.js.map +1 -1
  20. package/engine/reporter-event-queue.js +1 -1
  21. package/engine/reporter-event-queue.js.map +1 -1
  22. package/engine/run-result.d.ts +12 -5
  23. package/engine/run-result.d.ts.map +1 -1
  24. package/engine/run-result.js.map +1 -1
  25. package/engine/run-timings.d.ts +1 -1
  26. package/engine/run-timings.d.ts.map +1 -1
  27. package/engine/run-timings.js +3 -0
  28. package/engine/run-timings.js.map +1 -1
  29. package/engine/test-plan.d.ts +1 -1
  30. package/engine/test-plan.d.ts.map +1 -1
  31. package/package.json +10 -3
  32. package/packages/engine/engine.entry-point.d.ts +2 -1
  33. package/packages/engine/engine.entry-point.d.ts.map +1 -1
  34. package/packages/engine/engine.entry-point.js.map +1 -1
  35. package/packages/run/filters.entry-point.d.ts +2 -2
  36. package/packages/run/filters.entry-point.d.ts.map +1 -1
  37. package/packages/run/filters.entry-point.js +1 -1
  38. package/packages/run/filters.entry-point.js.map +1 -1
  39. package/packages/run/run.entry-point.d.ts +4 -2
  40. package/packages/run/run.entry-point.d.ts.map +1 -1
  41. package/packages/run/run.entry-point.js +2 -8
  42. package/packages/run/run.entry-point.js.map +1 -1
  43. package/readme.md +24 -5
  44. package/reporters/human-reporter-rendering.js +16 -1
  45. package/reporters/human-reporter-rendering.js.map +1 -1
  46. package/reporters/line-reporter.js +9 -0
  47. package/reporters/line-reporter.js.map +1 -1
  48. package/resources/resources.d.ts +1 -0
  49. package/resources/resources.d.ts.map +1 -1
  50. package/resources/resources.js.map +1 -1
  51. package/resources/runtime-definition.d.ts +2 -0
  52. package/resources/runtime-definition.d.ts.map +1 -1
  53. package/resources/runtime-definition.js +1 -0
  54. package/resources/runtime-definition.js.map +1 -1
  55. package/run/collected-run-plan.js +13 -0
  56. package/run/collected-run-plan.js.map +1 -1
  57. package/run/command-line-runner.d.ts.map +1 -1
  58. package/run/command-line-runner.js +2 -0
  59. package/run/command-line-runner.js.map +1 -1
  60. package/run/coverage-reporting.js +142 -0
  61. package/run/coverage-reporting.js.map +1 -0
  62. package/run/coverage-session.js +8 -0
  63. package/run/coverage-session.js.map +1 -0
  64. package/run/current-process-run-orchestrator.d.ts +2 -1
  65. package/run/current-process-run-orchestrator.d.ts.map +1 -1
  66. package/run/current-process-run-orchestrator.js +30 -1
  67. package/run/current-process-run-orchestrator.js.map +1 -1
  68. package/run/direct-entrypoint-collection.js +27 -0
  69. package/run/direct-entrypoint-collection.js.map +1 -0
  70. package/run/duration-history-schema.d.ts +251 -0
  71. package/run/duration-history-schema.d.ts.map +1 -0
  72. package/run/duration-history-schema.js +121 -0
  73. package/run/duration-history-schema.js.map +1 -0
  74. package/run/duration-history.d.ts +2 -2
  75. package/run/duration-history.d.ts.map +1 -1
  76. package/run/duration-history.js +3 -82
  77. package/run/duration-history.js.map +1 -1
  78. package/run/path-containment.js +2 -0
  79. package/run/path-containment.js.map +1 -0
  80. package/run/profile-file-glob.js +18 -0
  81. package/run/profile-file-glob.js.map +1 -1
  82. package/run/resource-lifecycle-boundaries.js +20 -5
  83. package/run/resource-lifecycle-boundaries.js.map +1 -1
  84. package/run/resource-lifecycle-cache-identity.js +4 -0
  85. package/run/resource-lifecycle-cache-identity.js.map +1 -1
  86. package/run/resource-lifecycle-composition.d.ts +1 -1
  87. package/run/resource-lifecycle-composition.d.ts.map +1 -1
  88. package/run/resource-lifecycle-composition.js +4 -4
  89. package/run/resource-lifecycle-composition.js.map +1 -1
  90. package/run/run-collected-planning.js +1 -1
  91. package/run/run-collected-planning.js.map +1 -1
  92. package/run/run-collection-source-types.d.ts +12 -0
  93. package/run/run-collection-source-types.d.ts.map +1 -0
  94. package/run/run-collection-source.d.ts +9 -0
  95. package/run/run-collection-source.d.ts.map +1 -0
  96. package/run/run-collection-source.js +9 -0
  97. package/run/run-collection-source.js.map +1 -0
  98. package/run/run-config-defaults.js +13 -4
  99. package/run/run-config-defaults.js.map +1 -1
  100. package/run/run-config-schema.d.ts +12 -0
  101. package/run/run-config-schema.d.ts.map +1 -1
  102. package/run/run-config-schema.js +5 -0
  103. package/run/run-config-schema.js.map +1 -1
  104. package/run/run-config.d.ts +1 -1
  105. package/run/run-config.d.ts.map +1 -1
  106. package/run/run-config.js +4 -9
  107. package/run/run-config.js.map +1 -1
  108. package/run/run-coverage.js +36 -0
  109. package/run/run-coverage.js.map +1 -0
  110. package/run/run-discovery.js +1 -2
  111. package/run/run-discovery.js.map +1 -1
  112. package/run/run-empty-shard.js +3 -4
  113. package/run/run-empty-shard.js.map +1 -1
  114. package/run/run-engine-selection.d.ts +1 -1
  115. package/run/run-engine-selection.d.ts.map +1 -1
  116. package/run/run-execution-config.d.ts +28 -0
  117. package/run/run-execution-config.d.ts.map +1 -0
  118. package/run/run-facts.js +2 -0
  119. package/run/run-facts.js.map +1 -1
  120. package/run/run-filter-grammar.d.ts +1 -1
  121. package/run/run-filter-grammar.d.ts.map +1 -1
  122. package/run/run-if-main-options.d.ts +0 -5
  123. package/run/run-if-main-options.d.ts.map +1 -1
  124. package/run/run-if-main-options.js +0 -16
  125. package/run/run-if-main-options.js.map +1 -1
  126. package/run/run-if-main-profile.d.ts.map +1 -1
  127. package/run/run-if-main-profile.js +0 -10
  128. package/run/run-if-main-profile.js.map +1 -1
  129. package/run/run-if-main.d.ts +2 -10
  130. package/run/run-if-main.d.ts.map +1 -1
  131. package/run/run-if-main.js +56 -62
  132. package/run/run-if-main.js.map +1 -1
  133. package/run/run-in-process-execution.js +3 -3
  134. package/run/run-in-process-execution.js.map +1 -1
  135. package/run/run-input-resolution.js +11 -2
  136. package/run/run-input-resolution.js.map +1 -1
  137. package/run/run-isolated-command.js +46 -20
  138. package/run/run-isolated-command.js.map +1 -1
  139. package/run/run-isolated-process.js +68 -101
  140. package/run/run-isolated-process.js.map +1 -1
  141. package/run/run-local-command.js +131 -0
  142. package/run/run-local-command.js.map +1 -0
  143. package/run/run-local-execution.js +7 -10
  144. package/run/run-local-execution.js.map +1 -1
  145. package/run/run-local-resolution.js +10 -5
  146. package/run/run-local-resolution.js.map +1 -1
  147. package/run/run-local-test-plan.js +6 -1
  148. package/run/run-local-test-plan.js.map +1 -1
  149. package/run/run-orchestrator.d.ts +6 -0
  150. package/run/run-orchestrator.d.ts.map +1 -1
  151. package/run/run-orchestrator.entry-point.d.ts +1 -2
  152. package/run/run-orchestrator.entry-point.d.ts.map +1 -1
  153. package/run/run-orchestrator.entry-point.js +4 -4
  154. package/run/run-orchestrator.entry-point.js.map +1 -1
  155. package/run/run-orchestrator.js +11 -4
  156. package/run/run-orchestrator.js.map +1 -1
  157. package/run/run-ordering.js +36 -0
  158. package/run/run-ordering.js.map +1 -0
  159. package/run/run-request-types.d.ts +89 -0
  160. package/run/run-request-types.d.ts.map +1 -0
  161. package/run/run-selection-filters.d.ts +7 -2
  162. package/run/run-selection-filters.d.ts.map +1 -1
  163. package/run/run-selection-filters.js +114 -15
  164. package/run/run-selection-filters.js.map +1 -1
  165. package/run/run-selection.js +10 -50
  166. package/run/run-selection.js.map +1 -1
  167. package/run/run-supervised-process.js +108 -0
  168. package/run/run-supervised-process.js.map +1 -0
  169. package/run/run-support.js +9 -0
  170. package/run/run-support.js.map +1 -1
  171. package/run/run-test-plan.js +13 -5
  172. package/run/run-test-plan.js.map +1 -1
  173. package/run/run-types.d.ts +12 -96
  174. package/run/run-types.d.ts.map +1 -1
  175. package/run/run-types.js +0 -18
  176. package/run/run-types.js.map +1 -1
  177. package/run/run-validation.js +1 -1
  178. package/run/run-validation.js.map +1 -1
  179. package/run/run.d.ts +10 -0
  180. package/run/run.d.ts.map +1 -0
  181. package/run/run.js +27 -54
  182. package/run/run.js.map +1 -1
  183. package/run/runtime-matrix-expansion.js +7 -0
  184. package/run/runtime-matrix-expansion.js.map +1 -1
  185. package/run/supervised-child-process.d.ts +24 -2
  186. package/run/supervised-child-process.d.ts.map +1 -1
  187. package/run/supervised-child-process.js +40 -1
  188. package/run/supervised-child-process.js.map +1 -1
  189. package/run/supervised-child-test-plan.js +1 -0
  190. package/run/supervised-child-test-plan.js.map +1 -1
  191. package/run/supervised-child.js +2 -5
  192. package/run/supervised-child.js.map +1 -1
  193. package/run/supervised-protocol.js +2 -7
  194. package/run/supervised-protocol.js.map +1 -1
  195. package/run/supervised-run-collection.js +2 -0
  196. package/run/supervised-run-collection.js.map +1 -1
  197. package/run/supervised-run-runtime.js +4 -105
  198. package/run/supervised-run-runtime.js.map +1 -1
  199. package/run/supervised-run-state.d.ts +4 -0
  200. package/run/supervised-run-state.d.ts.map +1 -1
  201. package/run/supervised-run-state.js +22 -0
  202. package/run/supervised-run-state.js.map +1 -1
  203. package/run/supervised-run.js +11 -79
  204. package/run/supervised-run.js.map +1 -1
  205. package/run/work-distribution-config.js +1 -1
  206. package/run/work-distribution-config.js.map +1 -1
  207. package/run/work-unit-planning.js +1 -1
  208. package/run/work-unit-planning.js.map +1 -1
  209. package/run/worker-pool-command.js +3 -0
  210. package/run/worker-pool-command.js.map +1 -1
  211. package/run/worker-pool-hedged-arbitration.js +3 -1
  212. package/run/worker-pool-hedged-arbitration.js.map +1 -1
  213. package/run/worker-pool-protocol.js.map +1 -1
  214. package/run/worker-pool-task-events.js +7 -5
  215. package/run/worker-pool-task-events.js.map +1 -1
  216. package/run/worker-pool-worker-plan.js +1 -0
  217. package/run/worker-pool-worker-plan.js.map +1 -1
  218. package/run/worker-pool-worker.js +2 -5
  219. package/run/worker-pool-worker.js.map +1 -1
  220. package/sbom.cdx.json +72 -4
  221. package/run/default-run-engine.d.ts +0 -3
  222. package/run/default-run-engine.d.ts.map +0 -1
  223. package/run/direct-runtime-policy.js +0 -24
  224. package/run/direct-runtime-policy.js.map +0 -1
  225. package/run/resource-usage.d.ts +0 -17
  226. package/run/resource-usage.d.ts.map +0 -1
  227. package/run/run-if-main-facts.js +0 -95
  228. 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.60",
20
- "bom-ref": "pkg:npm/@overkill-dev/run@0.0.60",
21
- "purl": "pkg:npm/@overkill-dev/run@0.0.60"
19
+ "version": "0.0.61",
20
+ "bom-ref": "pkg:npm/@overkill-dev/run@0.0.61",
21
+ "purl": "pkg:npm/@overkill-dev/run@0.0.61"
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.60",
252
+ "ref": "pkg:npm/@overkill-dev/run@0.0.61",
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,3 +0,0 @@
1
- import { type Engine } from '../engine/engine.ts';
2
- export declare const defaultRunEngine: Engine;
3
- //# sourceMappingURL=default-run-engine.d.ts.map
@@ -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"}
@@ -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"}
@@ -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;QACn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