@overkill-dev/run 0.0.62 → 0.0.64
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/assertion-protocol/assertion-node.d.ts +0 -15
- package/assertion-protocol/assertion-node.d.ts.map +1 -1
- package/assertion-protocol/assertion-reference.d.ts +0 -21
- package/assertion-protocol/assertion-reference.d.ts.map +1 -1
- package/assertion-protocol/assertion-reference.js +3 -30
- package/assertion-protocol/assertion-reference.js.map +1 -1
- package/assertion-protocol/assertions/boolean.d.ts +0 -7
- package/assertion-protocol/assertions/boolean.d.ts.map +1 -1
- package/assertion-protocol/assertions/collection.d.ts +0 -9
- package/assertion-protocol/assertions/collection.d.ts.map +1 -1
- package/assertion-protocol/assertions/equality.d.ts +0 -11
- package/assertion-protocol/assertions/equality.d.ts.map +1 -1
- package/assertion-protocol/assertions/fail.d.ts +0 -5
- package/assertion-protocol/assertions/fail.d.ts.map +1 -1
- package/assertion-protocol/assertions/numeric.d.ts +0 -13
- package/assertion-protocol/assertions/numeric.d.ts.map +1 -1
- package/assertion-protocol/assertions/partial.d.ts +0 -9
- package/assertion-protocol/assertions/partial.d.ts.map +1 -1
- package/assertion-protocol/assertions/presence.d.ts +0 -11
- package/assertion-protocol/assertions/presence.d.ts.map +1 -1
- package/assertion-protocol/assertions/string.d.ts +0 -13
- package/assertion-protocol/assertions/string.d.ts.map +1 -1
- package/assertion-protocol/assertions/type-shape.d.ts +0 -19
- package/assertion-protocol/assertions/type-shape.d.ts.map +1 -1
- package/assertion-protocol/source-location-forwarding.js +15 -9
- package/assertion-protocol/source-location-forwarding.js.map +1 -1
- package/assertion-protocol/source-location.js +1 -0
- package/assertion-protocol/source-location.js.map +1 -1
- package/assertion-protocol/thrown-error-record.d.ts +0 -1
- package/assertion-protocol/thrown-error-record.d.ts.map +1 -1
- package/assertion-protocol/thrown-matcher.d.ts +1 -18
- package/assertion-protocol/thrown-matcher.d.ts.map +1 -1
- package/compare/serialized-value-shape.d.ts +0 -9
- package/compare/serialized-value-shape.d.ts.map +1 -1
- package/compare/serialized-value.d.ts +1 -8
- package/compare/serialized-value.d.ts.map +1 -1
- package/engine/assertion-facade.d.ts +2 -5
- package/engine/assertion-facade.d.ts.map +1 -1
- package/engine/async-control.d.ts +0 -26
- package/engine/async-control.d.ts.map +1 -1
- package/engine/async-leak-diagnostics.js +9 -9
- package/engine/async-leak-diagnostics.js.map +1 -1
- package/engine/case-attempt-execution.js +191 -0
- package/engine/case-attempt-execution.js.map +1 -0
- package/engine/case-execution.d.ts +5 -16
- package/engine/case-execution.d.ts.map +1 -1
- package/engine/case-execution.js +25 -24
- package/engine/case-execution.js.map +1 -1
- package/engine/coverage-artifact.d.ts +1 -14
- package/engine/coverage-artifact.d.ts.map +1 -1
- package/engine/custom-assertion-recording.js +1 -1
- package/engine/custom-assertion-recording.js.map +1 -1
- package/engine/engine.d.ts +1 -8
- package/engine/engine.d.ts.map +1 -1
- package/engine/execution-async-leak-policy.js +3 -10
- package/engine/execution-async-leak-policy.js.map +1 -1
- package/engine/execution-global-error-observer.d.ts +2 -4
- package/engine/execution-global-error-observer.d.ts.map +1 -1
- package/engine/execution-global-error-observer.js +20 -46
- package/engine/execution-global-error-observer.js.map +1 -1
- package/engine/execution-options.d.ts +4 -7
- package/engine/execution-options.d.ts.map +1 -1
- package/engine/execution-options.js +7 -2
- package/engine/execution-options.js.map +1 -1
- package/engine/execution-resource-budget-breach.d.ts +0 -9
- package/engine/execution-resource-budget-breach.d.ts.map +1 -1
- package/engine/execution-resource-budget-tracking.js.map +1 -1
- package/engine/execution-resource-tracked-cases.js.map +1 -1
- package/engine/execution-result.js.map +1 -1
- package/engine/execution-supervision-state.js.map +1 -1
- package/engine/execution-supervision.d.ts +0 -16
- package/engine/execution-supervision.d.ts.map +1 -1
- package/engine/execution-supervision.js +50 -33
- package/engine/execution-supervision.js.map +1 -1
- package/engine/execution-test-plan-cases.js +6 -126
- package/engine/execution-test-plan-cases.js.map +1 -1
- package/engine/execution-test-plan-resource-usage.js.map +1 -1
- package/engine/execution.d.ts +1 -12
- package/engine/execution.d.ts.map +1 -1
- package/engine/execution.js +3 -3
- package/engine/execution.js.map +1 -1
- package/engine/identity.d.ts +3 -6
- package/engine/identity.d.ts.map +1 -1
- package/engine/reporter-dispatcher.d.ts +1 -11
- package/engine/reporter-dispatcher.d.ts.map +1 -1
- package/engine/reporter-dispatcher.js +1 -0
- package/engine/reporter-dispatcher.js.map +1 -1
- package/engine/reporter-event-queue.js.map +1 -1
- package/engine/reporter-output.d.ts +0 -6
- package/engine/reporter-output.d.ts.map +1 -1
- package/engine/reporter.d.ts +2 -17
- package/engine/reporter.d.ts.map +1 -1
- package/engine/reporter.js.map +1 -1
- package/engine/reporting-context.d.ts +1 -13
- package/engine/reporting-context.d.ts.map +1 -1
- package/engine/require-assertion-facade.d.ts +2 -5
- package/engine/require-assertion-facade.d.ts.map +1 -1
- package/engine/resource-usage.d.ts +22 -0
- package/engine/resource-usage.d.ts.map +1 -0
- package/engine/retry-policy.d.ts +4 -0
- package/engine/retry-policy.d.ts.map +1 -0
- package/engine/retry-policy.js +22 -0
- package/engine/retry-policy.js.map +1 -0
- package/engine/run-artifact.d.ts +45 -0
- package/engine/run-artifact.d.ts.map +1 -0
- package/engine/run-result.d.ts +18 -114
- package/engine/run-result.d.ts.map +1 -1
- package/engine/run-result.js +14 -0
- package/engine/run-result.js.map +1 -1
- package/engine/run-timings.d.ts +0 -18
- package/engine/run-timings.d.ts.map +1 -1
- package/engine/runner-error-reporting.js.map +1 -1
- package/engine/test-attempt-history.js +24 -0
- package/engine/test-attempt-history.js.map +1 -0
- package/engine/test-body-resource-attachment.d.ts +0 -12
- package/engine/test-body-resource-attachment.d.ts.map +1 -1
- package/engine/test-body-resource-attachment.js +3 -134
- package/engine/test-body-resource-attachment.js.map +1 -1
- package/engine/test-data.d.ts +0 -6
- package/engine/test-data.d.ts.map +1 -1
- package/engine/test-node.d.ts +0 -21
- package/engine/test-node.d.ts.map +1 -1
- package/engine/test-node.js +1 -20
- package/engine/test-node.js.map +1 -1
- package/engine/test-plan.d.ts +1 -4
- package/engine/test-plan.d.ts.map +1 -1
- package/package.json +21 -7
- package/packages/run/config.entry-point.d.ts +2 -0
- package/packages/run/config.entry-point.d.ts.map +1 -1
- package/packages/run/run.entry-point.d.ts +2 -0
- package/packages/run/run.entry-point.d.ts.map +1 -1
- package/packages/run/transcript-store.entry-point.d.ts +3 -0
- package/packages/run/transcript-store.entry-point.d.ts.map +1 -0
- package/packages/run/transcript-store.entry-point.js +2 -0
- package/packages/run/transcript-store.entry-point.js.map +1 -0
- package/packages/simulation/transcript.entry-point.js +2 -0
- package/packages/simulation/transcript.entry-point.js.map +1 -0
- package/readme.md +47 -2
- package/reporters/human-reporter-rendering.js +12 -3
- package/reporters/human-reporter-rendering.js.map +1 -1
- package/reporters/line-reporter.js +6 -1
- package/reporters/line-reporter.js.map +1 -1
- package/reporters/tree-reporter.js +2 -103
- package/reporters/tree-reporter.js.map +1 -1
- package/resources/resource-definition-shape.d.ts +0 -2
- package/resources/resource-definition-shape.d.ts.map +1 -1
- package/resources/resource-definition-types.d.ts +1 -96
- package/resources/resource-definition-types.d.ts.map +1 -1
- package/resources/resource-definition.js.map +1 -1
- package/resources/resource-lifecycle-error.d.ts +0 -1
- package/resources/resource-lifecycle-error.d.ts.map +1 -1
- package/resources/resource-lifecycle-error.js +17 -1
- package/resources/resource-lifecycle-error.js.map +1 -1
- package/resources/resource-scenario-binding.js +1 -69
- package/resources/resource-scenario-binding.js.map +1 -1
- package/resources/resource-scenario.d.ts +0 -19
- package/resources/resource-scenario.d.ts.map +1 -1
- package/resources/resource-session.d.ts +1 -20
- package/resources/resource-session.d.ts.map +1 -1
- package/resources/resources.d.ts +5 -88
- package/resources/resources.d.ts.map +1 -1
- package/resources/resources.js +5 -81
- package/resources/resources.js.map +1 -1
- package/resources/runtime-definition.d.ts +0 -7
- package/resources/runtime-definition.d.ts.map +1 -1
- package/resources/runtime-definition.js +2 -57
- package/resources/runtime-definition.js.map +1 -1
- package/resources/runtime-matrix-definition.d.ts +0 -36
- package/resources/runtime-matrix-definition.d.ts.map +1 -1
- package/run/capability-policy-snapshots.d.ts +0 -19
- package/run/capability-policy-snapshots.d.ts.map +1 -1
- package/run/capability-policy.js +10 -5
- package/run/capability-policy.js.map +1 -1
- package/run/collected-run-plan.js.map +1 -1
- package/run/command-line-command-namespace.d.ts +0 -5
- package/run/command-line-command-namespace.d.ts.map +1 -1
- package/run/command-line-command.d.ts +1 -4
- package/run/command-line-command.d.ts.map +1 -1
- package/run/command-line-runner.d.ts +0 -2
- package/run/command-line-runner.d.ts.map +1 -1
- package/run/coverage-loaded-sources.js +112 -0
- package/run/coverage-loaded-sources.js.map +1 -0
- package/run/coverage-native-data.js +18 -0
- package/run/coverage-native-data.js.map +1 -0
- package/run/coverage-paths.js +45 -4
- package/run/coverage-paths.js.map +1 -1
- package/run/coverage-reporting.js +37 -123
- package/run/coverage-reporting.js.map +1 -1
- package/run/coverage-run-record.js +50 -0
- package/run/coverage-run-record.js.map +1 -0
- package/run/coverage-runtime-source.js +37 -0
- package/run/coverage-runtime-source.js.map +1 -0
- package/run/coverage-session.js +344 -6
- package/run/coverage-session.js.map +1 -1
- package/run/coverage-source-map.js +125 -0
- package/run/coverage-source-map.js.map +1 -0
- package/run/coverage-source-selection.js +120 -0
- package/run/coverage-source-selection.js.map +1 -0
- package/run/current-process-run-orchestrator.d.ts +1 -5
- package/run/current-process-run-orchestrator.d.ts.map +1 -1
- package/run/duration-history.d.ts +0 -30
- package/run/duration-history.d.ts.map +1 -1
- package/run/duration-history.js +1 -0
- package/run/duration-history.js.map +1 -1
- package/run/node-run-execution.js +25 -0
- package/run/node-run-execution.js.map +1 -0
- package/run/node-runtime-state-store.js +38 -0
- package/run/node-runtime-state-store.js.map +1 -0
- package/run/node-worker-pool-factory.js +0 -31
- package/run/node-worker-pool-factory.js.map +1 -1
- package/run/path-containment.js +6 -1
- package/run/path-containment.js.map +1 -1
- package/run/permission-denial-runtime-policy.js +21 -13
- package/run/permission-denial-runtime-policy.js.map +1 -1
- package/run/placement-trace.d.ts +0 -18
- package/run/placement-trace.d.ts.map +1 -1
- package/run/recorded-coverage-run.js +45 -0
- package/run/recorded-coverage-run.js.map +1 -0
- package/run/recorded-coverage-session.js +50 -0
- package/run/recorded-coverage-session.js.map +1 -0
- package/run/resource-lifecycle-composition.d.ts +0 -3
- package/run/resource-lifecycle-composition.d.ts.map +1 -1
- package/run/resource-lifecycle-composition.js +1 -14
- package/run/resource-lifecycle-composition.js.map +1 -1
- package/run/resource-lifecycle-session-acquirer.js +11 -6
- package/run/resource-lifecycle-session-acquirer.js.map +1 -1
- package/run/resource-lifecycle-state.d.ts +4 -5
- package/run/resource-lifecycle-state.d.ts.map +1 -1
- package/run/resource-lifecycle-state.js +9 -3
- package/run/resource-lifecycle-state.js.map +1 -1
- package/run/resource-lifecycle.js +36 -10
- package/run/resource-lifecycle.js.map +1 -1
- package/run/resource-usage.js.map +1 -1
- package/run/retry-artifact-retention.js +37 -0
- package/run/retry-artifact-retention.js.map +1 -0
- package/run/run-collection-source.d.ts +1 -5
- package/run/run-collection-source.d.ts.map +1 -1
- package/run/run-config-schema.d.ts +25 -4
- package/run/run-config-schema.d.ts.map +1 -1
- package/run/run-config-schema.js +7 -0
- package/run/run-config-schema.js.map +1 -1
- package/run/run-config.d.ts +3 -3
- package/run/run-config.d.ts.map +1 -1
- package/run/run-config.js +4 -0
- package/run/run-config.js.map +1 -1
- package/run/run-coverage.js +5 -2
- package/run/run-coverage.js.map +1 -1
- package/run/run-discovery-types.d.ts +0 -14
- package/run/run-discovery-types.d.ts.map +1 -1
- package/run/run-engine-primitives.d.ts +11 -0
- package/run/run-engine-primitives.d.ts.map +1 -0
- package/run/run-engine-selection.d.ts +0 -10
- package/run/run-engine-selection.d.ts.map +1 -1
- package/run/run-errors.d.ts +0 -2
- package/run/run-errors.d.ts.map +1 -1
- package/run/run-errors.js +1 -0
- package/run/run-errors.js.map +1 -1
- package/run/run-execution-config.d.ts +5 -0
- package/run/run-execution-config.d.ts.map +1 -1
- package/run/run-facts.js +2 -0
- package/run/run-facts.js.map +1 -1
- package/run/run-if-main-options.d.ts +0 -7
- package/run/run-if-main-options.d.ts.map +1 -1
- package/run/run-if-main-profile.d.ts +0 -1
- package/run/run-if-main-profile.d.ts.map +1 -1
- package/run/run-if-main.d.ts +0 -1
- package/run/run-if-main.d.ts.map +1 -1
- package/run/run-isolated-command.js +2 -0
- package/run/run-isolated-command.js.map +1 -1
- package/run/run-local-command.js +8 -82
- package/run/run-local-command.js.map +1 -1
- package/run/run-local-coverage.js +72 -0
- package/run/run-local-coverage.js.map +1 -0
- package/run/run-local-execution.js +1 -0
- package/run/run-local-execution.js.map +1 -1
- package/run/run-local-resolution.js +6 -3
- package/run/run-local-resolution.js.map +1 -1
- package/run/run-orchestrator-dependencies.d.ts +2 -7
- package/run/run-orchestrator-dependencies.d.ts.map +1 -1
- package/run/run-orchestrator.d.ts +0 -8
- package/run/run-orchestrator.d.ts.map +1 -1
- package/run/run-orchestrator.entry-point.d.ts +1 -1
- package/run/run-orchestrator.entry-point.d.ts.map +1 -1
- package/run/run-orchestrator.js +6 -18
- package/run/run-orchestrator.js.map +1 -1
- package/run/run-record-error.js +26 -0
- package/run/run-record-error.js.map +1 -0
- package/run/run-record-input.js +34 -0
- package/run/run-record-input.js.map +1 -0
- package/run/run-record-outcomes.d.ts +46 -0
- package/run/run-record-outcomes.d.ts.map +1 -0
- package/run/run-record-result.js +58 -0
- package/run/run-record-result.js.map +1 -0
- package/run/run-record-storage.js +51 -0
- package/run/run-record-storage.js.map +1 -0
- package/run/run-record-types.d.ts +73 -0
- package/run/run-record-types.d.ts.map +1 -0
- package/run/run-record-versions.js +51 -0
- package/run/run-record-versions.js.map +1 -0
- package/run/run-record.js +48 -0
- package/run/run-record.js.map +1 -0
- package/run/run-result-reporting.js +16 -0
- package/run/run-result-reporting.js.map +1 -0
- package/run/run-selection-filters.d.ts +2 -11
- package/run/run-selection-filters.d.ts.map +1 -1
- package/run/run-supervised-finalization.js +8 -0
- package/run/run-supervised-finalization.js.map +1 -0
- package/run/run-supervised-process.js +34 -33
- package/run/run-supervised-process.js.map +1 -1
- package/run/run-support.js +17 -8
- package/run/run-support.js.map +1 -1
- package/run/run-test-modules.d.ts +0 -4
- package/run/run-test-modules.d.ts.map +1 -1
- package/run/run-timing-collection.d.ts +0 -21
- package/run/run-timing-collection.d.ts.map +1 -1
- package/run/run-types.d.ts +4 -2
- package/run/run-types.d.ts.map +1 -1
- package/run/run-types.js.map +1 -1
- package/run/run.d.ts +0 -3
- package/run/run.d.ts.map +1 -1
- package/run/supervised-child-execution.js +38 -0
- package/run/supervised-child-execution.js.map +1 -0
- package/run/supervised-child-process.d.ts +1 -53
- package/run/supervised-child-process.d.ts.map +1 -1
- package/run/supervised-child-process.js +1 -5
- package/run/supervised-child-process.js.map +1 -1
- package/run/supervised-child-test-plan.js +2 -0
- package/run/supervised-child-test-plan.js.map +1 -1
- package/run/supervised-child.js +5 -36
- package/run/supervised-child.js.map +1 -1
- package/run/supervised-output-capture.js +66 -0
- package/run/supervised-output-capture.js.map +1 -0
- package/run/supervised-protocol.js.map +1 -1
- package/run/supervised-run-collection.js +3 -1
- package/run/supervised-run-collection.js.map +1 -1
- package/run/supervised-run-resource-policy.js +12 -1
- package/run/supervised-run-resource-policy.js.map +1 -1
- package/run/supervised-run-runtime.js +16 -27
- package/run/supervised-run-runtime.js.map +1 -1
- package/run/supervised-run-state.js +64 -81
- package/run/supervised-run-state.js.map +1 -1
- package/run/supervised-run.js +3 -1
- package/run/supervised-run.js.map +1 -1
- package/run/worker-pool-collection.js +1 -0
- package/run/worker-pool-collection.js.map +1 -1
- package/run/worker-pool-command.js +1 -0
- package/run/worker-pool-command.js.map +1 -1
- package/run/worker-pool-execution.js +2 -1
- package/run/worker-pool-execution.js.map +1 -1
- package/run/worker-pool-hedged-arbitration.js +4 -0
- package/run/worker-pool-hedged-arbitration.js.map +1 -1
- package/run/worker-pool-host-process.js.map +1 -1
- package/run/worker-pool-host-protocol.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-protocol.js.map +1 -1
- package/run/worker-pool-resource-lifecycle-execution.js +1 -0
- package/run/worker-pool-resource-lifecycle-execution.js.map +1 -1
- package/run/worker-pool-resource-tracking.js +2 -2
- package/run/worker-pool-resource-tracking.js.map +1 -1
- package/run/worker-pool-results.js +7 -9
- package/run/worker-pool-results.js.map +1 -1
- package/run/worker-pool-run.js +3 -9
- package/run/worker-pool-run.js.map +1 -1
- package/run/worker-pool-task-events.js +7 -2
- package/run/worker-pool-task-events.js.map +1 -1
- package/run/worker-pool-warm-lane-affinity.d.ts +0 -11
- package/run/worker-pool-warm-lane-affinity.d.ts.map +1 -1
- package/run/worker-pool-worker-plan.js +1 -0
- package/run/worker-pool-worker-plan.js.map +1 -1
- package/run/worker-pool-worker-resources.js +1 -0
- package/run/worker-pool-worker-resources.js.map +1 -1
- package/run/worker-pool-worker.js +2 -1
- package/run/worker-pool-worker.js.map +1 -1
- package/sbom.cdx.json +66 -15
- package/transcript/http-transcript.js +3 -0
- package/transcript/http-transcript.js.map +1 -0
- package/transcript/transcript-store.d.ts +25 -0
- package/transcript/transcript-store.d.ts.map +1 -0
- package/transcript/transcript-store.js +73 -0
- package/transcript/transcript-store.js.map +1 -0
- package/assertion-protocol/assertion-evaluation.d.ts +0 -13
- package/assertion-protocol/assertion-evaluation.d.ts.map +0 -1
- package/assertion-protocol/evaluation.d.ts +0 -32
- package/assertion-protocol/evaluation.d.ts.map +0 -1
- package/assertion-protocol/source-location-forwarding.d.ts +0 -4
- package/assertion-protocol/source-location-forwarding.d.ts.map +0 -1
- package/assertion-protocol/source-location.d.ts +0 -8
- package/assertion-protocol/source-location.d.ts.map +0 -1
- package/compare/comparison-result.d.ts +0 -25
- package/compare/comparison-result.d.ts.map +0 -1
- package/compare/comparison.d.ts +0 -12
- package/compare/comparison.d.ts.map +0 -1
- package/engine/async-leak-diagnostics.d.ts +0 -27
- package/engine/async-leak-diagnostics.d.ts.map +0 -1
- package/engine/custom-assertion-recording.d.ts +0 -33
- package/engine/custom-assertion-recording.d.ts.map +0 -1
- package/engine/execution-async-leak-policy.d.ts +0 -24
- package/engine/execution-async-leak-policy.d.ts.map +0 -1
- package/engine/execution-supervision-state.d.ts +0 -30
- package/engine/execution-supervision-state.d.ts.map +0 -1
- package/engine/reporter-disposal.d.ts +0 -6
- package/engine/reporter-disposal.d.ts.map +0 -1
- package/packages/engine/assertion-protocol.entry-point.d.ts +0 -10
- package/packages/engine/assertion-protocol.entry-point.d.ts.map +0 -1
- package/packages/engine/assertion-protocol.entry-point.js +0 -5
- package/packages/engine/assertion-protocol.entry-point.js.map +0 -1
- package/packages/engine/engine.entry-point.d.ts +0 -58
- package/packages/engine/engine.entry-point.d.ts.map +0 -1
- package/packages/engine/engine.entry-point.js +0 -75
- package/packages/engine/engine.entry-point.js.map +0 -1
- package/resources/resource-definition-brand.d.ts +0 -2
- package/resources/resource-definition-brand.d.ts.map +0 -1
- package/resources/resource-graph.d.ts +0 -24
- package/resources/resource-graph.d.ts.map +0 -1
- package/resources/resource-scenario-binding.d.ts +0 -37
- package/resources/resource-scenario-binding.d.ts.map +0 -1
- package/run/duration-history-schema.d.ts +0 -251
- package/run/duration-history-schema.d.ts.map +0 -1
- package/run/supervised-run-state.d.ts +0 -44
- package/run/supervised-run-state.d.ts.map +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type AnyResourceDefinition, type Awaitable, type ResourceCreationContext, type ResourceDependencies, type ResourceDisposalContext, type ResourceScenarioSlots } from './resources.ts';
|
|
2
|
-
export type ResourceEntry = readonly [string, AnyResourceDefinition];
|
|
3
|
-
export type ResourceNode = {
|
|
4
|
-
readonly dependencies: readonly ResourceNode[];
|
|
5
|
-
readonly descriptor: AnyResourceDefinition;
|
|
6
|
-
};
|
|
7
|
-
export type ResourceGraph = {
|
|
8
|
-
readonly order: readonly ResourceNode[];
|
|
9
|
-
readonly topLevelEntries: readonly ResourceEntry[];
|
|
10
|
-
};
|
|
11
|
-
type DependencyDisposalContext = ResourceDisposalContext<ResourceDependencies, ResourceScenarioSlots>;
|
|
12
|
-
export type ResourceDisposeCallback = (handle: unknown, context: DependencyDisposalContext) => Awaitable<void>;
|
|
13
|
-
export type CallableResourceDefinition = AnyResourceDefinition & {
|
|
14
|
-
readonly acquire: (context: ResourceCreationContext<ResourceDependencies, ResourceScenarioSlots>) => Awaitable<unknown>;
|
|
15
|
-
readonly dispose: ResourceDisposeCallback | null;
|
|
16
|
-
};
|
|
17
|
-
export declare function resourceEntries(resources: ResourceDependencies): readonly ResourceEntry[];
|
|
18
|
-
export declare function resourceDependencyScopeAllowed(resource: Pick<AnyResourceDefinition, 'scope'>, dependency: Pick<AnyResourceDefinition, 'scope'>): boolean;
|
|
19
|
-
export declare function callableResourceDefinition(resource: AnyResourceDefinition): CallableResourceDefinition;
|
|
20
|
-
export declare function createResourceGraph(resources: ResourceDependencies): ResourceGraph;
|
|
21
|
-
export declare function assertPerCaseResourceGraph(resources: ResourceDependencies): void;
|
|
22
|
-
export declare function assertResourceDependencyScopes(resources: ResourceDependencies): void;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=resource-graph.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-graph.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-graph.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EAEd,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAE7B,MAAM,gBAAgB,CAAC;AAaxB,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG;IACvB,QAAQ,CAA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
|
|
|
1
|
-
import type { AnyResourceDefinition, ResourceDependencies } from './resource-definition-shape.ts';
|
|
2
|
-
import { type EmptyResourceScenarioSlots, type ResourceScenarioSlot, type ResourceScenarioSlots } from './resource-scenario.ts';
|
|
3
|
-
type UnionToIntersection<Value> = (Value extends unknown ? (value: Value) => void : never) extends (value: infer Intersection) => void ? Intersection : never;
|
|
4
|
-
type ScenarioDepth = 'eight' | 'five' | 'four' | 'one' | 'seven' | 'six' | 'stop' | 'three' | 'two';
|
|
5
|
-
type PreviousScenarioDepth = {
|
|
6
|
-
readonly eight: 'seven';
|
|
7
|
-
readonly five: 'four';
|
|
8
|
-
readonly four: 'three';
|
|
9
|
-
readonly one: 'stop';
|
|
10
|
-
readonly seven: 'six';
|
|
11
|
-
readonly six: 'five';
|
|
12
|
-
readonly stop: 'stop';
|
|
13
|
-
readonly three: 'two';
|
|
14
|
-
readonly two: 'one';
|
|
15
|
-
};
|
|
16
|
-
type DependencyScenarioSlots<Dependencies extends ResourceDependencies, Depth extends ScenarioDepth> = string extends keyof Dependencies ? EmptyResourceScenarioSlots : ResourceScenarioSlotsFromResources<Dependencies[keyof Dependencies], PreviousScenarioDepth[Depth]>;
|
|
17
|
-
type ResourceScenarioSlotsFromDependencies<Dependencies extends ResourceDependencies, Depth extends ScenarioDepth> = Depth extends 'stop' ? EmptyResourceScenarioSlots : DependencyScenarioSlots<Dependencies, Depth>;
|
|
18
|
-
type ResourceScenarioSlotsFromResource<Resource, Depth extends ScenarioDepth> = Resource extends {
|
|
19
|
-
readonly dependencies: infer Dependencies extends ResourceDependencies;
|
|
20
|
-
readonly scenarios: infer Scenarios extends ResourceScenarioSlots;
|
|
21
|
-
} ? ResourceScenarioSlotsFromDependencies<Dependencies, Depth> & Scenarios : EmptyResourceScenarioSlots;
|
|
22
|
-
type ResourceScenarioSlotsFromResources<Resources, Depth extends ScenarioDepth> = [Resources] extends [never] ? EmptyResourceScenarioSlots : UnionToIntersection<ResourceScenarioSlotsFromResource<Resources, Depth>>;
|
|
23
|
-
export type ResourceMapScenarioSlots<Resources extends ResourceDependencies> = ResourceScenarioSlotsFromResources<Resources[keyof Resources], 'eight'> extends infer Scenarios extends ResourceScenarioSlots ? Scenarios : EmptyResourceScenarioSlots;
|
|
24
|
-
export type ResourceScenarioOwner = {
|
|
25
|
-
readonly path: readonly string[];
|
|
26
|
-
readonly resource: AnyResourceDefinition;
|
|
27
|
-
readonly slot: ResourceScenarioSlot;
|
|
28
|
-
};
|
|
29
|
-
export type ResolvedResourceScenarioBindings = Readonly<Record<string, string>>;
|
|
30
|
-
export declare function resourceScenarioOwners(resources: ResourceDependencies): ReadonlyMap<string, ResourceScenarioOwner>;
|
|
31
|
-
export declare function sourceResourceDefinition(resource: AnyResourceDefinition): AnyResourceDefinition;
|
|
32
|
-
export declare function bindResourceScenarios(resource: AnyResourceDefinition, bindings: ResolvedResourceScenarioBindings): AnyResourceDefinition;
|
|
33
|
-
export declare function resolvedResourceScenarioBindings(resource: AnyResourceDefinition): ResolvedResourceScenarioBindings;
|
|
34
|
-
export declare function acquisitionResourceScenarioBindings(resource: AnyResourceDefinition): ResolvedResourceScenarioBindings;
|
|
35
|
-
export declare function exposeResourceHandle(resource: AnyResourceDefinition, handle: unknown): unknown;
|
|
36
|
-
export {};
|
|
37
|
-
//# sourceMappingURL=resource-scenario-binding.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-scenario-binding.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-scenario-binding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAClG,OAAO,EAGH,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC7B,MAAM,wBAAwB,CAAC;AAEhC,KAAK,mBAAmB,CAAC,KAAK,IAAI,CAC9B,KAAK,SAAS,OAAO,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK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AqB,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAQ9F"}
|
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const durationHistoryIndexVersion = 2;
|
|
3
|
-
declare const entrySchema: z.ZodReadonly<z.ZodObject<{
|
|
4
|
-
observations: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
5
|
-
durationMicroseconds: z.ZodNumber;
|
|
6
|
-
metadata: z.ZodReadonly<z.ZodObject<{
|
|
7
|
-
processModel: z.ZodUnion<readonly [z.ZodLiteral<"in-process">, z.ZodLiteral<"supervised-process">, z.ZodLiteral<"worker-pool">]>;
|
|
8
|
-
profile: z.ZodString;
|
|
9
|
-
scheduling: z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>;
|
|
10
|
-
testFamily: z.ZodUnion<readonly [z.ZodLiteral<"integration">, z.ZodLiteral<"microtest">]>;
|
|
11
|
-
workerLifecycle: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"reuse">]>>;
|
|
12
|
-
}, z.core.$strict>>;
|
|
13
|
-
observedAt: z.ZodISODateTime;
|
|
14
|
-
}, z.core.$strict>>, z.ZodPipe<z.ZodReadonly<z.ZodObject<{
|
|
15
|
-
durationMilliseconds: z.ZodNumber;
|
|
16
|
-
metadata: z.ZodReadonly<z.ZodObject<{
|
|
17
|
-
processModel: z.ZodUnion<readonly [z.ZodLiteral<"in-process">, z.ZodLiteral<"supervised-process">, z.ZodLiteral<"worker-pool">]>;
|
|
18
|
-
profile: z.ZodString;
|
|
19
|
-
scheduling: z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>;
|
|
20
|
-
testFamily: z.ZodUnion<readonly [z.ZodLiteral<"integration">, z.ZodLiteral<"microtest">]>;
|
|
21
|
-
workerLifecycle: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"reuse">]>>;
|
|
22
|
-
}, z.core.$strict>>;
|
|
23
|
-
observedAt: z.ZodISODateTime;
|
|
24
|
-
}, z.core.$strict>>, z.ZodTransform<{
|
|
25
|
-
durationMicroseconds: number;
|
|
26
|
-
metadata: Readonly<{
|
|
27
|
-
processModel: "in-process" | "supervised-process" | "worker-pool";
|
|
28
|
-
profile: string;
|
|
29
|
-
scheduling: "serial" | "concurrent";
|
|
30
|
-
testFamily: "integration" | "microtest";
|
|
31
|
-
workerLifecycle: "fresh-worker-per-unit" | "reuse" | null;
|
|
32
|
-
}>;
|
|
33
|
-
observedAt: string;
|
|
34
|
-
}, Readonly<{
|
|
35
|
-
durationMilliseconds: number;
|
|
36
|
-
metadata: Readonly<{
|
|
37
|
-
processModel: "in-process" | "supervised-process" | "worker-pool";
|
|
38
|
-
profile: string;
|
|
39
|
-
scheduling: "serial" | "concurrent";
|
|
40
|
-
testFamily: "integration" | "microtest";
|
|
41
|
-
workerLifecycle: "fresh-worker-per-unit" | "reuse" | null;
|
|
42
|
-
}>;
|
|
43
|
-
observedAt: string;
|
|
44
|
-
}>>>]>>>;
|
|
45
|
-
work: z.ZodReadonly<z.ZodObject<{
|
|
46
|
-
case: z.ZodReadonly<z.ZodObject<{
|
|
47
|
-
file: z.ZodNullable<z.ZodString>;
|
|
48
|
-
params: z.ZodNullable<z.ZodString>;
|
|
49
|
-
suite: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
50
|
-
title: z.ZodString;
|
|
51
|
-
}, z.core.$strict>>;
|
|
52
|
-
runtimes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
53
|
-
dimensions: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
54
|
-
name: z.ZodString;
|
|
55
|
-
scenarios: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
56
|
-
variantId: z.ZodNullable<z.ZodString>;
|
|
57
|
-
}, z.core.$strict>>>>;
|
|
58
|
-
workload: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
|
|
59
|
-
name: z.ZodString;
|
|
60
|
-
params: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
61
|
-
}, z.core.$strict>>>;
|
|
62
|
-
}, z.core.$strict>>;
|
|
63
|
-
}, z.core.$strict>>;
|
|
64
|
-
type CurrentDurationHistoryIndex = {
|
|
65
|
-
readonly entries: readonly z.output<typeof entrySchema>[];
|
|
66
|
-
readonly updatedAt: string;
|
|
67
|
-
readonly version: typeof durationHistoryIndexVersion;
|
|
68
|
-
};
|
|
69
|
-
export declare const durationHistoryIndexSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
70
|
-
entries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
71
|
-
observations: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
72
|
-
durationMicroseconds: z.ZodNumber;
|
|
73
|
-
metadata: z.ZodReadonly<z.ZodObject<{
|
|
74
|
-
processModel: z.ZodUnion<readonly [z.ZodLiteral<"in-process">, z.ZodLiteral<"supervised-process">, z.ZodLiteral<"worker-pool">]>;
|
|
75
|
-
profile: z.ZodString;
|
|
76
|
-
scheduling: z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>;
|
|
77
|
-
testFamily: z.ZodUnion<readonly [z.ZodLiteral<"integration">, z.ZodLiteral<"microtest">]>;
|
|
78
|
-
workerLifecycle: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"reuse">]>>;
|
|
79
|
-
}, z.core.$strict>>;
|
|
80
|
-
observedAt: z.ZodISODateTime;
|
|
81
|
-
}, z.core.$strict>>, z.ZodPipe<z.ZodReadonly<z.ZodObject<{
|
|
82
|
-
durationMilliseconds: z.ZodNumber;
|
|
83
|
-
metadata: z.ZodReadonly<z.ZodObject<{
|
|
84
|
-
processModel: z.ZodUnion<readonly [z.ZodLiteral<"in-process">, z.ZodLiteral<"supervised-process">, z.ZodLiteral<"worker-pool">]>;
|
|
85
|
-
profile: z.ZodString;
|
|
86
|
-
scheduling: z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>;
|
|
87
|
-
testFamily: z.ZodUnion<readonly [z.ZodLiteral<"integration">, z.ZodLiteral<"microtest">]>;
|
|
88
|
-
workerLifecycle: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"reuse">]>>;
|
|
89
|
-
}, z.core.$strict>>;
|
|
90
|
-
observedAt: z.ZodISODateTime;
|
|
91
|
-
}, z.core.$strict>>, z.ZodTransform<{
|
|
92
|
-
durationMicroseconds: number;
|
|
93
|
-
metadata: Readonly<{
|
|
94
|
-
processModel: "in-process" | "supervised-process" | "worker-pool";
|
|
95
|
-
profile: string;
|
|
96
|
-
scheduling: "serial" | "concurrent";
|
|
97
|
-
testFamily: "integration" | "microtest";
|
|
98
|
-
workerLifecycle: "fresh-worker-per-unit" | "reuse" | null;
|
|
99
|
-
}>;
|
|
100
|
-
observedAt: string;
|
|
101
|
-
}, Readonly<{
|
|
102
|
-
durationMilliseconds: number;
|
|
103
|
-
metadata: Readonly<{
|
|
104
|
-
processModel: "in-process" | "supervised-process" | "worker-pool";
|
|
105
|
-
profile: string;
|
|
106
|
-
scheduling: "serial" | "concurrent";
|
|
107
|
-
testFamily: "integration" | "microtest";
|
|
108
|
-
workerLifecycle: "fresh-worker-per-unit" | "reuse" | null;
|
|
109
|
-
}>;
|
|
110
|
-
observedAt: string;
|
|
111
|
-
}>>>]>>>;
|
|
112
|
-
work: z.ZodReadonly<z.ZodObject<{
|
|
113
|
-
case: z.ZodReadonly<z.ZodObject<{
|
|
114
|
-
file: z.ZodNullable<z.ZodString>;
|
|
115
|
-
params: z.ZodNullable<z.ZodString>;
|
|
116
|
-
suite: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
117
|
-
title: z.ZodString;
|
|
118
|
-
}, z.core.$strict>>;
|
|
119
|
-
runtimes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
120
|
-
dimensions: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
121
|
-
name: z.ZodString;
|
|
122
|
-
scenarios: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
123
|
-
variantId: z.ZodNullable<z.ZodString>;
|
|
124
|
-
}, z.core.$strict>>>>;
|
|
125
|
-
workload: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
|
|
126
|
-
name: z.ZodString;
|
|
127
|
-
params: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
128
|
-
}, z.core.$strict>>>;
|
|
129
|
-
}, z.core.$strict>>;
|
|
130
|
-
}, z.core.$strict>>>>;
|
|
131
|
-
updatedAt: z.ZodISODateTime;
|
|
132
|
-
version: z.ZodLiteral<2>;
|
|
133
|
-
}, z.core.$strict>>, z.ZodPipe<z.ZodReadonly<z.ZodObject<{
|
|
134
|
-
entries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
135
|
-
observations: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
136
|
-
durationMicroseconds: z.ZodNumber;
|
|
137
|
-
metadata: z.ZodReadonly<z.ZodObject<{
|
|
138
|
-
processModel: z.ZodUnion<readonly [z.ZodLiteral<"in-process">, z.ZodLiteral<"supervised-process">, z.ZodLiteral<"worker-pool">]>;
|
|
139
|
-
profile: z.ZodString;
|
|
140
|
-
scheduling: z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>;
|
|
141
|
-
testFamily: z.ZodUnion<readonly [z.ZodLiteral<"integration">, z.ZodLiteral<"microtest">]>;
|
|
142
|
-
workerLifecycle: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"reuse">]>>;
|
|
143
|
-
}, z.core.$strict>>;
|
|
144
|
-
observedAt: z.ZodISODateTime;
|
|
145
|
-
}, z.core.$strict>>, z.ZodPipe<z.ZodReadonly<z.ZodObject<{
|
|
146
|
-
durationMilliseconds: z.ZodNumber;
|
|
147
|
-
metadata: z.ZodReadonly<z.ZodObject<{
|
|
148
|
-
processModel: z.ZodUnion<readonly [z.ZodLiteral<"in-process">, z.ZodLiteral<"supervised-process">, z.ZodLiteral<"worker-pool">]>;
|
|
149
|
-
profile: z.ZodString;
|
|
150
|
-
scheduling: z.ZodUnion<readonly [z.ZodLiteral<"concurrent">, z.ZodLiteral<"serial">]>;
|
|
151
|
-
testFamily: z.ZodUnion<readonly [z.ZodLiteral<"integration">, z.ZodLiteral<"microtest">]>;
|
|
152
|
-
workerLifecycle: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"fresh-worker-per-unit">, z.ZodLiteral<"reuse">]>>;
|
|
153
|
-
}, z.core.$strict>>;
|
|
154
|
-
observedAt: z.ZodISODateTime;
|
|
155
|
-
}, z.core.$strict>>, z.ZodTransform<{
|
|
156
|
-
durationMicroseconds: number;
|
|
157
|
-
metadata: Readonly<{
|
|
158
|
-
processModel: "in-process" | "supervised-process" | "worker-pool";
|
|
159
|
-
profile: string;
|
|
160
|
-
scheduling: "serial" | "concurrent";
|
|
161
|
-
testFamily: "integration" | "microtest";
|
|
162
|
-
workerLifecycle: "fresh-worker-per-unit" | "reuse" | null;
|
|
163
|
-
}>;
|
|
164
|
-
observedAt: string;
|
|
165
|
-
}, Readonly<{
|
|
166
|
-
durationMilliseconds: number;
|
|
167
|
-
metadata: Readonly<{
|
|
168
|
-
processModel: "in-process" | "supervised-process" | "worker-pool";
|
|
169
|
-
profile: string;
|
|
170
|
-
scheduling: "serial" | "concurrent";
|
|
171
|
-
testFamily: "integration" | "microtest";
|
|
172
|
-
workerLifecycle: "fresh-worker-per-unit" | "reuse" | null;
|
|
173
|
-
}>;
|
|
174
|
-
observedAt: string;
|
|
175
|
-
}>>>]>>>;
|
|
176
|
-
work: z.ZodReadonly<z.ZodObject<{
|
|
177
|
-
case: z.ZodReadonly<z.ZodObject<{
|
|
178
|
-
file: z.ZodNullable<z.ZodString>;
|
|
179
|
-
params: z.ZodNullable<z.ZodString>;
|
|
180
|
-
suite: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
181
|
-
title: z.ZodString;
|
|
182
|
-
}, z.core.$strict>>;
|
|
183
|
-
runtimes: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodReadonly<z.ZodObject<{
|
|
184
|
-
dimensions: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
185
|
-
name: z.ZodString;
|
|
186
|
-
variantId: z.ZodNullable<z.ZodString>;
|
|
187
|
-
}, z.core.$strict>>, z.ZodTransform<{
|
|
188
|
-
scenarios: {};
|
|
189
|
-
dimensions: Readonly<Record<string, string>>;
|
|
190
|
-
name: string;
|
|
191
|
-
variantId: string | null;
|
|
192
|
-
}, Readonly<{
|
|
193
|
-
dimensions: Readonly<Record<string, string>>;
|
|
194
|
-
name: string;
|
|
195
|
-
variantId: string | null;
|
|
196
|
-
}>>>>>;
|
|
197
|
-
workload: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
|
|
198
|
-
name: z.ZodString;
|
|
199
|
-
params: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
200
|
-
}, z.core.$strict>>>;
|
|
201
|
-
}, z.core.$strict>>;
|
|
202
|
-
}, z.core.$strict>>>>;
|
|
203
|
-
updatedAt: z.ZodISODateTime;
|
|
204
|
-
version: z.ZodLiteral<1>;
|
|
205
|
-
}, z.core.$strict>>, z.ZodTransform<CurrentDurationHistoryIndex, Readonly<{
|
|
206
|
-
entries: readonly Readonly<{
|
|
207
|
-
observations: readonly ({
|
|
208
|
-
durationMicroseconds: number;
|
|
209
|
-
metadata: Readonly<{
|
|
210
|
-
processModel: "in-process" | "supervised-process" | "worker-pool";
|
|
211
|
-
profile: string;
|
|
212
|
-
scheduling: "serial" | "concurrent";
|
|
213
|
-
testFamily: "integration" | "microtest";
|
|
214
|
-
workerLifecycle: "fresh-worker-per-unit" | "reuse" | null;
|
|
215
|
-
}>;
|
|
216
|
-
observedAt: string;
|
|
217
|
-
} | Readonly<{
|
|
218
|
-
durationMicroseconds: number;
|
|
219
|
-
metadata: Readonly<{
|
|
220
|
-
processModel: "in-process" | "supervised-process" | "worker-pool";
|
|
221
|
-
profile: string;
|
|
222
|
-
scheduling: "serial" | "concurrent";
|
|
223
|
-
testFamily: "integration" | "microtest";
|
|
224
|
-
workerLifecycle: "fresh-worker-per-unit" | "reuse" | null;
|
|
225
|
-
}>;
|
|
226
|
-
observedAt: string;
|
|
227
|
-
}>)[];
|
|
228
|
-
work: Readonly<{
|
|
229
|
-
case: Readonly<{
|
|
230
|
-
file: string | null;
|
|
231
|
-
params: string | null;
|
|
232
|
-
suite: readonly string[];
|
|
233
|
-
title: string;
|
|
234
|
-
}>;
|
|
235
|
-
runtimes: readonly {
|
|
236
|
-
scenarios: {};
|
|
237
|
-
dimensions: Readonly<Record<string, string>>;
|
|
238
|
-
name: string;
|
|
239
|
-
variantId: string | null;
|
|
240
|
-
}[];
|
|
241
|
-
workload: Readonly<{
|
|
242
|
-
name: string;
|
|
243
|
-
params: Readonly<Record<string, string>>;
|
|
244
|
-
}> | null;
|
|
245
|
-
}>;
|
|
246
|
-
}>[];
|
|
247
|
-
updatedAt: string;
|
|
248
|
-
version: 1;
|
|
249
|
-
}>>>]>;
|
|
250
|
-
export {};
|
|
251
|
-
//# sourceMappingURL=duration-history-schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"duration-history-schema.d.ts","sourceRoot":"","sources":["../../../../source/run/duration-history-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAsF7C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAKF,CAAC;AAOhB,KAAK,2BAA2B,GAAG;IAC/B,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,EAAE,CAAC;IAC1D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,OAAO,2BAA2B,CAAC;CACxD,CAAC;AAwBF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAqD,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { type CaseId, type WorkId } from '../engine/identity.ts';
|
|
2
|
-
import type { PerTestResult, RunArtifact, RunnerError } from '../engine/run-result.ts';
|
|
3
|
-
import type { RunRequest } from './run-types.ts';
|
|
4
|
-
type ActiveCaseTiming = {
|
|
5
|
-
readonly startedAtMicroseconds: number;
|
|
6
|
-
};
|
|
7
|
-
export declare function remainingHardTimeoutMilliseconds(activeCases: Iterable<ActiveCaseTiming>, nowMicroseconds: number, hardTimeoutMilliseconds: number): number | null;
|
|
8
|
-
export type SupervisedCase = {
|
|
9
|
-
readonly capture: RunRequest['capture'] | null;
|
|
10
|
-
readonly definitionLocations?: PerTestResult['definitionLocations'];
|
|
11
|
-
readonly id: CaseId;
|
|
12
|
-
readonly workId?: WorkId;
|
|
13
|
-
};
|
|
14
|
-
type ActiveSupervisedCase = SupervisedCase & {
|
|
15
|
-
readonly startedAtMicroseconds: number;
|
|
16
|
-
};
|
|
17
|
-
export type StoredRunValue<Value> = {
|
|
18
|
-
readonly read: () => Value;
|
|
19
|
-
readonly write: (value: Value) => void;
|
|
20
|
-
};
|
|
21
|
-
export type SupervisedRunState = {
|
|
22
|
-
readonly activeCases: ReadonlyMap<string, ActiveSupervisedCase>;
|
|
23
|
-
readonly addActiveCase: (key: string, testCase: SupervisedCase, startedAtMicroseconds: number) => void;
|
|
24
|
-
readonly artifacts: () => readonly RunArtifact[];
|
|
25
|
-
readonly caseArtifacts: (testCase: CaseId) => readonly RunArtifact[];
|
|
26
|
-
readonly perTestResults: () => readonly PerTestResult[];
|
|
27
|
-
readonly recordCapturedOutput: (stream: 'stderr' | 'stdout', chunk: Uint8Array, capturedAtMicroseconds: number) => void;
|
|
28
|
-
readonly recordPerTestResult: (key: string, result: PerTestResult, completedAtMicroseconds: number) => void;
|
|
29
|
-
readonly recordArtifact: (artifact: RunArtifact) => void;
|
|
30
|
-
readonly recordRunnerError: (error: RunnerError) => void;
|
|
31
|
-
readonly recordRunnerErrors: (errors: readonly RunnerError[]) => void;
|
|
32
|
-
readonly recordRuntimePolicyViolation: (capability: string, message: string) => void;
|
|
33
|
-
readonly recordTerminalActiveCases: (verdict: PerTestResult['verdict'], completedAtMicroseconds: number) => void;
|
|
34
|
-
readonly removeActiveCase: (key: string) => void;
|
|
35
|
-
readonly runnerErrors: () => readonly RunnerError[];
|
|
36
|
-
readonly testExecutionWallTimeMicroseconds: () => number;
|
|
37
|
-
};
|
|
38
|
-
export declare const capturedOutputLimitBytes: number;
|
|
39
|
-
export declare function deduplicatedRuntimePolicyErrors(errors: readonly RunnerError[]): readonly RunnerError[];
|
|
40
|
-
export declare function deduplicatedChildRuntimePolicyErrors(childErrors: readonly RunnerError[], supervisorErrors: readonly RunnerError[]): readonly RunnerError[];
|
|
41
|
-
export declare function createStoredRunValue<Value>(initialValue: Value): StoredRunValue<Value>;
|
|
42
|
-
export declare function createSupervisedRunState(): SupervisedRunState;
|
|
43
|
-
export {};
|
|
44
|
-
//# sourceMappingURL=supervised-run-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supervised-run-state.d.ts","sourceRoot":"","sources":["../../../../source/run/supervised-run-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACvG,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,KAAK,gBAAgB,GAAG;IACpB,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;CAC1C,CAAC;AAEF,wBAAgB,gCAAgC,CAC5C,WAAW,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EACvC,eAAe,EAAE,MAAM,EACvB,uBAAuB,EAAE,MAAM,GAChC,MAAM,GAAG,IAAI,CAef;AAED,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAC/C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;IACpE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,KAAK,oBAAoB,GAAG,cAAc,GAAG;IACzC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;CAC1C,CAAC;AAOF,MAAM,MAAM,cAAc,CAAC,KAAK,IAAI;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B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