@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,316 +0,0 @@
|
|
|
1
|
-
import { withRunnerInfrastructure } from "./execution-observation.js";
|
|
2
|
-
import { createReporterDisposal as createReporterDisposalFromCallback } from "./reporter-disposal.js";
|
|
3
|
-
import { recordRunnerErrorDelivery, recordUndeliveredRunnerError, trackRunnerErrorDelivery } from "./reporter-error-delivery-tracking.js";
|
|
4
|
-
import { normalizeReporterOutput, writeReporterOutputs } from "./reporter-managed-output.js";
|
|
5
|
-
import { runWithReporterOutputScope } from "./reporter-output-scope.js";
|
|
6
|
-
import { validateReporterSinks } from "./reporter.js";
|
|
7
|
-
import { createReportingContext } from "./reporting-context.js";
|
|
8
|
-
const callbackTimeoutMs = 100;
|
|
9
|
-
export const createReporterDisposal = createReporterDisposalFromCallback;
|
|
10
|
-
function hasTerminalSink(sink) {
|
|
11
|
-
return sink.kind.startsWith('stdout') || sink.kind.startsWith('stderr');
|
|
12
|
-
}
|
|
13
|
-
function hasTerminalReporter(reporter) {
|
|
14
|
-
return reporter.sinks.some(hasTerminalSink);
|
|
15
|
-
}
|
|
16
|
-
function isRecord(value) {
|
|
17
|
-
return typeof value === 'object' && value !== null;
|
|
18
|
-
}
|
|
19
|
-
function projectRootFromRunFacts(facts) {
|
|
20
|
-
if (!isRecord(facts)) {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
const { environment } = facts;
|
|
24
|
-
if (!isRecord(environment) || typeof environment.projectRoot !== 'string') {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
return environment.projectRoot.trim().length === 0 ? null : environment.projectRoot;
|
|
28
|
-
}
|
|
29
|
-
function recordDeliveredRunnerErrorEvent(event, successes, outputFailures) {
|
|
30
|
-
if (event.kind !== 'runner-error') {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
const failedOutputReporters = new Set(outputFailures.map(function toReporter(failure) {
|
|
34
|
-
return failure.reporter;
|
|
35
|
-
}));
|
|
36
|
-
const delivered = successes.some(function deliveredToTerminalReporter(success) {
|
|
37
|
-
return hasTerminalReporter(success.reporter) && !failedOutputReporters.has(success.reporter);
|
|
38
|
-
});
|
|
39
|
-
if (!delivered) {
|
|
40
|
-
recordUndeliveredRunnerError(event.error);
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
for (const success of successes) {
|
|
44
|
-
if (hasTerminalReporter(success.reporter) && !failedOutputReporters.has(success.reporter)) {
|
|
45
|
-
recordRunnerErrorDelivery(event.error);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function formatReporterError(reporter, cause) {
|
|
50
|
-
const reason = cause instanceof Error ? cause.message : String(cause);
|
|
51
|
-
return {
|
|
52
|
-
attributedToAttempt: null,
|
|
53
|
-
attributedTo: null,
|
|
54
|
-
attributedToWork: null,
|
|
55
|
-
cause,
|
|
56
|
-
diagnostics: [{ label: 'reporter', value: reporter.name }],
|
|
57
|
-
message: `${reporter.name}: ${reason}`,
|
|
58
|
-
subtype: 'reporter'
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function rawConsoleMethods(reporter) {
|
|
62
|
-
return reporter.sinks.flatMap(function toConsoleMethods(sink) {
|
|
63
|
-
if (sink.kind === 'stdout-raw') {
|
|
64
|
-
return ['debug', 'info', 'log'];
|
|
65
|
-
}
|
|
66
|
-
if (sink.kind === 'stderr-raw') {
|
|
67
|
-
return ['error', 'warn'];
|
|
68
|
-
}
|
|
69
|
-
return [];
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function reporterConsoleViolationMessage(method) {
|
|
73
|
-
return `Reporter used undeclared console.${method} output.`;
|
|
74
|
-
}
|
|
75
|
-
function firstScopeViolation(violations) {
|
|
76
|
-
return violations[0] ?? null;
|
|
77
|
-
}
|
|
78
|
-
async function scopedReporterCallbackOutput(reporter, reporterTimeout, callback) {
|
|
79
|
-
const scoped = await runWithReporterOutputScope(rawConsoleMethods(reporter), reporterConsoleViolationMessage, async function runReporterCallback() {
|
|
80
|
-
return await Promise.race([callback(), reporterTimeout.promise]);
|
|
81
|
-
});
|
|
82
|
-
const violation = firstScopeViolation(scoped.violations);
|
|
83
|
-
if (violation !== null) {
|
|
84
|
-
throw new Error(violation);
|
|
85
|
-
}
|
|
86
|
-
return scoped.result;
|
|
87
|
-
}
|
|
88
|
-
async function scopedReporterDisposal(reporter, reporterTimeout, dispose) {
|
|
89
|
-
const scoped = await runWithReporterOutputScope(rawConsoleMethods(reporter), reporterConsoleViolationMessage, async function disposeReporter() {
|
|
90
|
-
await Promise.race([dispose(), reporterTimeout.promise]);
|
|
91
|
-
});
|
|
92
|
-
const violation = firstScopeViolation(scoped.violations);
|
|
93
|
-
if (violation !== null) {
|
|
94
|
-
throw new Error(violation);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function timeoutError(reporter) {
|
|
98
|
-
return new Error(`${reporter.name} reporter callback timed out after ${callbackTimeoutMs} ms.`);
|
|
99
|
-
}
|
|
100
|
-
function createReporterTimeout(dependencies, reporter) {
|
|
101
|
-
const { promise, reject } = Promise.withResolvers();
|
|
102
|
-
const timeout = withRunnerInfrastructure(function scheduleReporterTimeout() {
|
|
103
|
-
return dependencies.wallClock.setTimeout(function rejectTimedOutCallback() {
|
|
104
|
-
reject(timeoutError(reporter));
|
|
105
|
-
}, callbackTimeoutMs);
|
|
106
|
-
});
|
|
107
|
-
return {
|
|
108
|
-
cancel() {
|
|
109
|
-
dependencies.wallClock.clearTimeout(timeout);
|
|
110
|
-
},
|
|
111
|
-
promise
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
async function awaitReporterCallback(dependencies, reporter, callback) {
|
|
115
|
-
const reporterTimeout = createReporterTimeout(dependencies, reporter);
|
|
116
|
-
try {
|
|
117
|
-
const output = await scopedReporterCallbackOutput(reporter, reporterTimeout, callback);
|
|
118
|
-
return { kind: 'success', output: normalizeReporterOutput(output), reporter };
|
|
119
|
-
}
|
|
120
|
-
catch (error) {
|
|
121
|
-
return { error: formatReporterError(reporter, error), kind: 'failure', reporter };
|
|
122
|
-
}
|
|
123
|
-
finally {
|
|
124
|
-
reporterTimeout.cancel();
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
async function awaitReporterDispose(dependencies, reporter, dispose) {
|
|
128
|
-
const reporterTimeout = createReporterTimeout(dependencies, reporter);
|
|
129
|
-
try {
|
|
130
|
-
await scopedReporterDisposal(reporter, reporterTimeout, dispose);
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
catch (error) {
|
|
134
|
-
return { error: formatReporterError(reporter, error), kind: 'failure', reporter };
|
|
135
|
-
}
|
|
136
|
-
finally {
|
|
137
|
-
reporterTimeout.cancel();
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
function reporterFailures(results) {
|
|
141
|
-
return results.flatMap(function collectFailure(result) {
|
|
142
|
-
return result.kind === 'failure' ? [result] : [];
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
function reporterSuccesses(results) {
|
|
146
|
-
return results.flatMap(function collectSuccess(result) {
|
|
147
|
-
return result.kind === 'success' ? [result] : [];
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
async function reportEventToReporter(dependencies, reporter, event) {
|
|
151
|
-
return await awaitReporterCallback(dependencies, reporter, function sendReporterEvent() {
|
|
152
|
-
return reporter.onEvent(event);
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
async function reportRunnerErrorToOtherReporters(context, failedReporter, error) {
|
|
156
|
-
const event = { error, kind: 'runner-error' };
|
|
157
|
-
const failures = await Promise.all(context.reporters.map(async function reportRunnerError(reporter) {
|
|
158
|
-
if (reporter.kind !== 'real-time' || reporter === failedReporter) {
|
|
159
|
-
return null;
|
|
160
|
-
}
|
|
161
|
-
return reportEventToReporter(context.dependencies, reporter, event);
|
|
162
|
-
}));
|
|
163
|
-
const results = failures.flatMap(function collectResult(result) {
|
|
164
|
-
return result === null ? [] : [result];
|
|
165
|
-
});
|
|
166
|
-
const successes = reporterSuccesses(results);
|
|
167
|
-
const outputFailures = writeReporterOutputs(context.dependencies, successes, context.outputRenderer, formatReporterError);
|
|
168
|
-
recordDeliveredRunnerErrorEvent(event, successes, outputFailures);
|
|
169
|
-
return [
|
|
170
|
-
...reporterFailures(results).map(function toError(failure) {
|
|
171
|
-
return failure.error;
|
|
172
|
-
}),
|
|
173
|
-
...outputFailures.map(function toError(failure) {
|
|
174
|
-
return failure.error;
|
|
175
|
-
})
|
|
176
|
-
];
|
|
177
|
-
}
|
|
178
|
-
async function collectReporterErrorsWithNotifications(context, reporterErrors) {
|
|
179
|
-
const notificationErrors = await Promise.all(reporterErrors.map(async function reportError(failure) {
|
|
180
|
-
return reportRunnerErrorToOtherReporters(context, failure.reporter, failure.error);
|
|
181
|
-
}));
|
|
182
|
-
return [
|
|
183
|
-
...reporterErrors.map(function toError(failure) {
|
|
184
|
-
return failure.error;
|
|
185
|
-
}),
|
|
186
|
-
...notificationErrors.flat()
|
|
187
|
-
];
|
|
188
|
-
}
|
|
189
|
-
async function reportEvent(context, event) {
|
|
190
|
-
const results = await Promise.all(context.reporters.map(async function reportRealTimeEvent(reporter) {
|
|
191
|
-
if (reporter.kind !== 'real-time') {
|
|
192
|
-
return null;
|
|
193
|
-
}
|
|
194
|
-
return reportEventToReporter(context.dependencies, reporter, event);
|
|
195
|
-
}));
|
|
196
|
-
const callbackResults = results.flatMap(function collectResult(result) {
|
|
197
|
-
return result === null ? [] : [result];
|
|
198
|
-
});
|
|
199
|
-
const successes = reporterSuccesses(callbackResults);
|
|
200
|
-
const outputErrors = writeReporterOutputs(context.dependencies, successes, context.outputRenderer, formatReporterError);
|
|
201
|
-
recordDeliveredRunnerErrorEvent(event, successes, outputErrors);
|
|
202
|
-
const reporterErrors = [...reporterFailures(callbackResults), ...outputErrors];
|
|
203
|
-
if (event.kind === 'runner-error') {
|
|
204
|
-
return reporterErrors.map(function toError(failure) {
|
|
205
|
-
return failure.error;
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
return collectReporterErrorsWithNotifications(context, reporterErrors);
|
|
209
|
-
}
|
|
210
|
-
async function reportResult(context, result) {
|
|
211
|
-
const results = await Promise.all(context.reporters.map(async function reportFinalResult(reporter) {
|
|
212
|
-
if (reporter.kind === 'final-result') {
|
|
213
|
-
return await awaitReporterCallback(context.dependencies, reporter, function reportResultToFinalReporter() {
|
|
214
|
-
return reporter.onResult(result);
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
if (reporter.onFinish === null) {
|
|
218
|
-
return null;
|
|
219
|
-
}
|
|
220
|
-
const { onFinish } = reporter;
|
|
221
|
-
return await awaitReporterCallback(context.dependencies, reporter, function reportResultToRealTimeReporter() {
|
|
222
|
-
return onFinish(result);
|
|
223
|
-
});
|
|
224
|
-
}));
|
|
225
|
-
const callbackResults = results.flatMap(function collectResult(callbackResult) {
|
|
226
|
-
return callbackResult === null ? [] : [callbackResult];
|
|
227
|
-
});
|
|
228
|
-
const successes = reporterSuccesses(callbackResults);
|
|
229
|
-
const outputErrors = writeReporterOutputs(context.dependencies, successes, context.outputRenderer, formatReporterError);
|
|
230
|
-
const reporterErrors = [...reporterFailures(callbackResults), ...outputErrors];
|
|
231
|
-
return collectReporterErrorsWithNotifications(context, reporterErrors);
|
|
232
|
-
}
|
|
233
|
-
async function disposeReporters(dependencies, reporters) {
|
|
234
|
-
const failures = await Promise.all(reporters.map(async function disposeReporter(reporter) {
|
|
235
|
-
if (reporter.dispose === null) {
|
|
236
|
-
return null;
|
|
237
|
-
}
|
|
238
|
-
return await awaitReporterDispose(dependencies, reporter, reporter.dispose);
|
|
239
|
-
}));
|
|
240
|
-
return failures.flatMap(function collectFailure(failure) {
|
|
241
|
-
return failure === null ? [] : [failure.error];
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
function createReporterDispatchContext(dependencies, reporters, outputRenderer) {
|
|
245
|
-
return {
|
|
246
|
-
dependencies,
|
|
247
|
-
outputRenderer,
|
|
248
|
-
reporters
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
function createRuntimeReporterCollector() {
|
|
252
|
-
const reporters = [];
|
|
253
|
-
return {
|
|
254
|
-
addReporter(reporter) {
|
|
255
|
-
reporters.push(reporter);
|
|
256
|
-
},
|
|
257
|
-
reporters() {
|
|
258
|
-
return reporters;
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
function collectRuntimeReporters(collector, reporterDefinitions, reportingContext) {
|
|
263
|
-
for (const reporterDefinition of reporterDefinitions) {
|
|
264
|
-
collector.addReporter(reporterDefinition(reportingContext));
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
async function throwWithReporterCleanupErrors(error, dependencies, reporters) {
|
|
268
|
-
const disposeErrors = await disposeReporters(dependencies, reporters);
|
|
269
|
-
if (disposeErrors.length > 0) {
|
|
270
|
-
throw new AggregateError([error, ...disposeErrors], 'Reporter delivery creation failed and reporter cleanup failed.', { cause: error });
|
|
271
|
-
}
|
|
272
|
-
throw error;
|
|
273
|
-
}
|
|
274
|
-
async function createReporterDelivery(dependencies, reporterDefinitions, outputRendererDefinition) {
|
|
275
|
-
const state = { projectRoot: null };
|
|
276
|
-
const reportingContext = createReportingContext(state);
|
|
277
|
-
const reporterCollector = createRuntimeReporterCollector();
|
|
278
|
-
try {
|
|
279
|
-
collectRuntimeReporters(reporterCollector, reporterDefinitions, reportingContext);
|
|
280
|
-
validateReporterSinks(reporterCollector.reporters());
|
|
281
|
-
}
|
|
282
|
-
catch (error) {
|
|
283
|
-
return await throwWithReporterCleanupErrors(error, dependencies, reporterCollector.reporters());
|
|
284
|
-
}
|
|
285
|
-
const context = createReporterDispatchContext(dependencies, reporterCollector.reporters(), outputRendererDefinition(reportingContext));
|
|
286
|
-
let reportersDisposed = false;
|
|
287
|
-
return {
|
|
288
|
-
async disposeReporters() {
|
|
289
|
-
if (reportersDisposed) {
|
|
290
|
-
return [];
|
|
291
|
-
}
|
|
292
|
-
reportersDisposed = true;
|
|
293
|
-
return await disposeReporters(dependencies, context.reporters);
|
|
294
|
-
},
|
|
295
|
-
async reportEvent(event) {
|
|
296
|
-
if (event.kind === 'run-start') {
|
|
297
|
-
state.projectRoot = projectRootFromRunFacts(event.facts);
|
|
298
|
-
}
|
|
299
|
-
return await reportEvent(context, event);
|
|
300
|
-
},
|
|
301
|
-
async reportResult(result) {
|
|
302
|
-
return await reportResult(context, result);
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
export function createReporterDispatcher(dependencies) {
|
|
307
|
-
return {
|
|
308
|
-
async createDelivery(reporters, outputRenderer) {
|
|
309
|
-
return await createReporterDelivery(dependencies, reporters, outputRenderer);
|
|
310
|
-
},
|
|
311
|
-
async trackRunnerErrorDelivery(work) {
|
|
312
|
-
return await trackRunnerErrorDelivery(work);
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
//# sourceMappingURL=reporter-dispatcher.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporter-dispatcher.js","sourceRoot":"","sources":["../../../../source/engine/reporter-dispatcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACH,sBAAsB,IAAI,kCAAkC,EAE/D,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACH,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EAC3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACH,uBAAuB,EAGvB,oBAAoB,EACvB,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EACH,0BAA0B,EAE7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAA2D,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAE,sBAAsB,EAAyB,MAAM,wBAAwB,CAAC;AAmDvF,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAI9B,MAAM,CAAC,MAAM,sBAAsB,GAA8C,kCAAkC,CAAC;AAEpH,SAAS,eAAe,CAAC,IAA+B;IACpD,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC5E,CAAC;AAED,SAAS,mB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CAAC;IACF,IAAI,iBAAiB,GAAG,KAAK,CAAC;IAE9B,OAAO;QACH,KAAK,CAAC,gBAAgB;YAClB,IAAI,iBAAiB,EAAE,CAAC;gBACpB,OAAO,EAAE,CAAC;YACd,CAAC;YAED,iBAAiB,GAAG,IAAI,CAAC;YAEzB,OAAO,MAAM,gBAAgB,CAAC,YAAY,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QACnE,CAAC;QACD,KAAK,CAAC,WAAW,CAAC,KAAK;YACnB,IAAI,KAAK,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;gBAC7B,KAAK,CAAC,WAAW,GAAG,uBAAuB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC7D,CAAC;YAED,OAAO,MAAM,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAC7C,CAAC;QACD,KAAK,CAAC,YAAY,CAAC,MAAM;YACrB,OAAO,MAAM,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC/C,CAAC;KACJ,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,YAA4C;IACjF,OAAO;QACH,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,cAAc;YAC1C,OAAO,MAAM,sBAAsB,CAAC,YAAY,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;QACjF,CAAC;QACD,KAAK,CAAC,wBAAwB,CAAC,IAAI;YAC/B,OAAO,MAAM,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAChD,CAAC;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export function createReporterDisposal(disposeReporters) {
|
|
2
|
-
let reportersDisposed = false;
|
|
3
|
-
return {
|
|
4
|
-
async disposeOnce() {
|
|
5
|
-
if (reportersDisposed) {
|
|
6
|
-
return [];
|
|
7
|
-
}
|
|
8
|
-
reportersDisposed = true;
|
|
9
|
-
return await disposeReporters();
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=reporter-disposal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporter-disposal.js","sourceRoot":"","sources":["../../../../source/engine/reporter-disposal.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,sBAAsB,CAClC,gBAAuD;IAEvD,IAAI,iBAAiB,GAAG,KAAK,CAAC;IAE9B,OAAO;QACH,KAAK,CAAC,WAAW;YACb,IAAI,iBAAiB,EAAE,CAAC;gBACpB,OAAO,EAAE,CAAC;YACd,CAAC;YAED,iBAAiB,GAAG,IAAI,CAAC;YAEzB,OAAO,MAAM,gBAAgB,EAAE,CAAC;QACpC,CAAC;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
2
|
-
const runnerErrorDeliveryStorage = new AsyncLocalStorage();
|
|
3
|
-
export function recordRunnerErrorDelivery(error) {
|
|
4
|
-
runnerErrorDeliveryStorage.getStore()?.recordDeliveredRunnerError(error);
|
|
5
|
-
}
|
|
6
|
-
export function recordUndeliveredRunnerError(error) {
|
|
7
|
-
runnerErrorDeliveryStorage.getStore()?.recordUndeliveredRunnerError(error);
|
|
8
|
-
}
|
|
9
|
-
export async function trackRunnerErrorDelivery(work) {
|
|
10
|
-
const deliveredRunnerErrors = new Set();
|
|
11
|
-
const undeliveredRunnerErrors = new Set();
|
|
12
|
-
const deliveryStore = {
|
|
13
|
-
deliveredRunnerErrors() {
|
|
14
|
-
return Array.from(deliveredRunnerErrors);
|
|
15
|
-
},
|
|
16
|
-
recordUndeliveredRunnerError(error) {
|
|
17
|
-
undeliveredRunnerErrors.add(error);
|
|
18
|
-
},
|
|
19
|
-
recordDeliveredRunnerError(error) {
|
|
20
|
-
deliveredRunnerErrors.add(error);
|
|
21
|
-
},
|
|
22
|
-
undeliveredRunnerErrors() {
|
|
23
|
-
return Array.from(undeliveredRunnerErrors);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
const result = await runnerErrorDeliveryStorage.run(deliveryStore, work);
|
|
27
|
-
return {
|
|
28
|
-
deliveredRunnerErrors: deliveryStore.deliveredRunnerErrors(),
|
|
29
|
-
result,
|
|
30
|
-
undeliveredRunnerErrors: deliveryStore.undeliveredRunnerErrors()
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=reporter-error-delivery-tracking.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporter-error-delivery-tracking.js","sourceRoot":"","sources":["../../../../source/engine/reporter-error-delivery-tracking.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAUrD,MAAM,0BAA0B,GAAG,IAAI,iBAAiB,EAA4B,CAAC;AAErF,MAAM,UAAU,yBAAyB,CAAC,KAAkB;IACxD,0BAA0B,CAAC,QAAQ,EAAE,EAAE,0BAA0B,CAAC,KAAK,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,KAAkB;IAC3D,0BAA0B,CAAC,QAAQ,EAAE,EAAE,4BAA4B,CAAC,KAAK,CAAC,CAAC;AAC/E,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC1C,IAA2B;IAM3B,MAAM,qBAAqB,GAAG,IAAI,GAAG,EAAe,CAAC;IACrD,MAAM,uBAAuB,GAAG,IAAI,GAAG,EAAe,CAAC;IACvD,MAAM,aAAa,GAA6B;QAC5C,qBAAqB;YACjB,OAAO,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QAC7C,CAAC;QACD,4BAA4B,CAAC,KAAK;YAC9B,uBAAuB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;QACD,0BAA0B,CAAC,KAAK;YAC5B,qBAAqB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC;QACD,uBAAuB;YACnB,OAAO,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QAC/C,CAAC;KACJ,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAEzE,OAAO;QACH,qBAAqB,EAAE,aAAa,CAAC,qBAAqB,EAAE;QAC5D,MAAM;QACN,uBAAuB,EAAE,aAAa,CAAC,uBAAuB,EAAE;KACnE,CAAC;AACN,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function commonSuitePrefixLength(firstSuitePath, secondSuitePath) {
|
|
2
|
-
const shortestLength = Math.min(firstSuitePath.length, secondSuitePath.length);
|
|
3
|
-
let prefixLength = 0;
|
|
4
|
-
while (prefixLength < shortestLength &&
|
|
5
|
-
firstSuitePath[prefixLength]?.title === secondSuitePath[prefixLength]?.title) {
|
|
6
|
-
prefixLength += 1;
|
|
7
|
-
}
|
|
8
|
-
return prefixLength;
|
|
9
|
-
}
|
|
10
|
-
async function waitForPreviousReport(previousReport) {
|
|
11
|
-
try {
|
|
12
|
-
await previousReport;
|
|
13
|
-
}
|
|
14
|
-
catch {
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
return undefined;
|
|
18
|
-
}
|
|
19
|
-
export function createReporterEventQueue(reporterDelivery) {
|
|
20
|
-
let previousReport = Promise.resolve([]);
|
|
21
|
-
return {
|
|
22
|
-
async reportEvent(event) {
|
|
23
|
-
const report = (async function reportEventAfterPreviousReport() {
|
|
24
|
-
await waitForPreviousReport(previousReport);
|
|
25
|
-
return await reporterDelivery.reportEvent(event);
|
|
26
|
-
})();
|
|
27
|
-
previousReport = report;
|
|
28
|
-
return await report;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export async function reportSuiteTransition(reporterDelivery, currentSuitePath, nextSuitePath) {
|
|
33
|
-
let reporterErrors = [];
|
|
34
|
-
const sharedPrefixLength = commonSuitePrefixLength(currentSuitePath, nextSuitePath);
|
|
35
|
-
for (let pathLength = currentSuitePath.length; pathLength > sharedPrefixLength; pathLength -= 1) {
|
|
36
|
-
reporterErrors = [
|
|
37
|
-
...reporterErrors,
|
|
38
|
-
...await reporterDelivery.reportEvent({
|
|
39
|
-
kind: 'suite-end',
|
|
40
|
-
suitePath: currentSuitePath.slice(0, pathLength)
|
|
41
|
-
})
|
|
42
|
-
];
|
|
43
|
-
}
|
|
44
|
-
for (let pathLength = sharedPrefixLength + 1; pathLength <= nextSuitePath.length; pathLength += 1) {
|
|
45
|
-
reporterErrors = [
|
|
46
|
-
...reporterErrors,
|
|
47
|
-
...await reporterDelivery.reportEvent({
|
|
48
|
-
kind: 'suite-start',
|
|
49
|
-
suitePath: nextSuitePath.slice(0, pathLength)
|
|
50
|
-
})
|
|
51
|
-
];
|
|
52
|
-
}
|
|
53
|
-
return reporterErrors;
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=reporter-event-queue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporter-event-queue.js","sourceRoot":"","sources":["../../../../source/engine/reporter-event-queue.ts"],"names":[],"mappings":"AAWA,SAAS,uBAAuB,CAC5B,cAAyC,EACzC,eAA0C;IAE1C,MAAM,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/E,IAAI,YAAY,GAAG,CAAC,CAAC;IAErB,OACI,YAAY,GAAG,cAAc;QAC7B,cAAc,CAAC,YAAY,CAAC,EAAE,KAAK,KAAK,eAAe,CAAC,YAAY,CAAC,EAAE,KAAK,EAC9E,CAAC;QACC,YAAY,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,OAAO,YAAY,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,qBAAqB,CAAC,cAA+C;IAChF,IAAI,CAAC;QACD,MAAM,cAAc,CAAC;IACzB,CAAC;IAAC,MAAM,CAAC;QACL,OAA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AAE,aAAa;gBACnB,SAAS,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC;aAChD,CAAC;SACL,CAAC;IACN,CAAC;IAED,OAAO,cAAc,CAAC;AAC1B,CAAC"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { runWithReporterOutputScopeNow } from "./reporter-output-scope.js";
|
|
2
|
-
function isObject(value) {
|
|
3
|
-
return typeof value === 'object' && value !== null;
|
|
4
|
-
}
|
|
5
|
-
function isOutputLineKind(value) {
|
|
6
|
-
return value === 'stdout-line' || value === 'stderr-line';
|
|
7
|
-
}
|
|
8
|
-
function isOutputLineRole(value) {
|
|
9
|
-
return value === 'primary' || value === 'supplemental';
|
|
10
|
-
}
|
|
11
|
-
function isOutputLineIntent(value) {
|
|
12
|
-
return isObject(value) &&
|
|
13
|
-
isOutputLineKind(value.kind) &&
|
|
14
|
-
isOutputLineRole(value.role) &&
|
|
15
|
-
typeof value.text === 'string' &&
|
|
16
|
-
Object.hasOwn(value, 'annotation');
|
|
17
|
-
}
|
|
18
|
-
export function normalizeReporterOutput(output) {
|
|
19
|
-
if (output === undefined) {
|
|
20
|
-
return [];
|
|
21
|
-
}
|
|
22
|
-
if (Array.isArray(output) && output.every(isOutputLineIntent)) {
|
|
23
|
-
return output;
|
|
24
|
-
}
|
|
25
|
-
throw new Error('Reporter returned invalid managed output.');
|
|
26
|
-
}
|
|
27
|
-
function outputIntentStream(intent) {
|
|
28
|
-
return intent.kind === 'stderr-line' ? 'stderr' : 'stdout';
|
|
29
|
-
}
|
|
30
|
-
function expectedSinkKind(intent) {
|
|
31
|
-
return `${outputIntentStream(intent)}-managed-${intent.role}`;
|
|
32
|
-
}
|
|
33
|
-
function reporterDeclaresOutputIntent(reporter, intent) {
|
|
34
|
-
return reporter.sinks.some(function sinkMatchesIntent(sink) {
|
|
35
|
-
return sink.kind === expectedSinkKind(intent);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function validateRenderedLine(line) {
|
|
39
|
-
if (line.includes('\n') || line.includes('\r')) {
|
|
40
|
-
throw new Error('Managed output renderer returned a line containing a newline.');
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function outputWriterForIntent(dependencies, intent) {
|
|
44
|
-
return outputIntentStream(intent) === 'stdout' ? dependencies.stdout : dependencies.stderr;
|
|
45
|
-
}
|
|
46
|
-
function consoleMethodsForIntent(intent) {
|
|
47
|
-
return outputIntentStream(intent) === 'stdout'
|
|
48
|
-
? ['debug', 'info', 'log']
|
|
49
|
-
: ['error', 'warn'];
|
|
50
|
-
}
|
|
51
|
-
function managedOutputConsoleViolationMessage(intent, method) {
|
|
52
|
-
return `Managed ${outputIntentStream(intent)} output used console.${method}.`;
|
|
53
|
-
}
|
|
54
|
-
function assertReporterDeclaresOutputIntent(reporter, intent) {
|
|
55
|
-
if (!reporterDeclaresOutputIntent(reporter, intent)) {
|
|
56
|
-
throw new Error(`Reporter returned undeclared managed ${outputIntentStream(intent)} output.`);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function writeScopedManagedOutput(input) {
|
|
60
|
-
assertReporterDeclaresOutputIntent(input.reporter, input.intent);
|
|
61
|
-
const rendered = runWithReporterOutputScopeNow(consoleMethodsForIntent(input.intent), function formatManagedOutputConsoleViolation(method) {
|
|
62
|
-
return managedOutputConsoleViolationMessage(input.intent, method);
|
|
63
|
-
}, function writeManagedOutput() {
|
|
64
|
-
const line = input.outputRenderer.render(input.intent);
|
|
65
|
-
validateRenderedLine(line);
|
|
66
|
-
outputWriterForIntent(input.dependencies, input.intent).writeLine(line);
|
|
67
|
-
return line;
|
|
68
|
-
});
|
|
69
|
-
const violation = rendered.violations[0] ?? null;
|
|
70
|
-
if (violation !== null) {
|
|
71
|
-
throw new Error(violation);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function writeReporterOutput(input) {
|
|
75
|
-
try {
|
|
76
|
-
writeScopedManagedOutput(input);
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
return {
|
|
81
|
-
error: input.formatReporterError(input.reporter, error),
|
|
82
|
-
kind: 'failure',
|
|
83
|
-
reporter: input.reporter
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
export function writeReporterOutputs(dependencies, outputs, outputRenderer, formatReporterError) {
|
|
88
|
-
const failures = [];
|
|
89
|
-
for (const output of outputs) {
|
|
90
|
-
for (const intent of output.output) {
|
|
91
|
-
const failure = writeReporterOutput({
|
|
92
|
-
dependencies,
|
|
93
|
-
formatReporterError,
|
|
94
|
-
intent,
|
|
95
|
-
outputRenderer,
|
|
96
|
-
reporter: output.reporter
|
|
97
|
-
});
|
|
98
|
-
if (failure !== null) {
|
|
99
|
-
failures.push(failure);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return failures;
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=reporter-managed-output.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporter-managed-output.js","sourceRoot":"","sources":["../../../../source/engine/reporter-managed-output.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,6BAA6B,EAEhC,MAAM,4BAA4B,CAAC;AA+BpC,SAAS,QAAQ,CAAC,KAAc;IAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACvD,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAc;IACpC,OAAO,KAAK,KAAK,aAAa,IAAI,KAAK,KAAK,aAAa,CAAC;AAC9D,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAc;IACpC,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,cAAc,CAAC;AAC3D,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAc;IACtC,OAAO,QAAQ,CAAC,KAAK,CAAC;QAClB,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC;QAC5B,gBAAgB,CA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-
import { withRunnerInfrastructure } from "./execution-observation.js";
|
|
3
|
-
const consoleMethodByDiagnosticChannel = {
|
|
4
|
-
'console.debug': 'debug',
|
|
5
|
-
'console.error': 'error',
|
|
6
|
-
'console.info': 'info',
|
|
7
|
-
'console.log': 'log',
|
|
8
|
-
'console.warn': 'warn'
|
|
9
|
-
};
|
|
10
|
-
function consoleMethodFromDiagnosticChannel(channelName) {
|
|
11
|
-
return consoleMethodByDiagnosticChannel[channelName] ?? null;
|
|
12
|
-
}
|
|
13
|
-
const reporterOutputScopeStorage = new AsyncLocalStorage();
|
|
14
|
-
export function recordReporterConsoleDiagnostic(channelName) {
|
|
15
|
-
const scope = reporterOutputScopeStorage.getStore();
|
|
16
|
-
const method = consoleMethodFromDiagnosticChannel(channelName);
|
|
17
|
-
if (scope === undefined || method === null) {
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
if (!scope.allowedConsoleMethods.includes(method)) {
|
|
21
|
-
scope.addViolation(scope.consoleViolationMessage(method));
|
|
22
|
-
}
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
export async function runWithReporterOutputScope(allowedConsoleMethods, consoleViolationMessage, run) {
|
|
26
|
-
const violations = [];
|
|
27
|
-
const scope = {
|
|
28
|
-
allowedConsoleMethods,
|
|
29
|
-
consoleViolationMessage,
|
|
30
|
-
addViolation(message) {
|
|
31
|
-
violations.push(message);
|
|
32
|
-
},
|
|
33
|
-
violations() {
|
|
34
|
-
return violations;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
const result = await withRunnerInfrastructure(async function runReporterOperation() {
|
|
38
|
-
return reporterOutputScopeStorage.run(scope, run);
|
|
39
|
-
});
|
|
40
|
-
return {
|
|
41
|
-
result,
|
|
42
|
-
violations: scope.violations()
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export function runWithReporterOutputScopeNow(allowedConsoleMethods, consoleViolationMessage, run) {
|
|
46
|
-
const violations = [];
|
|
47
|
-
const scope = {
|
|
48
|
-
allowedConsoleMethods,
|
|
49
|
-
consoleViolationMessage,
|
|
50
|
-
addViolation(message) {
|
|
51
|
-
violations.push(message);
|
|
52
|
-
},
|
|
53
|
-
violations() {
|
|
54
|
-
return violations;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
const result = withRunnerInfrastructure(function runReporterOperation() {
|
|
58
|
-
return reporterOutputScopeStorage.run(scope, run);
|
|
59
|
-
});
|
|
60
|
-
return {
|
|
61
|
-
result,
|
|
62
|
-
violations: scope.violations()
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=reporter-output-scope.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporter-output-scope.js","sourceRoot":"","sources":["../../../../source/engine/reporter-output-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAgBtE,MAAM,gCAAgC,GAAoD;IACtF,eAAe,EAAE,OAAO;IACxB,eAAe,EAAE,OAAO;IACxB,cAAc,EAAE,MAAM;IACtB,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,MAAM;CACzB,CAAC;AAEF,SAAS,kCAAkC,CAAC,WAAmB;IAC3D,OAAO,gCAAgC,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC;AACjE,CAAC;AAED,MAAM,0BAA0B,GAAG,IAAI,iBAAiB,EAAuB,CAAC;AAEhF,MAAM,UAAU,+BAA+B,CAAC,WAAmB;IAC/D,MAAM,KAAK,GAAG,0BAA0B,CAAC,QAAQ,EAAE,CAAC;IACpD,MAAM,MAAM,GAAG,kCAAkC,CAAC,WAAW,CAAC,CAAC;IAE/D,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QACzC,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,qBAAqB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