@overkill-dev/run 0.0.84 → 0.0.85

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 (612) hide show
  1. package/attachments/failure-artifact-stream.js +2 -2
  2. package/attachments/failure-artifact-stream.js.map +1 -1
  3. package/attachments/run-json-artifact.js +1 -1
  4. package/attachments/run-json-artifact.js.map +1 -1
  5. package/baselines/calibration-store.js +2 -2
  6. package/baselines/calibration-store.js.map +1 -1
  7. package/baselines/performance-adapter.d.ts +2 -2
  8. package/baselines/performance-adapter.d.ts.map +1 -1
  9. package/baselines/performance-baseline.d.ts +2 -2
  10. package/baselines/performance-baseline.d.ts.map +1 -1
  11. package/baselines/performance-baseline.js +1 -1
  12. package/baselines/performance-baseline.js.map +1 -1
  13. package/baselines/performance-check.js +2 -2
  14. package/baselines/performance-check.js.map +1 -1
  15. package/baselines/performance-evaluation.js +1 -1
  16. package/baselines/performance-evaluation.js.map +1 -1
  17. package/baselines/performance-observation.js +1 -1
  18. package/baselines/performance-observation.js.map +1 -1
  19. package/baselines/performance-plan.js +3 -3
  20. package/baselines/performance-plan.js.map +1 -1
  21. package/baselines/performance-store.js +2 -2
  22. package/baselines/performance-store.js.map +1 -1
  23. package/baselines/performance-workflow.js +2 -2
  24. package/baselines/performance-workflow.js.map +1 -1
  25. package/bench/benchmark-statistics-schema.d.ts +1 -1
  26. package/bench/benchmark-statistics-schema.d.ts.map +1 -1
  27. package/bench/calibration-evidence.js +1 -1
  28. package/bench/calibration-evidence.js.map +1 -1
  29. package/bench/calibration-report.d.ts +1 -1
  30. package/bench/calibration-report.d.ts.map +1 -1
  31. package/bench/timeline-schema.js +1 -1
  32. package/bench/timeline-schema.js.map +1 -1
  33. package/config/config.js +1 -1
  34. package/config/config.js.map +1 -1
  35. package/config/execution.d.ts +1 -1
  36. package/config/execution.d.ts.map +1 -1
  37. package/config/property-policy.js +1 -1
  38. package/config/property-policy.js.map +1 -1
  39. package/config/schema.d.ts +4 -4
  40. package/config/schema.d.ts.map +1 -1
  41. package/config/schema.js +2 -2
  42. package/config/schema.js.map +1 -1
  43. package/config/types.d.ts +6 -6
  44. package/config/types.d.ts.map +1 -1
  45. package/package.json +4 -28
  46. package/packages/run/run.entry-point.d.ts +3 -3
  47. package/packages/run/run.entry-point.d.ts.map +1 -1
  48. package/packages/run/run.entry-point.js +1 -1
  49. package/packages/run/run.entry-point.js.map +1 -1
  50. package/reporters/human-reporter-rendering.js +2 -2
  51. package/reporters/human-reporter-rendering.js.map +1 -1
  52. package/reporters/line-failure-rendering.js +1 -1
  53. package/reporters/line-failure-rendering.js.map +1 -1
  54. package/reporters/line-reporter.js +2 -2
  55. package/reporters/line-reporter.js.map +1 -1
  56. package/reporters/progress-reporter.js +1 -1
  57. package/reporters/progress-reporter.js.map +1 -1
  58. package/reporters/tree-reporter.js +1 -1
  59. package/reporters/tree-reporter.js.map +1 -1
  60. package/resources/resource-definition-shape.d.ts +1 -1
  61. package/resources/resource-definition-shape.d.ts.map +1 -1
  62. package/resources/resource-workload-binding.js +2 -2
  63. package/resources/resource-workload-binding.js.map +1 -1
  64. package/run/attachment-eligibility.js +1 -1
  65. package/run/attachment-eligibility.js.map +1 -1
  66. package/run/attachment-execution.js +2 -2
  67. package/run/attachment-execution.js.map +1 -1
  68. package/run/attachment-failure.js +1 -1
  69. package/run/attachment-failure.js.map +1 -1
  70. package/run/attachment-protocol.js +1 -1
  71. package/run/attachment-protocol.js.map +1 -1
  72. package/run/attachment-reporter.js +2 -2
  73. package/run/attachment-reporter.js.map +1 -1
  74. package/run/attachment-results.js +3 -3
  75. package/run/attachment-results.js.map +1 -1
  76. package/run/attachment-retention.js +1 -1
  77. package/run/attachment-retention.js.map +1 -1
  78. package/run/attachment-store.js +1 -1
  79. package/run/attachment-store.js.map +1 -1
  80. package/run/benchmark-baseline-commands.js +1 -1
  81. package/run/benchmark-baseline-commands.js.map +1 -1
  82. package/run/benchmark-baseline-finalization.js +1 -1
  83. package/run/benchmark-baseline-finalization.js.map +1 -1
  84. package/run/benchmark-garbage-collection.js +1 -1
  85. package/run/benchmark-garbage-collection.js.map +1 -1
  86. package/run/benchmark-policy-schema.js +1 -1
  87. package/run/benchmark-policy-schema.js.map +1 -1
  88. package/run/benchmark-report-metadata.js +1 -1
  89. package/run/benchmark-report-metadata.js.map +1 -1
  90. package/run/benchmark-result-schema.js +1 -1
  91. package/run/benchmark-result-schema.js.map +1 -1
  92. package/run/calibration-capture-session.js +2 -2
  93. package/run/calibration-capture-session.js.map +1 -1
  94. package/run/calibration-inventory.js +2 -2
  95. package/run/calibration-inventory.js.map +1 -1
  96. package/run/calibration-maintenance.js +1 -1
  97. package/run/calibration-maintenance.js.map +1 -1
  98. package/run/capability-policy-snapshots.d.ts +1 -1
  99. package/run/capability-policy-snapshots.d.ts.map +1 -1
  100. package/run/capability-policy.js +3 -3
  101. package/run/capability-policy.js.map +1 -1
  102. package/run/collected-run-execution.js +1 -1
  103. package/run/collected-run-execution.js.map +1 -1
  104. package/run/collected-run-plan-schema.js +2 -2
  105. package/run/collected-run-plan-schema.js.map +1 -1
  106. package/run/collected-run-plan.js +4 -4
  107. package/run/collected-run-plan.js.map +1 -1
  108. package/run/command-line-command.d.ts +1 -1
  109. package/run/command-line-command.d.ts.map +1 -1
  110. package/run/command-line-command.js +1 -1
  111. package/run/command-line-command.js.map +1 -1
  112. package/run/command-line-config.d.ts +1 -1
  113. package/run/command-line-config.d.ts.map +1 -1
  114. package/run/default-direct-reporter.js +1 -1
  115. package/run/default-direct-reporter.js.map +1 -1
  116. package/run/default-run-engine.js +7 -7
  117. package/run/default-run-engine.js.map +1 -1
  118. package/run/direct-entrypoint-collection.js +3 -3
  119. package/run/direct-entrypoint-collection.js.map +1 -1
  120. package/run/execution-plan-resolution.js +1 -1
  121. package/run/execution-plan-resolution.js.map +1 -1
  122. package/run/execution-session-child.js +1 -1
  123. package/run/execution-session-child.js.map +1 -1
  124. package/run/execution-session-collected.js +1 -1
  125. package/run/execution-session-collected.js.map +1 -1
  126. package/run/execution-session-host.js +1 -1
  127. package/run/execution-session-host.js.map +1 -1
  128. package/run/execution-session-lifecycle.js +2 -2
  129. package/run/execution-session-lifecycle.js.map +1 -1
  130. package/run/execution-session-observation.js +1 -1
  131. package/run/execution-session-observation.js.map +1 -1
  132. package/run/execution-session-schema.js +1 -1
  133. package/run/execution-session-schema.js.map +1 -1
  134. package/run/execution-session-types.d.ts +1 -1
  135. package/run/execution-session-types.d.ts.map +1 -1
  136. package/run/execution-session.js +1 -1
  137. package/run/execution-session.js.map +1 -1
  138. package/run/failure-artifact-retention.js +2 -2
  139. package/run/failure-artifact-retention.js.map +1 -1
  140. package/run/frozen-run-policy.js +1 -1
  141. package/run/frozen-run-policy.js.map +1 -1
  142. package/run/initialized-run-collection.js +1 -1
  143. package/run/initialized-run-collection.js.map +1 -1
  144. package/run/node-command-line-runner.d.ts +1 -1
  145. package/run/node-command-line-runner.d.ts.map +1 -1
  146. package/run/node-process-policy-observation.js +1 -1
  147. package/run/node-process-policy-observation.js.map +1 -1
  148. package/run/node-run-execution.js +1 -1
  149. package/run/node-run-execution.js.map +1 -1
  150. package/run/node-run-orchestrator-dependencies.js +1 -1
  151. package/run/node-run-orchestrator-dependencies.js.map +1 -1
  152. package/run/permission-denial-runtime-policy.js +3 -3
  153. package/run/permission-denial-runtime-policy.js.map +1 -1
  154. package/run/placement-trace.d.ts +2 -2
  155. package/run/placement-trace.d.ts.map +1 -1
  156. package/run/property-collection.js +1 -1
  157. package/run/property-collection.js.map +1 -1
  158. package/run/recorded-coverage-session.js +1 -1
  159. package/run/recorded-coverage-session.js.map +1 -1
  160. package/run/reporter-event-schema.js +1 -1
  161. package/run/reporter-event-schema.js.map +1 -1
  162. package/run/resource-lifecycle-boundaries.js +1 -1
  163. package/run/resource-lifecycle-boundaries.js.map +1 -1
  164. package/run/resource-lifecycle-cache-identity.js +2 -2
  165. package/run/resource-lifecycle-cache-identity.js.map +1 -1
  166. package/run/resource-lifecycle-composition.d.ts +1 -1
  167. package/run/resource-lifecycle-composition.d.ts.map +1 -1
  168. package/run/resource-lifecycle-error.d.ts +1 -1
  169. package/run/resource-lifecycle-error.d.ts.map +1 -1
  170. package/run/resource-lifecycle-error.js +1 -1
  171. package/run/resource-lifecycle-error.js.map +1 -1
  172. package/run/resource-lifecycle-session-acquirer.js +1 -1
  173. package/run/resource-lifecycle-session-acquirer.js.map +1 -1
  174. package/run/resource-lifecycle-state.d.ts +3 -3
  175. package/run/resource-lifecycle-state.d.ts.map +1 -1
  176. package/run/resource-lifecycle-state.js +2 -2
  177. package/run/resource-lifecycle-state.js.map +1 -1
  178. package/run/resource-ownership-plan.d.ts +2 -2
  179. package/run/resource-ownership-plan.d.ts.map +1 -1
  180. package/run/retry-artifact-retention.js +1 -1
  181. package/run/retry-artifact-retention.js.map +1 -1
  182. package/run/run-artifact-schema.d.ts +1 -1
  183. package/run/run-artifact-schema.d.ts.map +1 -1
  184. package/run/run-case-facts.js +1 -1
  185. package/run/run-case-facts.js.map +1 -1
  186. package/run/run-collection-error-result.js +2 -2
  187. package/run/run-collection-error-result.js.map +1 -1
  188. package/run/run-discovery-types.d.ts +1 -1
  189. package/run/run-discovery-types.d.ts.map +1 -1
  190. package/run/run-engine-primitives.d.ts +8 -8
  191. package/run/run-engine-primitives.d.ts.map +1 -1
  192. package/run/run-engine-selection.d.ts +1 -1
  193. package/run/run-engine-selection.d.ts.map +1 -1
  194. package/run/run-errors.d.ts +2 -2
  195. package/run/run-errors.d.ts.map +1 -1
  196. package/run/run-errors.js +1 -1
  197. package/run/run-errors.js.map +1 -1
  198. package/run/run-if-main-options.d.ts +3 -3
  199. package/run/run-if-main-options.d.ts.map +1 -1
  200. package/run/run-if-main.d.ts +1 -1
  201. package/run/run-if-main.d.ts.map +1 -1
  202. package/run/run-list-renderer.js +2 -2
  203. package/run/run-list-renderer.js.map +1 -1
  204. package/run/run-local-sharding.js +1 -1
  205. package/run/run-local-sharding.js.map +1 -1
  206. package/run/run-local-test-plan.js +21 -17
  207. package/run/run-local-test-plan.js.map +1 -1
  208. package/run/run-record-outcomes.d.ts +5 -5
  209. package/run/run-record-outcomes.d.ts.map +1 -1
  210. package/run/run-record-result.d.ts +1 -1
  211. package/run/run-record-result.d.ts.map +1 -1
  212. package/run/run-record-result.js +2 -2
  213. package/run/run-record-result.js.map +1 -1
  214. package/run/run-record-storage.js +1 -1
  215. package/run/run-record-storage.js.map +1 -1
  216. package/run/run-record-types.d.ts +3 -3
  217. package/run/run-record-types.d.ts.map +1 -1
  218. package/run/run-request-types.d.ts +3 -3
  219. package/run/run-request-types.d.ts.map +1 -1
  220. package/run/run-result-reporting.js +1 -1
  221. package/run/run-result-reporting.js.map +1 -1
  222. package/run/run-result-schema.d.ts +1 -1
  223. package/run/run-result-schema.d.ts.map +1 -1
  224. package/run/run-runtime-schema.js +1 -1
  225. package/run/run-runtime-schema.js.map +1 -1
  226. package/run/run-selection-filters.d.ts +2 -2
  227. package/run/run-selection-filters.d.ts.map +1 -1
  228. package/run/run-selection-filters.js +1 -1
  229. package/run/run-selection-filters.js.map +1 -1
  230. package/run/run-selection.js +2 -2
  231. package/run/run-selection.js.map +1 -1
  232. package/run/run-sharding.js +1 -1
  233. package/run/run-sharding.js.map +1 -1
  234. package/run/run-test-modules.d.ts +3 -3
  235. package/run/run-test-modules.d.ts.map +1 -1
  236. package/run/run-timing-collection.d.ts +2 -2
  237. package/run/run-timing-collection.d.ts.map +1 -1
  238. package/run/run-timing-collection.js +1 -1
  239. package/run/run-timing-collection.js.map +1 -1
  240. package/run/run-types.d.ts +1 -1
  241. package/run/run-types.d.ts.map +1 -1
  242. package/run/run-validation.js +1 -1
  243. package/run/run-validation.js.map +1 -1
  244. package/run/simulation-witness.js +1 -1
  245. package/run/simulation-witness.js.map +1 -1
  246. package/run/supervised-child-execution.js +3 -3
  247. package/run/supervised-child-execution.js.map +1 -1
  248. package/run/supervised-child-test-plan.js +1 -1
  249. package/run/supervised-child-test-plan.js.map +1 -1
  250. package/run/supervised-child.js +1 -1
  251. package/run/supervised-child.js.map +1 -1
  252. package/run/supervised-output-capture.js +1 -1
  253. package/run/supervised-output-capture.js.map +1 -1
  254. package/run/supervised-protocol.js +1 -1
  255. package/run/supervised-protocol.js.map +1 -1
  256. package/run/supervised-run-process-policy.js +2 -2
  257. package/run/supervised-run-process-policy.js.map +1 -1
  258. package/run/supervised-run-runtime.js +1 -1
  259. package/run/supervised-run-runtime.js.map +1 -1
  260. package/run/supervised-run-state.js +3 -3
  261. package/run/supervised-run-state.js.map +1 -1
  262. package/run/work-unit-identity.js +1 -1
  263. package/run/work-unit-identity.js.map +1 -1
  264. package/run/work-unit-planning.js +1 -1
  265. package/run/work-unit-planning.js.map +1 -1
  266. package/run/work-unit-resource-constraints.js +2 -2
  267. package/run/work-unit-resource-constraints.js.map +1 -1
  268. package/run/worker-execution-engine.js +2 -2
  269. package/run/worker-execution-engine.js.map +1 -1
  270. package/run/worker-pool-hedge-dispatch.js +1 -1
  271. package/run/worker-pool-hedge-dispatch.js.map +1 -1
  272. package/run/worker-pool-hedged-arbitration.js +1 -1
  273. package/run/worker-pool-hedged-arbitration.js.map +1 -1
  274. package/run/worker-pool-host.entry-point.js +1 -1
  275. package/run/worker-pool-host.entry-point.js.map +1 -1
  276. package/run/worker-pool-output.js +1 -1
  277. package/run/worker-pool-output.js.map +1 -1
  278. package/run/worker-pool-pending-splitting.js +1 -1
  279. package/run/worker-pool-pending-splitting.js.map +1 -1
  280. package/run/worker-pool-placement-planning.js +1 -1
  281. package/run/worker-pool-placement-planning.js.map +1 -1
  282. package/run/worker-pool-resource-lifecycle-execution.js +1 -1
  283. package/run/worker-pool-resource-lifecycle-execution.js.map +1 -1
  284. package/run/worker-pool-results.js +1 -1
  285. package/run/worker-pool-results.js.map +1 -1
  286. package/run/worker-pool-task-events.js +2 -2
  287. package/run/worker-pool-task-events.js.map +1 -1
  288. package/run/worker-pool-warm-lane-affinity.js +1 -1
  289. package/run/worker-pool-warm-lane-affinity.js.map +1 -1
  290. package/run/worker-pool-work-load.js +1 -1
  291. package/run/worker-pool-work-load.js.map +1 -1
  292. package/run/worker-pool-worker-plan.js +2 -2
  293. package/run/worker-pool-worker-plan.js.map +1 -1
  294. package/run/worker-pool-worker-resources.js +1 -1
  295. package/run/worker-pool-worker-resources.js.map +1 -1
  296. package/run/worker-pool-worker.js +1 -1
  297. package/run/worker-pool-worker.js.map +1 -1
  298. package/run/workload-input-validation.js +1 -1
  299. package/run/workload-input-validation.js.map +1 -1
  300. package/software-bill-of-materials.cyclonedx.json +21 -38
  301. package/transcript/http-transcript-artifact.js +1 -1
  302. package/transcript/http-transcript-artifact.js.map +1 -1
  303. package/assertion-protocol/assertion-evaluation.js +0 -6
  304. package/assertion-protocol/assertion-evaluation.js.map +0 -1
  305. package/assertion-protocol/assertion-node-shape.d.ts +0 -81
  306. package/assertion-protocol/assertion-node-shape.d.ts.map +0 -1
  307. package/assertion-protocol/assertion-node.d.ts +0 -82
  308. package/assertion-protocol/assertion-node.d.ts.map +0 -1
  309. package/assertion-protocol/assertion-node.js +0 -33
  310. package/assertion-protocol/assertion-node.js.map +0 -1
  311. package/assertion-protocol/assertion-reference.d.ts +0 -50
  312. package/assertion-protocol/assertion-reference.d.ts.map +0 -1
  313. package/assertion-protocol/assertion-reference.js +0 -22
  314. package/assertion-protocol/assertion-reference.js.map +0 -1
  315. package/assertion-protocol/assertions/boolean.d.ts +0 -4
  316. package/assertion-protocol/assertions/boolean.d.ts.map +0 -1
  317. package/assertion-protocol/assertions/boolean.js +0 -12
  318. package/assertion-protocol/assertions/boolean.js.map +0 -1
  319. package/assertion-protocol/assertions/collection.d.ts +0 -13
  320. package/assertion-protocol/assertions/collection.d.ts.map +0 -1
  321. package/assertion-protocol/assertions/collection.js +0 -21
  322. package/assertion-protocol/assertions/collection.js.map +0 -1
  323. package/assertion-protocol/assertions/dispatch.js +0 -47
  324. package/assertion-protocol/assertions/dispatch.js.map +0 -1
  325. package/assertion-protocol/assertions/equality.d.ts +0 -6
  326. package/assertion-protocol/assertions/equality.d.ts.map +0 -1
  327. package/assertion-protocol/assertions/equality.js +0 -24
  328. package/assertion-protocol/assertions/equality.js.map +0 -1
  329. package/assertion-protocol/assertions/fail.d.ts +0 -8
  330. package/assertion-protocol/assertions/fail.d.ts.map +0 -1
  331. package/assertion-protocol/assertions/fail.js +0 -8
  332. package/assertion-protocol/assertions/fail.js.map +0 -1
  333. package/assertion-protocol/assertions/numeric.d.ts +0 -16
  334. package/assertion-protocol/assertions/numeric.d.ts.map +0 -1
  335. package/assertion-protocol/assertions/numeric.js +0 -43
  336. package/assertion-protocol/assertions/numeric.js.map +0 -1
  337. package/assertion-protocol/assertions/partial.d.ts +0 -5
  338. package/assertion-protocol/assertions/partial.d.ts.map +0 -1
  339. package/assertion-protocol/assertions/partial.js +0 -17
  340. package/assertion-protocol/assertions/partial.js.map +0 -1
  341. package/assertion-protocol/assertions/presence.d.ts +0 -6
  342. package/assertion-protocol/assertions/presence.d.ts.map +0 -1
  343. package/assertion-protocol/assertions/presence.js +0 -20
  344. package/assertion-protocol/assertions/presence.js.map +0 -1
  345. package/assertion-protocol/assertions/string.d.ts +0 -15
  346. package/assertion-protocol/assertions/string.d.ts.map +0 -1
  347. package/assertion-protocol/assertions/string.js +0 -33
  348. package/assertion-protocol/assertions/string.js.map +0 -1
  349. package/assertion-protocol/assertions/type-shape.d.ts +0 -23
  350. package/assertion-protocol/assertions/type-shape.d.ts.map +0 -1
  351. package/assertion-protocol/assertions/type-shape.js +0 -43
  352. package/assertion-protocol/assertions/type-shape.js.map +0 -1
  353. package/assertion-protocol/collection-count.js +0 -42
  354. package/assertion-protocol/collection-count.js.map +0 -1
  355. package/assertion-protocol/evaluation.js +0 -175
  356. package/assertion-protocol/evaluation.js.map +0 -1
  357. package/assertion-protocol/partial-matching.js +0 -13
  358. package/assertion-protocol/partial-matching.js.map +0 -1
  359. package/assertion-protocol/source-location-forwarding.js +0 -32
  360. package/assertion-protocol/source-location-forwarding.js.map +0 -1
  361. package/assertion-protocol/source-location.js +0 -119
  362. package/assertion-protocol/source-location.js.map +0 -1
  363. package/assertion-protocol/thrown-error-record.d.ts +0 -7
  364. package/assertion-protocol/thrown-error-record.d.ts.map +0 -1
  365. package/assertion-protocol/thrown-error-record.js +0 -17
  366. package/assertion-protocol/thrown-error-record.js.map +0 -1
  367. package/assertion-protocol/thrown-matcher.d.ts +0 -34
  368. package/assertion-protocol/thrown-matcher.d.ts.map +0 -1
  369. package/assertion-protocol/thrown-matcher.js +0 -201
  370. package/assertion-protocol/thrown-matcher.js.map +0 -1
  371. package/attachments/json-snapshot.js +0 -125
  372. package/attachments/json-snapshot.js.map +0 -1
  373. package/canonical-identity.js +0 -54
  374. package/canonical-identity.js.map +0 -1
  375. package/compare/comparison-result.js +0 -47
  376. package/compare/comparison-result.js.map +0 -1
  377. package/compare/comparison-state.js +0 -20
  378. package/compare/comparison-state.js.map +0 -1
  379. package/compare/comparison.js +0 -78
  380. package/compare/comparison.js.map +0 -1
  381. package/compare/diff-path.js +0 -37
  382. package/compare/diff-path.js.map +0 -1
  383. package/compare/raw-comparison.js +0 -285
  384. package/compare/raw-comparison.js.map +0 -1
  385. package/compare/serialized-value-classification.js +0 -99
  386. package/compare/serialized-value-classification.js.map +0 -1
  387. package/compare/serialized-value-shape.d.ts +0 -134
  388. package/compare/serialized-value-shape.d.ts.map +0 -1
  389. package/compare/serialized-value-shape.js +0 -12
  390. package/compare/serialized-value-shape.js.map +0 -1
  391. package/compare/serialized-value-state.js +0 -55
  392. package/compare/serialized-value-state.js.map +0 -1
  393. package/compare/serialized-value.d.ts +0 -4
  394. package/compare/serialized-value.d.ts.map +0 -1
  395. package/compare/serialized-value.js +0 -389
  396. package/compare/serialized-value.js.map +0 -1
  397. package/compare/structured-diff.js +0 -382
  398. package/compare/structured-diff.js.map +0 -1
  399. package/compare/value-classification.js +0 -112
  400. package/compare/value-classification.js.map +0 -1
  401. package/diff/binary-diff.js +0 -49
  402. package/diff/binary-diff.js.map +0 -1
  403. package/diff/diff-shape.d.ts +0 -122
  404. package/diff/diff-shape.d.ts.map +0 -1
  405. package/diff/string-diff.js +0 -22
  406. package/diff/string-diff.js.map +0 -1
  407. package/engine/assertion-facade.d.ts +0 -47
  408. package/engine/assertion-facade.d.ts.map +0 -1
  409. package/engine/assertion-facade.js +0 -362
  410. package/engine/assertion-facade.js.map +0 -1
  411. package/engine/assertion-recorder.d.ts +0 -12
  412. package/engine/assertion-recorder.d.ts.map +0 -1
  413. package/engine/assertion-recorder.js +0 -251
  414. package/engine/assertion-recorder.js.map +0 -1
  415. package/engine/async-control.d.ts +0 -7
  416. package/engine/async-control.d.ts.map +0 -1
  417. package/engine/async-control.js +0 -162
  418. package/engine/async-control.js.map +0 -1
  419. package/engine/async-leak-diagnostics.js +0 -188
  420. package/engine/async-leak-diagnostics.js.map +0 -1
  421. package/engine/benchmark-environment.d.ts +0 -8
  422. package/engine/benchmark-environment.d.ts.map +0 -1
  423. package/engine/benchmark-garbage-collection.d.ts +0 -8
  424. package/engine/benchmark-garbage-collection.d.ts.map +0 -1
  425. package/engine/benchmark-garbage-collection.js +0 -4
  426. package/engine/benchmark-garbage-collection.js.map +0 -1
  427. package/engine/benchmark-limits.js +0 -3
  428. package/engine/benchmark-limits.js.map +0 -1
  429. package/engine/benchmark-node.d.ts +0 -37
  430. package/engine/benchmark-node.d.ts.map +0 -1
  431. package/engine/benchmark-node.js +0 -9
  432. package/engine/benchmark-node.js.map +0 -1
  433. package/engine/benchmark-result.d.ts +0 -247
  434. package/engine/benchmark-result.d.ts.map +0 -1
  435. package/engine/benchmark-result.js +0 -2
  436. package/engine/benchmark-result.js.map +0 -1
  437. package/engine/benchmark-timeline.d.ts +0 -12
  438. package/engine/benchmark-timeline.d.ts.map +0 -1
  439. package/engine/case-attempt-execution.js +0 -234
  440. package/engine/case-attempt-execution.js.map +0 -1
  441. package/engine/case-body-execution.js +0 -232
  442. package/engine/case-body-execution.js.map +0 -1
  443. package/engine/case-execution-lifecycle.js +0 -22
  444. package/engine/case-execution-lifecycle.js.map +0 -1
  445. package/engine/case-execution.d.ts +0 -14
  446. package/engine/case-execution.d.ts.map +0 -1
  447. package/engine/case-execution.js +0 -225
  448. package/engine/case-execution.js.map +0 -1
  449. package/engine/case-interruption.js +0 -26
  450. package/engine/case-interruption.js.map +0 -1
  451. package/engine/coverage-artifact.d.ts +0 -36
  452. package/engine/coverage-artifact.d.ts.map +0 -1
  453. package/engine/custom-assertion-recording.js +0 -175
  454. package/engine/custom-assertion-recording.js.map +0 -1
  455. package/engine/engine.d.ts +0 -21
  456. package/engine/engine.d.ts.map +0 -1
  457. package/engine/engine.js +0 -35
  458. package/engine/engine.js.map +0 -1
  459. package/engine/execution-async-leak-policy.d.ts +0 -3
  460. package/engine/execution-async-leak-policy.d.ts.map +0 -1
  461. package/engine/execution-async-leak-policy.js +0 -95
  462. package/engine/execution-async-leak-policy.js.map +0 -1
  463. package/engine/execution-error-ownership.d.ts +0 -6
  464. package/engine/execution-error-ownership.d.ts.map +0 -1
  465. package/engine/execution-error-ownership.js +0 -83
  466. package/engine/execution-error-ownership.js.map +0 -1
  467. package/engine/execution-global-error-observer.d.ts +0 -15
  468. package/engine/execution-global-error-observer.d.ts.map +0 -1
  469. package/engine/execution-global-error-observer.js +0 -276
  470. package/engine/execution-global-error-observer.js.map +0 -1
  471. package/engine/execution-observation.js +0 -212
  472. package/engine/execution-observation.js.map +0 -1
  473. package/engine/execution-options.d.ts +0 -39
  474. package/engine/execution-options.d.ts.map +0 -1
  475. package/engine/execution-options.js +0 -42
  476. package/engine/execution-options.js.map +0 -1
  477. package/engine/execution-preparation.d.ts +0 -13
  478. package/engine/execution-preparation.d.ts.map +0 -1
  479. package/engine/execution-preparation.js +0 -34
  480. package/engine/execution-preparation.js.map +0 -1
  481. package/engine/execution-process-budget-breach.d.ts +0 -8
  482. package/engine/execution-process-budget-breach.d.ts.map +0 -1
  483. package/engine/execution-process-budget-breach.js +0 -30
  484. package/engine/execution-process-budget-breach.js.map +0 -1
  485. package/engine/execution-process-budget-tracking.js +0 -33
  486. package/engine/execution-process-budget-tracking.js.map +0 -1
  487. package/engine/execution-process-tracked-cases.js +0 -40
  488. package/engine/execution-process-tracked-cases.js.map +0 -1
  489. package/engine/execution-result.js +0 -120
  490. package/engine/execution-result.js.map +0 -1
  491. package/engine/execution-supervision-state.js +0 -54
  492. package/engine/execution-supervision-state.js.map +0 -1
  493. package/engine/execution-supervision.d.ts +0 -16
  494. package/engine/execution-supervision.d.ts.map +0 -1
  495. package/engine/execution-supervision.js +0 -345
  496. package/engine/execution-supervision.js.map +0 -1
  497. package/engine/execution-test-plan-cases.js +0 -216
  498. package/engine/execution-test-plan-cases.js.map +0 -1
  499. package/engine/execution-test-plan-process-usage.js +0 -14
  500. package/engine/execution-test-plan-process-usage.js.map +0 -1
  501. package/engine/execution.d.ts +0 -8
  502. package/engine/execution.d.ts.map +0 -1
  503. package/engine/execution.js +0 -71
  504. package/engine/execution.js.map +0 -1
  505. package/engine/identity.d.ts +0 -31
  506. package/engine/identity.d.ts.map +0 -1
  507. package/engine/identity.js +0 -68
  508. package/engine/identity.js.map +0 -1
  509. package/engine/native-resource-observation.js +0 -70
  510. package/engine/native-resource-observation.js.map +0 -1
  511. package/engine/node-assertion-error.js +0 -47
  512. package/engine/node-assertion-error.js.map +0 -1
  513. package/engine/process-usage-growth.js +0 -12
  514. package/engine/process-usage-growth.js.map +0 -1
  515. package/engine/process-usage.d.ts +0 -22
  516. package/engine/process-usage.d.ts.map +0 -1
  517. package/engine/property-node.d.ts +0 -30
  518. package/engine/property-node.d.ts.map +0 -1
  519. package/engine/property-node.js +0 -9
  520. package/engine/property-node.js.map +0 -1
  521. package/engine/recorded-assertion-failure.js +0 -30
  522. package/engine/recorded-assertion-failure.js.map +0 -1
  523. package/engine/reporter-dispatcher.d.ts +0 -17
  524. package/engine/reporter-dispatcher.d.ts.map +0 -1
  525. package/engine/reporter-dispatcher.js +0 -316
  526. package/engine/reporter-dispatcher.js.map +0 -1
  527. package/engine/reporter-disposal.js +0 -13
  528. package/engine/reporter-disposal.js.map +0 -1
  529. package/engine/reporter-error-delivery-tracking.js +0 -33
  530. package/engine/reporter-error-delivery-tracking.js.map +0 -1
  531. package/engine/reporter-event-queue.js +0 -55
  532. package/engine/reporter-event-queue.js.map +0 -1
  533. package/engine/reporter-managed-output.js +0 -105
  534. package/engine/reporter-managed-output.js.map +0 -1
  535. package/engine/reporter-output-scope.js +0 -65
  536. package/engine/reporter-output-scope.js.map +0 -1
  537. package/engine/reporter-output.d.ts +0 -28
  538. package/engine/reporter-output.d.ts.map +0 -1
  539. package/engine/reporter-output.js +0 -17
  540. package/engine/reporter-output.js.map +0 -1
  541. package/engine/reporter.d.ts +0 -197
  542. package/engine/reporter.d.ts.map +0 -1
  543. package/engine/reporter.js +0 -111
  544. package/engine/reporter.js.map +0 -1
  545. package/engine/reporting-context.d.ts +0 -6
  546. package/engine/reporting-context.d.ts.map +0 -1
  547. package/engine/reporting-context.js +0 -74
  548. package/engine/reporting-context.js.map +0 -1
  549. package/engine/require-assertion-facade.d.ts +0 -18
  550. package/engine/require-assertion-facade.d.ts.map +0 -1
  551. package/engine/require-assertion-facade.js +0 -128
  552. package/engine/require-assertion-facade.js.map +0 -1
  553. package/engine/resource-owner-observation.js +0 -143
  554. package/engine/resource-owner-observation.js.map +0 -1
  555. package/engine/retry-policy.d.ts +0 -4
  556. package/engine/retry-policy.d.ts.map +0 -1
  557. package/engine/retry-policy.js +0 -22
  558. package/engine/retry-policy.js.map +0 -1
  559. package/engine/run-artifact.d.ts +0 -45
  560. package/engine/run-artifact.d.ts.map +0 -1
  561. package/engine/run-result.d.ts +0 -215
  562. package/engine/run-result.d.ts.map +0 -1
  563. package/engine/run-result.js +0 -202
  564. package/engine/run-result.js.map +0 -1
  565. package/engine/run-timings.d.ts +0 -57
  566. package/engine/run-timings.d.ts.map +0 -1
  567. package/engine/run-timings.js +0 -120
  568. package/engine/run-timings.js.map +0 -1
  569. package/engine/runner-error-reporting.js +0 -29
  570. package/engine/runner-error-reporting.js.map +0 -1
  571. package/engine/runtime-attachment.d.ts +0 -82
  572. package/engine/runtime-attachment.d.ts.map +0 -1
  573. package/engine/test-attempt-history.js +0 -25
  574. package/engine/test-attempt-history.js.map +0 -1
  575. package/engine/test-body-resource-attachment.d.ts +0 -53
  576. package/engine/test-body-resource-attachment.d.ts.map +0 -1
  577. package/engine/test-body-resource-attachment.js +0 -30
  578. package/engine/test-body-resource-attachment.js.map +0 -1
  579. package/engine/test-body.d.ts +0 -16
  580. package/engine/test-body.d.ts.map +0 -1
  581. package/engine/test-body.js +0 -51
  582. package/engine/test-body.js.map +0 -1
  583. package/engine/test-data.d.ts +0 -25
  584. package/engine/test-data.d.ts.map +0 -1
  585. package/engine/test-data.js +0 -126
  586. package/engine/test-data.js.map +0 -1
  587. package/engine/test-node.d.ts +0 -178
  588. package/engine/test-node.d.ts.map +0 -1
  589. package/engine/test-node.js +0 -226
  590. package/engine/test-node.js.map +0 -1
  591. package/engine/test-plan.d.ts +0 -52
  592. package/engine/test-plan.d.ts.map +0 -1
  593. package/engine/test-plan.js +0 -315
  594. package/engine/test-plan.js.map +0 -1
  595. package/engine/test-scope-lifecycle.js +0 -65
  596. package/engine/test-scope-lifecycle.js.map +0 -1
  597. package/engine/throwing-test-scope.js +0 -27
  598. package/engine/throwing-test-scope.js.map +0 -1
  599. package/engine/workload-input.d.ts +0 -3
  600. package/engine/workload-input.d.ts.map +0 -1
  601. package/engine/workload-input.js +0 -54
  602. package/engine/workload-input.js.map +0 -1
  603. package/engine/workload-parameters.d.ts +0 -3
  604. package/engine/workload-parameters.d.ts.map +0 -1
  605. package/engine/workload-parameters.js +0 -67
  606. package/engine/workload-parameters.js.map +0 -1
  607. package/engine/workload-test-case.d.ts +0 -8
  608. package/engine/workload-test-case.d.ts.map +0 -1
  609. package/engine/workload-test-case.js +0 -33
  610. package/engine/workload-test-case.js.map +0 -1
  611. package/stored-value.js +0 -12
  612. package/stored-value.js.map +0 -1
