@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.
- package/attachments/failure-artifact-stream.js +2 -2
- package/attachments/failure-artifact-stream.js.map +1 -1
- package/attachments/run-json-artifact.js +1 -1
- package/attachments/run-json-artifact.js.map +1 -1
- package/baselines/calibration-store.js +2 -2
- package/baselines/calibration-store.js.map +1 -1
- package/baselines/performance-adapter.d.ts +2 -2
- package/baselines/performance-adapter.d.ts.map +1 -1
- package/baselines/performance-baseline.d.ts +2 -2
- package/baselines/performance-baseline.d.ts.map +1 -1
- package/baselines/performance-baseline.js +1 -1
- package/baselines/performance-baseline.js.map +1 -1
- package/baselines/performance-check.js +2 -2
- package/baselines/performance-check.js.map +1 -1
- package/baselines/performance-evaluation.js +1 -1
- package/baselines/performance-evaluation.js.map +1 -1
- package/baselines/performance-observation.js +1 -1
- package/baselines/performance-observation.js.map +1 -1
- package/baselines/performance-plan.js +3 -3
- package/baselines/performance-plan.js.map +1 -1
- package/baselines/performance-store.js +2 -2
- package/baselines/performance-store.js.map +1 -1
- package/baselines/performance-workflow.js +2 -2
- package/baselines/performance-workflow.js.map +1 -1
- package/bench/benchmark-statistics-schema.d.ts +1 -1
- package/bench/benchmark-statistics-schema.d.ts.map +1 -1
- package/bench/calibration-evidence.js +1 -1
- package/bench/calibration-evidence.js.map +1 -1
- package/bench/calibration-report.d.ts +1 -1
- package/bench/calibration-report.d.ts.map +1 -1
- package/bench/timeline-schema.js +1 -1
- package/bench/timeline-schema.js.map +1 -1
- package/config/config.js +1 -1
- package/config/config.js.map +1 -1
- package/config/execution.d.ts +1 -1
- package/config/execution.d.ts.map +1 -1
- package/config/property-policy.js +1 -1
- package/config/property-policy.js.map +1 -1
- package/config/schema.d.ts +4 -4
- package/config/schema.d.ts.map +1 -1
- package/config/schema.js +2 -2
- package/config/schema.js.map +1 -1
- package/config/types.d.ts +6 -6
- package/config/types.d.ts.map +1 -1
- package/package.json +4 -28
- package/packages/run/run.entry-point.d.ts +3 -3
- package/packages/run/run.entry-point.d.ts.map +1 -1
- package/packages/run/run.entry-point.js +1 -1
- package/packages/run/run.entry-point.js.map +1 -1
- package/reporters/human-reporter-rendering.js +2 -2
- package/reporters/human-reporter-rendering.js.map +1 -1
- package/reporters/line-failure-rendering.js +1 -1
- package/reporters/line-failure-rendering.js.map +1 -1
- package/reporters/line-reporter.js +2 -2
- package/reporters/line-reporter.js.map +1 -1
- package/reporters/progress-reporter.js +1 -1
- package/reporters/progress-reporter.js.map +1 -1
- package/reporters/tree-reporter.js +1 -1
- package/reporters/tree-reporter.js.map +1 -1
- package/resources/resource-definition-shape.d.ts +1 -1
- package/resources/resource-definition-shape.d.ts.map +1 -1
- package/resources/resource-workload-binding.js +2 -2
- package/resources/resource-workload-binding.js.map +1 -1
- package/run/attachment-eligibility.js +1 -1
- package/run/attachment-eligibility.js.map +1 -1
- package/run/attachment-execution.js +2 -2
- package/run/attachment-execution.js.map +1 -1
- package/run/attachment-failure.js +1 -1
- package/run/attachment-failure.js.map +1 -1
- package/run/attachment-protocol.js +1 -1
- package/run/attachment-protocol.js.map +1 -1
- package/run/attachment-reporter.js +2 -2
- package/run/attachment-reporter.js.map +1 -1
- package/run/attachment-results.js +3 -3
- package/run/attachment-results.js.map +1 -1
- package/run/attachment-retention.js +1 -1
- package/run/attachment-retention.js.map +1 -1
- package/run/attachment-store.js +1 -1
- package/run/attachment-store.js.map +1 -1
- package/run/benchmark-baseline-commands.js +1 -1
- package/run/benchmark-baseline-commands.js.map +1 -1
- package/run/benchmark-baseline-finalization.js +1 -1
- package/run/benchmark-baseline-finalization.js.map +1 -1
- package/run/benchmark-garbage-collection.js +1 -1
- package/run/benchmark-garbage-collection.js.map +1 -1
- package/run/benchmark-policy-schema.js +1 -1
- package/run/benchmark-policy-schema.js.map +1 -1
- package/run/benchmark-report-metadata.js +1 -1
- package/run/benchmark-report-metadata.js.map +1 -1
- package/run/benchmark-result-schema.js +1 -1
- package/run/benchmark-result-schema.js.map +1 -1
- package/run/calibration-capture-session.js +2 -2
- package/run/calibration-capture-session.js.map +1 -1
- package/run/calibration-inventory.js +2 -2
- package/run/calibration-inventory.js.map +1 -1
- package/run/calibration-maintenance.js +1 -1
- package/run/calibration-maintenance.js.map +1 -1
- package/run/capability-policy-snapshots.d.ts +1 -1
- package/run/capability-policy-snapshots.d.ts.map +1 -1
- package/run/capability-policy.js +3 -3
- package/run/capability-policy.js.map +1 -1
- package/run/collected-run-execution.js +1 -1
- package/run/collected-run-execution.js.map +1 -1
- package/run/collected-run-plan-schema.js +2 -2
- package/run/collected-run-plan-schema.js.map +1 -1
- package/run/collected-run-plan.js +4 -4
- package/run/collected-run-plan.js.map +1 -1
- package/run/command-line-command.d.ts +1 -1
- package/run/command-line-command.d.ts.map +1 -1
- package/run/command-line-command.js +1 -1
- package/run/command-line-command.js.map +1 -1
- package/run/command-line-config.d.ts +1 -1
- package/run/command-line-config.d.ts.map +1 -1
- package/run/default-direct-reporter.js +1 -1
- package/run/default-direct-reporter.js.map +1 -1
- package/run/default-run-engine.js +7 -7
- package/run/default-run-engine.js.map +1 -1
- package/run/direct-entrypoint-collection.js +3 -3
- package/run/direct-entrypoint-collection.js.map +1 -1
- package/run/execution-plan-resolution.js +1 -1
- package/run/execution-plan-resolution.js.map +1 -1
- package/run/execution-session-child.js +1 -1
- package/run/execution-session-child.js.map +1 -1
- package/run/execution-session-collected.js +1 -1
- package/run/execution-session-collected.js.map +1 -1
- package/run/execution-session-host.js +1 -1
- package/run/execution-session-host.js.map +1 -1
- package/run/execution-session-lifecycle.js +2 -2
- package/run/execution-session-lifecycle.js.map +1 -1
- package/run/execution-session-observation.js +1 -1
- package/run/execution-session-observation.js.map +1 -1
- package/run/execution-session-schema.js +1 -1
- package/run/execution-session-schema.js.map +1 -1
- package/run/execution-session-types.d.ts +1 -1
- package/run/execution-session-types.d.ts.map +1 -1
- package/run/execution-session.js +1 -1
- package/run/execution-session.js.map +1 -1
- package/run/failure-artifact-retention.js +2 -2
- package/run/failure-artifact-retention.js.map +1 -1
- package/run/file-module-boundary.d.ts.map +1 -1
- package/run/file-module-boundary.js +36 -3
- package/run/file-module-boundary.js.map +1 -1
- package/run/frozen-run-policy.js +1 -1
- package/run/frozen-run-policy.js.map +1 -1
- package/run/initialized-run-collection.js +1 -1
- package/run/initialized-run-collection.js.map +1 -1
- package/run/node-command-line-runner.d.ts +1 -1
- package/run/node-command-line-runner.d.ts.map +1 -1
- package/run/node-process-policy-observation.js +1 -1
- package/run/node-process-policy-observation.js.map +1 -1
- package/run/node-run-execution.js +1 -1
- package/run/node-run-execution.js.map +1 -1
- package/run/node-run-orchestrator-dependencies.js +1 -1
- package/run/node-run-orchestrator-dependencies.js.map +1 -1
- package/run/permission-denial-runtime-policy.js +3 -3
- package/run/permission-denial-runtime-policy.js.map +1 -1
- package/run/placement-trace.d.ts +2 -2
- package/run/placement-trace.d.ts.map +1 -1
- package/run/property-collection.js +1 -1
- package/run/property-collection.js.map +1 -1
- package/run/recorded-coverage-session.js +1 -1
- package/run/recorded-coverage-session.js.map +1 -1
- package/run/reporter-event-schema.js +1 -1
- package/run/reporter-event-schema.js.map +1 -1
- package/run/resource-lifecycle-boundaries.js +1 -1
- package/run/resource-lifecycle-boundaries.js.map +1 -1
- package/run/resource-lifecycle-cache-identity.js +2 -2
- package/run/resource-lifecycle-cache-identity.js.map +1 -1
- package/run/resource-lifecycle-composition.d.ts +1 -1
- package/run/resource-lifecycle-composition.d.ts.map +1 -1
- package/run/resource-lifecycle-error.d.ts +1 -1
- package/run/resource-lifecycle-error.d.ts.map +1 -1
- package/run/resource-lifecycle-error.js +1 -1
- package/run/resource-lifecycle-error.js.map +1 -1
- package/run/resource-lifecycle-session-acquirer.js +1 -1
- package/run/resource-lifecycle-session-acquirer.js.map +1 -1
- package/run/resource-lifecycle-state.d.ts +3 -3
- package/run/resource-lifecycle-state.d.ts.map +1 -1
- package/run/resource-lifecycle-state.js +2 -2
- package/run/resource-lifecycle-state.js.map +1 -1
- package/run/resource-ownership-plan.d.ts +2 -2
- package/run/resource-ownership-plan.d.ts.map +1 -1
- package/run/retry-artifact-retention.js +1 -1
- package/run/retry-artifact-retention.js.map +1 -1
- package/run/run-artifact-schema.d.ts +1 -1
- package/run/run-artifact-schema.d.ts.map +1 -1
- package/run/run-case-facts.js +1 -1
- package/run/run-case-facts.js.map +1 -1
- package/run/run-collection-error-result.js +2 -2
- package/run/run-collection-error-result.js.map +1 -1
- package/run/run-discovery-types.d.ts +1 -1
- package/run/run-discovery-types.d.ts.map +1 -1
- package/run/run-engine-primitives.d.ts +8 -8
- package/run/run-engine-primitives.d.ts.map +1 -1
- package/run/run-engine-selection.d.ts +1 -1
- package/run/run-engine-selection.d.ts.map +1 -1
- package/run/run-errors.d.ts +2 -2
- package/run/run-errors.d.ts.map +1 -1
- package/run/run-errors.js +1 -1
- package/run/run-errors.js.map +1 -1
- package/run/run-if-main-options.d.ts +3 -3
- package/run/run-if-main-options.d.ts.map +1 -1
- package/run/run-if-main.d.ts +1 -1
- package/run/run-if-main.d.ts.map +1 -1
- package/run/run-list-renderer.js +2 -2
- package/run/run-list-renderer.js.map +1 -1
- package/run/run-local-sharding.js +1 -1
- package/run/run-local-sharding.js.map +1 -1
- package/run/run-local-test-plan.js +21 -17
- package/run/run-local-test-plan.js.map +1 -1
- package/run/run-record-outcomes.d.ts +5 -5
- package/run/run-record-outcomes.d.ts.map +1 -1
- package/run/run-record-result.d.ts +1 -1
- package/run/run-record-result.d.ts.map +1 -1
- package/run/run-record-result.js +2 -2
- package/run/run-record-result.js.map +1 -1
- package/run/run-record-storage.js +1 -1
- package/run/run-record-storage.js.map +1 -1
- package/run/run-record-types.d.ts +3 -3
- package/run/run-record-types.d.ts.map +1 -1
- package/run/run-request-types.d.ts +3 -3
- package/run/run-request-types.d.ts.map +1 -1
- package/run/run-result-reporting.js +1 -1
- package/run/run-result-reporting.js.map +1 -1
- package/run/run-result-schema.d.ts +1 -1
- package/run/run-result-schema.d.ts.map +1 -1
- package/run/run-runtime-schema.js +1 -1
- package/run/run-runtime-schema.js.map +1 -1
- package/run/run-selection-filters.d.ts +2 -2
- package/run/run-selection-filters.d.ts.map +1 -1
- package/run/run-selection-filters.js +1 -1
- package/run/run-selection-filters.js.map +1 -1
- package/run/run-selection.js +2 -2
- package/run/run-selection.js.map +1 -1
- package/run/run-sharding.js +1 -1
- package/run/run-sharding.js.map +1 -1
- package/run/run-test-modules.d.ts +3 -3
- package/run/run-test-modules.d.ts.map +1 -1
- package/run/run-timing-collection.d.ts +2 -2
- package/run/run-timing-collection.d.ts.map +1 -1
- package/run/run-timing-collection.js +1 -1
- package/run/run-timing-collection.js.map +1 -1
- package/run/run-types.d.ts +1 -1
- package/run/run-types.d.ts.map +1 -1
- package/run/run-validation.js +1 -1
- package/run/run-validation.js.map +1 -1
- package/run/simulation-witness.js +1 -1
- package/run/simulation-witness.js.map +1 -1
- package/run/supervised-child-execution.js +3 -3
- package/run/supervised-child-execution.js.map +1 -1
- package/run/supervised-child-test-plan.js +1 -1
- package/run/supervised-child-test-plan.js.map +1 -1
- package/run/supervised-child.js +1 -1
- package/run/supervised-child.js.map +1 -1
- package/run/supervised-output-capture.js +1 -1
- package/run/supervised-output-capture.js.map +1 -1
- package/run/supervised-protocol.js +1 -1
- package/run/supervised-protocol.js.map +1 -1
- package/run/supervised-run-process-policy.js +2 -2
- package/run/supervised-run-process-policy.js.map +1 -1
- package/run/supervised-run-runtime.js +1 -1
- package/run/supervised-run-runtime.js.map +1 -1
- package/run/supervised-run-state.js +3 -3
- package/run/supervised-run-state.js.map +1 -1
- package/run/work-unit-identity.js +1 -1
- package/run/work-unit-identity.js.map +1 -1
- package/run/work-unit-planning.js +1 -1
- package/run/work-unit-planning.js.map +1 -1
- package/run/work-unit-resource-constraints.js +2 -2
- package/run/work-unit-resource-constraints.js.map +1 -1
- package/run/worker-execution-engine.js +2 -2
- package/run/worker-execution-engine.js.map +1 -1
- package/run/worker-pool-hedge-dispatch.js +1 -1
- package/run/worker-pool-hedge-dispatch.js.map +1 -1
- package/run/worker-pool-hedged-arbitration.js +1 -1
- package/run/worker-pool-hedged-arbitration.js.map +1 -1
- package/run/worker-pool-host.entry-point.js +1 -1
- package/run/worker-pool-host.entry-point.js.map +1 -1
- package/run/worker-pool-output.js +1 -1
- package/run/worker-pool-output.js.map +1 -1
- package/run/worker-pool-pending-splitting.js +1 -1
- package/run/worker-pool-pending-splitting.js.map +1 -1
- package/run/worker-pool-placement-planning.js +1 -1
- package/run/worker-pool-placement-planning.js.map +1 -1
- package/run/worker-pool-resource-lifecycle-execution.js +1 -1
- package/run/worker-pool-resource-lifecycle-execution.js.map +1 -1
- package/run/worker-pool-results.js +1 -1
- package/run/worker-pool-results.js.map +1 -1
- package/run/worker-pool-task-events.js +2 -2
- package/run/worker-pool-task-events.js.map +1 -1
- package/run/worker-pool-warm-lane-affinity.js +1 -1
- package/run/worker-pool-warm-lane-affinity.js.map +1 -1
- package/run/worker-pool-work-load.js +1 -1
- package/run/worker-pool-work-load.js.map +1 -1
- package/run/worker-pool-worker-plan.js +2 -2
- package/run/worker-pool-worker-plan.js.map +1 -1
- package/run/worker-pool-worker-resources.js +1 -1
- package/run/worker-pool-worker-resources.js.map +1 -1
- package/run/worker-pool-worker.js +1 -1
- package/run/worker-pool-worker.js.map +1 -1
- package/run/workload-input-validation.js +1 -1
- package/run/workload-input-validation.js.map +1 -1
- package/software-bill-of-materials.cyclonedx.json +21 -38
- package/transcript/http-transcript-artifact.js +1 -1
- package/transcript/http-transcript-artifact.js.map +1 -1
- package/assertion-protocol/assertion-evaluation.js +0 -6
- package/assertion-protocol/assertion-evaluation.js.map +0 -1
- package/assertion-protocol/assertion-node-shape.d.ts +0 -81
- package/assertion-protocol/assertion-node-shape.d.ts.map +0 -1
- package/assertion-protocol/assertion-node.d.ts +0 -82
- package/assertion-protocol/assertion-node.d.ts.map +0 -1
- package/assertion-protocol/assertion-node.js +0 -33
- package/assertion-protocol/assertion-node.js.map +0 -1
- package/assertion-protocol/assertion-reference.d.ts +0 -50
- package/assertion-protocol/assertion-reference.d.ts.map +0 -1
- package/assertion-protocol/assertion-reference.js +0 -22
- package/assertion-protocol/assertion-reference.js.map +0 -1
- package/assertion-protocol/assertions/boolean.d.ts +0 -4
- package/assertion-protocol/assertions/boolean.d.ts.map +0 -1
- package/assertion-protocol/assertions/boolean.js +0 -12
- package/assertion-protocol/assertions/boolean.js.map +0 -1
- package/assertion-protocol/assertions/collection.d.ts +0 -13
- package/assertion-protocol/assertions/collection.d.ts.map +0 -1
- package/assertion-protocol/assertions/collection.js +0 -21
- package/assertion-protocol/assertions/collection.js.map +0 -1
- package/assertion-protocol/assertions/dispatch.js +0 -47
- package/assertion-protocol/assertions/dispatch.js.map +0 -1
- package/assertion-protocol/assertions/equality.d.ts +0 -6
- package/assertion-protocol/assertions/equality.d.ts.map +0 -1
- package/assertion-protocol/assertions/equality.js +0 -24
- package/assertion-protocol/assertions/equality.js.map +0 -1
- package/assertion-protocol/assertions/fail.d.ts +0 -8
- package/assertion-protocol/assertions/fail.d.ts.map +0 -1
- package/assertion-protocol/assertions/fail.js +0 -8
- package/assertion-protocol/assertions/fail.js.map +0 -1
- package/assertion-protocol/assertions/numeric.d.ts +0 -16
- package/assertion-protocol/assertions/numeric.d.ts.map +0 -1
- package/assertion-protocol/assertions/numeric.js +0 -43
- package/assertion-protocol/assertions/numeric.js.map +0 -1
- package/assertion-protocol/assertions/partial.d.ts +0 -5
- package/assertion-protocol/assertions/partial.d.ts.map +0 -1
- package/assertion-protocol/assertions/partial.js +0 -17
- package/assertion-protocol/assertions/partial.js.map +0 -1
- package/assertion-protocol/assertions/presence.d.ts +0 -6
- package/assertion-protocol/assertions/presence.d.ts.map +0 -1
- package/assertion-protocol/assertions/presence.js +0 -20
- package/assertion-protocol/assertions/presence.js.map +0 -1
- package/assertion-protocol/assertions/string.d.ts +0 -15
- package/assertion-protocol/assertions/string.d.ts.map +0 -1
- package/assertion-protocol/assertions/string.js +0 -33
- package/assertion-protocol/assertions/string.js.map +0 -1
- package/assertion-protocol/assertions/type-shape.d.ts +0 -23
- package/assertion-protocol/assertions/type-shape.d.ts.map +0 -1
- package/assertion-protocol/assertions/type-shape.js +0 -43
- package/assertion-protocol/assertions/type-shape.js.map +0 -1
- package/assertion-protocol/collection-count.js +0 -42
- package/assertion-protocol/collection-count.js.map +0 -1
- package/assertion-protocol/evaluation.js +0 -175
- package/assertion-protocol/evaluation.js.map +0 -1
- package/assertion-protocol/partial-matching.js +0 -13
- package/assertion-protocol/partial-matching.js.map +0 -1
- package/assertion-protocol/source-location-forwarding.js +0 -32
- package/assertion-protocol/source-location-forwarding.js.map +0 -1
- package/assertion-protocol/source-location.js +0 -119
- package/assertion-protocol/source-location.js.map +0 -1
- package/assertion-protocol/thrown-error-record.d.ts +0 -7
- package/assertion-protocol/thrown-error-record.d.ts.map +0 -1
- package/assertion-protocol/thrown-error-record.js +0 -17
- package/assertion-protocol/thrown-error-record.js.map +0 -1
- package/assertion-protocol/thrown-matcher.d.ts +0 -34
- package/assertion-protocol/thrown-matcher.d.ts.map +0 -1
- package/assertion-protocol/thrown-matcher.js +0 -201
- package/assertion-protocol/thrown-matcher.js.map +0 -1
- package/attachments/json-snapshot.js +0 -125
- package/attachments/json-snapshot.js.map +0 -1
- package/canonical-identity.js +0 -54
- package/canonical-identity.js.map +0 -1
- package/compare/comparison-result.js +0 -47
- package/compare/comparison-result.js.map +0 -1
- package/compare/comparison-state.js +0 -20
- package/compare/comparison-state.js.map +0 -1
- package/compare/comparison.js +0 -78
- package/compare/comparison.js.map +0 -1
- package/compare/diff-path.js +0 -37
- package/compare/diff-path.js.map +0 -1
- package/compare/raw-comparison.js +0 -285
- package/compare/raw-comparison.js.map +0 -1
- package/compare/serialized-value-classification.js +0 -99
- package/compare/serialized-value-classification.js.map +0 -1
- package/compare/serialized-value-shape.d.ts +0 -134
- package/compare/serialized-value-shape.d.ts.map +0 -1
- package/compare/serialized-value-shape.js +0 -12
- package/compare/serialized-value-shape.js.map +0 -1
- package/compare/serialized-value-state.js +0 -55
- package/compare/serialized-value-state.js.map +0 -1
- package/compare/serialized-value.d.ts +0 -4
- package/compare/serialized-value.d.ts.map +0 -1
- package/compare/serialized-value.js +0 -389
- package/compare/serialized-value.js.map +0 -1
- package/compare/structured-diff.js +0 -382
- package/compare/structured-diff.js.map +0 -1
- package/compare/value-classification.js +0 -112
- package/compare/value-classification.js.map +0 -1
- package/diff/binary-diff.js +0 -49
- package/diff/binary-diff.js.map +0 -1
- package/diff/diff-shape.d.ts +0 -122
- package/diff/diff-shape.d.ts.map +0 -1
- package/diff/string-diff.js +0 -22
- package/diff/string-diff.js.map +0 -1
- package/engine/assertion-facade.d.ts +0 -47
- package/engine/assertion-facade.d.ts.map +0 -1
- package/engine/assertion-facade.js +0 -362
- package/engine/assertion-facade.js.map +0 -1
- package/engine/assertion-recorder.d.ts +0 -12
- package/engine/assertion-recorder.d.ts.map +0 -1
- package/engine/assertion-recorder.js +0 -251
- package/engine/assertion-recorder.js.map +0 -1
- package/engine/async-control.d.ts +0 -7
- package/engine/async-control.d.ts.map +0 -1
- package/engine/async-control.js +0 -162
- package/engine/async-control.js.map +0 -1
- package/engine/async-leak-diagnostics.js +0 -188
- package/engine/async-leak-diagnostics.js.map +0 -1
- package/engine/benchmark-environment.d.ts +0 -8
- package/engine/benchmark-environment.d.ts.map +0 -1
- package/engine/benchmark-garbage-collection.d.ts +0 -8
- package/engine/benchmark-garbage-collection.d.ts.map +0 -1
- package/engine/benchmark-garbage-collection.js +0 -4
- package/engine/benchmark-garbage-collection.js.map +0 -1
- package/engine/benchmark-limits.js +0 -3
- package/engine/benchmark-limits.js.map +0 -1
- package/engine/benchmark-node.d.ts +0 -37
- package/engine/benchmark-node.d.ts.map +0 -1
- package/engine/benchmark-node.js +0 -9
- package/engine/benchmark-node.js.map +0 -1
- package/engine/benchmark-result.d.ts +0 -247
- package/engine/benchmark-result.d.ts.map +0 -1
- package/engine/benchmark-result.js +0 -2
- package/engine/benchmark-result.js.map +0 -1
- package/engine/benchmark-timeline.d.ts +0 -12
- package/engine/benchmark-timeline.d.ts.map +0 -1
- package/engine/case-attempt-execution.js +0 -234
- package/engine/case-attempt-execution.js.map +0 -1
- package/engine/case-body-execution.js +0 -232
- package/engine/case-body-execution.js.map +0 -1
- package/engine/case-execution-lifecycle.js +0 -22
- package/engine/case-execution-lifecycle.js.map +0 -1
- package/engine/case-execution.d.ts +0 -14
- package/engine/case-execution.d.ts.map +0 -1
- package/engine/case-execution.js +0 -225
- package/engine/case-execution.js.map +0 -1
- package/engine/case-interruption.js +0 -26
- package/engine/case-interruption.js.map +0 -1
- package/engine/coverage-artifact.d.ts +0 -36
- package/engine/coverage-artifact.d.ts.map +0 -1
- package/engine/custom-assertion-recording.js +0 -175
- package/engine/custom-assertion-recording.js.map +0 -1
- package/engine/engine.d.ts +0 -21
- package/engine/engine.d.ts.map +0 -1
- package/engine/engine.js +0 -35
- package/engine/engine.js.map +0 -1
- package/engine/execution-async-leak-policy.d.ts +0 -3
- package/engine/execution-async-leak-policy.d.ts.map +0 -1
- package/engine/execution-async-leak-policy.js +0 -95
- package/engine/execution-async-leak-policy.js.map +0 -1
- package/engine/execution-error-ownership.d.ts +0 -6
- package/engine/execution-error-ownership.d.ts.map +0 -1
- package/engine/execution-error-ownership.js +0 -83
- package/engine/execution-error-ownership.js.map +0 -1
- package/engine/execution-global-error-observer.d.ts +0 -15
- package/engine/execution-global-error-observer.d.ts.map +0 -1
- package/engine/execution-global-error-observer.js +0 -276
- package/engine/execution-global-error-observer.js.map +0 -1
- package/engine/execution-observation.js +0 -212
- package/engine/execution-observation.js.map +0 -1
- package/engine/execution-options.d.ts +0 -39
- package/engine/execution-options.d.ts.map +0 -1
- package/engine/execution-options.js +0 -42
- package/engine/execution-options.js.map +0 -1
- package/engine/execution-preparation.d.ts +0 -13
- package/engine/execution-preparation.d.ts.map +0 -1
- package/engine/execution-preparation.js +0 -34
- package/engine/execution-preparation.js.map +0 -1
- package/engine/execution-process-budget-breach.d.ts +0 -8
- package/engine/execution-process-budget-breach.d.ts.map +0 -1
- package/engine/execution-process-budget-breach.js +0 -30
- package/engine/execution-process-budget-breach.js.map +0 -1
- package/engine/execution-process-budget-tracking.js +0 -33
- package/engine/execution-process-budget-tracking.js.map +0 -1
- package/engine/execution-process-tracked-cases.js +0 -40
- package/engine/execution-process-tracked-cases.js.map +0 -1
- package/engine/execution-result.js +0 -120
- package/engine/execution-result.js.map +0 -1
- package/engine/execution-supervision-state.js +0 -54
- package/engine/execution-supervision-state.js.map +0 -1
- package/engine/execution-supervision.d.ts +0 -16
- package/engine/execution-supervision.d.ts.map +0 -1
- package/engine/execution-supervision.js +0 -345
- package/engine/execution-supervision.js.map +0 -1
- package/engine/execution-test-plan-cases.js +0 -216
- package/engine/execution-test-plan-cases.js.map +0 -1
- package/engine/execution-test-plan-process-usage.js +0 -14
- package/engine/execution-test-plan-process-usage.js.map +0 -1
- package/engine/execution.d.ts +0 -8
- package/engine/execution.d.ts.map +0 -1
- package/engine/execution.js +0 -71
- package/engine/execution.js.map +0 -1
- package/engine/identity.d.ts +0 -31
- package/engine/identity.d.ts.map +0 -1
- package/engine/identity.js +0 -68
- package/engine/identity.js.map +0 -1
- package/engine/native-resource-observation.js +0 -70
- package/engine/native-resource-observation.js.map +0 -1
- package/engine/node-assertion-error.js +0 -47
- package/engine/node-assertion-error.js.map +0 -1
- package/engine/process-usage-growth.js +0 -12
- package/engine/process-usage-growth.js.map +0 -1
- package/engine/process-usage.d.ts +0 -22
- package/engine/process-usage.d.ts.map +0 -1
- package/engine/property-node.d.ts +0 -30
- package/engine/property-node.d.ts.map +0 -1
- package/engine/property-node.js +0 -9
- package/engine/property-node.js.map +0 -1
- package/engine/recorded-assertion-failure.js +0 -30
- package/engine/recorded-assertion-failure.js.map +0 -1
- package/engine/reporter-dispatcher.d.ts +0 -17
- package/engine/reporter-dispatcher.d.ts.map +0 -1
- package/engine/reporter-dispatcher.js +0 -316
- package/engine/reporter-dispatcher.js.map +0 -1
- package/engine/reporter-disposal.js +0 -13
- package/engine/reporter-disposal.js.map +0 -1
- package/engine/reporter-error-delivery-tracking.js +0 -33
- package/engine/reporter-error-delivery-tracking.js.map +0 -1
- package/engine/reporter-event-queue.js +0 -55
- package/engine/reporter-event-queue.js.map +0 -1
- package/engine/reporter-managed-output.js +0 -105
- package/engine/reporter-managed-output.js.map +0 -1
- package/engine/reporter-output-scope.js +0 -65
- package/engine/reporter-output-scope.js.map +0 -1
- package/engine/reporter-output.d.ts +0 -28
- package/engine/reporter-output.d.ts.map +0 -1
- package/engine/reporter-output.js +0 -17
- package/engine/reporter-output.js.map +0 -1
- package/engine/reporter.d.ts +0 -197
- package/engine/reporter.d.ts.map +0 -1
- package/engine/reporter.js +0 -111
- package/engine/reporter.js.map +0 -1
- package/engine/reporting-context.d.ts +0 -6
- package/engine/reporting-context.d.ts.map +0 -1
- package/engine/reporting-context.js +0 -74
- package/engine/reporting-context.js.map +0 -1
- package/engine/require-assertion-facade.d.ts +0 -18
- package/engine/require-assertion-facade.d.ts.map +0 -1
- package/engine/require-assertion-facade.js +0 -128
- package/engine/require-assertion-facade.js.map +0 -1
- package/engine/resource-owner-observation.js +0 -143
- package/engine/resource-owner-observation.js.map +0 -1
- package/engine/retry-policy.d.ts +0 -4
- package/engine/retry-policy.d.ts.map +0 -1
- package/engine/retry-policy.js +0 -22
- package/engine/retry-policy.js.map +0 -1
- package/engine/run-artifact.d.ts +0 -45
- package/engine/run-artifact.d.ts.map +0 -1
- package/engine/run-result.d.ts +0 -215
- package/engine/run-result.d.ts.map +0 -1
- package/engine/run-result.js +0 -202
- package/engine/run-result.js.map +0 -1
- package/engine/run-timings.d.ts +0 -57
- package/engine/run-timings.d.ts.map +0 -1
- package/engine/run-timings.js +0 -120
- package/engine/run-timings.js.map +0 -1
- package/engine/runner-error-reporting.js +0 -29
- package/engine/runner-error-reporting.js.map +0 -1
- package/engine/runtime-attachment.d.ts +0 -82
- package/engine/runtime-attachment.d.ts.map +0 -1
- package/engine/test-attempt-history.js +0 -25
- package/engine/test-attempt-history.js.map +0 -1
- package/engine/test-body-resource-attachment.d.ts +0 -53
- package/engine/test-body-resource-attachment.d.ts.map +0 -1
- package/engine/test-body-resource-attachment.js +0 -30
- package/engine/test-body-resource-attachment.js.map +0 -1
- package/engine/test-body.d.ts +0 -16
- package/engine/test-body.d.ts.map +0 -1
- package/engine/test-body.js +0 -51
- package/engine/test-body.js.map +0 -1
- package/engine/test-data.d.ts +0 -25
- package/engine/test-data.d.ts.map +0 -1
- package/engine/test-data.js +0 -126
- package/engine/test-data.js.map +0 -1
- package/engine/test-node.d.ts +0 -178
- package/engine/test-node.d.ts.map +0 -1
- package/engine/test-node.js +0 -226
- package/engine/test-node.js.map +0 -1
- package/engine/test-plan.d.ts +0 -52
- package/engine/test-plan.d.ts.map +0 -1
- package/engine/test-plan.js +0 -315
- package/engine/test-plan.js.map +0 -1
- package/engine/test-scope-lifecycle.js +0 -65
- package/engine/test-scope-lifecycle.js.map +0 -1
- package/engine/throwing-test-scope.js +0 -27
- package/engine/throwing-test-scope.js.map +0 -1
- package/engine/workload-input.d.ts +0 -3
- package/engine/workload-input.d.ts.map +0 -1
- package/engine/workload-input.js +0 -54
- package/engine/workload-input.js.map +0 -1
- package/engine/workload-parameters.d.ts +0 -3
- package/engine/workload-parameters.d.ts.map +0 -1
- package/engine/workload-parameters.js +0 -67
- package/engine/workload-parameters.js.map +0 -1
- package/engine/workload-test-case.d.ts +0 -8
- package/engine/workload-test-case.d.ts.map +0 -1
- package/engine/workload-test-case.js +0 -33
- package/engine/workload-test-case.js.map +0 -1
- package/stored-value.js +0 -12
- 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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B,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,qBAAqB,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;IAClG,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,KAAK,MAAM,EAAE,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":[],"mapp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,CAAC,uBAAuB,CAAC,YAAY;QACtC,CAAC,CAAC,CAAE,GAAG,uBAAuB,CAAC,YAAY,EAAE,eAAe,CAAE,CAAC;IACnE,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,YAAY,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,CAAC;IAC/G,MAAM,+BAA+B,GAAG,MAAM,uBAAuB,CACjE,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAC9B,mBAAmB,CACtB,CAAC;IAEF,OAAO;QACH,OAAO,EAAE,uBAAuB,CAAC,OAAO;QACxC,cAAc,EAAE;YACZ,GAAG,uBAAuB,CAAC,mBAAmB;YAC9C,GAAG,YAAY;YACf,GAAG,+BAA+B;YAClC,GAAG,uBAAuB,CAAC,iBAAiB;SAC/C;QACD,iCAAiC,EAAE,uBAAuB,CAAC,iCAAiC;KAC/F,CAAC;AACN,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAC9C,KAAgC;IAEhC,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,KAAK,uBAAuB,EAAE,CAAC;QAC3D,OAAO,MAAM,8BAA8B,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChF,CAAC;IAED,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"}
|
package/engine/execution.d.ts
DELETED
|
@@ -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"}
|