@overkill-dev/run 0.0.83 → 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 (615) 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/file-module-boundary.d.ts.map +1 -1
  141. package/run/file-module-boundary.js +36 -3
  142. package/run/file-module-boundary.js.map +1 -1
  143. package/run/frozen-run-policy.js +1 -1
  144. package/run/frozen-run-policy.js.map +1 -1
  145. package/run/initialized-run-collection.js +1 -1
  146. package/run/initialized-run-collection.js.map +1 -1
  147. package/run/node-command-line-runner.d.ts +1 -1
  148. package/run/node-command-line-runner.d.ts.map +1 -1
  149. package/run/node-process-policy-observation.js +1 -1
  150. package/run/node-process-policy-observation.js.map +1 -1
  151. package/run/node-run-execution.js +1 -1
  152. package/run/node-run-execution.js.map +1 -1
  153. package/run/node-run-orchestrator-dependencies.js +1 -1
  154. package/run/node-run-orchestrator-dependencies.js.map +1 -1
  155. package/run/permission-denial-runtime-policy.js +3 -3
  156. package/run/permission-denial-runtime-policy.js.map +1 -1
  157. package/run/placement-trace.d.ts +2 -2
  158. package/run/placement-trace.d.ts.map +1 -1
  159. package/run/property-collection.js +1 -1
  160. package/run/property-collection.js.map +1 -1
  161. package/run/recorded-coverage-session.js +1 -1
  162. package/run/recorded-coverage-session.js.map +1 -1
  163. package/run/reporter-event-schema.js +1 -1
  164. package/run/reporter-event-schema.js.map +1 -1
  165. package/run/resource-lifecycle-boundaries.js +1 -1
  166. package/run/resource-lifecycle-boundaries.js.map +1 -1
  167. package/run/resource-lifecycle-cache-identity.js +2 -2
  168. package/run/resource-lifecycle-cache-identity.js.map +1 -1
  169. package/run/resource-lifecycle-composition.d.ts +1 -1
  170. package/run/resource-lifecycle-composition.d.ts.map +1 -1
  171. package/run/resource-lifecycle-error.d.ts +1 -1
  172. package/run/resource-lifecycle-error.d.ts.map +1 -1
  173. package/run/resource-lifecycle-error.js +1 -1
  174. package/run/resource-lifecycle-error.js.map +1 -1
  175. package/run/resource-lifecycle-session-acquirer.js +1 -1
  176. package/run/resource-lifecycle-session-acquirer.js.map +1 -1
  177. package/run/resource-lifecycle-state.d.ts +3 -3
  178. package/run/resource-lifecycle-state.d.ts.map +1 -1
  179. package/run/resource-lifecycle-state.js +2 -2
  180. package/run/resource-lifecycle-state.js.map +1 -1
  181. package/run/resource-ownership-plan.d.ts +2 -2
  182. package/run/resource-ownership-plan.d.ts.map +1 -1
  183. package/run/retry-artifact-retention.js +1 -1
  184. package/run/retry-artifact-retention.js.map +1 -1
  185. package/run/run-artifact-schema.d.ts +1 -1
  186. package/run/run-artifact-schema.d.ts.map +1 -1
  187. package/run/run-case-facts.js +1 -1
  188. package/run/run-case-facts.js.map +1 -1
  189. package/run/run-collection-error-result.js +2 -2
  190. package/run/run-collection-error-result.js.map +1 -1
  191. package/run/run-discovery-types.d.ts +1 -1
  192. package/run/run-discovery-types.d.ts.map +1 -1
  193. package/run/run-engine-primitives.d.ts +8 -8
  194. package/run/run-engine-primitives.d.ts.map +1 -1
  195. package/run/run-engine-selection.d.ts +1 -1
  196. package/run/run-engine-selection.d.ts.map +1 -1
  197. package/run/run-errors.d.ts +2 -2
  198. package/run/run-errors.d.ts.map +1 -1
  199. package/run/run-errors.js +1 -1
  200. package/run/run-errors.js.map +1 -1
  201. package/run/run-if-main-options.d.ts +3 -3
  202. package/run/run-if-main-options.d.ts.map +1 -1
  203. package/run/run-if-main.d.ts +1 -1
  204. package/run/run-if-main.d.ts.map +1 -1
  205. package/run/run-list-renderer.js +2 -2
  206. package/run/run-list-renderer.js.map +1 -1
  207. package/run/run-local-sharding.js +1 -1
  208. package/run/run-local-sharding.js.map +1 -1
  209. package/run/run-local-test-plan.js +21 -17
  210. package/run/run-local-test-plan.js.map +1 -1
  211. package/run/run-record-outcomes.d.ts +5 -5
  212. package/run/run-record-outcomes.d.ts.map +1 -1
  213. package/run/run-record-result.d.ts +1 -1
  214. package/run/run-record-result.d.ts.map +1 -1
  215. package/run/run-record-result.js +2 -2
  216. package/run/run-record-result.js.map +1 -1
  217. package/run/run-record-storage.js +1 -1
  218. package/run/run-record-storage.js.map +1 -1
  219. package/run/run-record-types.d.ts +3 -3
  220. package/run/run-record-types.d.ts.map +1 -1
  221. package/run/run-request-types.d.ts +3 -3
  222. package/run/run-request-types.d.ts.map +1 -1
  223. package/run/run-result-reporting.js +1 -1
  224. package/run/run-result-reporting.js.map +1 -1
  225. package/run/run-result-schema.d.ts +1 -1
  226. package/run/run-result-schema.d.ts.map +1 -1
  227. package/run/run-runtime-schema.js +1 -1
  228. package/run/run-runtime-schema.js.map +1 -1
  229. package/run/run-selection-filters.d.ts +2 -2
  230. package/run/run-selection-filters.d.ts.map +1 -1
  231. package/run/run-selection-filters.js +1 -1
  232. package/run/run-selection-filters.js.map +1 -1
  233. package/run/run-selection.js +2 -2
  234. package/run/run-selection.js.map +1 -1
  235. package/run/run-sharding.js +1 -1
  236. package/run/run-sharding.js.map +1 -1
  237. package/run/run-test-modules.d.ts +3 -3
  238. package/run/run-test-modules.d.ts.map +1 -1
  239. package/run/run-timing-collection.d.ts +2 -2
  240. package/run/run-timing-collection.d.ts.map +1 -1
  241. package/run/run-timing-collection.js +1 -1
  242. package/run/run-timing-collection.js.map +1 -1
  243. package/run/run-types.d.ts +1 -1
  244. package/run/run-types.d.ts.map +1 -1
  245. package/run/run-validation.js +1 -1
  246. package/run/run-validation.js.map +1 -1
  247. package/run/simulation-witness.js +1 -1
  248. package/run/simulation-witness.js.map +1 -1
  249. package/run/supervised-child-execution.js +3 -3
  250. package/run/supervised-child-execution.js.map +1 -1
  251. package/run/supervised-child-test-plan.js +1 -1
  252. package/run/supervised-child-test-plan.js.map +1 -1
  253. package/run/supervised-child.js +1 -1
  254. package/run/supervised-child.js.map +1 -1
  255. package/run/supervised-output-capture.js +1 -1
  256. package/run/supervised-output-capture.js.map +1 -1
  257. package/run/supervised-protocol.js +1 -1
  258. package/run/supervised-protocol.js.map +1 -1
  259. package/run/supervised-run-process-policy.js +2 -2
  260. package/run/supervised-run-process-policy.js.map +1 -1
  261. package/run/supervised-run-runtime.js +1 -1
  262. package/run/supervised-run-runtime.js.map +1 -1
  263. package/run/supervised-run-state.js +3 -3
  264. package/run/supervised-run-state.js.map +1 -1
  265. package/run/work-unit-identity.js +1 -1
  266. package/run/work-unit-identity.js.map +1 -1
  267. package/run/work-unit-planning.js +1 -1
  268. package/run/work-unit-planning.js.map +1 -1
  269. package/run/work-unit-resource-constraints.js +2 -2
  270. package/run/work-unit-resource-constraints.js.map +1 -1
  271. package/run/worker-execution-engine.js +2 -2
  272. package/run/worker-execution-engine.js.map +1 -1
  273. package/run/worker-pool-hedge-dispatch.js +1 -1
  274. package/run/worker-pool-hedge-dispatch.js.map +1 -1
  275. package/run/worker-pool-hedged-arbitration.js +1 -1
  276. package/run/worker-pool-hedged-arbitration.js.map +1 -1
  277. package/run/worker-pool-host.entry-point.js +1 -1
  278. package/run/worker-pool-host.entry-point.js.map +1 -1
  279. package/run/worker-pool-output.js +1 -1
  280. package/run/worker-pool-output.js.map +1 -1
  281. package/run/worker-pool-pending-splitting.js +1 -1
  282. package/run/worker-pool-pending-splitting.js.map +1 -1
  283. package/run/worker-pool-placement-planning.js +1 -1
  284. package/run/worker-pool-placement-planning.js.map +1 -1
  285. package/run/worker-pool-resource-lifecycle-execution.js +1 -1
  286. package/run/worker-pool-resource-lifecycle-execution.js.map +1 -1
  287. package/run/worker-pool-results.js +1 -1
  288. package/run/worker-pool-results.js.map +1 -1
  289. package/run/worker-pool-task-events.js +2 -2
  290. package/run/worker-pool-task-events.js.map +1 -1
  291. package/run/worker-pool-warm-lane-affinity.js +1 -1
  292. package/run/worker-pool-warm-lane-affinity.js.map +1 -1
  293. package/run/worker-pool-work-load.js +1 -1
  294. package/run/worker-pool-work-load.js.map +1 -1
  295. package/run/worker-pool-worker-plan.js +2 -2
  296. package/run/worker-pool-worker-plan.js.map +1 -1
  297. package/run/worker-pool-worker-resources.js +1 -1
  298. package/run/worker-pool-worker-resources.js.map +1 -1
  299. package/run/worker-pool-worker.js +1 -1
  300. package/run/worker-pool-worker.js.map +1 -1
  301. package/run/workload-input-validation.js +1 -1
  302. package/run/workload-input-validation.js.map +1 -1
  303. package/software-bill-of-materials.cyclonedx.json +21 -38
  304. package/transcript/http-transcript-artifact.js +1 -1
  305. package/transcript/http-transcript-artifact.js.map +1 -1
  306. package/assertion-protocol/assertion-evaluation.js +0 -6
  307. package/assertion-protocol/assertion-evaluation.js.map +0 -1
  308. package/assertion-protocol/assertion-node-shape.d.ts +0 -81
  309. package/assertion-protocol/assertion-node-shape.d.ts.map +0 -1
  310. package/assertion-protocol/assertion-node.d.ts +0 -82
  311. package/assertion-protocol/assertion-node.d.ts.map +0 -1
  312. package/assertion-protocol/assertion-node.js +0 -33
  313. package/assertion-protocol/assertion-node.js.map +0 -1
  314. package/assertion-protocol/assertion-reference.d.ts +0 -50
  315. package/assertion-protocol/assertion-reference.d.ts.map +0 -1
  316. package/assertion-protocol/assertion-reference.js +0 -22
  317. package/assertion-protocol/assertion-reference.js.map +0 -1
  318. package/assertion-protocol/assertions/boolean.d.ts +0 -4
  319. package/assertion-protocol/assertions/boolean.d.ts.map +0 -1
  320. package/assertion-protocol/assertions/boolean.js +0 -12
  321. package/assertion-protocol/assertions/boolean.js.map +0 -1
  322. package/assertion-protocol/assertions/collection.d.ts +0 -13
  323. package/assertion-protocol/assertions/collection.d.ts.map +0 -1
  324. package/assertion-protocol/assertions/collection.js +0 -21
  325. package/assertion-protocol/assertions/collection.js.map +0 -1
  326. package/assertion-protocol/assertions/dispatch.js +0 -47
  327. package/assertion-protocol/assertions/dispatch.js.map +0 -1
  328. package/assertion-protocol/assertions/equality.d.ts +0 -6
  329. package/assertion-protocol/assertions/equality.d.ts.map +0 -1
  330. package/assertion-protocol/assertions/equality.js +0 -24
  331. package/assertion-protocol/assertions/equality.js.map +0 -1
  332. package/assertion-protocol/assertions/fail.d.ts +0 -8
  333. package/assertion-protocol/assertions/fail.d.ts.map +0 -1
  334. package/assertion-protocol/assertions/fail.js +0 -8
  335. package/assertion-protocol/assertions/fail.js.map +0 -1
  336. package/assertion-protocol/assertions/numeric.d.ts +0 -16
  337. package/assertion-protocol/assertions/numeric.d.ts.map +0 -1
  338. package/assertion-protocol/assertions/numeric.js +0 -43
  339. package/assertion-protocol/assertions/numeric.js.map +0 -1
  340. package/assertion-protocol/assertions/partial.d.ts +0 -5
  341. package/assertion-protocol/assertions/partial.d.ts.map +0 -1
  342. package/assertion-protocol/assertions/partial.js +0 -17
  343. package/assertion-protocol/assertions/partial.js.map +0 -1
  344. package/assertion-protocol/assertions/presence.d.ts +0 -6
  345. package/assertion-protocol/assertions/presence.d.ts.map +0 -1
  346. package/assertion-protocol/assertions/presence.js +0 -20
  347. package/assertion-protocol/assertions/presence.js.map +0 -1
  348. package/assertion-protocol/assertions/string.d.ts +0 -15
  349. package/assertion-protocol/assertions/string.d.ts.map +0 -1
  350. package/assertion-protocol/assertions/string.js +0 -33
  351. package/assertion-protocol/assertions/string.js.map +0 -1
  352. package/assertion-protocol/assertions/type-shape.d.ts +0 -23
  353. package/assertion-protocol/assertions/type-shape.d.ts.map +0 -1
  354. package/assertion-protocol/assertions/type-shape.js +0 -43
  355. package/assertion-protocol/assertions/type-shape.js.map +0 -1
  356. package/assertion-protocol/collection-count.js +0 -42
  357. package/assertion-protocol/collection-count.js.map +0 -1
  358. package/assertion-protocol/evaluation.js +0 -175
  359. package/assertion-protocol/evaluation.js.map +0 -1
  360. package/assertion-protocol/partial-matching.js +0 -13
  361. package/assertion-protocol/partial-matching.js.map +0 -1
  362. package/assertion-protocol/source-location-forwarding.js +0 -32
  363. package/assertion-protocol/source-location-forwarding.js.map +0 -1
  364. package/assertion-protocol/source-location.js +0 -119
  365. package/assertion-protocol/source-location.js.map +0 -1
  366. package/assertion-protocol/thrown-error-record.d.ts +0 -7
  367. package/assertion-protocol/thrown-error-record.d.ts.map +0 -1
  368. package/assertion-protocol/thrown-error-record.js +0 -17
  369. package/assertion-protocol/thrown-error-record.js.map +0 -1
  370. package/assertion-protocol/thrown-matcher.d.ts +0 -34
  371. package/assertion-protocol/thrown-matcher.d.ts.map +0 -1
  372. package/assertion-protocol/thrown-matcher.js +0 -201
  373. package/assertion-protocol/thrown-matcher.js.map +0 -1
  374. package/attachments/json-snapshot.js +0 -125
  375. package/attachments/json-snapshot.js.map +0 -1
  376. package/canonical-identity.js +0 -54
  377. package/canonical-identity.js.map +0 -1
  378. package/compare/comparison-result.js +0 -47
  379. package/compare/comparison-result.js.map +0 -1
  380. package/compare/comparison-state.js +0 -20
  381. package/compare/comparison-state.js.map +0 -1
  382. package/compare/comparison.js +0 -78
  383. package/compare/comparison.js.map +0 -1
  384. package/compare/diff-path.js +0 -37
  385. package/compare/diff-path.js.map +0 -1
  386. package/compare/raw-comparison.js +0 -285
  387. package/compare/raw-comparison.js.map +0 -1
  388. package/compare/serialized-value-classification.js +0 -99
  389. package/compare/serialized-value-classification.js.map +0 -1
  390. package/compare/serialized-value-shape.d.ts +0 -134
  391. package/compare/serialized-value-shape.d.ts.map +0 -1
  392. package/compare/serialized-value-shape.js +0 -12
  393. package/compare/serialized-value-shape.js.map +0 -1
  394. package/compare/serialized-value-state.js +0 -55
  395. package/compare/serialized-value-state.js.map +0 -1
  396. package/compare/serialized-value.d.ts +0 -4
  397. package/compare/serialized-value.d.ts.map +0 -1
  398. package/compare/serialized-value.js +0 -389
  399. package/compare/serialized-value.js.map +0 -1
  400. package/compare/structured-diff.js +0 -382
  401. package/compare/structured-diff.js.map +0 -1
  402. package/compare/value-classification.js +0 -112
  403. package/compare/value-classification.js.map +0 -1
  404. package/diff/binary-diff.js +0 -49
  405. package/diff/binary-diff.js.map +0 -1
  406. package/diff/diff-shape.d.ts +0 -122
  407. package/diff/diff-shape.d.ts.map +0 -1
  408. package/diff/string-diff.js +0 -22
  409. package/diff/string-diff.js.map +0 -1
  410. package/engine/assertion-facade.d.ts +0 -47
  411. package/engine/assertion-facade.d.ts.map +0 -1
  412. package/engine/assertion-facade.js +0 -362
  413. package/engine/assertion-facade.js.map +0 -1
  414. package/engine/assertion-recorder.d.ts +0 -12
  415. package/engine/assertion-recorder.d.ts.map +0 -1
  416. package/engine/assertion-recorder.js +0 -251
  417. package/engine/assertion-recorder.js.map +0 -1
  418. package/engine/async-control.d.ts +0 -7
  419. package/engine/async-control.d.ts.map +0 -1
  420. package/engine/async-control.js +0 -162
  421. package/engine/async-control.js.map +0 -1
  422. package/engine/async-leak-diagnostics.js +0 -188
  423. package/engine/async-leak-diagnostics.js.map +0 -1
  424. package/engine/benchmark-environment.d.ts +0 -8
  425. package/engine/benchmark-environment.d.ts.map +0 -1
  426. package/engine/benchmark-garbage-collection.d.ts +0 -8
  427. package/engine/benchmark-garbage-collection.d.ts.map +0 -1
  428. package/engine/benchmark-garbage-collection.js +0 -4
  429. package/engine/benchmark-garbage-collection.js.map +0 -1
  430. package/engine/benchmark-limits.js +0 -3
  431. package/engine/benchmark-limits.js.map +0 -1
  432. package/engine/benchmark-node.d.ts +0 -37
  433. package/engine/benchmark-node.d.ts.map +0 -1
  434. package/engine/benchmark-node.js +0 -9
  435. package/engine/benchmark-node.js.map +0 -1
  436. package/engine/benchmark-result.d.ts +0 -247
  437. package/engine/benchmark-result.d.ts.map +0 -1
  438. package/engine/benchmark-result.js +0 -2
  439. package/engine/benchmark-result.js.map +0 -1
  440. package/engine/benchmark-timeline.d.ts +0 -12
  441. package/engine/benchmark-timeline.d.ts.map +0 -1
  442. package/engine/case-attempt-execution.js +0 -234
  443. package/engine/case-attempt-execution.js.map +0 -1
  444. package/engine/case-body-execution.js +0 -232
  445. package/engine/case-body-execution.js.map +0 -1
  446. package/engine/case-execution-lifecycle.js +0 -22
  447. package/engine/case-execution-lifecycle.js.map +0 -1
  448. package/engine/case-execution.d.ts +0 -14
  449. package/engine/case-execution.d.ts.map +0 -1
  450. package/engine/case-execution.js +0 -225
  451. package/engine/case-execution.js.map +0 -1
  452. package/engine/case-interruption.js +0 -26
  453. package/engine/case-interruption.js.map +0 -1
  454. package/engine/coverage-artifact.d.ts +0 -36
  455. package/engine/coverage-artifact.d.ts.map +0 -1
  456. package/engine/custom-assertion-recording.js +0 -175
  457. package/engine/custom-assertion-recording.js.map +0 -1
  458. package/engine/engine.d.ts +0 -21
  459. package/engine/engine.d.ts.map +0 -1
  460. package/engine/engine.js +0 -35
  461. package/engine/engine.js.map +0 -1
  462. package/engine/execution-async-leak-policy.d.ts +0 -3
  463. package/engine/execution-async-leak-policy.d.ts.map +0 -1
  464. package/engine/execution-async-leak-policy.js +0 -95
  465. package/engine/execution-async-leak-policy.js.map +0 -1
  466. package/engine/execution-error-ownership.d.ts +0 -6
  467. package/engine/execution-error-ownership.d.ts.map +0 -1
  468. package/engine/execution-error-ownership.js +0 -83
  469. package/engine/execution-error-ownership.js.map +0 -1
  470. package/engine/execution-global-error-observer.d.ts +0 -15
  471. package/engine/execution-global-error-observer.d.ts.map +0 -1
  472. package/engine/execution-global-error-observer.js +0 -276
  473. package/engine/execution-global-error-observer.js.map +0 -1
  474. package/engine/execution-observation.js +0 -212
  475. package/engine/execution-observation.js.map +0 -1
  476. package/engine/execution-options.d.ts +0 -39
  477. package/engine/execution-options.d.ts.map +0 -1
  478. package/engine/execution-options.js +0 -42
  479. package/engine/execution-options.js.map +0 -1
  480. package/engine/execution-preparation.d.ts +0 -13
  481. package/engine/execution-preparation.d.ts.map +0 -1
  482. package/engine/execution-preparation.js +0 -34
  483. package/engine/execution-preparation.js.map +0 -1
  484. package/engine/execution-process-budget-breach.d.ts +0 -8
  485. package/engine/execution-process-budget-breach.d.ts.map +0 -1
  486. package/engine/execution-process-budget-breach.js +0 -30
  487. package/engine/execution-process-budget-breach.js.map +0 -1
  488. package/engine/execution-process-budget-tracking.js +0 -33
  489. package/engine/execution-process-budget-tracking.js.map +0 -1
  490. package/engine/execution-process-tracked-cases.js +0 -40
  491. package/engine/execution-process-tracked-cases.js.map +0 -1
  492. package/engine/execution-result.js +0 -120
  493. package/engine/execution-result.js.map +0 -1
  494. package/engine/execution-supervision-state.js +0 -54
  495. package/engine/execution-supervision-state.js.map +0 -1
  496. package/engine/execution-supervision.d.ts +0 -16
  497. package/engine/execution-supervision.d.ts.map +0 -1
  498. package/engine/execution-supervision.js +0 -345
  499. package/engine/execution-supervision.js.map +0 -1
  500. package/engine/execution-test-plan-cases.js +0 -216
  501. package/engine/execution-test-plan-cases.js.map +0 -1
  502. package/engine/execution-test-plan-process-usage.js +0 -14
  503. package/engine/execution-test-plan-process-usage.js.map +0 -1
  504. package/engine/execution.d.ts +0 -8
  505. package/engine/execution.d.ts.map +0 -1
  506. package/engine/execution.js +0 -71
  507. package/engine/execution.js.map +0 -1
  508. package/engine/identity.d.ts +0 -31
  509. package/engine/identity.d.ts.map +0 -1
  510. package/engine/identity.js +0 -68
  511. package/engine/identity.js.map +0 -1
  512. package/engine/native-resource-observation.js +0 -70
  513. package/engine/native-resource-observation.js.map +0 -1
  514. package/engine/node-assertion-error.js +0 -47
  515. package/engine/node-assertion-error.js.map +0 -1
  516. package/engine/process-usage-growth.js +0 -12
  517. package/engine/process-usage-growth.js.map +0 -1
  518. package/engine/process-usage.d.ts +0 -22
  519. package/engine/process-usage.d.ts.map +0 -1
  520. package/engine/property-node.d.ts +0 -30
  521. package/engine/property-node.d.ts.map +0 -1
  522. package/engine/property-node.js +0 -9
  523. package/engine/property-node.js.map +0 -1
  524. package/engine/recorded-assertion-failure.js +0 -30
  525. package/engine/recorded-assertion-failure.js.map +0 -1
  526. package/engine/reporter-dispatcher.d.ts +0 -17
  527. package/engine/reporter-dispatcher.d.ts.map +0 -1
  528. package/engine/reporter-dispatcher.js +0 -316
  529. package/engine/reporter-dispatcher.js.map +0 -1
  530. package/engine/reporter-disposal.js +0 -13
  531. package/engine/reporter-disposal.js.map +0 -1
  532. package/engine/reporter-error-delivery-tracking.js +0 -33
  533. package/engine/reporter-error-delivery-tracking.js.map +0 -1
  534. package/engine/reporter-event-queue.js +0 -55
  535. package/engine/reporter-event-queue.js.map +0 -1
  536. package/engine/reporter-managed-output.js +0 -105
  537. package/engine/reporter-managed-output.js.map +0 -1
  538. package/engine/reporter-output-scope.js +0 -65
  539. package/engine/reporter-output-scope.js.map +0 -1
  540. package/engine/reporter-output.d.ts +0 -28
  541. package/engine/reporter-output.d.ts.map +0 -1
  542. package/engine/reporter-output.js +0 -17
  543. package/engine/reporter-output.js.map +0 -1
  544. package/engine/reporter.d.ts +0 -197
  545. package/engine/reporter.d.ts.map +0 -1
  546. package/engine/reporter.js +0 -111
  547. package/engine/reporter.js.map +0 -1
  548. package/engine/reporting-context.d.ts +0 -6
  549. package/engine/reporting-context.d.ts.map +0 -1
  550. package/engine/reporting-context.js +0 -74
  551. package/engine/reporting-context.js.map +0 -1
  552. package/engine/require-assertion-facade.d.ts +0 -18
  553. package/engine/require-assertion-facade.d.ts.map +0 -1
  554. package/engine/require-assertion-facade.js +0 -128
  555. package/engine/require-assertion-facade.js.map +0 -1
  556. package/engine/resource-owner-observation.js +0 -143
  557. package/engine/resource-owner-observation.js.map +0 -1
  558. package/engine/retry-policy.d.ts +0 -4
  559. package/engine/retry-policy.d.ts.map +0 -1
  560. package/engine/retry-policy.js +0 -22
  561. package/engine/retry-policy.js.map +0 -1
  562. package/engine/run-artifact.d.ts +0 -45
  563. package/engine/run-artifact.d.ts.map +0 -1
  564. package/engine/run-result.d.ts +0 -215
  565. package/engine/run-result.d.ts.map +0 -1
  566. package/engine/run-result.js +0 -202
  567. package/engine/run-result.js.map +0 -1
  568. package/engine/run-timings.d.ts +0 -57
  569. package/engine/run-timings.d.ts.map +0 -1
  570. package/engine/run-timings.js +0 -120
  571. package/engine/run-timings.js.map +0 -1
  572. package/engine/runner-error-reporting.js +0 -29
  573. package/engine/runner-error-reporting.js.map +0 -1
  574. package/engine/runtime-attachment.d.ts +0 -82
  575. package/engine/runtime-attachment.d.ts.map +0 -1
  576. package/engine/test-attempt-history.js +0 -25
  577. package/engine/test-attempt-history.js.map +0 -1
  578. package/engine/test-body-resource-attachment.d.ts +0 -53
  579. package/engine/test-body-resource-attachment.d.ts.map +0 -1
  580. package/engine/test-body-resource-attachment.js +0 -30
  581. package/engine/test-body-resource-attachment.js.map +0 -1
  582. package/engine/test-body.d.ts +0 -16
  583. package/engine/test-body.d.ts.map +0 -1
  584. package/engine/test-body.js +0 -51
  585. package/engine/test-body.js.map +0 -1
  586. package/engine/test-data.d.ts +0 -25
  587. package/engine/test-data.d.ts.map +0 -1
  588. package/engine/test-data.js +0 -126
  589. package/engine/test-data.js.map +0 -1
  590. package/engine/test-node.d.ts +0 -178
  591. package/engine/test-node.d.ts.map +0 -1
  592. package/engine/test-node.js +0 -226
  593. package/engine/test-node.js.map +0 -1
  594. package/engine/test-plan.d.ts +0 -52
  595. package/engine/test-plan.d.ts.map +0 -1
  596. package/engine/test-plan.js +0 -315
  597. package/engine/test-plan.js.map +0 -1
  598. package/engine/test-scope-lifecycle.js +0 -65
  599. package/engine/test-scope-lifecycle.js.map +0 -1
  600. package/engine/throwing-test-scope.js +0 -27
  601. package/engine/throwing-test-scope.js.map +0 -1
  602. package/engine/workload-input.d.ts +0 -3
  603. package/engine/workload-input.d.ts.map +0 -1
  604. package/engine/workload-input.js +0 -54
  605. package/engine/workload-input.js.map +0 -1
  606. package/engine/workload-parameters.d.ts +0 -3
  607. package/engine/workload-parameters.d.ts.map +0 -1
  608. package/engine/workload-parameters.js +0 -67
  609. package/engine/workload-parameters.js.map +0 -1
  610. package/engine/workload-test-case.d.ts +0 -8
  611. package/engine/workload-test-case.d.ts.map +0 -1
  612. package/engine/workload-test-case.js +0 -33
  613. package/engine/workload-test-case.js.map +0 -1
  614. package/stored-value.js +0 -12
  615. package/stored-value.js.map +0 -1