@@ -1,276 +0,0 @@
1
- import { executionErrorOwnership } from "./execution-error-ownership.js";
2
- import { createExecutionObservation, observingInfrastructure } from "./execution-observation.js";
3
- import { permissionDeniedRunnerErrorFromThrown } from "./run-result.js";
4
- const { runScopeStorage, activeCaseStorage, activeScopes, processHookListeners } = executionErrorOwnership();
5
- function createStoredValue(initialValue) {
6
- let currentValue = initialValue;
7
- return {
8
- read() {
9
- return currentValue;
10
- },
11
- write(value) {
12
- currentValue = value;
13
- }
14
- };
15
- }
16
- function createRunErrorScope(boundary) {
17
- const observation = createExecutionObservation();
18
- const activeCaseKeys = new Set();
19
- const errors = [];
20
- const fatal = createStoredValue(false);
21
- const fatalHandlers = new Set();
22
- const fatalSignal = createStoredValue(null);
23
- const phase = createStoredValue('run');
24
- const stopped = createStoredValue(false);
25
- function notifyFatal(error) {
26
- if (!fatal.read()) {
27
- fatal.write(true);
28
- fatalSignal.read()?.resolve(undefined);
29
- }
30
- for (const handler of fatalHandlers) {
31
- handler(error);
32
- }
33
- }
34
- return {
35
- observation,
36
- activeCaseStarted(key) {
37
- activeCaseKeys.add(key);
38
- },
39
- activeCaseStopped(key) {
40
- activeCaseKeys.delete(key);
41
- },
42
- boundary,
43
- async fatalSignal() {
44
- if (fatal.read()) {
45
- return;
46
- }
47
- const currentFatalSignal = fatalSignal.read() ?? Promise.withResolvers();
48
- fatalSignal.write(currentFatalSignal);
49
- await currentFatalSignal.promise;
50
- },
51
- hasActiveCase(key) {
52
- return activeCaseKeys.has(key);
53
- },
54
- hasFatalError() {
55
- return fatal.read();
56
- },
57
- onFatalError(handler) {
58
- fatalHandlers.add(handler);
59
- return function removeFatalErrorHandler() {
60
- fatalHandlers.delete(handler);
61
- };
62
- },
63
- phase() {
64
- return phase.read();
65
- },
66
- recordError(error) {
67
- if (stopped.read()) {
68
- return;
69
- }
70
- errors.push(error);
71
- notifyFatal(error);
72
- },
73
- async runPhase(nextPhase, run) {
74
- const previousPhase = phase.read();
75
- phase.write(nextPhase);
76
- try {
77
- return await run();
78
- }
79
- finally {
80
- phase.write(previousPhase);
81
- }
82
- },
83
- stop() {
84
- stopped.write(true);
85
- fatalHandlers.clear();
86
- activeCaseKeys.clear();
87
- observation.stop();
88
- },
89
- takeErrors() {
90
- const currentErrors = Array.from(errors);
91
- errors.length = 0;
92
- return currentErrors;
93
- }
94
- };
95
- }
96
-
97
- function serializedReason(reason) {
98
- if (reason instanceof Error) {
99
- return {
100
- message: reason.message,
101
- name: reason.name,
102
- stack: reason.stack ?? null
103
- };
104
- }
105
- return {
106
- message: String(reason),
107
- name: 'Error',
108
- stack: null
109
- };
110
- }
111
- function hookSubtype(hook) {
112
- return hook === 'uncaughtException' ? 'uncaught-exception' : 'unhandled-rejection';
113
- }
114
- function hookMessage(hook, reason) {
115
- const label = hook === 'uncaughtException' ? 'Uncaught exception' : 'Unhandled rejection';
116
- return `${label}: ${reason.message}`;
117
- }
118
- function hookOrigin(activeCase) {
119
- return activeCase === null
120
- ? { attempt: null, case: null, work: null }
121
- : { attempt: activeCase.attempt, case: activeCase.id, work: activeCase.workId };
122
- }
123
- function hookCause(scope, hook, reason, activeCase) {
124
- return {
125
- boundary: scope.boundary,
126
- hook,
127
- origin: hookOrigin(activeCase),
128
- phase: activeCase === null ? scope.phase() : 'body',
129
- reason: serializedReason(reason)
130
- };
131
- }
132
- function attributedError(scope, hook, reason, activeCase) {
133
- const cause = hookCause(scope, hook, reason, activeCase);
134
- return {
135
- attributedToAttempt: activeCase.attempt,
136
- attributedTo: activeCase.id,
137
- attributedToWork: activeCase.workId,
138
- cause,
139
- diagnostics: [],
140
- message: hookMessage(hook, cause.reason),
141
- subtype: hookSubtype(hook)
142
- };
143
- }
144
- function runLevelHookError(scope, hook, reason) {
145
- const cause = hookCause(scope, hook, reason, null);
146
- return {
147
- attributedToAttempt: null,
148
- attributedTo: null,
149
- attributedToWork: null,
150
- cause,
151
- diagnostics: [],
152
- message: hookMessage(hook, cause.reason),
153
- subtype: hookSubtype(hook)
154
- };
155
- }
156
- function attributionDriftError(scope, hook, reason, activeCase) {
157
- const cause = hookCause(scope, hook, reason, activeCase);
158
- return {
159
- attributedToAttempt: null,
160
- attributedTo: null,
161
- attributedToWork: null,
162
- cause,
163
- diagnostics: [],
164
- message: `Async failure could not be attributed safely: ${cause.reason.message}`,
165
- subtype: 'attribution-drift'
166
- };
167
- }
168
- function scopeIncludesCase(scope, activeCase) {
169
- return activeCase !== null && activeCase.scope === scope;
170
- }
171
- function permissionErrorForScope(input) {
172
- const activeCase = scopeIncludesCase(input.scope, input.activeCase) ? input.activeCase : null;
173
- const attribution = activeCase === null
174
- ? { attributedTo: null, attributedToWork: null, phase: input.scope.phase() }
175
- : { attributedTo: activeCase.id, attributedToWork: activeCase.workId, phase: 'body' };
176
- const error = permissionDeniedRunnerErrorFromThrown(input.reason, {
177
- ...attribution,
178
- boundary: input.scope.boundary,
179
- diagnosticChannel: null,
180
- hook: input.hook
181
- });
182
- return error === null ? null : input.scope.observation.attribute(error);
183
- }
184
- function ownedHookError(input) {
185
- if (scopeIncludesCase(input.scope, input.activeCase)) {
186
- return attributedError(input.scope, input.hook, input.reason, input.activeCase);
187
- }
188
- const error = runLevelHookError(input.scope, input.hook, input.reason);
189
- return input.scope.observation.attribute(error).subtype === 'attribution-drift'
190
- ? attributionDriftError(input.scope, input.hook, input.reason, input.activeCase)
191
- : error;
192
- }
193
- function errorForScope(input) {
194
- if (scopeIncludesCase(input.scope, input.activeCase) && !input.scope.hasActiveCase(input.activeCase)) {
195
- return attributionDriftError(input.scope, input.hook, input.reason, input.activeCase);
196
- }
197
- if (input.ambiguousScope) {
198
- return attributionDriftError(input.scope, input.hook, input.reason, null);
199
- }
200
- return permissionErrorForScope(input) ?? ownedHookError(input);
201
- }
202
- function currentTargetScopes() {
203
- const currentScope = runScopeStorage.getStore();
204
- if (currentScope !== undefined && activeScopes.includes(currentScope)) {
205
- return [currentScope];
206
- }
207
- return activeScopes.all();
208
- }
209
- function receiveHookFailure(hook, reason) {
210
- const activeCase = observingInfrastructure() ? null : activeCaseStorage.getStore() ?? null;
211
- const ambiguousScope = runScopeStorage.getStore() === undefined && activeScopes.size() > 1;
212
- for (const scope of currentTargetScopes()) {
213
- scope.recordError(errorForScope({ activeCase, ambiguousScope, hook, reason, scope }));
214
- }
215
- }
216
- export function createExecutionGlobalErrorObserver(boundary) {
217
- const scope = createRunErrorScope(boundary);
218
- scope.observation.register(function stopOwnedGlobalObserver() {
219
- scope.stop();
220
- activeScopes.remove(scope);
221
- processHookListeners.removeWhenIdle();
222
- });
223
- return {
224
- async fatalSignal() {
225
- await scope.fatalSignal();
226
- },
227
- hasFatalError() {
228
- return scope.hasFatalError();
229
- },
230
- onFatalError(handler) {
231
- return scope.onFatalError(handler);
232
- },
233
- async runBoundary(run) {
234
- processHookListeners.install(receiveHookFailure);
235
- activeScopes.add(scope);
236
- try {
237
- return await scope.observation.run(async function observeRunOwnership() {
238
- return await runScopeStorage.run(scope, run);
239
- });
240
- }
241
- finally {
242
- activeScopes.remove(scope);
243
- processHookListeners.removeWhenIdle();
244
- }
245
- },
246
- async runCase(testCase, attempt, run) {
247
- const activeCase = {
248
- attempt,
249
- id: testCase.id,
250
- scope,
251
- workId: testCase.workId
252
- };
253
- scope.activeCaseStarted(activeCase);
254
- try {
255
- return await scope.observation.runAttempt(testCase, attempt, async function observeAttemptOwnership() {
256
- return await activeCaseStorage.run(activeCase, run);
257
- });
258
- }
259
- finally {
260
- scope.activeCaseStopped(activeCase);
261
- }
262
- },
263
- async runPhase(phase, run) {
264
- return await scope.runPhase(phase, run);
265
- },
266
- stop() {
267
- scope.stop();
268
- activeScopes.remove(scope);
269
- processHookListeners.removeWhenIdle();
270
- },
271
- takeErrors() {
272
- return scope.takeErrors();
273
- }
274
- };
275
- }
276
- //# sourceMappingURL=execution-global-error-observer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-global-error-observer.js","sourceRoot":"","sources":["../../../../source/engine/execution-global-error-observer.ts"],"names":[],"mappings":"AA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CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,UAAU,uBAAuB;oBAC/F,OAAO,MAAM,iBAAiB,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;gBACxD,CAAC,CAAC,CAAC;YACP,CAAC;oBAAS,CAAC;gBACP,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACxC,CAAC;QACL,CAAC;QACD,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG;YACrB,OAAO,MAAM,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAC5C,CAAC;QACD,IAAI;YACA,KAAK,CAAC,IAAI,EAAE,CAAC;YACb,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC3B,oBAAoB,CAAC,cAAc,EAAE,CAAC;QAC1C,CAAC;QACD,UAAU;YACN,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC;QAC9B,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -1,212 +0,0 @@
1
- import { AsyncLocalStorage } from 'node:async_hooks';
2
- const observationKey = Symbol.for('@overkill-dev/engine/executionObservation');
3
- function isObservationStorage(value) {
4
- return value instanceof AsyncLocalStorage;
5
- }
6
- function sharedObservationStorage() {
7
- const existing = Reflect.get(globalThis, observationKey);
8
- if (isObservationStorage(existing)) {
9
- return existing;
10
- }
11
- const created = new AsyncLocalStorage();
12
- Reflect.set(globalThis, observationKey, created);
13
- return created;
14
- }
15
- const ownership = sharedObservationStorage();
16
- function disposeObservations(disposers) {
17
- const errors = [];
18
- for (const dispose of disposers) {
19
- try {
20
- dispose();
21
- }
22
- catch (error) {
23
- errors.push(error);
24
- }
25
- }
26
- if (errors.length > 0) {
27
- throw new AggregateError(errors, 'Execution observation shutdown failed.');
28
- }
29
- }
30
- function createLifetime() {
31
- const disposers = new Set();
32
- let open = true;
33
- return {
34
- open() {
35
- return open;
36
- },
37
- close() {
38
- if (!open) {
39
- return;
40
- }
41
- open = false;
42
- const pending = Array.from(disposers);
43
- disposers.clear();
44
- disposeObservations(pending);
45
- },
46
- register(dispose) {
47
- if (open) {
48
- disposers.add(dispose);
49
- }
50
- else {
51
- dispose();
52
- }
53
- return function unregister() {
54
- disposers.delete(dispose);
55
- };
56
- }
57
- };
58
- }
59
- function createRunOwner() {
60
- return { ...createLifetime(), identity: Symbol('execution run') };
61
- }
62
- export function observingInfrastructure() {
63
- return ownership.getStore()?.kind === 'infrastructure';
64
- }
65
- export function currentAttemptIdentity() {
66
- const owner = ownership.getStore();
67
- if (owner?.kind !== 'attempt' || !owner.run.open() || !owner.attempt.open()) {
68
- return null;
69
- }
70
- const identity = Reflect.get(owner.attempt, 'identity');
71
- return typeof identity === 'symbol' ? identity : null;
72
- }
73
- export function registerExecutionDisposal(dispose) {
74
- const run = ownership.getStore()?.run;
75
- if (run === null || run === undefined) {
76
- return function unregisterUnownedDisposal() {
77
- return undefined;
78
- };
79
- }
80
- return run.register(dispose);
81
- }
82
- export function withRunnerInfrastructure(operation) {
83
- return ownership.run({ kind: 'infrastructure', run: ownership.getStore()?.run ?? null }, operation);
84
- }
85
- function closeFailedObservation(run, error) {
86
- try {
87
- run.close();
88
- }
89
- catch (cleanupError) {
90
- throw new AggregateError([error, cleanupError], 'Execution and observation shutdown failed.', {
91
- cause: cleanupError
92
- });
93
- }
94
- throw error;
95
- }
96
- export async function withExecutionObservation(operation) {
97
- const current = ownership.getStore();
98
- if (current?.kind === 'run' && current.run.open()) {
99
- return await operation();
100
- }
101
- const run = createRunOwner();
102
- try {
103
- const result = await ownership.run({ kind: 'run', run }, operation);
104
- run.close();
105
- return result;
106
- }
107
- catch (error) {
108
- return closeFailedObservation(run, error);
109
- }
110
- }
111
- function lateObservation(error, owner) {
112
- return {
113
- ...error,
114
- attributedTo: null,
115
- attributedToWork: null,
116
- attributedToAttempt: null,
117
- subtype: 'attribution-drift',
118
- cause: {
119
- kind: 'late-observation',
120
- origin: { case: owner.attempt.caseId, work: owner.attempt.workId, attempt: owner.attempt.attempt },
121
- observation: error
122
- }
123
- };
124
- }
125
- function attributeObservation(error, run) {
126
- const owner = ownership.getStore();
127
- if (owner?.kind === 'attempt') {
128
- if (!owner.run.open() || !owner.attempt.open()) {
129
- return lateObservation(error, owner);
130
- }
131
- if (owner.run === run) {
132
- return {
133
- ...error,
134
- attributedTo: owner.attempt.caseId,
135
- attributedToWork: owner.attempt.workId,
136
- attributedToAttempt: owner.attempt.attempt
137
- };
138
- }
139
- }
140
- return { ...error, attributedTo: null, attributedToWork: null, attributedToAttempt: null };
141
- }
142
- function matchesAttempt(owner, testCase, attempt) {
143
- return owner.caseId === testCase.id && owner.workId === testCase.workId && owner.attempt.index === attempt.index;
144
- }
145
- function ownsObservation(run, owner) {
146
- if (owner === undefined) {
147
- return true;
148
- }
149
- if (owner.kind === 'infrastructure') {
150
- return false;
151
- }
152
- return owner.run === run || !owner.run.open();
153
- }
154
- async function runOwnedAttempt(run, testCase, attempt, operation) {
155
- const current = ownership.getStore();
156
- if (current?.kind === 'attempt' && current.run === run && current.attempt.open() &&
157
- matchesAttempt(current.attempt, testCase, attempt)) {
158
- return await operation();
159
- }
160
- const owner = {
161
- ...createLifetime(),
162
- identity: Symbol('execution attempt'),
163
- caseId: testCase.id,
164
- workId: testCase.workId,
165
- attempt
166
- };
167
- try {
168
- return await ownership.run({ kind: 'attempt', run, attempt: owner }, operation);
169
- }
170
- finally {
171
- owner.close();
172
- }
173
- }
174
- export function createExecutionObservation() {
175
- const current = ownership.getStore();
176
- const inherited = current?.kind === 'run' && current.run.open();
177
- const run = inherited ? current.run : createRunOwner();
178
- const lifetime = createLifetime();
179
- const unregister = run.register(lifetime.close);
180
- return {
181
- open: lifetime.open,
182
- accepts() {
183
- return lifetime.open() && ownsObservation(run, ownership.getStore());
184
- },
185
- hasActiveAttempt() {
186
- const owner = ownership.getStore();
187
- return owner?.kind === 'attempt' && owner.run === run && owner.run.open() && owner.attempt.open();
188
- },
189
- attribute(error) {
190
- return attributeObservation(error, run);
191
- },
192
- register: lifetime.register,
193
- async run(operation) {
194
- return await ownership.run({ kind: 'run', run }, operation);
195
- },
196
- async runAttempt(testCase, attempt, operation) {
197
- return await runOwnedAttempt(run, testCase, attempt, operation);
198
- },
199
- stop() {
200
- unregister();
201
- try {
202
- lifetime.close();
203
- }
204
- finally {
205
- if (!inherited) {
206
- run.close();
207
- }
208
- }
209
- }
210
- };
211
- }
212
- //# sourceMappingURL=execution-observation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-observation.js","sourceRoot":"","sources":["../../../../source/engine/execution-observation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AA8CrD,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;AAE/E,SAAS,oBAAoB,CAAC,KAAc;IACxC,OAAO,KAAK,YAAY,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAS,wBAAwB;IAC7B,MAAM,QAAQ,GAAY,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAClE,IAAI,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjC,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,MAAM,OAAO,GAAG,IAAI,iBAAiB,EAAoB,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IACjD,OAAO,OAAO,CAAC;AACnB,CAAC;AAED,MAAM,SAAS,GAAG,wBAAwB,EAAE,CAAC;AAE7C,SAAS,mBAAmB,CAAC,SAAkC;IAC3D,MAAM,MAAM,GAAc,EAAE,CAAC;IAC7B,KAAK,MAAM,OAAO,IAAI,SAAS,EAAE,CAAC;QAC9B,IAAI,CAAC;YACD,OAAO,EAAE,CAAC;QACd,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,MAAM,CAAC,IAAI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gBAAgB;YACZ,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;YACnC,OAAO,KAAK,EAAE,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACtG,CAAC;QACD,SAAS,CAAC,KAAK;YACX,OAAO,oBAAoB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAC5C,CAAC;QACD,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,KAAK,CAAC,GAAG,CAAC,SAAS;YACf,OAAO,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,SAAS,CAAC,CAAC;QAChE,CAAC;QACD,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS;YACzC,OAAO,MAAM,eAAe,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QACpE,CAAC;QACD,IAAI;YACA,UAAU,EAAE,CAAC;YACb,IAAI,CAAC;gBACD,QAAQ,CAAC,KAAK,EAAE,CAAC;YACrB,CAAC;oBAAS,CAAC;gBACP,IAAI,CAAC,SAAS,EAAE,CAAC;oBACb,GAAG,CAAC,KAAK,EAAE,CAAC;gBAChB,CAAC;YACL,CAAC;QACL,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -1,39 +0,0 @@
1
- import type { BenchmarkExecutionEnvironment } from './benchmark-environment.ts';
2
- import { type DefinedOutputRenderer } from './reporter-output.ts';
3
- import { type DefinedReporter, type RunFacts } from './reporter.ts';
4
- import type { RunResult } from './run-result.ts';
5
- import type { RunProcessUsageTracker } from './process-usage.ts';
6
- import type { ExecuteTimeoutPolicy, ExecutionSupervisionDependencies } from './execution-supervision.ts';
7
- import type { ExecuteProcessBudgets } from './execution-process-budget-breach.ts';
8
- import { type TestRetryPolicy } from './retry-policy.ts';
9
- export type ExecuteExecution = {
10
- readonly maxConcurrency: number | 'unlimited';
11
- readonly mode: 'concurrent-in-process';
12
- } | {
13
- readonly mode: 'serial-in-process';
14
- };
15
- export type ExecuteResultFinalizer = (result: RunResult) => Promise<RunResult>;
16
- export type ExecuteOptions = {
17
- readonly retryPolicy: TestRetryPolicy | null;
18
- readonly execution: ExecuteExecution;
19
- readonly finalizeResult?: ExecuteResultFinalizer;
20
- readonly outputRenderer?: DefinedOutputRenderer;
21
- readonly reporters: readonly DefinedReporter[];
22
- readonly processBudgets?: ExecuteProcessBudgets | null;
23
- readonly processUsageTracker?: RunProcessUsageTracker | null;
24
- readonly runtimePolicy?: RuntimePolicy | null;
25
- readonly runFacts: RunFacts;
26
- readonly startedAt: string;
27
- readonly timeoutPolicy?: ExecuteTimeoutPolicy | null;
28
- };
29
- type DefaultedExecuteOptions = ExecuteOptions & {
30
- readonly finalizeResult: ExecuteResultFinalizer;
31
- readonly outputRenderer: DefinedOutputRenderer;
32
- readonly runtimePolicy: RuntimePolicy | null;
33
- };
34
- export type NormalizedExecuteOptions = DefaultedExecuteOptions & {
35
- readonly benchmarkEnvironment: BenchmarkExecutionEnvironment | null;
36
- };
37
- type RuntimePolicy = NonNullable<ExecutionSupervisionDependencies['runtimePolicy']>;
38
- export {};
39
- //# sourceMappingURL=execution-options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-options.d.ts","sourceRoot":"","sources":["../../../../source/engine/execution-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAA6B,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAA4B,KAAK,eAAe,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EA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C,cAAc,EAAE,sBAAsB,CAAC;IAChD,QAAQ,CAAC,cAAc,EAAE,qBAAqB,CAAC;IAC/C,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,GAAG;IAC7D,QAAQ,CAAC,oBAAoB,EAAE,6BAA6B,GAAG,IAAI,CAAC;CACvE,CAAC;AAEF,KAAK,aAAa,GAAG,WAAW,CAAC,gCAAgC,CAAC,eAAe,CAAC,CAAC,CAAC;AAmCpF"}
@@ -1,42 +0,0 @@
1
- import { createPlainOutputRenderer } from "./reporter-output.js";
2
- import { validateReporterRunFacts } from "./reporter.js";
3
- import { assertRetryPolicy, assertRetryFamily } from "./retry-policy.js";
4
- const epoch = new Date(0);
5
- const keepResult = async function keepResult(result) {
6
- return result;
7
- };
8
- function defaultExecuteOptions() {
9
- return {
10
- execution: { mode: 'serial-in-process' },
11
- finalizeResult: keepResult,
12
- outputRenderer: createPlainOutputRenderer(),
13
- reporters: [],
14
- retryPolicy: null,
15
- processBudgets: null,
16
- processUsageTracker: null,
17
- runtimePolicy: null,
18
- runFacts: {},
19
- startedAt: epoch.toISOString(),
20
- timeoutPolicy: null
21
- };
22
- }
23
- function executeOptionsWithProvidedDefaults(options) {
24
- assertRetryPolicy(options.retryPolicy);
25
- return {
26
- ...options,
27
- finalizeResult: options.finalizeResult ?? keepResult,
28
- outputRenderer: options.outputRenderer ?? createPlainOutputRenderer(),
29
- processBudgets: options.processBudgets ?? null,
30
- runtimePolicy: options.runtimePolicy ?? null,
31
- timeoutPolicy: options.timeoutPolicy ?? null
32
- };
33
- }
34
- export function executeOptionsWithDefaults(options, testPlan, benchmarkEnvironment) {
35
- const normalized = options === undefined ? defaultExecuteOptions() : executeOptionsWithProvidedDefaults(options);
36
- assertRetryFamily(normalized.retryPolicy, testPlan);
37
- for (const reporter of normalized.reporters) {
38
- validateReporterRunFacts(reporter, normalized.runFacts);
39
- }
40
- return { ...normalized, benchmarkEnvironment };
41
- }
42
- //# sourceMappingURL=execution-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-options.js","sourceRoot":"","sources":["../../../../source/engine/execution-options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAA8B,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAuC,MAAM,eAAe,CAAC;AAQ9F,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAwB,MAAM,mBAAmB,CAAC;AAsC/F,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;AAC1B,MAAM,UAAU,GAA2B,KAAK,UAAU,UAAU,CAAC,MAAM;IACvE,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAEF,SAAS,qBAAqB;IAC1B,OAAO;QACH,SAAS,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;QACxC,cAAc,EAAE,UAAU;QAC1B,cAAc,EAAE,yBAAyB,EAAE;QAC3C,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,IAAI;QACpB,mBAAmB,EAAE,IAAI;QACzB,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,EAAE;QACZ,SAAS,EAAE,KAAK,CAAC,WAAW,EAAE;QAC9B,aAAa,EAAE,IAAI;KACtB,CAAC;AACN,CAAC;AAED,SAAS,kCAAkC,CAAC,OAAuB;IAC/D,iBAAiB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACvC,OAAO;QACH,GAAG,OAAO;QACV,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,UAAU;QACpD,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,yBAAyB,EAAE;QACrE,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,IAAI;QAC9C,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,IAAI;QAC5C,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,IAAI;KAC/C,CAAC;AACN,CAAC;AAED,MAAM,UAAU,0BAA0B,CACtC,OAAmC,EACnC,QAAkB,EAClB,oBAA0D;IAE1D,MAAM,UAAU,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,kCAAkC,CAAC,OAAO,CAAC,CAAC;IACjH,iBAAiB,CAAC,UAAU,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACpD,KAAK,MAAM,QAAQ,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC;QAC1C,wBAAwB,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,EAAE,GAAG,UAAU,EAAE,oBAAoB,EAAE,CAAC;AACnD,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { Clock } from '@enormora/clock';
2
- import { type AsyncLeakDiagnostics } from './execution-async-leak-policy.ts';
3
- import { type NormalizedExecuteOptions } from './execution-options.ts';
4
- import type { ReporterDispatcher } from './reporter-dispatcher.ts';
5
- export type ExecuteDependencies = {
6
- readonly benchmarkEnvironment: NormalizedExecuteOptions['benchmarkEnvironment'];
7
- readonly asyncLeakDiagnostics: AsyncLeakDiagnostics;
8
- readonly readActiveResourceTypes: () => readonly string[];
9
- readonly reporterDispatcher: ReporterDispatcher;
10
- readonly wallClock: Clock;
11
- };
12
- export {};
13
- //# sourceMappingURL=execution-preparation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-preparation.d.ts","sourceRoot":"","sources":["../../../../source/engine/execution-preparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAEH,KAAK,oBACoB,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEH,KAMK,wBAAwB,EAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;MAG7D,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,CAAC,oBAAoB,EAAE,wBAAwB,CAAC,sBAAsB,CAAC,CAAC;IAChF,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IACpD,QAAQ,CAAC,uBAAuB,EAAE,MAAM,SAAS,MAAM,EAAE,CAAC;IAC1D,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAChD,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC;CAC7B,CAAC;OAU8B,EAK/B,CAAC"}
@@ -1,34 +0,0 @@
1
- import { createExecutionAsyncLeakMonitor } from "./execution-async-leak-policy.js";
2
- import { createExecutionGlobalErrorObserver } from "./execution-global-error-observer.js";
3
- import { withExecutionObservation } from "./execution-observation.js";
4
- import { executeOptionsWithDefaults } from "./execution-options.js";
5
- function prepareExecution(dependencies, options, testPlan) {
6
- const executeOptions = executeOptionsWithDefaults(options, testPlan, dependencies.benchmarkEnvironment);
7
- const asyncLeakMonitor = createExecutionAsyncLeakMonitor(dependencies.asyncLeakDiagnostics);
8
- const globalErrorObserver = createExecutionGlobalErrorObserver('in-process');
9
- return {
10
- asyncLeakMonitor,
11
- dependencies: {
12
- asyncLeakMonitor,
13
- globalErrorObserver,
14
- ...dependencies,
15
- benchmarkEnvironment: executeOptions.benchmarkEnvironment,
16
- runtimePolicy: executeOptions.runtimePolicy
17
- },
18
- globalErrorObserver,
19
- options: executeOptions
20
- };
21
- }
22
- export async function withPreparedExecution(dependencies, options, testPlan, execute) {
23
- return await withExecutionObservation(async function observeEngineExecution() {
24
- const prepared = prepareExecution(dependencies, options, testPlan);
25
- try {
26
- return await execute(prepared);
27
- }
28
- finally {
29
- prepared.asyncLeakMonitor.stop();
30
- prepared.globalErrorObserver.stop();
31
- }
32
- });
33
- }
34
- //# sourceMappingURL=execution-preparation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-preparation.js","sourceRoot":"","sources":["../../../../source/engine/execution-preparation.ts"],"names":[],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