@overkill-dev/run 0.0.84 → 0.0.86

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 (618) 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-connection.js +1 -0
  65. package/run/attachment-connection.js.map +1 -1
  66. package/run/attachment-eligibility.js +1 -1
  67. package/run/attachment-eligibility.js.map +1 -1
  68. package/run/attachment-execution.js +2 -2
  69. package/run/attachment-execution.js.map +1 -1
  70. package/run/attachment-failure.js +1 -1
  71. package/run/attachment-failure.js.map +1 -1
  72. package/run/attachment-protocol.js +1 -1
  73. package/run/attachment-protocol.js.map +1 -1
  74. package/run/attachment-reporter.js +2 -2
  75. package/run/attachment-reporter.js.map +1 -1
  76. package/run/attachment-results.js +3 -3
  77. package/run/attachment-results.js.map +1 -1
  78. package/run/attachment-retention.js +1 -1
  79. package/run/attachment-retention.js.map +1 -1
  80. package/run/attachment-server.js +1 -0
  81. package/run/attachment-server.js.map +1 -1
  82. package/run/attachment-store.js +1 -1
  83. package/run/attachment-store.js.map +1 -1
  84. package/run/benchmark-baseline-commands.js +1 -1
  85. package/run/benchmark-baseline-commands.js.map +1 -1
  86. package/run/benchmark-baseline-finalization.js +1 -1
  87. package/run/benchmark-baseline-finalization.js.map +1 -1
  88. package/run/benchmark-garbage-collection.js +1 -1
  89. package/run/benchmark-garbage-collection.js.map +1 -1
  90. package/run/benchmark-policy-schema.js +1 -1
  91. package/run/benchmark-policy-schema.js.map +1 -1
  92. package/run/benchmark-report-metadata.js +1 -1
  93. package/run/benchmark-report-metadata.js.map +1 -1
  94. package/run/benchmark-result-schema.js +1 -1
  95. package/run/benchmark-result-schema.js.map +1 -1
  96. package/run/calibration-capture-session.js +2 -2
  97. package/run/calibration-capture-session.js.map +1 -1
  98. package/run/calibration-inventory.js +2 -2
  99. package/run/calibration-inventory.js.map +1 -1
  100. package/run/calibration-maintenance.js +1 -1
  101. package/run/calibration-maintenance.js.map +1 -1
  102. package/run/capability-policy-snapshots.d.ts +1 -1
  103. package/run/capability-policy-snapshots.d.ts.map +1 -1
  104. package/run/capability-policy.js +3 -3
  105. package/run/capability-policy.js.map +1 -1
  106. package/run/collected-run-execution.js +1 -1
  107. package/run/collected-run-execution.js.map +1 -1
  108. package/run/collected-run-plan-schema.js +2 -2
  109. package/run/collected-run-plan-schema.js.map +1 -1
  110. package/run/collected-run-plan.js +4 -4
  111. package/run/collected-run-plan.js.map +1 -1
  112. package/run/command-line-command.d.ts +1 -1
  113. package/run/command-line-command.d.ts.map +1 -1
  114. package/run/command-line-command.js +1 -1
  115. package/run/command-line-command.js.map +1 -1
  116. package/run/command-line-config.d.ts +1 -1
  117. package/run/command-line-config.d.ts.map +1 -1
  118. package/run/default-direct-reporter.js +1 -1
  119. package/run/default-direct-reporter.js.map +1 -1
  120. package/run/default-run-engine.js +7 -7
  121. package/run/default-run-engine.js.map +1 -1
  122. package/run/direct-entrypoint-collection.js +3 -3
  123. package/run/direct-entrypoint-collection.js.map +1 -1
  124. package/run/execution-plan-resolution.js +1 -1
  125. package/run/execution-plan-resolution.js.map +1 -1
  126. package/run/execution-session-child.js +1 -1
  127. package/run/execution-session-child.js.map +1 -1
  128. package/run/execution-session-collected.js +1 -1
  129. package/run/execution-session-collected.js.map +1 -1
  130. package/run/execution-session-host.js +1 -1
  131. package/run/execution-session-host.js.map +1 -1
  132. package/run/execution-session-lifecycle.js +2 -2
  133. package/run/execution-session-lifecycle.js.map +1 -1
  134. package/run/execution-session-observation.js +1 -1
  135. package/run/execution-session-observation.js.map +1 -1
  136. package/run/execution-session-schema.js +1 -1
  137. package/run/execution-session-schema.js.map +1 -1
  138. package/run/execution-session-types.d.ts +1 -1
  139. package/run/execution-session-types.d.ts.map +1 -1
  140. package/run/execution-session.js +1 -1
  141. package/run/execution-session.js.map +1 -1
  142. package/run/failure-artifact-retention.js +2 -2
  143. package/run/failure-artifact-retention.js.map +1 -1
  144. package/run/frozen-run-policy.js +1 -1
  145. package/run/frozen-run-policy.js.map +1 -1
  146. package/run/initialized-run-collection.js +1 -1
  147. package/run/initialized-run-collection.js.map +1 -1
  148. package/run/node-command-line-runner.d.ts +1 -1
  149. package/run/node-command-line-runner.d.ts.map +1 -1
  150. package/run/node-process-policy-observation.js +1 -1
  151. package/run/node-process-policy-observation.js.map +1 -1
  152. package/run/node-run-execution.js +1 -1
  153. package/run/node-run-execution.js.map +1 -1
  154. package/run/node-run-orchestrator-dependencies.js +1 -1
  155. package/run/node-run-orchestrator-dependencies.js.map +1 -1
  156. package/run/permission-denial-runtime-policy.js +3 -3
  157. package/run/permission-denial-runtime-policy.js.map +1 -1
  158. package/run/placement-trace.d.ts +2 -2
  159. package/run/placement-trace.d.ts.map +1 -1
  160. package/run/property-collection.js +1 -1
  161. package/run/property-collection.js.map +1 -1
  162. package/run/recorded-coverage-session.js +1 -1
  163. package/run/recorded-coverage-session.js.map +1 -1
  164. package/run/reporter-event-schema.js +1 -1
  165. package/run/reporter-event-schema.js.map +1 -1
  166. package/run/resource-lifecycle-boundaries.js +1 -1
  167. package/run/resource-lifecycle-boundaries.js.map +1 -1
  168. package/run/resource-lifecycle-cache-identity.js +2 -2
  169. package/run/resource-lifecycle-cache-identity.js.map +1 -1
  170. package/run/resource-lifecycle-composition.d.ts +1 -1
  171. package/run/resource-lifecycle-composition.d.ts.map +1 -1
  172. package/run/resource-lifecycle-error.d.ts +1 -1
  173. package/run/resource-lifecycle-error.d.ts.map +1 -1
  174. package/run/resource-lifecycle-error.js +1 -1
  175. package/run/resource-lifecycle-error.js.map +1 -1
  176. package/run/resource-lifecycle-session-acquirer.js +1 -1
  177. package/run/resource-lifecycle-session-acquirer.js.map +1 -1
  178. package/run/resource-lifecycle-state.d.ts +3 -3
  179. package/run/resource-lifecycle-state.d.ts.map +1 -1
  180. package/run/resource-lifecycle-state.js +2 -2
  181. package/run/resource-lifecycle-state.js.map +1 -1
  182. package/run/resource-ownership-plan.d.ts +2 -2
  183. package/run/resource-ownership-plan.d.ts.map +1 -1
  184. package/run/retry-artifact-retention.js +1 -1
  185. package/run/retry-artifact-retention.js.map +1 -1
  186. package/run/run-artifact-schema.d.ts +1 -1
  187. package/run/run-artifact-schema.d.ts.map +1 -1
  188. package/run/run-case-facts.js +1 -1
  189. package/run/run-case-facts.js.map +1 -1
  190. package/run/run-collection-error-result.js +2 -2
  191. package/run/run-collection-error-result.js.map +1 -1
  192. package/run/run-discovery-types.d.ts +1 -1
  193. package/run/run-discovery-types.d.ts.map +1 -1
  194. package/run/run-engine-primitives.d.ts +8 -8
  195. package/run/run-engine-primitives.d.ts.map +1 -1
  196. package/run/run-engine-selection.d.ts +1 -1
  197. package/run/run-engine-selection.d.ts.map +1 -1
  198. package/run/run-errors.d.ts +2 -2
  199. package/run/run-errors.d.ts.map +1 -1
  200. package/run/run-errors.js +1 -1
  201. package/run/run-errors.js.map +1 -1
  202. package/run/run-if-main-options.d.ts +3 -3
  203. package/run/run-if-main-options.d.ts.map +1 -1
  204. package/run/run-if-main.d.ts +1 -1
  205. package/run/run-if-main.d.ts.map +1 -1
  206. package/run/run-list-renderer.js +2 -2
  207. package/run/run-list-renderer.js.map +1 -1
  208. package/run/run-local-sharding.js +1 -1
  209. package/run/run-local-sharding.js.map +1 -1
  210. package/run/run-local-test-plan.js +21 -17
  211. package/run/run-local-test-plan.js.map +1 -1
  212. package/run/run-record-outcomes.d.ts +5 -5
  213. package/run/run-record-outcomes.d.ts.map +1 -1
  214. package/run/run-record-result.d.ts +1 -1
  215. package/run/run-record-result.d.ts.map +1 -1
  216. package/run/run-record-result.js +2 -2
  217. package/run/run-record-result.js.map +1 -1
  218. package/run/run-record-storage.js +1 -1
  219. package/run/run-record-storage.js.map +1 -1
  220. package/run/run-record-types.d.ts +3 -3
  221. package/run/run-record-types.d.ts.map +1 -1
  222. package/run/run-request-types.d.ts +3 -3
  223. package/run/run-request-types.d.ts.map +1 -1
  224. package/run/run-result-reporting.js +1 -1
  225. package/run/run-result-reporting.js.map +1 -1
  226. package/run/run-result-schema.d.ts +1 -1
  227. package/run/run-result-schema.d.ts.map +1 -1
  228. package/run/run-runtime-schema.js +1 -1
  229. package/run/run-runtime-schema.js.map +1 -1
  230. package/run/run-selection-filters.d.ts +2 -2
  231. package/run/run-selection-filters.d.ts.map +1 -1
  232. package/run/run-selection-filters.js +1 -1
  233. package/run/run-selection-filters.js.map +1 -1
  234. package/run/run-selection.js +2 -2
  235. package/run/run-selection.js.map +1 -1
  236. package/run/run-sharding.js +1 -1
  237. package/run/run-sharding.js.map +1 -1
  238. package/run/run-test-modules.d.ts +3 -3
  239. package/run/run-test-modules.d.ts.map +1 -1
  240. package/run/run-timing-collection.d.ts +2 -2
  241. package/run/run-timing-collection.d.ts.map +1 -1
  242. package/run/run-timing-collection.js +1 -1
  243. package/run/run-timing-collection.js.map +1 -1
  244. package/run/run-types.d.ts +1 -1
  245. package/run/run-types.d.ts.map +1 -1
  246. package/run/run-validation.js +1 -1
  247. package/run/run-validation.js.map +1 -1
  248. package/run/simulation-witness.js +1 -1
  249. package/run/simulation-witness.js.map +1 -1
  250. package/run/supervised-child-execution.js +5 -4
  251. package/run/supervised-child-execution.js.map +1 -1
  252. package/run/supervised-child-test-plan.js +1 -1
  253. package/run/supervised-child-test-plan.js.map +1 -1
  254. package/run/supervised-child.js +3 -3
  255. package/run/supervised-child.js.map +1 -1
  256. package/run/supervised-output-capture.js +1 -1
  257. package/run/supervised-output-capture.js.map +1 -1
  258. package/run/supervised-protocol.js +1 -1
  259. package/run/supervised-protocol.js.map +1 -1
  260. package/run/supervised-run-process-policy.js +2 -2
  261. package/run/supervised-run-process-policy.js.map +1 -1
  262. package/run/supervised-run-runtime.js +1 -1
  263. package/run/supervised-run-runtime.js.map +1 -1
  264. package/run/supervised-run-state.js +3 -3
  265. package/run/supervised-run-state.js.map +1 -1
  266. package/run/work-unit-identity.js +1 -1
  267. package/run/work-unit-identity.js.map +1 -1
  268. package/run/work-unit-planning.js +1 -1
  269. package/run/work-unit-planning.js.map +1 -1
  270. package/run/work-unit-resource-constraints.js +2 -2
  271. package/run/work-unit-resource-constraints.js.map +1 -1
  272. package/run/worker-execution-engine.js +2 -2
  273. package/run/worker-execution-engine.js.map +1 -1
  274. package/run/worker-pool-hedge-dispatch.js +1 -1
  275. package/run/worker-pool-hedge-dispatch.js.map +1 -1
  276. package/run/worker-pool-hedged-arbitration.js +1 -1
  277. package/run/worker-pool-hedged-arbitration.js.map +1 -1
  278. package/run/worker-pool-host.entry-point.js +1 -1
  279. package/run/worker-pool-host.entry-point.js.map +1 -1
  280. package/run/worker-pool-output.js +1 -1
  281. package/run/worker-pool-output.js.map +1 -1
  282. package/run/worker-pool-pending-splitting.js +1 -1
  283. package/run/worker-pool-pending-splitting.js.map +1 -1
  284. package/run/worker-pool-placement-planning.js +1 -1
  285. package/run/worker-pool-placement-planning.js.map +1 -1
  286. package/run/worker-pool-protocol.js +1 -0
  287. package/run/worker-pool-protocol.js.map +1 -1
  288. package/run/worker-pool-resource-lifecycle-execution.js +1 -1
  289. package/run/worker-pool-resource-lifecycle-execution.js.map +1 -1
  290. package/run/worker-pool-results.js +1 -1
  291. package/run/worker-pool-results.js.map +1 -1
  292. package/run/worker-pool-task-events.js +2 -2
  293. package/run/worker-pool-task-events.js.map +1 -1
  294. package/run/worker-pool-warm-lane-affinity.js +1 -1
  295. package/run/worker-pool-warm-lane-affinity.js.map +1 -1
  296. package/run/worker-pool-work-load.js +1 -1
  297. package/run/worker-pool-work-load.js.map +1 -1
  298. package/run/worker-pool-worker-plan.js +2 -2
  299. package/run/worker-pool-worker-plan.js.map +1 -1
  300. package/run/worker-pool-worker-resources.js +1 -1
  301. package/run/worker-pool-worker-resources.js.map +1 -1
  302. package/run/worker-pool-worker.js +1 -1
  303. package/run/worker-pool-worker.js.map +1 -1
  304. package/run/workload-input-validation.js +1 -1
  305. package/run/workload-input-validation.js.map +1 -1
  306. package/software-bill-of-materials.cyclonedx.json +21 -38
  307. package/transcript/http-transcript-artifact.js +1 -1
  308. package/transcript/http-transcript-artifact.js.map +1 -1
  309. package/assertion-protocol/assertion-evaluation.js +0 -6
  310. package/assertion-protocol/assertion-evaluation.js.map +0 -1
  311. package/assertion-protocol/assertion-node-shape.d.ts +0 -81
  312. package/assertion-protocol/assertion-node-shape.d.ts.map +0 -1
  313. package/assertion-protocol/assertion-node.d.ts +0 -82
  314. package/assertion-protocol/assertion-node.d.ts.map +0 -1
  315. package/assertion-protocol/assertion-node.js +0 -33
  316. package/assertion-protocol/assertion-node.js.map +0 -1
  317. package/assertion-protocol/assertion-reference.d.ts +0 -50
  318. package/assertion-protocol/assertion-reference.d.ts.map +0 -1
  319. package/assertion-protocol/assertion-reference.js +0 -22
  320. package/assertion-protocol/assertion-reference.js.map +0 -1
  321. package/assertion-protocol/assertions/boolean.d.ts +0 -4
  322. package/assertion-protocol/assertions/boolean.d.ts.map +0 -1
  323. package/assertion-protocol/assertions/boolean.js +0 -12
  324. package/assertion-protocol/assertions/boolean.js.map +0 -1
  325. package/assertion-protocol/assertions/collection.d.ts +0 -13
  326. package/assertion-protocol/assertions/collection.d.ts.map +0 -1
  327. package/assertion-protocol/assertions/collection.js +0 -21
  328. package/assertion-protocol/assertions/collection.js.map +0 -1
  329. package/assertion-protocol/assertions/dispatch.js +0 -47
  330. package/assertion-protocol/assertions/dispatch.js.map +0 -1
  331. package/assertion-protocol/assertions/equality.d.ts +0 -6
  332. package/assertion-protocol/assertions/equality.d.ts.map +0 -1
  333. package/assertion-protocol/assertions/equality.js +0 -24
  334. package/assertion-protocol/assertions/equality.js.map +0 -1
  335. package/assertion-protocol/assertions/fail.d.ts +0 -8
  336. package/assertion-protocol/assertions/fail.d.ts.map +0 -1
  337. package/assertion-protocol/assertions/fail.js +0 -8
  338. package/assertion-protocol/assertions/fail.js.map +0 -1
  339. package/assertion-protocol/assertions/numeric.d.ts +0 -16
  340. package/assertion-protocol/assertions/numeric.d.ts.map +0 -1
  341. package/assertion-protocol/assertions/numeric.js +0 -43
  342. package/assertion-protocol/assertions/numeric.js.map +0 -1
  343. package/assertion-protocol/assertions/partial.d.ts +0 -5
  344. package/assertion-protocol/assertions/partial.d.ts.map +0 -1
  345. package/assertion-protocol/assertions/partial.js +0 -17
  346. package/assertion-protocol/assertions/partial.js.map +0 -1
  347. package/assertion-protocol/assertions/presence.d.ts +0 -6
  348. package/assertion-protocol/assertions/presence.d.ts.map +0 -1
  349. package/assertion-protocol/assertions/presence.js +0 -20
  350. package/assertion-protocol/assertions/presence.js.map +0 -1
  351. package/assertion-protocol/assertions/string.d.ts +0 -15
  352. package/assertion-protocol/assertions/string.d.ts.map +0 -1
  353. package/assertion-protocol/assertions/string.js +0 -33
  354. package/assertion-protocol/assertions/string.js.map +0 -1
  355. package/assertion-protocol/assertions/type-shape.d.ts +0 -23
  356. package/assertion-protocol/assertions/type-shape.d.ts.map +0 -1
  357. package/assertion-protocol/assertions/type-shape.js +0 -43
  358. package/assertion-protocol/assertions/type-shape.js.map +0 -1
  359. package/assertion-protocol/collection-count.js +0 -42
  360. package/assertion-protocol/collection-count.js.map +0 -1
  361. package/assertion-protocol/evaluation.js +0 -175
  362. package/assertion-protocol/evaluation.js.map +0 -1
  363. package/assertion-protocol/partial-matching.js +0 -13
  364. package/assertion-protocol/partial-matching.js.map +0 -1
  365. package/assertion-protocol/source-location-forwarding.js +0 -32
  366. package/assertion-protocol/source-location-forwarding.js.map +0 -1
  367. package/assertion-protocol/source-location.js +0 -119
  368. package/assertion-protocol/source-location.js.map +0 -1
  369. package/assertion-protocol/thrown-error-record.d.ts +0 -7
  370. package/assertion-protocol/thrown-error-record.d.ts.map +0 -1
  371. package/assertion-protocol/thrown-error-record.js +0 -17
  372. package/assertion-protocol/thrown-error-record.js.map +0 -1
  373. package/assertion-protocol/thrown-matcher.d.ts +0 -34
  374. package/assertion-protocol/thrown-matcher.d.ts.map +0 -1
  375. package/assertion-protocol/thrown-matcher.js +0 -201
  376. package/assertion-protocol/thrown-matcher.js.map +0 -1
  377. package/attachments/json-snapshot.js +0 -125
  378. package/attachments/json-snapshot.js.map +0 -1
  379. package/canonical-identity.js +0 -54
  380. package/canonical-identity.js.map +0 -1
  381. package/compare/comparison-result.js +0 -47
  382. package/compare/comparison-result.js.map +0 -1
  383. package/compare/comparison-state.js +0 -20
  384. package/compare/comparison-state.js.map +0 -1
  385. package/compare/comparison.js +0 -78
  386. package/compare/comparison.js.map +0 -1
  387. package/compare/diff-path.js +0 -37
  388. package/compare/diff-path.js.map +0 -1
  389. package/compare/raw-comparison.js +0 -285
  390. package/compare/raw-comparison.js.map +0 -1
  391. package/compare/serialized-value-classification.js +0 -99
  392. package/compare/serialized-value-classification.js.map +0 -1
  393. package/compare/serialized-value-shape.d.ts +0 -134
  394. package/compare/serialized-value-shape.d.ts.map +0 -1
  395. package/compare/serialized-value-shape.js +0 -12
  396. package/compare/serialized-value-shape.js.map +0 -1
  397. package/compare/serialized-value-state.js +0 -55
  398. package/compare/serialized-value-state.js.map +0 -1
  399. package/compare/serialized-value.d.ts +0 -4
  400. package/compare/serialized-value.d.ts.map +0 -1
  401. package/compare/serialized-value.js +0 -389
  402. package/compare/serialized-value.js.map +0 -1
  403. package/compare/structured-diff.js +0 -382
  404. package/compare/structured-diff.js.map +0 -1
  405. package/compare/value-classification.js +0 -112
  406. package/compare/value-classification.js.map +0 -1
  407. package/diff/binary-diff.js +0 -49
  408. package/diff/binary-diff.js.map +0 -1
  409. package/diff/diff-shape.d.ts +0 -122
  410. package/diff/diff-shape.d.ts.map +0 -1
  411. package/diff/string-diff.js +0 -22
  412. package/diff/string-diff.js.map +0 -1
  413. package/engine/assertion-facade.d.ts +0 -47
  414. package/engine/assertion-facade.d.ts.map +0 -1
  415. package/engine/assertion-facade.js +0 -362
  416. package/engine/assertion-facade.js.map +0 -1
  417. package/engine/assertion-recorder.d.ts +0 -12
  418. package/engine/assertion-recorder.d.ts.map +0 -1
  419. package/engine/assertion-recorder.js +0 -251
  420. package/engine/assertion-recorder.js.map +0 -1
  421. package/engine/async-control.d.ts +0 -7
  422. package/engine/async-control.d.ts.map +0 -1
  423. package/engine/async-control.js +0 -162
  424. package/engine/async-control.js.map +0 -1
  425. package/engine/async-leak-diagnostics.js +0 -188
  426. package/engine/async-leak-diagnostics.js.map +0 -1
  427. package/engine/benchmark-environment.d.ts +0 -8
  428. package/engine/benchmark-environment.d.ts.map +0 -1
  429. package/engine/benchmark-garbage-collection.d.ts +0 -8
  430. package/engine/benchmark-garbage-collection.d.ts.map +0 -1
  431. package/engine/benchmark-garbage-collection.js +0 -4
  432. package/engine/benchmark-garbage-collection.js.map +0 -1
  433. package/engine/benchmark-limits.js +0 -3
  434. package/engine/benchmark-limits.js.map +0 -1
  435. package/engine/benchmark-node.d.ts +0 -37
  436. package/engine/benchmark-node.d.ts.map +0 -1
  437. package/engine/benchmark-node.js +0 -9
  438. package/engine/benchmark-node.js.map +0 -1
  439. package/engine/benchmark-result.d.ts +0 -247
  440. package/engine/benchmark-result.d.ts.map +0 -1
  441. package/engine/benchmark-result.js +0 -2
  442. package/engine/benchmark-result.js.map +0 -1
  443. package/engine/benchmark-timeline.d.ts +0 -12
  444. package/engine/benchmark-timeline.d.ts.map +0 -1
  445. package/engine/case-attempt-execution.js +0 -234
  446. package/engine/case-attempt-execution.js.map +0 -1
  447. package/engine/case-body-execution.js +0 -232
  448. package/engine/case-body-execution.js.map +0 -1
  449. package/engine/case-execution-lifecycle.js +0 -22
  450. package/engine/case-execution-lifecycle.js.map +0 -1
  451. package/engine/case-execution.d.ts +0 -14
  452. package/engine/case-execution.d.ts.map +0 -1
  453. package/engine/case-execution.js +0 -225
  454. package/engine/case-execution.js.map +0 -1
  455. package/engine/case-interruption.js +0 -26
  456. package/engine/case-interruption.js.map +0 -1
  457. package/engine/coverage-artifact.d.ts +0 -36
  458. package/engine/coverage-artifact.d.ts.map +0 -1
  459. package/engine/custom-assertion-recording.js +0 -175
  460. package/engine/custom-assertion-recording.js.map +0 -1
  461. package/engine/engine.d.ts +0 -21
  462. package/engine/engine.d.ts.map +0 -1
  463. package/engine/engine.js +0 -35
  464. package/engine/engine.js.map +0 -1
  465. package/engine/execution-async-leak-policy.d.ts +0 -3
  466. package/engine/execution-async-leak-policy.d.ts.map +0 -1
  467. package/engine/execution-async-leak-policy.js +0 -95
  468. package/engine/execution-async-leak-policy.js.map +0 -1
  469. package/engine/execution-error-ownership.d.ts +0 -6
  470. package/engine/execution-error-ownership.d.ts.map +0 -1
  471. package/engine/execution-error-ownership.js +0 -83
  472. package/engine/execution-error-ownership.js.map +0 -1
  473. package/engine/execution-global-error-observer.d.ts +0 -15
  474. package/engine/execution-global-error-observer.d.ts.map +0 -1
  475. package/engine/execution-global-error-observer.js +0 -276
  476. package/engine/execution-global-error-observer.js.map +0 -1
  477. package/engine/execution-observation.js +0 -212
  478. package/engine/execution-observation.js.map +0 -1
  479. package/engine/execution-options.d.ts +0 -39
  480. package/engine/execution-options.d.ts.map +0 -1
  481. package/engine/execution-options.js +0 -42
  482. package/engine/execution-options.js.map +0 -1
  483. package/engine/execution-preparation.d.ts +0 -13
  484. package/engine/execution-preparation.d.ts.map +0 -1
  485. package/engine/execution-preparation.js +0 -34
  486. package/engine/execution-preparation.js.map +0 -1
  487. package/engine/execution-process-budget-breach.d.ts +0 -8
  488. package/engine/execution-process-budget-breach.d.ts.map +0 -1
  489. package/engine/execution-process-budget-breach.js +0 -30
  490. package/engine/execution-process-budget-breach.js.map +0 -1
  491. package/engine/execution-process-budget-tracking.js +0 -33
  492. package/engine/execution-process-budget-tracking.js.map +0 -1
  493. package/engine/execution-process-tracked-cases.js +0 -40
  494. package/engine/execution-process-tracked-cases.js.map +0 -1
  495. package/engine/execution-result.js +0 -120
  496. package/engine/execution-result.js.map +0 -1
  497. package/engine/execution-supervision-state.js +0 -54
  498. package/engine/execution-supervision-state.js.map +0 -1
  499. package/engine/execution-supervision.d.ts +0 -16
  500. package/engine/execution-supervision.d.ts.map +0 -1
  501. package/engine/execution-supervision.js +0 -345
  502. package/engine/execution-supervision.js.map +0 -1
  503. package/engine/execution-test-plan-cases.js +0 -216
  504. package/engine/execution-test-plan-cases.js.map +0 -1
  505. package/engine/execution-test-plan-process-usage.js +0 -14
  506. package/engine/execution-test-plan-process-usage.js.map +0 -1
  507. package/engine/execution.d.ts +0 -8
  508. package/engine/execution.d.ts.map +0 -1
  509. package/engine/execution.js +0 -71
  510. package/engine/execution.js.map +0 -1
  511. package/engine/identity.d.ts +0 -31
  512. package/engine/identity.d.ts.map +0 -1
  513. package/engine/identity.js +0 -68
  514. package/engine/identity.js.map +0 -1
  515. package/engine/native-resource-observation.js +0 -70
  516. package/engine/native-resource-observation.js.map +0 -1
  517. package/engine/node-assertion-error.js +0 -47
  518. package/engine/node-assertion-error.js.map +0 -1
  519. package/engine/process-usage-growth.js +0 -12
  520. package/engine/process-usage-growth.js.map +0 -1
  521. package/engine/process-usage.d.ts +0 -22
  522. package/engine/process-usage.d.ts.map +0 -1
  523. package/engine/property-node.d.ts +0 -30
  524. package/engine/property-node.d.ts.map +0 -1
  525. package/engine/property-node.js +0 -9
  526. package/engine/property-node.js.map +0 -1
  527. package/engine/recorded-assertion-failure.js +0 -30
  528. package/engine/recorded-assertion-failure.js.map +0 -1
  529. package/engine/reporter-dispatcher.d.ts +0 -17
  530. package/engine/reporter-dispatcher.d.ts.map +0 -1
  531. package/engine/reporter-dispatcher.js +0 -316
  532. package/engine/reporter-dispatcher.js.map +0 -1
  533. package/engine/reporter-disposal.js +0 -13
  534. package/engine/reporter-disposal.js.map +0 -1
  535. package/engine/reporter-error-delivery-tracking.js +0 -33
  536. package/engine/reporter-error-delivery-tracking.js.map +0 -1
  537. package/engine/reporter-event-queue.js +0 -55
  538. package/engine/reporter-event-queue.js.map +0 -1
  539. package/engine/reporter-managed-output.js +0 -105
  540. package/engine/reporter-managed-output.js.map +0 -1
  541. package/engine/reporter-output-scope.js +0 -65
  542. package/engine/reporter-output-scope.js.map +0 -1
  543. package/engine/reporter-output.d.ts +0 -28
  544. package/engine/reporter-output.d.ts.map +0 -1
  545. package/engine/reporter-output.js +0 -17
  546. package/engine/reporter-output.js.map +0 -1
  547. package/engine/reporter.d.ts +0 -197
  548. package/engine/reporter.d.ts.map +0 -1
  549. package/engine/reporter.js +0 -111
  550. package/engine/reporter.js.map +0 -1
  551. package/engine/reporting-context.d.ts +0 -6
  552. package/engine/reporting-context.d.ts.map +0 -1
  553. package/engine/reporting-context.js +0 -74
  554. package/engine/reporting-context.js.map +0 -1
  555. package/engine/require-assertion-facade.d.ts +0 -18
  556. package/engine/require-assertion-facade.d.ts.map +0 -1
  557. package/engine/require-assertion-facade.js +0 -128
  558. package/engine/require-assertion-facade.js.map +0 -1
  559. package/engine/resource-owner-observation.js +0 -143
  560. package/engine/resource-owner-observation.js.map +0 -1
  561. package/engine/retry-policy.d.ts +0 -4
  562. package/engine/retry-policy.d.ts.map +0 -1
  563. package/engine/retry-policy.js +0 -22
  564. package/engine/retry-policy.js.map +0 -1
  565. package/engine/run-artifact.d.ts +0 -45
  566. package/engine/run-artifact.d.ts.map +0 -1
  567. package/engine/run-result.d.ts +0 -215
  568. package/engine/run-result.d.ts.map +0 -1
  569. package/engine/run-result.js +0 -202
  570. package/engine/run-result.js.map +0 -1
  571. package/engine/run-timings.d.ts +0 -57
  572. package/engine/run-timings.d.ts.map +0 -1
  573. package/engine/run-timings.js +0 -120
  574. package/engine/run-timings.js.map +0 -1
  575. package/engine/runner-error-reporting.js +0 -29
  576. package/engine/runner-error-reporting.js.map +0 -1
  577. package/engine/runtime-attachment.d.ts +0 -82
  578. package/engine/runtime-attachment.d.ts.map +0 -1
  579. package/engine/test-attempt-history.js +0 -25
  580. package/engine/test-attempt-history.js.map +0 -1
  581. package/engine/test-body-resource-attachment.d.ts +0 -53
  582. package/engine/test-body-resource-attachment.d.ts.map +0 -1
  583. package/engine/test-body-resource-attachment.js +0 -30
  584. package/engine/test-body-resource-attachment.js.map +0 -1
  585. package/engine/test-body.d.ts +0 -16
  586. package/engine/test-body.d.ts.map +0 -1
  587. package/engine/test-body.js +0 -51
  588. package/engine/test-body.js.map +0 -1
  589. package/engine/test-data.d.ts +0 -25
  590. package/engine/test-data.d.ts.map +0 -1
  591. package/engine/test-data.js +0 -126
  592. package/engine/test-data.js.map +0 -1
  593. package/engine/test-node.d.ts +0 -178
  594. package/engine/test-node.d.ts.map +0 -1
  595. package/engine/test-node.js +0 -226
  596. package/engine/test-node.js.map +0 -1
  597. package/engine/test-plan.d.ts +0 -52
  598. package/engine/test-plan.d.ts.map +0 -1
  599. package/engine/test-plan.js +0 -315
  600. package/engine/test-plan.js.map +0 -1
  601. package/engine/test-scope-lifecycle.js +0 -65
  602. package/engine/test-scope-lifecycle.js.map +0 -1
  603. package/engine/throwing-test-scope.js +0 -27
  604. package/engine/throwing-test-scope.js.map +0 -1
  605. package/engine/workload-input.d.ts +0 -3
  606. package/engine/workload-input.d.ts.map +0 -1
  607. package/engine/workload-input.js +0 -54
  608. package/engine/workload-input.js.map +0 -1
  609. package/engine/workload-parameters.d.ts +0 -3
  610. package/engine/workload-parameters.d.ts.map +0 -1
  611. package/engine/workload-parameters.js +0 -67
  612. package/engine/workload-parameters.js.map +0 -1
  613. package/engine/workload-test-case.d.ts +0 -8
  614. package/engine/workload-test-case.d.ts.map +0 -1
  615. package/engine/workload-test-case.js +0 -33
  616. package/engine/workload-test-case.js.map +0 -1
  617. package/stored-value.js +0 -12
  618. package/stored-value.js.map +0 -1