@@ -1,345 +0,0 @@
1
- import { invalidTimeoutControlFailure, runTestCase, timeoutFailure } from "./case-execution.js";
2
- import { workIdentityKey } from "./identity.js";
3
- import { singleAttemptResult, isPermissionDeniedRunnerError, verdictFromOutcome } from "./run-result.js";
4
- import { findProcessBudgetBreach } from "./execution-process-budget-breach.js";
5
- import { createExecutionSupervision as createExecutionSupervisionState, createBenchmarkState, createCaseCompletion, scheduleSupervisionTimeout } from "./execution-supervision-state.js";
6
- const microsecondsPerMillisecond = 1000;
7
- export const createExecutionSupervision = createExecutionSupervisionState;
8
- function createTerminalCase(testCase, verdict, durationMicroseconds, benchmark) {
9
- return {
10
- result: singleAttemptResult({
11
- benchmark: benchmark === null ? null : { ...benchmark, status: 'incomplete' },
12
- definitionLocations: testCase.definitionLocations,
13
- id: testCase.id,
14
- outcome: null,
15
- verdict,
16
- workId: testCase.workId,
17
- durationMicroseconds
18
- }, { index: 0 }),
19
- runnerErrors: [],
20
- durationMicroseconds
21
- };
22
- }
23
- function failCase(testCase, failures, durationMicroseconds, benchmark) {
24
- const outcome = {
25
- failures,
26
- kind: 'fail'
27
- };
28
- return singleAttemptResult({
29
- benchmark,
30
- definitionLocations: testCase.definitionLocations,
31
- id: testCase.id,
32
- outcome,
33
- verdict: verdictFromOutcome(outcome),
34
- workId: testCase.workId,
35
- durationMicroseconds
36
- }, { index: 0 });
37
- }
38
- function timeoutControlValue(testCase) {
39
- return testCase.controls.timeoutMilliseconds;
40
- }
41
- function isPositiveSafeInteger(value) {
42
- return typeof value === 'number' && Number.isSafeInteger(value) && value > 0;
43
- }
44
- function resolveSoftTimeout(testCase, policy) {
45
- if (policy === null || policy === undefined) {
46
- return { kind: 'milliseconds', milliseconds: null };
47
- }
48
- const controlTimeout = timeoutControlValue(testCase);
49
- if (controlTimeout === null) {
50
- return { kind: 'milliseconds', milliseconds: policy.timeoutMilliseconds };
51
- }
52
- if (isPositiveSafeInteger(controlTimeout) && controlTimeout <= policy.timeoutMilliseconds) {
53
- return { kind: 'milliseconds', milliseconds: controlTimeout };
54
- }
55
- return {
56
- failure: invalidTimeoutControlFailure(controlTimeout, `positive safe integer <= ${policy.timeoutMilliseconds}`),
57
- kind: 'failure'
58
- };
59
- }
60
- function resultWithTimeoutFailure(executedCase, deadlineMilliseconds, elapsedMilliseconds) {
61
- const failure = timeoutFailure(deadlineMilliseconds, elapsedMilliseconds);
62
- const { outcome } = executedCase.result;
63
- if (outcome?.kind === 'fail') {
64
- return {
65
- ...executedCase,
66
- result: {
67
- ...executedCase.result,
68
- outcome: {
69
- failures: [...outcome.failures, failure],
70
- kind: 'fail'
71
- },
72
- verdict: 'fail'
73
- }
74
- };
75
- }
76
- return {
77
- ...executedCase,
78
- result: failCase(executedCase.result, [failure], executedCase.durationMicroseconds, executedCase.result.benchmark)
79
- };
80
- }
81
- function clearTimer(wallClock, timer) {
82
- if (timer !== null) {
83
- wallClock.clearTimeout(timer);
84
- }
85
- }
86
- function policyCheckedCase(input, executedCase) {
87
- const errors = input.dependencies.runtimePolicy?.takeAttemptErrors(input.testCase, input.attempt) ?? [];
88
- const hasCasePermissionError = executedCase.runnerErrors.some(isPermissionDeniedRunnerError);
89
- if (errors.length === 0 && !hasCasePermissionError) {
90
- return executedCase;
91
- }
92
- return {
93
- ...executedCase,
94
- result: { ...executedCase.result, outcome: null, verdict: 'runtime-policy' },
95
- runnerErrors: [...executedCase.runnerErrors, ...errors]
96
- };
97
- }
98
- async function runTestCaseWithPolicy(input) {
99
- const executedCase = await runTestCase(input.testCase, input.dependencies.wallClock, {
100
- async onBenchmarkUpdate(result) {
101
- input.benchmark.write(result);
102
- await input.onBenchmarkUpdate(result);
103
- },
104
- benchmarkEnvironment: input.dependencies.benchmarkEnvironment,
105
- attempt: input.attempt,
106
- controller: input.controller,
107
- runtimePolicy: input.dependencies.runtimePolicy ?? null,
108
- interruption: input.completion.promise
109
- });
110
- return policyCheckedCase(input, executedCase);
111
- }
112
- function activeCaseIds(activeCases) {
113
- return Array.from(activeCases.values(), function toCaseId(activeCase) {
114
- return activeCase.testCase.id;
115
- });
116
- }
117
- function activeWorkIds(activeCases) {
118
- return Array.from(activeCases.values(), function toWorkId(activeCase) {
119
- return activeCase.testCase.workId;
120
- });
121
- }
122
- function soleActiveAttempt(attempts) {
123
- return attempts.length === 1 ? attempts[0] ?? null : null;
124
- }
125
- function processExhaustionError(cause) {
126
- const [activeCase = null] = cause.activeCases;
127
- const [activeWork = null] = cause.activeWork;
128
- return {
129
- attributedToAttempt: soleActiveAttempt(cause.activeAttempts),
130
- attributedTo: cause.activeCases.length === 1 ? activeCase : null,
131
- attributedToWork: cause.activeWork.length === 1 ? activeWork : null,
132
- cause,
133
- diagnostics: [
134
- { label: 'metric', value: cause.metric },
135
- { label: 'observed', value: String(cause.observed) },
136
- { label: 'budget', value: String(cause.budget) }
137
- ],
138
- message: `Process budget exceeded: ${cause.metric} observed ${cause.observed}, budget ${cause.budget}.`,
139
- subtype: 'process-exhaustion'
140
- };
141
- }
142
- function crashError(cause) {
143
- const [activeCase = null] = cause.activeCases;
144
- const [activeWork = null] = cause.activeWork;
145
- return {
146
- attributedToAttempt: soleActiveAttempt(cause.activeAttempts),
147
- attributedTo: cause.activeCases.length === 1 ? activeCase : null,
148
- attributedToWork: cause.activeWork.length === 1 ? activeWork : null,
149
- cause,
150
- diagnostics: [{ label: 'reason', value: cause.reason }],
151
- message: 'Test execution exceeded hard timeout.',
152
- subtype: 'crash'
153
- };
154
- }
155
- function completeActiveCasesAs(supervision, verdict, dependencies) {
156
- supervision.stopAcceptingCases();
157
- for (const [key, activeCase] of supervision.activeCases) {
158
- supervision.removeActiveCase(key);
159
- activeCase.abort();
160
- clearTimer(dependencies.wallClock, activeCase.hardTimeout);
161
- activeCase.completion.complete(createTerminalCase(activeCase.testCase, verdict, Number(dependencies.wallClock.currentMonotonicMicroseconds) - activeCase.startedAtMicroseconds, activeCase.benchmark.read()));
162
- }
163
- }
164
- function completeActiveCasesWithCrash(supervision, dependencies) {
165
- const cause = {
166
- activeAttempts: Array.from(supervision.activeCases.values(), function attempt(active) {
167
- return active.attempt;
168
- }),
169
- activeCases: activeCaseIds(supervision.activeCases),
170
- activeWork: activeWorkIds(supervision.activeCases),
171
- reason: 'hard-timeout',
172
- termination: 'hard-timeout'
173
- };
174
- if (cause.activeCases.length > 0) {
175
- supervision.recordRunnerError(crashError(cause));
176
- completeActiveCasesAs(supervision, 'crashed', dependencies);
177
- }
178
- }
179
- function completeActiveCasesAfterGlobalError(supervision, dependencies) {
180
- supervision.stopAcceptingCases();
181
- if (supervision.activeCases.size > 0) {
182
- completeActiveCasesAs(supervision, 'crashed', dependencies);
183
- }
184
- }
185
- function completeActiveCasesWithProcessExhaustion(breach, supervision, dependencies) {
186
- supervision.stopAcceptingCases();
187
- const cause = {
188
- ...breach,
189
- activeAttempts: Array.from(supervision.activeCases.values(), function attempt(active) {
190
- return active.attempt;
191
- }),
192
- activeCases: activeCaseIds(supervision.activeCases),
193
- activeWork: activeWorkIds(supervision.activeCases),
194
- enforcement: 'sampled'
195
- };
196
- if (cause.activeCases.length === 0) {
197
- supervision.recordRunnerError(processExhaustionError({
198
- ...cause,
199
- enforcement: 'post-test-diagnostic'
200
- }));
201
- return;
202
- }
203
- supervision.recordRunnerError(processExhaustionError(cause));
204
- completeActiveCasesAs(supervision, 'process-exhausted', dependencies);
205
- }
206
- async function runCaseWithSoftTimeout(input) {
207
- if (input.timeoutMilliseconds === null) {
208
- return await runTestCaseWithPolicy(input);
209
- }
210
- const timing = { timedOut: false };
211
- const softTimeout = scheduleSupervisionTimeout(input.dependencies.wallClock, function abortTimedOutCase() {
212
- timing.timedOut = true;
213
- input.controller.abort();
214
- }, input.timeoutMilliseconds);
215
- const executedCase = await runTestCaseWithPolicy(input);
216
- clearTimer(input.dependencies.wallClock, softTimeout);
217
- const deadlineMicroseconds = input.timeoutMilliseconds * microsecondsPerMillisecond;
218
- if (!input.supervision.hasTerminalError() &&
219
- (timing.timedOut || executedCase.durationMicroseconds >= deadlineMicroseconds)) {
220
- return resultWithTimeoutFailure(executedCase, input.timeoutMilliseconds, executedCase.durationMicroseconds / microsecondsPerMillisecond);
221
- }
222
- return executedCase;
223
- }
224
- function invalidTimeoutCase(testCase, failure) {
225
- return {
226
- result: failCase(testCase, [failure], 0, null),
227
- runnerErrors: [],
228
- durationMicroseconds: 0
229
- };
230
- }
231
- function registerActiveCase(input) {
232
- const key = workIdentityKey(input.testCase.workId);
233
- const startedAtMicroseconds = Number(input.dependencies.wallClock.currentMonotonicMicroseconds);
234
- const hardTimeout = input.timeoutPolicy === null || input.timeoutPolicy === undefined
235
- ? null
236
- : scheduleSupervisionTimeout(input.dependencies.wallClock, function hardTimeoutActiveCases() {
237
- completeActiveCasesWithCrash(input.supervision, input.dependencies);
238
- }, input.timeoutPolicy.hardTimeoutMilliseconds);
239
- const activeCase = {
240
- benchmark: input.benchmark,
241
- attempt: input.attempt,
242
- abort() {
243
- input.controller.abort();
244
- },
245
- completion: input.completion,
246
- hardTimeout,
247
- startedAtMicroseconds,
248
- testCase: input.testCase
249
- };
250
- input.supervision.addActiveCase(key, activeCase);
251
- return activeCase;
252
- }
253
- function completeFinishedActiveCase(input, executedCase) {
254
- const key = workIdentityKey(input.testCase.workId);
255
- if (input.supervision.activeCases.get(key) === input.activeCase) {
256
- input.supervision.removeActiveCase(key);
257
- clearTimer(input.dependencies.wallClock, input.activeCase.hardTimeout);
258
- input.completion.complete(executedCase);
259
- }
260
- }
261
- function createInconclusiveCaseResult(testCase, error, durationMicroseconds) {
262
- const reason = error instanceof Error ? error.message : 'Unknown test execution error.';
263
- const outcome = {
264
- kind: 'inconclusive',
265
- reason: `Test execution failed before producing a result: ${reason}`
266
- };
267
- return singleAttemptResult({
268
- definitionLocations: testCase.definitionLocations,
269
- id: testCase.id,
270
- outcome,
271
- verdict: verdictFromOutcome(outcome),
272
- workId: testCase.workId,
273
- durationMicroseconds
274
- }, { index: 0 });
275
- }
276
- function completeUnexpectedBodyError(input, error) {
277
- const durationMicroseconds = Number(input.dependencies.wallClock.currentMonotonicMicroseconds) -
278
- input.activeCase.startedAtMicroseconds;
279
- completeFinishedActiveCase(input, {
280
- result: createInconclusiveCaseResult(input.testCase, error, durationMicroseconds),
281
- runnerErrors: [],
282
- durationMicroseconds
283
- });
284
- }
285
- async function runCaseBodyUnderSupervision(input) {
286
- const removeFatalHandler = input.dependencies.globalErrorObserver.onFatalError(function completeCrashedCases() {
287
- completeActiveCasesAfterGlobalError(input.supervision, input.dependencies);
288
- });
289
- try {
290
- const executedCase = await runCaseWithSoftTimeout(input);
291
- completeFinishedActiveCase(input, executedCase);
292
- return executedCase;
293
- }
294
- catch (error) {
295
- const durationMicroseconds = Number(input.dependencies.wallClock.currentMonotonicMicroseconds) -
296
- input.activeCase.startedAtMicroseconds;
297
- const fallbackCase = {
298
- result: createInconclusiveCaseResult(input.testCase, error, durationMicroseconds),
299
- runnerErrors: [],
300
- durationMicroseconds
301
- };
302
- completeUnexpectedBodyError(input, error);
303
- return fallbackCase;
304
- }
305
- finally {
306
- removeFatalHandler();
307
- }
308
- }
309
- function registerCaseBodyInput(input, timeoutMilliseconds) {
310
- return {
311
- ...input,
312
- activeCase: registerActiveCase(input),
313
- timeoutMilliseconds
314
- };
315
- }
316
- function createActiveCaseInput(input) {
317
- return {
318
- ...input,
319
- benchmark: createBenchmarkState(),
320
- completion: createCaseCompletion(),
321
- controller: new AbortController()
322
- };
323
- }
324
- export function recordProcessUsageSample(input) {
325
- const breach = findProcessBudgetBreach(input.budgets, input.sample, input.previousSample);
326
- if (breach === null) {
327
- return false;
328
- }
329
- completeActiveCasesWithProcessExhaustion(breach, input.supervision, input.dependencies);
330
- return true;
331
- }
332
- export async function executeCaseBody(input) {
333
- if (input.dependencies.globalErrorObserver.hasFatalError() || !input.supervision.acceptsNewCases()) {
334
- return createTerminalCase(input.testCase, input.supervision.closedBoundaryVerdict(), 0, null);
335
- }
336
- if (input.testCase.execution.kind === 'skip') {
337
- return await runTestCase(input.testCase, input.dependencies.wallClock);
338
- }
339
- const timeoutResolution = resolveSoftTimeout(input.testCase, input.timeoutPolicy);
340
- if (timeoutResolution.kind === 'failure') {
341
- return invalidTimeoutCase(input.testCase, timeoutResolution.failure);
342
- }
343
- return await runCaseBodyUnderSupervision(registerCaseBodyInput(createActiveCaseInput(input), timeoutResolution.milliseconds));
344
- }
345
- //# sourceMappingURL=execution-supervision.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-supervision.js","sourceRoot":"","sources":["../../../../source/engine/execution-supervision.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,4BAA4B,EAC5B,WAAW,EACX,cAAc,EAGjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAA+B,MAAM,eAAe,CAAC;AAC7E,OAAO,EACH,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAIrB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACH,uBAAuB,EAG1B,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EACH,0BAA0B,IAAI,+BAA+B,EAC7D,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAM7B,MAAM,kCAAkC,CAAC;AAE1C,MAAM,0BAA0B,GAAG,IAAI,CAAC;AAiExC,MAAM,CAAC,MAAM,0BAA0B,GAA+B,+BAA+B,CAAC;AAEtG,SAAS,kBAAkB,CACvB,QAAsB,EACtB,OAAiC,EACjC,oBAA4B,EAC5B,SAAqC;IAErC,OAAO;QACH,MAAM,EAAE,mBAAmB,CAAC;YACxB,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE;YAC7E,mBAAmB,EAAE,QAAQ,CAAC,mBAAmB;YACjD,EAAE,EAAE,QAAQ,CAAC,EAAE;YACf,OAA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CAAC;QAC3C,OAAO,MAAM,WAAW,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IAC3E,CAAC;IAED,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAElF,IAAI,iBAAiB,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QACvC,OAAO,kBAAkB,CAAC,KAAK,CAAC,QAAQ,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,MAAM,2BAA2B,CAAC,qBAAqB,CAC1D,qBAAqB,CAAC,KAAK,CAAC,EAC5B,iBAAiB,CAAC,YAAY,CACjC,CAAC,CAAC;AACP,CAAC"}
@@ -1,216 +0,0 @@
1
- import pLimit from 'p-limit';
2
- import { observeConcurrentResourceLeaks } from "./execution-async-leak-policy.js";
3
- import { createReporterEventQueue, reportSuiteTransition } from "./reporter-event-queue.js";
4
- import { reportRunnerErrorEvents, unreportedRunnerErrors } from "./runner-error-reporting.js";
5
- import { executeCase, reportTestStart } from "./case-attempt-execution.js";
6
- function initialSerialCaseExecutionState() {
7
- return {
8
- currentSuitePath: [],
9
- perTest: [],
10
- reportedRunnerErrors: [],
11
- reporterErrors: [],
12
- timingWindows: []
13
- };
14
- }
15
- function testExecutionWallTimeMicroseconds(timingWindows) {
16
- const starts = timingWindows.map(function toStart(window) {
17
- return window.startedAtMicroseconds;
18
- });
19
- const ends = timingWindows.map(function toEnd(window) {
20
- return window.endedAtMicroseconds;
21
- });
22
- return starts.length === 0 || ends.length === 0
23
- ? 0
24
- : Math.max(0, Math.max(...ends) - Math.min(...starts));
25
- }
26
- async function executeSerialTestPlanCase(input, state, testCase) {
27
- const suiteErrors = await reportSuiteTransition(input.context.reporterDelivery, state.currentSuitePath, testCase.suitePath);
28
- const { lifecycle } = input.supervision;
29
- if (lifecycle !== null) {
30
- await lifecycle.enter(testCase);
31
- }
32
- const testRun = await executeCase({
33
- attempt: 0,
34
- context: input.context,
35
- options: input.options,
36
- supervision: input.supervision,
37
- testCase
38
- }, false);
39
- return {
40
- currentSuitePath: testCase.suitePath,
41
- perTest: [...state.perTest, testRun.result],
42
- reportedRunnerErrors: [...state.reportedRunnerErrors, ...testRun.runnerErrors],
43
- reporterErrors: [...state.reporterErrors, ...suiteErrors, ...testRun.reporterErrors],
44
- timingWindows: [...state.timingWindows, testRun.executionWindow]
45
- };
46
- }
47
- async function serialTestPlanReporterErrors(input, state) {
48
- const pendingRunnerErrors = unreportedRunnerErrors(input.supervision.runnerErrors, state.reportedRunnerErrors);
49
- const pendingRunnerErrorNotifications = await reportRunnerErrorEvents(input.context.reporterDelivery, pendingRunnerErrors);
50
- return [
51
- ...state.reporterErrors,
52
- ...input.supervision.runnerErrors,
53
- ...pendingRunnerErrorNotifications,
54
- ...await reportSuiteTransition(input.context.reporterDelivery, state.currentSuitePath, [])
55
- ];
56
- }
57
- async function completeSerialCase(input, state) {
58
- const result = state.perTest.at(-1);
59
- const { lifecycle } = input.supervision;
60
- const errors = Array.from(new Set([...state.reportedRunnerErrors, ...input.supervision.runnerErrors]));
61
- if (lifecycle !== null && result !== undefined &&
62
- await lifecycle.complete(result, errors) === 'stop') {
63
- input.supervision.stopAcceptingCases();
64
- }
65
- }
66
- async function executeTestPlanCases(input) {
67
- let state = initialSerialCaseExecutionState();
68
- for (const testCase of input.testPlan.cases) {
69
- if (input.context.dependencies.globalErrorObserver.hasFatalError() ||
70
- !input.supervision.acceptsNewCases()) {
71
- break;
72
- }
73
- state = await executeSerialTestPlanCase(input, state, testCase);
74
- if (input.supervision.lifecycle !== null) {
75
- await completeSerialCase(input, state);
76
- }
77
- }
78
- return {
79
- perTest: state.perTest,
80
- reporterErrors: await serialTestPlanReporterErrors(input, state),
81
- testExecutionWallTimeMicroseconds: testExecutionWallTimeMicroseconds(state.timingWindows)
82
- };
83
- }
84
- function createConcurrentCaseStartReporter(reportQueue) {
85
- let currentSuitePath = [];
86
- const admitStartReport = pLimit(1);
87
- const reporterErrors = [];
88
- return {
89
- async finish() {
90
- await admitStartReport(async function waitForStartReports() {
91
- return undefined;
92
- });
93
- reporterErrors.push(...await reportSuiteTransition(reportQueue, currentSuitePath, []));
94
- return reporterErrors;
95
- },
96
- async start(testCase, canStart) {
97
- return await admitStartReport(async function reportAdmittedCaseStart() {
98
- if (!canStart()) {
99
- return false;
100
- }
101
- const previousSuitePath = currentSuitePath;
102
- currentSuitePath = testCase.suitePath;
103
- const errors = [
104
- ...await reportSuiteTransition(reportQueue, previousSuitePath, testCase.suitePath),
105
- ...await reportTestStart(testCase, 0, reportQueue)
106
- ];
107
- reporterErrors.push(...errors);
108
- return true;
109
- });
110
- }
111
- };
112
- }
113
- function createCaseAdmission(maxConcurrency) {
114
- if (maxConcurrency === 'unlimited') {
115
- return async function admitEveryCase(run) {
116
- return await run();
117
- };
118
- }
119
- const admit = pLimit(maxConcurrency);
120
- return async function admitBoundedCase(run) {
121
- return await admit(run);
122
- };
123
- }
124
- async function executeStartedConcurrentCase(input, testCase) {
125
- const { lifecycle } = input.supervision;
126
- if (lifecycle !== null) {
127
- await lifecycle.enter(testCase);
128
- }
129
- const executed = await executeCase({
130
- attempt: 0,
131
- context: { ...input.context, reporterDelivery: input.reportQueue },
132
- options: input.options,
133
- supervision: input.supervision,
134
- testCase
135
- }, true);
136
- const errors = Array.from(new Set([...executed.runnerErrors, ...input.supervision.runnerErrors]));
137
- if (lifecycle !== null && await lifecycle.complete(executed.result, errors) === 'stop') {
138
- input.supervision.stopAcceptingCases();
139
- }
140
- return executed;
141
- }
142
- function canStartConcurrentCase(input) {
143
- const blocked = [
144
- input.context.dependencies.globalErrorObserver.hasFatalError(),
145
- !input.supervision.acceptsNewCases()
146
- ];
147
- return !blocked.includes(true);
148
- }
149
- async function executeConcurrentCases(input) {
150
- const { execution } = input.options;
151
- const admitCase = createCaseAdmission(execution.maxConcurrency);
152
- const startReporter = createConcurrentCaseStartReporter(input.reportQueue);
153
- const caseExecutions = input.testPlan.cases.map(async function scheduleConcurrentCase(testCase) {
154
- return admitCase(async function executeAdmittedCase() {
155
- const started = await startReporter.start(testCase, function checkCaseAdmission() {
156
- return canStartConcurrentCase(input);
157
- });
158
- return started ? await executeStartedConcurrentCase(input, testCase) : null;
159
- });
160
- });
161
- const scheduledCases = await Promise.all(caseExecutions);
162
- const executedCases = scheduledCases.filter(function isExecutedCase(executedCase) {
163
- return executedCase !== null;
164
- });
165
- return {
166
- endReporterErrors: executedCases.flatMap(function toReporterErrors(executedCase) {
167
- return executedCase.reporterErrors;
168
- }),
169
- perTest: executedCases.map(function toPerTest(executedCase) {
170
- return executedCase.result;
171
- }),
172
- reportedRunnerErrors: executedCases.flatMap(function toRunnerErrors(executedCase) {
173
- return executedCase.runnerErrors;
174
- }),
175
- runnerErrors: input.supervision.runnerErrors,
176
- startReporterErrors: await startReporter.finish(),
177
- testExecutionWallTimeMicroseconds: testExecutionWallTimeMicroseconds(executedCases.map(function toWindow(executedCase) {
178
- return executedCase.executionWindow;
179
- }))
180
- };
181
- }
182
- async function executeConcurrentTestPlanCases(input, execution) {
183
- const observed = await observeConcurrentResourceLeaks(input.context.dependencies, async function observeConcurrentResources() {
184
- return await executeConcurrentCases({
185
- context: input.context,
186
- options: { ...input.options, execution },
187
- reportQueue: createReporterEventQueue(input.context.reporterDelivery),
188
- supervision: input.supervision,
189
- testPlan: input.testPlan
190
- });
191
- });
192
- const concurrentCaseExecution = observed.result;
193
- const activeLeakError = observed.runnerError;
194
- const runnerErrors = activeLeakError === null
195
- ? concurrentCaseExecution.runnerErrors
196
- : [...concurrentCaseExecution.runnerErrors, activeLeakError];
197
- const pendingRunnerErrors = unreportedRunnerErrors(runnerErrors, concurrentCaseExecution.reportedRunnerErrors);
198
- const pendingRunnerErrorNotifications = await reportRunnerErrorEvents(input.context.reporterDelivery, pendingRunnerErrors);
199
- return {
200
- perTest: concurrentCaseExecution.perTest,
201
- reporterErrors: [
202
- ...concurrentCaseExecution.startReporterErrors,
203
- ...runnerErrors,
204
- ...pendingRunnerErrorNotifications,
205
- ...concurrentCaseExecution.endReporterErrors
206
- ],
207
- testExecutionWallTimeMicroseconds: concurrentCaseExecution.testExecutionWallTimeMicroseconds
208
- };
209
- }
210
- export async function executeTestPlanCasesWithMode(input) {
211
- if (input.options.execution.mode === 'concurrent-in-process') {
212
- return await executeConcurrentTestPlanCases(input, input.options.execution);
213
- }
214
- return await executeTestPlanCases(input);
215
- }
216
- //# sourceMappingURL=execution-test-plan-cases.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-test-plan-cases.js","sourceRoot":"","sources":["../../../../source/engine/execution-test-plan-cases.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,SAAS,CAAC;AAC7B,OAAO,EACH,8BAA8B,EACjC,MAAM,kCAAkC,CAAC;AAM1C,OAAO,EACH,wBAAwB,EACxB,qBAAqB,EAExB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACzB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACH,WAAW,EACX,eAAe,EAIlB,MAAM,6BAA6B,CAAC;AAyDrC,SAAS,+BAA+B;IACpC,OAAO;QACH,gBAAgB,EAAE,EAAE;QACpB,OAAO,EAAE,EAAE;QACX,oBAAoB,EAAE,EAAE;QACxB,cAAc,EAAE,EAAE;QAClB,aAAa,EAAE,EAAE;KACpB,CAAC;AACN,CAAC;AAED,SAAS,iCAAiC,CAAC,aAAsC;IAC7E,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,SAAS,OAAO,CAAC,MAAM;QACpD,OAAO,MAAM,CAAC,qBAAqB,CAAC;IACxC,CAAC,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,aAAa,CAAC,GAAG,CAAC,SAAS,KAAK,CAAC,MAAM;QAChD,OAAO,MAAM,CAAC,mBAAmB,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,OAAO,M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ED,OAAO,MAAM,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAC7C,CAAC"}
@@ -1,14 +0,0 @@
1
- import { executeCasesAndMeasureProcessUsage } from "./execution-process-tracked-cases.js";
2
- import { createExecutionSupervision } from "./execution-supervision.js";
3
- import { executeTestPlanCasesWithMode } from "./execution-test-plan-cases.js";
4
- export async function executeTestPlanCasesAndMeasureProcessUsage(testPlan, options, dependencies, reporterDelivery) {
5
- const supervision = createExecutionSupervision();
6
- const input = {
7
- context: { dependencies, reporterDelivery },
8
- options,
9
- supervision,
10
- testPlan
11
- };
12
- return await executeCasesAndMeasureProcessUsage(input, executeTestPlanCasesWithMode);
13
- }
14
- //# sourceMappingURL=execution-test-plan-process-usage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-test-plan-process-usage.js","sourceRoot":"","sources":["../../../../source/engine/execution-test-plan-process-usage.ts"],"names":[],"mappings":"AACA,OAAO,EACH,kCAAkC,EAErC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACH,4BAA4B,EAG/B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,CAAC,KAAK,UAAU,0CAA0C,CAC5D,QAAkB,EAClB,OAAiC,EACjC,YAAuC,EACvC,gBAAkC;IAElC,MAAM,WAAW,GAAG,0BAA0B,EAAE,CAAC;IACjD,MAAM,KAAK,GAA8B;QACrC,OAAO,EAAE,EAAE,YAAY,EAAE,gBAAgB,EAAE;QAC3C,OAAO;QACP,WAAW;QACX,QAAQ;KACX,CAAC;IAEF,OAAO,MAAM,kCAAkC,CAAC,KAAK,EAAE,4BAA4B,CAAC,CAAC;AACzF,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { ExecuteOptions as ExecuteOptionsDefinition } from './execution-options.ts';
2
- import type { RunResult } from './run-result.ts';
3
- import type { TestPlan } from './test-plan.ts';
4
- import { type ExecuteDependencies as PreparationDependencies } from './execution-preparation.ts';
5
- export type ExecuteDependencies = PreparationDependencies;
6
- export type ExecuteOptions = ExecuteOptionsDefinition;
7
- export type Execute = (testPlan: TestPlan, options?: ExecuteOptions) => Promise<RunResult>;
8
- //# sourceMappingURL=execution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../../../source/engine/execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,cACc,IAAI,wBAAwB,EAE7C,MAAM,wBAAwB,CAAC;AAShC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAEH,KAAK,mBAAmB,IAAI,uBAAuB,EAEtD,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;AAE1D,MAAM,MAAM,cACc,GAAG,wBAAwB,CAAC;AAqFtD,MAAM,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC"}