@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,175 +0,0 @@
|
|
|
1
|
-
import { getAssertionReferenceRecord, getNarrowingAssertionReferenceRecord, isAssertionReference, isCompositeAssertionGroup, isNarrowingAssertionReference } from "../assertion-protocol/assertion-reference.js";
|
|
2
|
-
const expectedArgumentSlot = 1;
|
|
3
|
-
function createInvalidAssertionReferenceFailure(actual) {
|
|
4
|
-
return {
|
|
5
|
-
actual,
|
|
6
|
-
code: 'invalid-assertion-reference',
|
|
7
|
-
expected: 'engine-created assertion reference',
|
|
8
|
-
kind: 'test-contract',
|
|
9
|
-
summary: 'Expected an engine-created assertion reference.'
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
function createInvalidRequireReferenceFailure(actual) {
|
|
13
|
-
return {
|
|
14
|
-
actual,
|
|
15
|
-
code: 'invalid-require-reference',
|
|
16
|
-
expected: 'narrowing assertion reference',
|
|
17
|
-
kind: 'test-contract',
|
|
18
|
-
summary: 'Expected a narrowing assertion reference.'
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function createInvalidCompositeResultFailure(actual) {
|
|
22
|
-
return {
|
|
23
|
-
actual,
|
|
24
|
-
code: 'invalid-composite-result',
|
|
25
|
-
expected: 'composite assertion child or group',
|
|
26
|
-
kind: 'test-contract',
|
|
27
|
-
summary: 'Composite assertion returned an invalid result.'
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function isPromiseLike(value) {
|
|
31
|
-
return typeof value === 'object' && value !== null && typeof Reflect.get(value, 'then') === 'function';
|
|
32
|
-
}
|
|
33
|
-
function isCompositeAssertionChildNode(value) {
|
|
34
|
-
return typeof value === 'object' && value !== null && Object.hasOwn(value, 'check');
|
|
35
|
-
}
|
|
36
|
-
function assertionArguments(parameters) {
|
|
37
|
-
return [
|
|
38
|
-
parameters[0],
|
|
39
|
-
parameters.at(expectedArgumentSlot)
|
|
40
|
-
];
|
|
41
|
-
}
|
|
42
|
-
function defaultCustomSummary(name) {
|
|
43
|
-
return `Expected ${name} assertion to pass.`;
|
|
44
|
-
}
|
|
45
|
-
function customSummary(record, source, annotation, parameters) {
|
|
46
|
-
if (annotation !== null) {
|
|
47
|
-
return annotation;
|
|
48
|
-
}
|
|
49
|
-
if (record.formatSummary !== null) {
|
|
50
|
-
if (record.kind === 'composite') {
|
|
51
|
-
return record.formatSummary({ name: record.name, source }, ...parameters);
|
|
52
|
-
}
|
|
53
|
-
return record.formatSummary({ name: record.name, source }, parameters[0], ...parameters.slice(1));
|
|
54
|
-
}
|
|
55
|
-
return defaultCustomSummary(record.name);
|
|
56
|
-
}
|
|
57
|
-
function normalizeCompositeChildren(result, failContract) {
|
|
58
|
-
if (isCompositeAssertionGroup(result)) {
|
|
59
|
-
return result.children;
|
|
60
|
-
}
|
|
61
|
-
if (isCompositeAssertionChildNode(result)) {
|
|
62
|
-
return [result];
|
|
63
|
-
}
|
|
64
|
-
return failContract(createInvalidCompositeResultFailure(result));
|
|
65
|
-
}
|
|
66
|
-
function createCompositeAssertionNode(input) {
|
|
67
|
-
const [actual, expectedArgument] = assertionArguments(input.parameters);
|
|
68
|
-
return {
|
|
69
|
-
actual,
|
|
70
|
-
check: 'composite',
|
|
71
|
-
children: input.children,
|
|
72
|
-
expected: expectedArgument ?? input.record.name,
|
|
73
|
-
message: input.annotation,
|
|
74
|
-
name: input.record.name,
|
|
75
|
-
source: input.source,
|
|
76
|
-
sourceLocations: input.sourceLocations,
|
|
77
|
-
summary: customSummary(input.record, input.source, input.annotation, input.parameters)
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function createNarrowingCompositeAssertionNode(input) {
|
|
81
|
-
const passed = input.record.narrows(input.parameters[0], ...input.parameters.slice(1));
|
|
82
|
-
const child = {
|
|
83
|
-
actual: passed,
|
|
84
|
-
check: 'true',
|
|
85
|
-
message: `Expected ${input.record.name} narrowing predicate to pass.`,
|
|
86
|
-
source: input.source,
|
|
87
|
-
sourceLocations: input.sourceLocations
|
|
88
|
-
};
|
|
89
|
-
return createCompositeAssertionNode({
|
|
90
|
-
annotation: input.annotation,
|
|
91
|
-
children: [child],
|
|
92
|
-
parameters: input.parameters,
|
|
93
|
-
record: input.record,
|
|
94
|
-
source: input.source,
|
|
95
|
-
sourceLocations: input.sourceLocations
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
async function recordResolvedCompositeAssertion(input) {
|
|
99
|
-
const resolved = await input.result;
|
|
100
|
-
input.pending.resolve(createCompositeAssertionNode({
|
|
101
|
-
annotation: input.annotation,
|
|
102
|
-
children: normalizeCompositeChildren(resolved, input.sink.failContract),
|
|
103
|
-
parameters: input.parameters,
|
|
104
|
-
record: input.record,
|
|
105
|
-
source: 'assert',
|
|
106
|
-
sourceLocations: input.sourceLocations
|
|
107
|
-
}));
|
|
108
|
-
}
|
|
109
|
-
function recordCompositeAssertion(input) {
|
|
110
|
-
const result = input.record.run({
|
|
111
|
-
message: null,
|
|
112
|
-
parameters: input.parameters,
|
|
113
|
-
source: 'assert',
|
|
114
|
-
sourceLocations: input.sourceLocations
|
|
115
|
-
});
|
|
116
|
-
if (!isPromiseLike(result)) {
|
|
117
|
-
input.sink.recordAssert(createCompositeAssertionNode({
|
|
118
|
-
annotation: input.annotation,
|
|
119
|
-
children: normalizeCompositeChildren(result, input.sink.failContract),
|
|
120
|
-
parameters: input.parameters,
|
|
121
|
-
record: input.record,
|
|
122
|
-
source: 'assert',
|
|
123
|
-
sourceLocations: input.sourceLocations
|
|
124
|
-
}));
|
|
125
|
-
return undefined;
|
|
126
|
-
}
|
|
127
|
-
return recordResolvedCompositeAssertion({
|
|
128
|
-
annotation: input.annotation,
|
|
129
|
-
parameters: input.parameters,
|
|
130
|
-
pending: input.sink.recordPendingAssert(),
|
|
131
|
-
record: input.record,
|
|
132
|
-
result,
|
|
133
|
-
sink: input.sink,
|
|
134
|
-
sourceLocations: input.sourceLocations
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
export function recordAssertReference(input) {
|
|
138
|
-
if (!isAssertionReference(input.reference)) {
|
|
139
|
-
input.sink.failContract(createInvalidAssertionReferenceFailure(input.reference));
|
|
140
|
-
}
|
|
141
|
-
const record = getAssertionReferenceRecord(input.reference);
|
|
142
|
-
if (record.kind === 'narrowing-composite') {
|
|
143
|
-
input.sink.recordAssert(createNarrowingCompositeAssertionNode({
|
|
144
|
-
annotation: input.annotation,
|
|
145
|
-
parameters: input.parameters,
|
|
146
|
-
record,
|
|
147
|
-
source: 'assert',
|
|
148
|
-
sourceLocations: input.sourceLocations
|
|
149
|
-
}));
|
|
150
|
-
return undefined;
|
|
151
|
-
}
|
|
152
|
-
return recordCompositeAssertion({
|
|
153
|
-
annotation: input.annotation,
|
|
154
|
-
parameters: input.parameters,
|
|
155
|
-
record,
|
|
156
|
-
sink: input.sink,
|
|
157
|
-
sourceLocations: input.sourceLocations
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
export function recordRequireReference(input) {
|
|
161
|
-
if (!isNarrowingAssertionReference(input.reference)) {
|
|
162
|
-
input.sink.failContract(isAssertionReference(input.reference)
|
|
163
|
-
? createInvalidRequireReferenceFailure(getAssertionReferenceRecord(input.reference).name)
|
|
164
|
-
: createInvalidAssertionReferenceFailure(input.reference));
|
|
165
|
-
}
|
|
166
|
-
const record = getNarrowingAssertionReferenceRecord(input.reference);
|
|
167
|
-
input.sink.recordRequire(createNarrowingCompositeAssertionNode({
|
|
168
|
-
annotation: input.annotation,
|
|
169
|
-
parameters: input.parameters,
|
|
170
|
-
record,
|
|
171
|
-
source: 'require',
|
|
172
|
-
sourceLocations: input.sourceLocations
|
|
173
|
-
}));
|
|
174
|
-
}
|
|
175
|
-
//# sourceMappingURL=custom-assertion-recording.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-assertion-recording.js","sourceRoot":"","sources":["../../../../source/engine/custom-assertion-recording.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,2BAA2B,EAC3B,oCAAoC,EACpC,oBAAoB,EACpB,yBAAyB,EACzB,6BAA6B,EAKhC,MAAM,8CAA8C,CAAC;AAQtD,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAoE/B,SAAS,sCAAsC,CAAC,MAAe;IAC3D,OAAO;QACH,MAAM;QACN,IAAI,EAAE,6BAA6B;QACnC,QAAQ,EAAE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ine/engine.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Execute } from './execution.ts';
|
|
2
|
-
import { formatCaseId } from './identity.ts';
|
|
3
|
-
import { type PropertyTestCaseOptions, type BenchmarkTestCaseOptions, type RootOptions, type Suite, type SkippedTestCaseOptions, type SuiteOptions, type Table, type TableOptions, type TestCase, type TestCaseOptions, type TestNode, type TestRoot, type ThrowingTestCaseOptions, type WorkloadTestCaseOptions } from './test-node.ts';
|
|
4
|
-
import { type TestPlanFactory, type TestPlanFromTestFilesFactory } from './test-plan.ts';
|
|
5
|
-
export type Engine = {
|
|
6
|
-
readonly createPropertyTestCase: (options: PropertyTestCaseOptions) => TestCase;
|
|
7
|
-
readonly createBenchmarkTestCase: (options: BenchmarkTestCaseOptions) => TestCase;
|
|
8
|
-
readonly createRoot: (options: RootOptions) => TestRoot;
|
|
9
|
-
readonly createSuite: (options: SuiteOptions) => Suite;
|
|
10
|
-
readonly createSkippedTestCase: (options: SkippedTestCaseOptions) => TestCase;
|
|
11
|
-
readonly createTable: (options: TableOptions) => Table;
|
|
12
|
-
readonly createTestCase: (options: TestCaseOptions) => TestCase;
|
|
13
|
-
readonly createThrowingTestCase: (options: ThrowingTestCaseOptions) => TestCase;
|
|
14
|
-
readonly createWorkloadTestCase: (options: WorkloadTestCaseOptions) => TestCase;
|
|
15
|
-
readonly createTestPlan: TestPlanFactory;
|
|
16
|
-
readonly createTestPlanFromTestFiles: TestPlanFromTestFilesFactory;
|
|
17
|
-
readonly execute: Execute;
|
|
18
|
-
readonly formatCaseId: typeof formatCaseId;
|
|
19
|
-
readonly ownsTestNode: (value: unknown) => value is TestNode;
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=engine.d.ts.map
|
package/engine/engine.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../source/engine/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACE,O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;IACzC,QAAQ,CAAC,2BAA2B,EAAE,4BAA4B,CAAC;IACnE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,YAAY,EAAE,OAAO,YAAY,CAAC;IAC3C,QAAQ,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,QAAQ,CAAC;CAChE,CAAC"}
|
package/engine/engine.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { formatCaseId } from "./identity.js";
|
|
2
|
-
import { createTestNodeFactory, isOwnedTestNode } from "./test-node.js";
|
|
3
|
-
import { createTestPlanFactory, createTestPlanFromTestFilesFactory } from "./test-plan.js";
|
|
4
|
-
export function createEngineWithOwner(dependencies, owner) {
|
|
5
|
-
const { execute } = dependencies;
|
|
6
|
-
const constructedNodes = new Set();
|
|
7
|
-
const nodeFactory = createTestNodeFactory({
|
|
8
|
-
owner,
|
|
9
|
-
recordConstructedNode(node) {
|
|
10
|
-
constructedNodes.add(node);
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const createTestPlan = createTestPlanFactory(owner, constructedNodes);
|
|
14
|
-
const createTestPlanFromTestFiles = createTestPlanFromTestFilesFactory(owner, nodeFactory.createRoot);
|
|
15
|
-
return {
|
|
16
|
-
createPropertyTestCase: nodeFactory.createPropertyTestCase,
|
|
17
|
-
createBenchmarkTestCase: nodeFactory.createBenchmarkTestCase,
|
|
18
|
-
createRoot: nodeFactory.createRoot,
|
|
19
|
-
createSuite: nodeFactory.createSuite,
|
|
20
|
-
createSkippedTestCase: nodeFactory.createSkippedTestCase,
|
|
21
|
-
createTable: nodeFactory.createTable,
|
|
22
|
-
createTestCase: nodeFactory.createTestCase,
|
|
23
|
-
createThrowingTestCase: nodeFactory.createThrowingTestCase,
|
|
24
|
-
createWorkloadTestCase: nodeFactory.createWorkloadTestCase,
|
|
25
|
-
createTestPlan,
|
|
26
|
-
createTestPlanFromTestFiles,
|
|
27
|
-
execute,
|
|
28
|
-
formatCaseId,
|
|
29
|
-
ownsTestNode(value) {
|
|
30
|
-
return isOwnedTestNode(value, owner);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
//# sourceMappingURL=engine.js.map
|
package/engine/engine.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../../../../source/engine/engine.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EACH,qBACqB,EAIrB,eAAe,EAalB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACH,qBAAqB,EACrB,kCAAkC,EAGrC,MAAM,gBAAgB,CAAC;AAwBxB,MAAM,UAAU,qBAAqB,CAAC,YAAgC,EAAE,KAAoB;IACxF,MAAM,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC;IACjC,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAAY,CAAC;IAC7C,MAAM,WAAW,GAAG,qBAAqB,CAAC;QACtC,KAAK;QACL,qBAAqB,CAAC,IAAI;YACtB,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;KACJ,CAAC,CAAC;IACH,MAAM,cAAc,GAAG,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;IACtE,MAAM,2BAA2B,GAAG,kCAAkC,CAAC,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAEtG,OAAO;QACH,sBAAsB,EAAE,WAAW,CAAC,sBAAsB;QAC1D,uBAAuB,EAAE,WAAW,CAAC,uBAAuB;QAC5D,UAAU,EAAE,WAAW,CAAC,UAAU;QAClC,WAAW,EAAE,WAAW,CAAC,WAAW;QACpC,qBAAqB,EAAE,WAAW,CAAC,qBAAqB;QACxD,WAAW,EAAE,WAAW,CAAC,WAAW;QACpC,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,sBAAsB,EAAE,WAAW,CAAC,sBAAsB;QAC1D,sBAAsB,EAAE,WAAW,CAAC,sBAAsB;QAC1D,cAAc;QACd,2BAA2B;QAC3B,OAAO;QACP,YAAY;QACZ,YAAY,CAAC,KAAK;YACd,OAAO,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACzC,CAAC;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-async-leak-policy.d.ts","sourceRoot":"","sources":["../../../../source/engine/execution-async-leak-policy.ts"],"names":[],"mappings":"OASO,KAGK,oBAAoB,GAAG,UAAU,GAAG,SAAS,CAAC;AAE1D,MAAM,CAA8B,EAGnC,CAAC"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { observeCaseResourceOwners } from "./resource-owner-observation.js";
|
|
2
|
-
import { activeResourceLeakError, createAsyncLeakMonitor, createDisabledAsyncLeakMonitor } from "./async-leak-diagnostics.js";
|
|
3
|
-
import { settleAsyncWork } from "./async-control.js";
|
|
4
|
-
const promiseTrackingContractFailureCodes = new Set([
|
|
5
|
-
'pending-async-assertion',
|
|
6
|
-
'pending-in-flight-task',
|
|
7
|
-
'unobserved-in-flight-task'
|
|
8
|
-
]);
|
|
9
|
-
export function createExecutionAsyncLeakMonitor(diagnostics) {
|
|
10
|
-
return diagnostics === 'enabled'
|
|
11
|
-
? createAsyncLeakMonitor()
|
|
12
|
-
: createDisabledAsyncLeakMonitor();
|
|
13
|
-
}
|
|
14
|
-
export function hasCasePolicyErrors(errors) {
|
|
15
|
-
return errors.some(function caseOwned(error) {
|
|
16
|
-
return error.attributedTo !== null;
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function runtimePolicyCase(executedCase) {
|
|
20
|
-
return {
|
|
21
|
-
result: { ...executedCase.result, outcome: null, verdict: 'runtime-policy' },
|
|
22
|
-
runnerErrors: executedCase.runnerErrors,
|
|
23
|
-
durationMicroseconds: executedCase.durationMicroseconds
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function hasPromiseTrackingContractFailure(executedCase) {
|
|
27
|
-
const { outcome } = executedCase.result;
|
|
28
|
-
return outcome?.kind === 'fail' && outcome.failures.some(function promiseTrackingFailure(failure) {
|
|
29
|
-
return failure.kind === 'test-contract' && promiseTrackingContractFailureCodes.has(failure.code);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function caseActiveResourceLeak(input) {
|
|
33
|
-
if (!input.includeActiveResourceLeaks) {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
const attribution = input.ambiguousResources().length > 0
|
|
37
|
-
? { attributedTo: null, attributedToWork: null, phase: 'run' }
|
|
38
|
-
: { attributedTo: input.testCase.id, attributedToWork: input.testCase.workId, phase: 'body' };
|
|
39
|
-
return activeResourceLeakError({
|
|
40
|
-
...attribution,
|
|
41
|
-
after: input.dependencies.readActiveResourceTypes(),
|
|
42
|
-
before: input.readResourceBaseline()
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
export async function caseWithAsyncLeakPolicy(input) {
|
|
46
|
-
if (input.executedCase.result.outcome === null) {
|
|
47
|
-
return {
|
|
48
|
-
executedCase: input.executedCase,
|
|
49
|
-
runnerErrors: []
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
await settleAsyncWork();
|
|
53
|
-
const promiseLeakError = hasPromiseTrackingContractFailure(input.executedCase)
|
|
54
|
-
? null
|
|
55
|
-
: input.dependencies.asyncLeakMonitor.casePromiseLeakError(input.testCase);
|
|
56
|
-
const activeLeakError = caseActiveResourceLeak(input);
|
|
57
|
-
const runnerErrors = [promiseLeakError, activeLeakError].filter(function isRunnerError(error) {
|
|
58
|
-
return error !== null;
|
|
59
|
-
});
|
|
60
|
-
return {
|
|
61
|
-
executedCase: hasCasePolicyErrors(runnerErrors)
|
|
62
|
-
? runtimePolicyCase(input.executedCase)
|
|
63
|
-
: input.executedCase,
|
|
64
|
-
runnerErrors
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export async function completeCaseWithAsyncLeakPolicy(input) {
|
|
68
|
-
const observed = await observeCaseResourceOwners(input.dependencies.readActiveResourceTypes, input.complete);
|
|
69
|
-
await settleAsyncWork();
|
|
70
|
-
const leak = input.includeActiveResourceLeaks
|
|
71
|
-
? activeResourceLeakError({
|
|
72
|
-
after: input.dependencies.readActiveResourceTypes(),
|
|
73
|
-
before: observed.baseline,
|
|
74
|
-
attributedTo: observed.ambiguousResources.length === 0 ? input.testCase.id : null,
|
|
75
|
-
attributedToWork: observed.ambiguousResources.length === 0 ? input.testCase.workId : null,
|
|
76
|
-
phase: observed.ambiguousResources.length === 0 ? 'body' : 'run'
|
|
77
|
-
})
|
|
78
|
-
: null;
|
|
79
|
-
return leak === null ? observed.result : [...observed.result, leak];
|
|
80
|
-
}
|
|
81
|
-
export async function observeConcurrentResourceLeaks(dependencies, execute) {
|
|
82
|
-
const observed = await observeCaseResourceOwners(dependencies.readActiveResourceTypes, execute);
|
|
83
|
-
await settleAsyncWork();
|
|
84
|
-
return {
|
|
85
|
-
result: observed.result,
|
|
86
|
-
runnerError: activeResourceLeakError({
|
|
87
|
-
after: dependencies.readActiveResourceTypes(),
|
|
88
|
-
before: observed.baseline,
|
|
89
|
-
attributedTo: null,
|
|
90
|
-
attributedToWork: null,
|
|
91
|
-
phase: 'run'
|
|
92
|
-
})
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=execution-async-leak-policy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-async-leak-policy.js","sourceRoot":"","sources":["../../../../source/engine/execution-async-leak-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAEjC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CA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AC,MAAM;QACvB,WAAW,EAAE,uBAAuB,CAAC;YACjC,KAAK,EAAE,YAAY,CAAC,uBAAuB,EAAE;YAC7C,MAAM,EAAE,QAAQ,CAAC,QAAQ;YACzB,YAAY,EAAE,IAAI;YAClB,gBAAgB,EAAE,IAAI;YACtB,KAAK,EAAE,KAAK;SACf,CAAC;KACL,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { RunnerError } from './run-result.ts';
|
|
2
|
-
export type ExecutionPhase = 'body' | 'collection' | 'run';
|
|
3
|
-
export type FatalErrorHandler = (error: RunnerError) => unknown;
|
|
4
|
-
export type FatalErrorHandlerDisposer = () => unknown;
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=execution-error-ownership.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-error-ownership.d.ts","sourceRoot":"","sources":["../../../../source/engine/execution-error-ownership.ts"],"names":[],"mappings":"AAAA,YACY,EAEE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,oBAEoB,GAAG,MAAM,GAAG,YAAY,GAAG,KAAK,CAAC;AAC3D,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC;AAChE,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,CAAC;AAEtD,MAAM,CAA0B,EAK/B,CAAC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
2
|
-
function createActiveScopes() {
|
|
3
|
-
const scopes = [];
|
|
4
|
-
return {
|
|
5
|
-
add(scope) {
|
|
6
|
-
scopes.push(scope);
|
|
7
|
-
},
|
|
8
|
-
all() {
|
|
9
|
-
return Array.from(scopes);
|
|
10
|
-
},
|
|
11
|
-
includes(scope) {
|
|
12
|
-
return scopes.includes(scope);
|
|
13
|
-
},
|
|
14
|
-
remove(scope) {
|
|
15
|
-
const index = scopes.lastIndexOf(scope);
|
|
16
|
-
if (index !== -1) {
|
|
17
|
-
scopes.splice(index, 1);
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
size() {
|
|
21
|
-
return scopes.length;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
const ownershipKey = Symbol.for('@overkill-dev/engine/executionErrorOwnership');
|
|
26
|
-
function hasMethods(value, names) {
|
|
27
|
-
return typeof value === 'object' && value !== null && names.every(function callable(name) {
|
|
28
|
-
return typeof Reflect.get(value, name) === 'function';
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function isErrorOwnership(value) {
|
|
32
|
-
if (typeof value !== 'object' || value === null) {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
return Reflect.get(value, 'runScopeStorage') instanceof AsyncLocalStorage &&
|
|
36
|
-
Reflect.get(value, 'activeCaseStorage') instanceof AsyncLocalStorage &&
|
|
37
|
-
hasMethods(Reflect.get(value, 'activeScopes'), ['add', 'all', 'includes', 'remove', 'size']) &&
|
|
38
|
-
hasMethods(Reflect.get(value, 'processHookListeners'), ['install', 'removeWhenIdle']);
|
|
39
|
-
}
|
|
40
|
-
function createProcessHookListeners(activeScopes) {
|
|
41
|
-
let stop = null;
|
|
42
|
-
return {
|
|
43
|
-
install(receive) {
|
|
44
|
-
if (stop !== null) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
function receiveUnhandledRejection(reason) {
|
|
48
|
-
receive('unhandledRejection', reason);
|
|
49
|
-
}
|
|
50
|
-
function receiveUncaughtException(error) {
|
|
51
|
-
receive('uncaughtException', error);
|
|
52
|
-
}
|
|
53
|
-
process.prependListener('unhandledRejection', receiveUnhandledRejection);
|
|
54
|
-
process.prependListener('uncaughtException', receiveUncaughtException);
|
|
55
|
-
stop = function removeProcessListeners() {
|
|
56
|
-
process.removeListener('unhandledRejection', receiveUnhandledRejection);
|
|
57
|
-
process.removeListener('uncaughtException', receiveUncaughtException);
|
|
58
|
-
};
|
|
59
|
-
},
|
|
60
|
-
removeWhenIdle() {
|
|
61
|
-
if (activeScopes.size() === 0) {
|
|
62
|
-
stop?.();
|
|
63
|
-
stop = null;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
export function executionErrorOwnership() {
|
|
69
|
-
const existing = Reflect.get(globalThis, ownershipKey);
|
|
70
|
-
if (isErrorOwnership(existing)) {
|
|
71
|
-
return existing;
|
|
72
|
-
}
|
|
73
|
-
const activeScopes = createActiveScopes();
|
|
74
|
-
const created = {
|
|
75
|
-
runScopeStorage: new AsyncLocalStorage(),
|
|
76
|
-
activeCaseStorage: new AsyncLocalStorage(),
|
|
77
|
-
activeScopes,
|
|
78
|
-
processHookListeners: createProcessHookListeners(activeScopes)
|
|
79
|
-
};
|
|
80
|
-
Reflect.set(globalThis, ownershipKey, created);
|
|
81
|
-
return created;
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=execution-error-ownership.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-error-ownership.js","sourceRoot":"","sources":["../../../../source/engine/execution-error-ownership.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AA+CrD,SAAS,kBAAkB;IACvB,MAAM,MAAM,GAAoB,EAAE,CAAC;IAEnC,OAAO;QACH,GAAG,CAAC,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;QACD,GAAG;YACC,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9B,CAAC;QACD,QAAQ,CAAC,KAAK;YACV,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;QACD,MAAM,CAAC,KAAK;YACR,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAExC,IAAI,KAAK,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;IAC/C,OAAO,OAAO,CAAC;AACnB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type ExecutionPhase, type FatalErrorHandler, type FatalErrorHandlerDisposer } from './execution-error-ownership.ts';
|
|
2
|
-
import type { AttemptId } from './identity.ts';
|
|
3
|
-
import { type RunnerError } from './run-result.ts';
|
|
4
|
-
import type { TestPlanCase } from './test-plan.ts';
|
|
5
|
-
export type ExecutionGlobalErrorObserver = {
|
|
6
|
-
readonly fatalSignal: () => Promise<void>;
|
|
7
|
-
readonly hasFatalError: () => boolean;
|
|
8
|
-
readonly onFatalError: (handler: FatalErrorHandler) => FatalErrorHandlerDisposer;
|
|
9
|
-
readonly runBoundary: <Value>(run: () => Promise<Value>) => Promise<Value>;
|
|
10
|
-
readonly runCase: <Value>(testCase: TestPlanCase, attempt: AttemptId, run: () => Promise<Value>) => Promise<Value>;
|
|
11
|
-
readonly runPhase: <Value>(phase: ExecutionPhase, run: () => Promise<Value>) => Promise<Value>;
|
|
12
|
-
readonly stop: () => unknown;
|
|
13
|
-
readonly takeErrors: () => readonly RunnerError[];
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=execution-global-error-observer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-global-error-observer.d.ts","sourceRoot":"","sources":["../../../../source/engine/execution-global-error-observer.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,cACc,EACnB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAGjC,MAAM,gCAAgC,CAAC;AAKxC,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAyC,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAmCnD,MAAM,MAAM,4BAA4B,GAAG;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,OAAO,CAAC;IACtC,QAAQ,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,yBAAyB,CAAC;IACjF,QAAQ,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IAC3E,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IACnH,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/F,QAAQ,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,SAAS,WAAW,EAAE,CAAC;CACrD,CAAC"}
|