@@ -1,232 +0,0 @@
1
- import { createThrownErrorRecord } from "../assertion-protocol/thrown-error-record.js";
2
- import { isTestContractFailure, RequireFailedSignalError, TestContractSignalError } from "./assertion-recorder.js";
3
- import { isNodeAssertionError, nodeAssertionErrorFailure } from "./node-assertion-error.js";
4
- import { isCaseRunnerError, permissionDeniedRunnerErrorFromThrown } from "./run-result.js";
5
- import { readTestBodyFamily } from "./test-body.js";
6
- export function createBenchmarkAttempt(testCase, onUpdate, benchmarkEnvironment) {
7
- let result = null;
8
- const errors = [];
9
- const cleanupErrors = [];
10
- return {
11
- benchmarkEnvironment,
12
- cleanupErrors() {
13
- return cleanupErrors;
14
- },
15
- reportCleanupError(error) {
16
- cleanupErrors.push(error);
17
- },
18
- result() {
19
- return result;
20
- },
21
- errors() {
22
- return errors;
23
- },
24
- async updateResult(updated) {
25
- result = updated;
26
- await onUpdate(updated);
27
- },
28
- reportError(error) {
29
- errors.push(error.runnerError(testCase.id, testCase.workId));
30
- }
31
- };
32
- }
33
- export function builderBodyForAttempt(testCase, attempt) {
34
- const { execution } = testCase;
35
- if (execution.kind !== 'body' || execution.bodyMode === 'throwing') {
36
- throw new TypeError('Test case does not have a builder body.');
37
- }
38
- if (execution.bodyMode === 'builder' || execution.bodyMode === 'property') {
39
- return execution.body;
40
- }
41
- const { workload } = testCase.workId;
42
- if (workload === null) {
43
- throw new TypeError('Benchmark execution requires a selected workload.');
44
- }
45
- return async function runBenchmark(scope) {
46
- return execution.body({
47
- workId: testCase.workId,
48
- benchmarkEnvironment: attempt.benchmarkEnvironment,
49
- reportCleanupError: attempt.reportCleanupError,
50
- cleanup: scope.cleanup,
51
- signal: scope.signal,
52
- workload,
53
- updateResult: attempt.updateResult,
54
- reportError: attempt.reportError
55
- });
56
- };
57
- }
58
- export function testBodyExecutionError(testCase) {
59
- const { execution } = testCase;
60
- if (execution.kind !== 'body') {
61
- return null;
62
- }
63
- if (execution.bodyMode === 'property' || readTestBodyFamily(execution.body)?.family === 'property') {
64
- return new TypeError('Property execution is not available. Property policy and generator execution are required.');
65
- }
66
- return null;
67
- }
68
- function caseRunnerError(testCase, error) {
69
- if (isCaseRunnerError(error)) {
70
- return error.runnerError(testCase.id, testCase.workId);
71
- }
72
- return permissionDeniedRunnerErrorFromThrown(error, {
73
- attributedTo: testCase.id,
74
- attributedToWork: testCase.workId,
75
- boundary: null,
76
- diagnosticChannel: null,
77
- hook: null,
78
- phase: 'body'
79
- });
80
- }
81
- function finishedCaseCleanup(testCase, cleanupErrors) {
82
- const bodyErrors = [];
83
- const runnerErrors = [];
84
- for (const error of cleanupErrors) {
85
- const runnerError = caseRunnerError(testCase, error);
86
- if (runnerError === null) {
87
- bodyErrors.push(createThrownErrorRecord(error));
88
- }
89
- else {
90
- runnerErrors.push(runnerError);
91
- }
92
- }
93
- return {
94
- cleanupErrors: bodyErrors,
95
- runnerErrors
96
- };
97
- }
98
- function requireFailedBody(context) {
99
- const { cleanupErrors, contractFailures, recorder, runnerErrors } = context;
100
- return {
101
- bodyError: null,
102
- cleanupErrors,
103
- contractFailures,
104
- requireFailed: true,
105
- runnerErrors,
106
- returnedAssertions: recorder.activeRecordedAssertions()
107
- };
108
- }
109
- function contractFailedBody(context, contractFailures) {
110
- const { cleanupErrors, recorder, runnerErrors } = context;
111
- return {
112
- bodyError: null,
113
- cleanupErrors,
114
- contractFailures,
115
- requireFailed: false,
116
- runnerErrors,
117
- returnedAssertions: recorder.activeRecordedAssertions()
118
- };
119
- }
120
- export function bodyErrorResult(context, error) {
121
- const { cleanupErrors, contractFailures, recorder, runnerErrors } = context;
122
- return {
123
- bodyError: createThrownErrorRecord(error),
124
- cleanupErrors,
125
- contractFailures,
126
- requireFailed: false,
127
- runnerErrors,
128
- returnedAssertions: recorder.activeRecordedAssertions()
129
- };
130
- }
131
- function caseRunnerErrorBody(context, runnerError) {
132
- const { cleanupErrors, contractFailures, recorder, runnerErrors } = context;
133
- return {
134
- bodyError: null,
135
- cleanupErrors,
136
- contractFailures,
137
- requireFailed: false,
138
- runnerErrors: [runnerError, ...runnerErrors],
139
- returnedAssertions: recorder.activeRecordedAssertions()
140
- };
141
- }
142
- function nodeAssertionFailedBody(testCase, context, error) {
143
- return {
144
- bodyError: null,
145
- cleanupErrors: context.cleanupErrors,
146
- contractFailures: context.contractFailures,
147
- requireFailed: false,
148
- runnerErrors: context.runnerErrors,
149
- returnedAssertions: [
150
- ...context.recorder.activeRecordedAssertions(),
151
- nodeAssertionErrorFailure(error, testCase.definitionLocations[0])
152
- ]
153
- };
154
- }
155
- export function completedBody(input) {
156
- const { assertionResult, context } = input;
157
- const { recorder } = context;
158
- if (recorder.requireFailed()) {
159
- return requireFailedBody(context);
160
- }
161
- const returnedAssertions = recorder.returnedAssertions(assertionResult);
162
- if (isTestContractFailure(returnedAssertions)) {
163
- return contractFailedBody(context, [returnedAssertions, ...context.contractFailures]);
164
- }
165
- return {
166
- bodyError: null,
167
- cleanupErrors: context.cleanupErrors,
168
- contractFailures: context.contractFailures,
169
- requireFailed: false,
170
- runnerErrors: context.runnerErrors,
171
- returnedAssertions
172
- };
173
- }
174
- export function completedThrowingBody(recorder) {
175
- if (recorder.requireFailed()) {
176
- return requireFailedBody({
177
- cleanupErrors: [],
178
- contractFailures: [],
179
- recorder,
180
- runnerErrors: []
181
- });
182
- }
183
- const returnedAssertions = recorder.completedThrowingAssertions();
184
- return isTestContractFailure(returnedAssertions)
185
- ? contractFailedBody({
186
- cleanupErrors: [],
187
- contractFailures: [],
188
- recorder,
189
- runnerErrors: []
190
- }, [returnedAssertions])
191
- : {
192
- bodyError: null,
193
- cleanupErrors: [],
194
- contractFailures: [],
195
- requireFailed: false,
196
- runnerErrors: [],
197
- returnedAssertions
198
- };
199
- }
200
- function nonRunnerFailedBody(input) {
201
- const { context, error, testCase } = input;
202
- if (error instanceof RequireFailedSignalError) {
203
- return requireFailedBody(context);
204
- }
205
- if (error instanceof TestContractSignalError) {
206
- return contractFailedBody(context, [error.failure(), ...context.contractFailures]);
207
- }
208
- if (testCase.execution.kind === 'body' &&
209
- testCase.execution.bodyMode === 'throwing' &&
210
- isNodeAssertionError(error)) {
211
- return nodeAssertionFailedBody(testCase, context, error);
212
- }
213
- return bodyErrorResult(context, error);
214
- }
215
- export function failedBody(input) {
216
- const { context, error, testCase } = input;
217
- const runnerError = caseRunnerError(testCase, error);
218
- if (runnerError !== null) {
219
- return caseRunnerErrorBody(context, runnerError);
220
- }
221
- return nonRunnerFailedBody(input);
222
- }
223
- export function bodyResultContext(recorder, testCase, finishedScope, sampleCleanupErrors) {
224
- const cleanup = finishedCaseCleanup(testCase, [...sampleCleanupErrors, ...finishedScope.cleanupErrors]);
225
- return {
226
- cleanupErrors: cleanup.cleanupErrors,
227
- contractFailures: finishedScope.lifecycleFailures,
228
- recorder,
229
- runnerErrors: cleanup.runnerErrors
230
- };
231
- }
232
- //# sourceMappingURL=case-body-execution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"case-body-execution.js","sourceRoot":"","sources":["../../../../source/engine/case-body-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAA0B,MAAM,8CAA8C,CAAC;AAC/G,OAAO,EACH,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EAE1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAEH,iBAAiB,EACjB,qCAAqC,EAGxC,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAepD,MAAM,UAAU,sBAAsB,CAClC,QAAsB,EACtB,QAA0C,EAC1C,oBAA0D;IAE1D,IAAI,MAAM,GAAoC,IA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,22 +0,0 @@
1
- import { AsyncLocalStorage } from 'node:async_hooks';
2
- const lifecycleKey = Symbol.for('@overkill-dev/engine/caseExecutionLifecycle');
3
- function isLifecycleStorage(value) {
4
- return value instanceof AsyncLocalStorage;
5
- }
6
- function sharedLifecycleStorage() {
7
- const existing = Reflect.get(globalThis, lifecycleKey);
8
- if (isLifecycleStorage(existing)) {
9
- return existing;
10
- }
11
- const created = new AsyncLocalStorage();
12
- Reflect.set(globalThis, lifecycleKey, created);
13
- return created;
14
- }
15
- const lifecycle = sharedLifecycleStorage();
16
- export const currentCaseExecutionLifecycle = function () {
17
- return lifecycle.getStore() ?? null;
18
- };
19
- export async function withCaseExecutionLifecycle(observer, run) {
20
- return await lifecycle.run(observer, run);
21
- }
22
- //# sourceMappingURL=case-execution-lifecycle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"case-execution-lifecycle.js","sourceRoot":"","sources":["../../../../source/engine/case-execution-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AASrD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;AAE/E,SAAS,kBAAkB,CAAC,KAAc;IACtC,OAAO,KAAK,YAAY,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAS,sBAAsB;IAC3B,MAAM,QAAQ,GAAY,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAChE,IAAI,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC/B,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,MAAM,OAAO,GAAG,IAAI,iBAAiB,EAA0B,CAAC;IAChE,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC/C,OAAO,OAAO,CAAC;AACnB,CAAC;AAED,MAAM,SAAS,GAAG,sBAAsB,EAAE,CAAC;AAE3C,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,OAAO,SAAS,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC5C,QAAgC,EAChC,GAAyB;IAEzB,OAAO,MAAM,SAAS,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AAC9C,CAAC"}
@@ -1,14 +0,0 @@
1
- import { type PerTestResult, type RunnerError } from './run-result.ts';
2
- import type { TestPlanCase } from './test-plan.ts';
3
- type AttemptId = PerTestResult['attempts'][number]['attempt'];
4
- export type TestRuntimePolicy = {
5
- readonly prepareAttempt: (testCase: TestPlanCase, attempt: AttemptId) => Promise<void>;
6
- readonly runAttempt: <Value>(testCase: TestPlanCase, attempt: AttemptId, run: () => Promise<Value>) => Promise<Value>;
7
- readonly completeCase: (testCase: TestPlanCase, attempt: AttemptId) => Promise<void>;
8
- readonly runLoad: <Value>(run: () => Promise<Value>) => Promise<Value>;
9
- readonly takeAttemptErrors: (testCase: TestPlanCase, attempt: AttemptId) => readonly RunnerError[];
10
- readonly takePendingRunErrors: () => readonly RunnerError[];
11
- readonly takeRunErrors: () => readonly RunnerError[];
12
- };
13
- export {};
14
- //# sourceMappingURL=case-execution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"case-execution.d.ts","sourceRoot":"","sources":["../../../../source/engine/case-execution.ts"],"names":[],"mappings":"AAAA,OAAY,OAuBH,aAAa,EAClB,KAAK,aAKR,MAAM,iBAAiB,CAAC;AAGzB,OAAwD,KAC5C,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,KAAK,SAAS,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;IAG1D,QAIwB,iBAAiB,GAGW;IACpD,QAAQ,eAQe,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvF,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,EACvB,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,SAAS,EAClB,GAAG,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KACxB,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,QAAQ,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrF,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IACvE,QAAQ,CAAC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,KAAK,SAAS,WAAW,EAAE,CAAC;IACnG,QAAQ,CAAC,oBAAoB,EAAE,MAAM,SAAS,WAAW,EAAE,CAAC;IAC5D,QAAQ,CAAC,aAAa,EAAE,MAAM,SAAS,WAAW,EAAE,CAAC;CACxD,CAAC;AAiNF"}
@@ -1,225 +0,0 @@
1
- import { createBenchmarkAttempt, bodyResultContext, bodyErrorResult, completedBody, completedThrowingBody, failedBody, builderBodyForAttempt, testBodyExecutionError } from "./case-body-execution.js";
2
- import { assertionFailure } from "./recorded-assertion-failure.js";
3
- import { assertNonEmptyItems, createAssertionRecorder } from "./assertion-recorder.js";
4
- import { singleAttemptResult, verdictFromOutcome } from "./run-result.js";
5
- import { createTestScopeLifecycle } from "./test-scope-lifecycle.js";
6
- import { createThrowingTestScope } from "./throwing-test-scope.js";
7
- import { createCaseInterruption } from "./case-interruption.js";
8
- async function prepareCaseArtifacts(testCase, options) {
9
- const policy = options.runtimePolicy;
10
- if (policy === null) {
11
- return [];
12
- }
13
- try {
14
- await policy.prepareAttempt(testCase, options.attempt);
15
- return [];
16
- }
17
- catch (error) {
18
- return [error];
19
- }
20
- }
21
- function interruptedBody(context) {
22
- return {
23
- bodyError: null,
24
- cleanupErrors: context.cleanupErrors,
25
- contractFailures: context.contractFailures,
26
- requireFailed: context.recorder.requireFailed(),
27
- runnerErrors: context.runnerErrors,
28
- returnedAssertions: context.recorder.activeRecordedAssertions()
29
- };
30
- }
31
- async function runBuilderCaseBody(testCase, recorder, options, benchmarkAttempt) {
32
- const lifecycle = createTestScopeLifecycle(recorder);
33
- const runBody = async function runUserBody() {
34
- return await lifecycle.runBody(options.controller.signal, builderBodyForAttempt(testCase, benchmarkAttempt));
35
- };
36
- const runAndCleanUp = async function runBodyAndScopeCleanup() {
37
- const completion = await options.interruption.run(runBody);
38
- const preparationErrors = await prepareCaseArtifacts(testCase, options);
39
- const context = bodyResultContext(recorder, testCase, await lifecycle.finish(options.controller), [...preparationErrors, ...benchmarkAttempt.cleanupErrors()]);
40
- if (completion.kind === 'returned') {
41
- return completedBody({ assertionResult: completion.value, context });
42
- }
43
- return completion.kind === 'threw'
44
- ? failedBody({ context, error: completion.error, testCase })
45
- : interruptedBody(context);
46
- };
47
- return options.runtimePolicy === null
48
- ? await runAndCleanUp()
49
- : await options.runtimePolicy.runAttempt(testCase, options.attempt, runAndCleanUp);
50
- }
51
- async function runThrowingCaseBody(testCase, recorder, options) {
52
- const runBody = async function runUserBody() {
53
- if (testCase.execution.kind !== 'body' || testCase.execution.bodyMode !== 'throwing') {
54
- throw new TypeError('Non-throwing test cases do not have throwing bodies.');
55
- }
56
- await testCase.execution.body(createThrowingTestScope(recorder, options.controller.signal));
57
- };
58
- const runAndPrepare = async function runThrowingBodyAndPreparation() {
59
- const completion = await options.interruption.run(runBody);
60
- const preparationErrors = await prepareCaseArtifacts(testCase, options);
61
- options.controller.abort();
62
- const context = bodyResultContext(recorder, testCase, { cleanupErrors: preparationErrors, lifecycleFailures: [] }, []);
63
- if (completion.kind === 'threw') {
64
- return failedBody({ context, error: completion.error, testCase });
65
- }
66
- const body = completion.kind === 'returned' ? completedThrowingBody(recorder) : interruptedBody(context);
67
- return { ...body, cleanupErrors: context.cleanupErrors, runnerErrors: context.runnerErrors };
68
- };
69
- return options.runtimePolicy === null
70
- ? await runAndPrepare()
71
- : await options.runtimePolicy.runAttempt(testCase, options.attempt, runAndPrepare);
72
- }
73
- async function runCaseBody(testCase, recorder, options, benchmarkAttempt) {
74
- if (testCase.execution.kind !== 'body') {
75
- throw new TypeError('Skipped test cases do not have executable bodies.');
76
- }
77
- const executionError = testBodyExecutionError(testCase);
78
- if (executionError !== null) {
79
- return bodyErrorResult({ cleanupErrors: [], contractFailures: [], recorder, runnerErrors: [] }, executionError);
80
- }
81
- return testCase.execution.bodyMode === 'throwing'
82
- ? await runThrowingCaseBody(testCase, recorder, options)
83
- : await runBuilderCaseBody(testCase, recorder, options, benchmarkAttempt);
84
- }
85
- function bodyFailures(executedBody) {
86
- const failures = Array.from(executedBody.contractFailures);
87
- if (executedBody.bodyError !== null) {
88
- failures.push({
89
- error: executedBody.bodyError,
90
- kind: 'body-error'
91
- });
92
- }
93
- for (const cleanupError of executedBody.cleanupErrors) {
94
- failures.push({
95
- error: cleanupError,
96
- kind: 'cleanup-error'
97
- });
98
- }
99
- return failures;
100
- }
101
- function planFailure(recorder, executedBody) {
102
- if (executedBody.requireFailed ||
103
- executedBody.contractFailures.length > 0 ||
104
- executedBody.bodyError !== null ||
105
- executedBody.cleanupErrors.length > 0 ||
106
- executedBody.runnerErrors.length > 0) {
107
- return null;
108
- }
109
- return recorder.validateAssertionCount(executedBody.returnedAssertions.length);
110
- }
111
- function runnerErrorOutcome(executedBody) {
112
- const [runnerError] = executedBody.runnerErrors;
113
- if (runnerError === undefined) {
114
- return { kind: 'pass' };
115
- }
116
- if (executedBody.runnerErrors.every(function permissionFailure(error) {
117
- return error.subtype === 'permission';
118
- })) {
119
- return null;
120
- }
121
- return {
122
- kind: 'inconclusive',
123
- reason: runnerError.message
124
- };
125
- }
126
- function createOutcome(recorder, executedBody, generated) {
127
- const failures = [
128
- assertionFailure(executedBody.returnedAssertions),
129
- ...bodyFailures(executedBody),
130
- generated ? null : planFailure(recorder, executedBody)
131
- ]
132
- .filter(function isTestFailure(failure) {
133
- return failure !== null;
134
- });
135
- if (failures.length === 0) {
136
- return runnerErrorOutcome(executedBody);
137
- }
138
- assertNonEmptyItems(failures, 'Expected test failures to be non-empty.');
139
- return {
140
- failures,
141
- kind: 'fail'
142
- };
143
- }
144
- function defaultRunTestCaseOptions() {
145
- const controller = new AbortController();
146
- return {
147
- async onBenchmarkUpdate() {
148
- return undefined;
149
- },
150
- benchmarkEnvironment: null,
151
- attempt: { index: 0 },
152
- controller,
153
- runtimePolicy: null,
154
- interruption: null
155
- };
156
- }
157
- export function timeoutFailure(deadlineMilliseconds, elapsedMilliseconds) {
158
- return {
159
- deadlineMilliseconds,
160
- elapsedMilliseconds,
161
- kind: 'timeout'
162
- };
163
- }
164
- export function invalidTimeoutControlFailure(actual, expected) {
165
- return {
166
- actual,
167
- code: 'invalid-timeout-control',
168
- expected,
169
- kind: 'test-contract',
170
- summary: 'Timeout control must be a positive safe integer within the profile soft timeout.'
171
- };
172
- }
173
- function skippedCase(testCase, reason, durationMicroseconds) {
174
- const outcome = { kind: 'skip', reason };
175
- return {
176
- result: singleAttemptResult({
177
- definitionLocations: testCase.definitionLocations,
178
- id: testCase.id,
179
- outcome,
180
- verdict: verdictFromOutcome(outcome),
181
- workId: testCase.workId,
182
- durationMicroseconds
183
- }, { index: 0 }),
184
- runnerErrors: [],
185
- durationMicroseconds
186
- };
187
- }
188
- function completedCaseOutcome(recorder, body, terminal, generated) {
189
- const outcome = createOutcome(recorder, body, terminal !== null || generated);
190
- if (terminal !== null && (outcome === null || outcome.kind === 'pass')) {
191
- return { outcome: terminal.result.outcome, verdict: terminal.result.verdict };
192
- }
193
- return { outcome, verdict: outcome === null ? 'runtime-policy' : verdictFromOutcome(outcome) };
194
- }
195
- export async function runTestCase(testCase, wallClock, options = defaultRunTestCaseOptions()) {
196
- const startedAtMicroseconds = Number(wallClock.currentMonotonicMicroseconds);
197
- if (testCase.execution.kind === 'skip') {
198
- return skippedCase(testCase, testCase.execution.reason, Number(wallClock.currentMonotonicMicroseconds) - startedAtMicroseconds);
199
- }
200
- const execution = {
201
- recorder: createAssertionRecorder(),
202
- benchmark: createBenchmarkAttempt(testCase, options.onBenchmarkUpdate, options.benchmarkEnvironment),
203
- interruption: createCaseInterruption(options.interruption)
204
- };
205
- const completed = await runCaseBody(testCase, execution.recorder, {
206
- ...options,
207
- interruption: execution.interruption
208
- }, execution.benchmark);
209
- const executedBody = { ...completed, runnerErrors: [...completed.runnerErrors, ...execution.benchmark.errors()] };
210
- const completion = completedCaseOutcome(execution.recorder, executedBody, execution.interruption.result(), testCase.execution.bodyMode === 'benchmark');
211
- const durationMicroseconds = Number(wallClock.currentMonotonicMicroseconds) - startedAtMicroseconds;
212
- return {
213
- result: singleAttemptResult({
214
- benchmark: execution.interruption.result()?.result.benchmark ?? execution.benchmark.result(),
215
- definitionLocations: testCase.definitionLocations,
216
- id: testCase.id,
217
- ...completion,
218
- workId: testCase.workId,
219
- durationMicroseconds
220
- }, { index: 0 }),
221
- runnerErrors: executedBody.runnerErrors,
222
- durationMicroseconds
223
- };
224
- }
225
- //# sourceMappingURL=case-execution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"case-execution.js","sourceRoot":"","sources":["../../../../source/engine/case-execution.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,UAAU,EAGV,qBAAqB,EACrB,sBAAsB,EAEzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EACH,mBAAmB,EACnB,uBAAuB,EAE1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,mBAAmB,EAMnB,kBAAkB,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE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W,CAAC,QAAQ,EAAE,SAAS,CAAC,QAAQ,EAAE;QAC9D,GAAG,OAAO;QACV,YAAY,EAAE,SAAS,CAAC,YAAY;KACvC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACxB,MAAM,YAAY,GAAG,EAAE,GAAG,SAAS,EAAE,YAAY,EAAE,CAAE,GAAG,SAAS,CAAC,YAAY,EAAE,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,CAAE,EAAE,CAAC;IACpH,MAAM,UAAU,GAAG,oBAAoB,CACnC,SAAS,CAAC,QAAQ,EAClB,YAAY,EACZ,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,EAC/B,QAAQ,CAAC,SAAS,CAAC,QAAQ,KAAK,WAAW,CAC9C,CAAC;IACF,MAAM,oBAAoB,GAAG,MAAM,CAAC,SAAS,CAAC,4BAA4B,CAAC,GAAG,qBAAqB,CAAC;IAEpG,OAAO;QACH,MAAM,EAAE,mBAAmB,CAAC;YACxB,SAAS,EAAE,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,SAAS,IAAI,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE;YAC5F,mBAAmB,EAAE,QAAQ,CAAC,mBAAmB;YACjD,EAAE,EAAE,QAAQ,CAAC,EAAE;YACf,GAAG,UAAU;YACb,MAAM,EAAE,QAAQ,CAAC,MAAM;YACvB,oBAAoB;SACvB,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAChB,YAAY,EAAE,YAAY,CAAC,YAAY;QACvC,oBAAoB;KACvB,CAAC;AACN,CAAC"}
@@ -1,26 +0,0 @@
1
- import { createStoredValue } from "../stored-value.js";
2
- async function completeBody(operation) {
3
- try {
4
- return { kind: 'returned', value: await operation() };
5
- }
6
- catch (error) {
7
- return { kind: 'threw', error };
8
- }
9
- }
10
- export function createCaseInterruption(completion) {
11
- const terminal = createStoredValue(null);
12
- async function retainInterruption(pending) {
13
- const result = await pending;
14
- terminal.write(result);
15
- return { kind: 'interrupted', result };
16
- }
17
- const interrupted = completion === null ? null : retainInterruption(completion);
18
- return {
19
- result: terminal.read,
20
- async run(operation) {
21
- const body = completeBody(operation);
22
- return interrupted === null ? await body : await Promise.race([body, interrupted]);
23
- }
24
- };
25
- }
26
- //# sourceMappingURL=case-interruption.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"case-interruption.js","sourceRoot":"","sources":["../../../../source/engine/case-interruption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAyBvD,KAAK,UAAU,YAAY,CAAQ,SAA+B;IAC9D,IAAI,CAAC;QACD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,SAAS,EAAE,EAAE,CAAC;IAC1D,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACtB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACpC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,UAAwC;IAC3E,MAAM,QAAQ,GAAG,iBAAiB,CAAsB,IAAI,CAAC,CAAC;IAC9D,KAAK,UAAU,kBAAkB,CAAC,OAA8B;QAC5D,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC;QAC7B,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACvB,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC;IAC3C,CAAC;IACD,MAAM,WAAW,GAAG,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAChF,OAAO;QACH,MAAM,EAAE,QAAQ,CAAC,IAAI;QACrB,KAAK,CAAC,GAAG,CAAC,SAAS;YACf,MAAM,IAAI,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;YACrC,OAAO,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAE,IAAI,EAAE,WAAW,CAAE,CAAC,CAAC;QACzF,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -1,36 +0,0 @@
1
- import type { RuntimeId, WorkloadId } from './identity.ts';
2
- export type CoverageMetric = {
3
- readonly covered: number;
4
- readonly total: number;
5
- };
6
- export type CoverageReportFile = {
7
- readonly format: 'html' | 'json' | 'lcov' | 'text' | 'v8';
8
- readonly path: string;
9
- };
10
- export type CoverageArtifactPayload = {
11
- readonly completeness: 'complete';
12
- readonly directory: string;
13
- readonly kind: 'coverage';
14
- readonly rawDataDirectory: string;
15
- readonly reports: readonly CoverageReportFile[];
16
- readonly summary: {
17
- readonly branches: CoverageMetric;
18
- readonly functions: CoverageMetric;
19
- readonly lines: CoverageMetric;
20
- };
21
- };
22
- export type CoverageArtifact = {
23
- readonly id: {
24
- readonly attempt: null;
25
- readonly runtimes: readonly RuntimeId[];
26
- readonly scope: {
27
- readonly kind: 'run';
28
- };
29
- readonly sequence: number;
30
- readonly subtype: 'coverage';
31
- readonly workload: WorkloadId | null;
32
- };
33
- readonly payload: CoverageArtifactPayload;
34
- readonly source: 'v8-native';
35
- };
36
- //# sourceMappingURL=coverage-artifact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coverage-artifact.d.ts","sourceRoot":"","sources":["../../../../source/engine/coverage-artifact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WACW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC1D,QAAQ,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