@gfdelarue/testkit 0.4.5 → 0.5.0
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/README.md +666 -463
- package/bin/testkit-windows-owner-arm64.exe +0 -0
- package/bin/testkit-windows-owner-x64.exe +0 -0
- package/dist/app/bugs/ci-report.js +2 -2
- package/dist/app/bugs/ci-summary.js +3 -3
- package/dist/app/bugs/draft.js +3 -3
- package/dist/app/bugs/file.js +1 -1
- package/dist/app/bugs/gate.js +1 -1
- package/dist/app/bugs/guide.js +3 -3
- package/dist/app/bugs/issue.js +4 -4
- package/dist/app/bugs/known-failures.js +1 -1
- package/dist/app/bugs/record.js +2 -2
- package/dist/app/bugs/run-reading.js +1 -1
- package/dist/app/bugs/supplied-reproduce.js +1 -0
- package/dist/app/campaigns/campaign.js +1 -1
- package/dist/app/cleanup/index.js +1 -1
- package/dist/app/db-schema/prepare.js +1 -1
- package/dist/app/destroy/index.js +1 -1
- package/dist/app/discover/index.js +2 -2
- package/dist/app/doctor/index.js +1 -1
- package/dist/app/environments/config-driven.js +1 -1
- package/dist/app/environments/environment-file.js +1 -0
- package/dist/app/environments/file-setup.js +1 -0
- package/dist/app/environments/routing.js +1 -1
- package/dist/app/environments/static-values.js +1 -0
- package/dist/app/environments/supplied-input.js +1 -0
- package/dist/app/environments/supplied.js +1 -1
- package/dist/app/environments/task-databases.js +2 -0
- package/dist/app/inspect/artifacts.js +1 -1
- package/dist/app/inspect/index.js +1 -1
- package/dist/app/lint/index.js +1 -1
- package/dist/app/lint/native.js +1 -1
- package/dist/app/lint/options.js +1 -1
- package/dist/app/lint/rules/data.js +1 -1
- package/dist/app/lint/rules/engine-imports.js +1 -1
- package/dist/app/lint/rules/syntax.js +1 -1
- package/dist/app/lint/rules/unit.js +1 -1
- package/dist/app/reports/prepare.js +1 -1
- package/dist/app/run/caller-redaction.js +1 -0
- package/dist/app/run/engine-execution-failures.js +1 -1
- package/dist/app/run/engine-execution-reporting.js +1 -1
- package/dist/app/run/engine-execution.js +1 -1
- package/dist/app/run/engine-orchestration.js +1 -1
- package/dist/app/run/environment.js +1 -1
- package/dist/app/run/failure-details.js +1 -1
- package/dist/app/run/live-run.js +1 -1
- package/dist/app/run/orchestrator.js +1 -1
- package/dist/app/run/planning.js +1 -1
- package/dist/app/run/request.js +1 -1
- package/dist/app/run/results.js +1 -1
- package/dist/app/run/run-events.js +1 -1
- package/dist/app/run/run-finalization.js +1 -1
- package/dist/app/run/scheduler/estimates.js +1 -1
- package/dist/app/run/scheduler/identity.js +1 -1
- package/dist/app/run/scheduler/index.js +1 -1
- package/dist/app/run/setup/runtime-node-setup-protocol.js +1 -1
- package/dist/app/run/setup/runtime-node-setup-worker.js +1 -1
- package/dist/app/run/setup/runtime-node-setup.js +2 -2
- package/dist/app/run/task-batches.js +1 -1
- package/dist/app/run/worker-loop.js +1 -1
- package/dist/app/status/runs.js +1 -1
- package/dist/app/typecheck/index.js +4 -4
- package/dist/cli/command-catalog.js +1 -1
- package/dist/cli/command-flags.js +1 -1
- package/dist/cli/commands/artifacts.js +2 -2
- package/dist/cli/commands/bug/file.js +2 -2
- package/dist/cli/commands/bug/record.js +2 -2
- package/dist/cli/commands/discover.js +1 -1
- package/dist/cli/commands/run.js +2 -2
- package/dist/cli/commands/typecheck.js +1 -1
- package/dist/cli/commands/workspace.js +1 -1
- package/dist/cli/framework/errors.js +1 -1
- package/dist/cli/framework/execute.js +7 -6
- package/dist/cli/framework/parser.js +1 -1
- package/dist/cli/operations/run/operation.js +2 -2
- package/dist/cli/renderers/bug/text.js +1 -1
- package/dist/cli/renderers/discover/report.js +1 -1
- package/dist/cli/renderers/run/events.js +2 -2
- package/dist/cli/renderers/run/formatting.js +1 -1
- package/dist/cli/renderers/run/status.js +1 -1
- package/dist/cli/renderers/run/text-reporter.js +24 -22
- package/dist/cli/terminal/colors.js +1 -1
- package/dist/cli/terminal/layout.js +2 -2
- package/dist/config/authoring/http-methods.js +1 -1
- package/dist/config/loader/config-loader.js +1 -1
- package/dist/config/loader/decode-execution.js +1 -1
- package/dist/config/loader/dependencies.js +1 -1
- package/dist/config/loader/discover-tests.js +1 -1
- package/dist/config/loader/discovery-summary.js +1 -1
- package/dist/config/loader/discovery.js +2 -2
- package/dist/config/loader/env.js +1 -1
- package/dist/config/loader/file-metadata.js +1 -1
- package/dist/config/loader/groups.js +1 -1
- package/dist/config/loader/index.js +1 -1
- package/dist/config/loader/load.js +1 -1
- package/dist/config/loader/managed-configs.js +1 -1
- package/dist/config/loader/owned-discovery.js +1 -0
- package/dist/config/loader/path-policy.js +1 -1
- package/dist/config/loader/runtime-isolation.js +1 -1
- package/dist/config/loader/runtime.js +1 -1
- package/dist/config/loader/skip-config.js +1 -1
- package/dist/config/loader/task-policy.js +1 -0
- package/dist/config/loader/test-selection.js +1 -1
- package/dist/config/loader/validation.js +1 -1
- package/dist/database/admin.js +2 -2
- package/dist/database/bindings.js +1 -0
- package/dist/database/cleanup.js +1 -1
- package/dist/database/docker-metadata.js +3 -3
- package/dist/database/docker.js +3 -3
- package/dist/database/index.js +1 -1
- package/dist/database/local-postgres.js +1 -1
- package/dist/database/naming.js +1 -1
- package/dist/database/postgres/connection-check.js +1 -0
- package/dist/database/postgres/protocol.js +2 -0
- package/dist/database/schema-operations.js +1 -1
- package/dist/database/schema-source.js +3 -3
- package/dist/database/source-schema-env.js +1 -0
- package/dist/database/state-files.js +1 -1
- package/dist/database/state.js +1 -1
- package/dist/database/steps.js +3 -3
- package/dist/domain/file-timeout.js +1 -1
- package/dist/domain/identifiers.js +1 -1
- package/dist/domain/retired-test-types.js +1 -0
- package/dist/domain/runtime-isolation-contract.js +1 -1
- package/dist/domain/suite-selection.js +1 -1
- package/dist/domain/test-types.js +1 -1
- package/dist/engines/adapters/evidence-files.js +1 -1
- package/dist/engines/adapters/execution.js +1 -1
- package/dist/engines/adapters/json-bounds.js +2 -0
- package/dist/engines/adapters/native-report.js +1 -1
- package/dist/engines/api/execution.js +1 -1
- package/dist/engines/api/index.js +1 -1
- package/dist/engines/api/runtime-artifact.js +1 -1
- package/dist/engines/catalog.js +1 -1
- package/dist/engines/contracts/environment-values.js +1 -0
- package/dist/engines/definitions.js +1 -1
- package/dist/engines/environment/handles.js +1 -0
- package/dist/engines/environment/index.js +1 -0
- package/dist/engines/factory.js +1 -1
- package/dist/engines/installations/node-vitest.js +1 -1
- package/dist/engines/installations/package-resolution.js +1 -1
- package/dist/engines/installations/playwright.js +1 -1
- package/dist/engines/managed-module-resolution.js +2 -2
- package/dist/engines/manager.js +1 -1
- package/dist/engines/node-vitest/adapter/adapter.js +1 -1
- package/dist/engines/node-vitest/adapter/driver.js +2 -0
- package/dist/engines/node-vitest/adapter/evidence.js +2 -2
- package/dist/engines/node-vitest/adapter/failure-details.js +4 -2
- package/dist/engines/node-vitest/adapter/reporter.js +1 -1
- package/dist/engines/node-vitest/adapter/workspace.js +26 -188
- package/dist/engines/node-vitest/inventory/index.js +2 -0
- package/dist/engines/node-vitest/inventory/list-files.js +3 -0
- package/dist/engines/node-vitest/runtime/contract/index.js +1 -1
- package/dist/engines/node-vitest/runtime/data/http.js +1 -1
- package/dist/engines/node-vitest/runtime/data/index.js +1 -1
- package/dist/engines/node-vitest/runtime/data/report.js +5 -6
- package/dist/engines/node-vitest/runtime/data/scenario.js +2 -2
- package/dist/engines/node-vitest/runtime/runtime-input.js +1 -1
- package/dist/engines/node-vitest/selection.js +1 -0
- package/dist/engines/playwright/adapter/adapter.js +1 -1
- package/dist/engines/playwright/adapter/config.js +3 -3
- package/dist/engines/playwright/adapter/evidence-validation.js +1 -1
- package/dist/engines/playwright/adapter/evidence.js +1 -1
- package/dist/engines/playwright/adapter/reporter.js +1 -1
- package/dist/engines/playwright/runtime/config-file.js +1 -1
- package/dist/engines/playwright/runtime/config.js +1 -1
- package/dist/engines/playwright/runtime/runtime-input.js +29 -10
- package/dist/engines/runtime-input-file.js +1 -1
- package/dist/environment/lifecycle-controller.js +1 -1
- package/dist/environment/lifecycle.js +1 -1
- package/dist/environment/ready-environment.js +1 -1
- package/dist/environment/run-stopping.js +1 -1
- package/dist/environment/runtime-contexts.js +1 -1
- package/dist/environment/runtime-manager.js +1 -1
- package/dist/environment/runtime-planning.js +1 -1
- package/dist/environment/runtime-preparation.js +1 -1
- package/dist/environment/services.js +3 -3
- package/dist/environment/template.js +1 -1
- package/dist/evidence/artifact-config.js +1 -1
- package/dist/evidence/artifacts.js +2 -2
- package/dist/evidence/bundles.js +1 -1
- package/dist/evidence/environment-record.js +1 -1
- package/dist/evidence/index.js +1 -1
- package/dist/evidence/read-run.js +1 -1
- package/dist/evidence/reading.js +1 -1
- package/dist/evidence/redaction.js +4 -0
- package/dist/evidence/reporting.js +1 -1
- package/dist/evidence/run-model.js +1 -0
- package/dist/evidence/storage.js +2 -2
- package/dist/evidence/timing.js +1 -1
- package/dist/kernel/error-serialization.js +1 -1
- package/dist/kernel/redaction-targets.js +1 -0
- package/dist/kernel/redaction.js +4 -1
- package/dist/kernel/unknown-values.js +1 -1
- package/dist/process/environment.js +1 -1
- package/dist/process/execa-bundle.json +3 -3
- package/dist/process/files/json-file.js +1 -1
- package/dist/process/host/platform.js +1 -1
- package/dist/process/host-process.js +1 -1
- package/dist/process/index.js +1 -1
- package/dist/process/locks.js +4 -4
- package/dist/process/port-listener.js +2 -0
- package/dist/process/process-group.js +1 -1
- package/dist/process/process.js +32 -32
- package/dist/process/readiness.js +1 -1
- package/dist/process/ready-deadline.js +1 -0
- package/dist/process/runs/ownership.js +1 -1
- package/dist/process/runs/stop.js +1 -1
- package/dist/process/service-processes.js +1 -1
- package/dist/process/windows-cli-owner.js +3 -3
- package/dist/process/windows-native.js +1 -1
- package/dist/repo/fingerprint-policy.js +1 -1
- package/dist/repo/managed-git.js +1 -1
- package/dist/repo/physical-tree.js +1 -1
- package/dist/repo/state.js +4 -4
- package/dist/steps/build-config.js +1 -1
- package/dist/steps/configured-step-testkit-modules.js +1 -1
- package/dist/steps/configured-steps.js +1 -1
- package/dist/steps/environment.js +1 -1
- package/dist/steps/index.js +1 -1
- package/dist/toolchains/index.js +3 -3
- package/dist/toolchains/semver.js +1 -1
- package/dist/toolchains/vitest/index.js +1 -1
- package/dist/tracker/redaction.js +1 -2
- package/dist/{config/runtime/build-assets.d.ts → types/config-build-assets.d.ts} +5 -3
- package/dist/{database/steps.d.ts → types/config-database-steps.d.ts} +7 -7
- package/dist/{config/runtime/next-runtime-tsconfig.d.ts → types/config-next-runtime-tsconfig.d.ts} +5 -3
- package/dist/types/config.d.ts +501 -0
- package/dist/types/drizzle.d.ts +13 -0
- package/dist/{config/runtime/env/index.d.ts → types/env.d.ts} +22 -20
- package/dist/types/environment.d.ts +40 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/node-vitest-contract.d.ts +75 -0
- package/dist/types/node-vitest-data.d.ts +407 -0
- package/dist/types/playwright.d.ts +130 -0
- package/dist/types/tooling-vitest.d.ts +13 -0
- package/dist/types/workspace.d.ts +617 -0
- package/docs/bug-records.md +37 -37
- package/docs/engines.md +213 -0
- package/docs/test-types.md +35 -33
- package/package.json +22 -29
- package/testkit-config-schema.md +378 -184
- package/dist/app/bugs/areas.d.ts +0 -38
- package/dist/app/bugs/assessment.d.ts +0 -9
- package/dist/app/bugs/categories.d.ts +0 -41
- package/dist/app/bugs/ci-report.d.ts +0 -21
- package/dist/app/bugs/ci-summary.d.ts +0 -13
- package/dist/app/bugs/draft.d.ts +0 -70
- package/dist/app/bugs/facts.d.ts +0 -49
- package/dist/app/bugs/file.d.ts +0 -45
- package/dist/app/bugs/gate.d.ts +0 -22
- package/dist/app/bugs/guide.d.ts +0 -20
- package/dist/app/bugs/issue.d.ts +0 -18
- package/dist/app/bugs/known-failures.d.ts +0 -49
- package/dist/app/bugs/record.d.ts +0 -14
- package/dist/app/bugs/run-reading.d.ts +0 -51
- package/dist/app/bugs/store.d.ts +0 -34
- package/dist/app/campaigns/brief.d.ts +0 -7
- package/dist/app/campaigns/campaign.d.ts +0 -14
- package/dist/app/campaigns/index.d.ts +0 -38
- package/dist/app/campaigns/store.d.ts +0 -5
- package/dist/app/campaigns/summary.d.ts +0 -13
- package/dist/app/cleanup/index.d.ts +0 -52
- package/dist/app/db-schema/prepare.d.ts +0 -11
- package/dist/app/db-schema/refresh.d.ts +0 -17
- package/dist/app/db-schema/verify.d.ts +0 -11
- package/dist/app/destroy/index.d.ts +0 -16
- package/dist/app/discover/index.d.ts +0 -8
- package/dist/app/doctor/index.d.ts +0 -17
- package/dist/app/environments/config-driven.d.ts +0 -5
- package/dist/app/environments/routing.d.ts +0 -6
- package/dist/app/environments/supplied.d.ts +0 -3
- package/dist/app/file-selection.d.ts +0 -1
- package/dist/app/inspect/artifacts.d.ts +0 -30
- package/dist/app/inspect/index.d.ts +0 -112
- package/dist/app/lint/index.d.ts +0 -28
- package/dist/app/lint/native.d.ts +0 -10
- package/dist/app/lint/options.d.ts +0 -66
- package/dist/app/lint/policy.d.ts +0 -21
- package/dist/app/lint/rules/data.d.ts +0 -3
- package/dist/app/lint/rules/engine-imports.d.ts +0 -3
- package/dist/app/lint/rules/syntax.d.ts +0 -4
- package/dist/app/lint/rules/unit.d.ts +0 -3
- package/dist/app/lint/shared.d.ts +0 -34
- package/dist/app/package-inspection.d.ts +0 -20
- package/dist/app/reports/files.d.ts +0 -13
- package/dist/app/reports/prepare.d.ts +0 -20
- package/dist/app/reports/publish.d.ts +0 -21
- package/dist/app/run/endpoint-readiness.d.ts +0 -43
- package/dist/app/run/endpoint-readiness.js +0 -1
- package/dist/app/run/engine-evidence-persistence.d.ts +0 -39
- package/dist/app/run/engine-execution-cleanup.d.ts +0 -8
- package/dist/app/run/engine-execution-cleanup.js +0 -1
- package/dist/app/run/engine-execution-failures.d.ts +0 -41
- package/dist/app/run/engine-execution-observer.d.ts +0 -21
- package/dist/app/run/engine-execution-reporting.d.ts +0 -17
- package/dist/app/run/engine-execution.d.ts +0 -65
- package/dist/app/run/engine-failure-stack.d.ts +0 -1
- package/dist/app/run/engine-orchestration.d.ts +0 -30
- package/dist/app/run/environment.d.ts +0 -33
- package/dist/app/run/failure-details.d.ts +0 -37
- package/dist/app/run/live-run.d.ts +0 -29
- package/dist/app/run/operation-progress.d.ts +0 -13
- package/dist/app/run/orchestrator.d.ts +0 -75
- package/dist/app/run/planning-types.d.ts +0 -68
- package/dist/app/run/planning.d.ts +0 -14
- package/dist/app/run/request.d.ts +0 -30
- package/dist/app/run/results.d.ts +0 -161
- package/dist/app/run/run-events.d.ts +0 -144
- package/dist/app/run/run-finalization.d.ts +0 -56
- package/dist/app/run/run-guards.d.ts +0 -3
- package/dist/app/run/runtime-failures.d.ts +0 -18
- package/dist/app/run/runtime-fixtures.d.ts +0 -2
- package/dist/app/run/runtime-task-types.d.ts +0 -20
- package/dist/app/run/scheduler/estimates.d.ts +0 -32
- package/dist/app/run/scheduler/identity.d.ts +0 -9
- package/dist/app/run/scheduler/index.d.ts +0 -124
- package/dist/app/run/scheduler/locks.d.ts +0 -6
- package/dist/app/run/scheduler/observations.d.ts +0 -20
- package/dist/app/run/selection.d.ts +0 -9
- package/dist/app/run/setup/runtime-node-setup-errors.d.ts +0 -13
- package/dist/app/run/setup/runtime-node-setup-protocol.d.ts +0 -85
- package/dist/app/run/setup/runtime-node-setup-worker.d.ts +0 -1
- package/dist/app/run/setup/runtime-node-setup.d.ts +0 -48
- package/dist/app/run/task-batches.d.ts +0 -23
- package/dist/app/run/task-leases.d.ts +0 -15
- package/dist/app/run/worker-loop.d.ts +0 -66
- package/dist/app/setup/playwright.d.ts +0 -22
- package/dist/app/status/index.d.ts +0 -9
- package/dist/app/status/model.d.ts +0 -29
- package/dist/app/status/runs.d.ts +0 -99
- package/dist/app/stop/index.d.ts +0 -14
- package/dist/app/tracker/index.d.ts +0 -13
- package/dist/app/tracker/remote.d.ts +0 -13
- package/dist/app/tracker/token.d.ts +0 -7
- package/dist/app/typecheck/index.d.ts +0 -63
- package/dist/cli/command-catalog.d.ts +0 -156
- package/dist/cli/command-flags.d.ts +0 -19
- package/dist/cli/command-registry.d.ts +0 -3
- package/dist/cli/commands/artifacts.d.ts +0 -48
- package/dist/cli/commands/bug/file.d.ts +0 -16
- package/dist/cli/commands/bug/guide.d.ts +0 -5
- package/dist/cli/commands/bug/record.d.ts +0 -9
- package/dist/cli/commands/campaign/finish.d.ts +0 -10
- package/dist/cli/commands/campaign/start.d.ts +0 -7
- package/dist/cli/commands/campaign/status.d.ts +0 -13
- package/dist/cli/commands/ci/report.d.ts +0 -15
- package/dist/cli/commands/cleanup.d.ts +0 -13
- package/dist/cli/commands/db/schema/refresh.d.ts +0 -2
- package/dist/cli/commands/db/schema/verify.d.ts +0 -2
- package/dist/cli/commands/destroy.d.ts +0 -9
- package/dist/cli/commands/discover.d.ts +0 -2
- package/dist/cli/commands/doctor.d.ts +0 -2
- package/dist/cli/commands/guard/unsafe-entrypoint.d.ts +0 -2
- package/dist/cli/commands/lint.d.ts +0 -2
- package/dist/cli/commands/report/prepare.d.ts +0 -12
- package/dist/cli/commands/report/publish.d.ts +0 -13
- package/dist/cli/commands/run/status.d.ts +0 -5
- package/dist/cli/commands/run/stop.d.ts +0 -7
- package/dist/cli/commands/run.d.ts +0 -9
- package/dist/cli/commands/setup/playwright.d.ts +0 -2
- package/dist/cli/commands/status.d.ts +0 -5
- package/dist/cli/commands/stop.d.ts +0 -12
- package/dist/cli/commands/typecheck.d.ts +0 -2
- package/dist/cli/commands/workspace.d.ts +0 -2
- package/dist/cli/entrypoint.d.ts +0 -1
- package/dist/cli/framework/command.d.ts +0 -21
- package/dist/cli/framework/definitions.d.ts +0 -100
- package/dist/cli/framework/errors.d.ts +0 -6
- package/dist/cli/framework/execute.d.ts +0 -14
- package/dist/cli/framework/help.d.ts +0 -11
- package/dist/cli/framework/index.d.ts +0 -3
- package/dist/cli/framework/parser.d.ts +0 -6
- package/dist/cli/index.d.ts +0 -4
- package/dist/cli/json-errors.d.ts +0 -3
- package/dist/cli/operations/db/schema/refresh/operation.d.ts +0 -7
- package/dist/cli/operations/db/schema/verify/operation.d.ts +0 -7
- package/dist/cli/operations/run/operation.d.ts +0 -26
- package/dist/cli/process-signal.d.ts +0 -1
- package/dist/cli/renderers/bug/text.d.ts +0 -8
- package/dist/cli/renderers/campaign/text.d.ts +0 -2
- package/dist/cli/renderers/ci/text.d.ts +0 -2
- package/dist/cli/renderers/cleanup/format.d.ts +0 -14
- package/dist/cli/renderers/db-schema/text.d.ts +0 -4
- package/dist/cli/renderers/destroy/text.d.ts +0 -4
- package/dist/cli/renderers/discover/report.d.ts +0 -7
- package/dist/cli/renderers/discover/text.d.ts +0 -3
- package/dist/cli/renderers/doctor/text.d.ts +0 -2
- package/dist/cli/renderers/lint/text.d.ts +0 -2
- package/dist/cli/renderers/run/events.d.ts +0 -8
- package/dist/cli/renderers/run/failure.d.ts +0 -8
- package/dist/cli/renderers/run/formatting.d.ts +0 -79
- package/dist/cli/renderers/run/status.d.ts +0 -6
- package/dist/cli/renderers/run/text-reporter.d.ts +0 -19
- package/dist/cli/renderers/status/text.d.ts +0 -2
- package/dist/cli/renderers/stop/text.d.ts +0 -7
- package/dist/cli/renderers/typecheck/text.d.ts +0 -2
- package/dist/cli/terminal/colors.d.ts +0 -10
- package/dist/cli/terminal/layout.d.ts +0 -11
- package/dist/cli/version-drift.d.ts +0 -25
- package/dist/config/authoring/build-config-contract.d.ts +0 -27
- package/dist/config/authoring/configured-step-contract.d.ts +0 -18
- package/dist/config/authoring/http-execution-contract.d.ts +0 -70
- package/dist/config/authoring/http-methods.d.ts +0 -18
- package/dist/config/authoring/index.d.ts +0 -372
- package/dist/config/authoring/preset-env.d.ts +0 -19
- package/dist/config/authoring/runtime.d.ts +0 -64
- package/dist/config/loader/bugs.d.ts +0 -15
- package/dist/config/loader/config-loader.d.ts +0 -9
- package/dist/config/loader/database-materialization.d.ts +0 -19
- package/dist/config/loader/database-roles.d.ts +0 -2
- package/dist/config/loader/database.d.ts +0 -55
- package/dist/config/loader/decode-discovery.d.ts +0 -5
- package/dist/config/loader/decode-execution.d.ts +0 -7
- package/dist/config/loader/dependencies.d.ts +0 -7
- package/dist/config/loader/discover-tests.d.ts +0 -111
- package/dist/config/loader/discovery-summary.d.ts +0 -29
- package/dist/config/loader/discovery.d.ts +0 -53
- package/dist/config/loader/env.d.ts +0 -4
- package/dist/config/loader/execution-model.d.ts +0 -15
- package/dist/config/loader/file-metadata.d.ts +0 -19
- package/dist/config/loader/groups.d.ts +0 -33
- package/dist/config/loader/index.d.ts +0 -10
- package/dist/config/loader/load.d.ts +0 -89
- package/dist/config/loader/managed-configs.d.ts +0 -23
- package/dist/config/loader/path-policy.d.ts +0 -9
- package/dist/config/loader/paths.d.ts +0 -5
- package/dist/config/loader/runtime-isolation.d.ts +0 -44
- package/dist/config/loader/runtime.d.ts +0 -16
- package/dist/config/loader/skip-config.d.ts +0 -44
- package/dist/config/loader/test-selection.d.ts +0 -15
- package/dist/config/loader/validation.d.ts +0 -15
- package/dist/config/loader/values.d.ts +0 -3
- package/dist/config/loader/values.js +0 -1
- package/dist/database/activity-gate.d.ts +0 -22
- package/dist/database/admin.d.ts +0 -31
- package/dist/database/cleanup.d.ts +0 -36
- package/dist/database/configured-steps.d.ts +0 -27
- package/dist/database/constants.d.ts +0 -11
- package/dist/database/docker-metadata.d.ts +0 -3
- package/dist/database/docker.d.ts +0 -65
- package/dist/database/drizzle/index.d.ts +0 -13
- package/dist/database/fingerprint.d.ts +0 -12
- package/dist/database/index.d.ts +0 -39
- package/dist/database/lifecycle-cleanup.d.ts +0 -8
- package/dist/database/local-postgres.d.ts +0 -71
- package/dist/database/naming.d.ts +0 -17
- package/dist/database/postgres/index.d.ts +0 -71
- package/dist/database/progress.d.ts +0 -6
- package/dist/database/roles.d.ts +0 -19
- package/dist/database/runtime-config.d.ts +0 -16
- package/dist/database/runtime-reservations.d.ts +0 -19
- package/dist/database/schema-operations.d.ts +0 -18
- package/dist/database/schema-source.d.ts +0 -96
- package/dist/database/source-refresh-lock.d.ts +0 -8
- package/dist/database/source-url.d.ts +0 -21
- package/dist/database/state-files.d.ts +0 -13
- package/dist/database/state.d.ts +0 -26
- package/dist/database/template-steps.d.ts +0 -39
- package/dist/domain/file-timeout.d.ts +0 -25
- package/dist/domain/identifiers.d.ts +0 -9
- package/dist/domain/operation-display.d.ts +0 -10
- package/dist/domain/operation-reason.d.ts +0 -5
- package/dist/domain/postgres-route.d.ts +0 -4
- package/dist/domain/runtime-identity.d.ts +0 -1
- package/dist/domain/runtime-isolation-contract.d.ts +0 -5
- package/dist/domain/service-name.d.ts +0 -2
- package/dist/domain/suite-selection.d.ts +0 -20
- package/dist/domain/test-outcomes.d.ts +0 -2
- package/dist/domain/test-types.d.ts +0 -16
- package/dist/engines/adapters/evidence-files.d.ts +0 -32
- package/dist/engines/adapters/evidence-identity.d.ts +0 -12
- package/dist/engines/adapters/execution.d.ts +0 -41
- package/dist/engines/adapters/native-report.d.ts +0 -25
- package/dist/engines/adapters/node-startup-cache.d.ts +0 -8
- package/dist/engines/adapters/workspace.d.ts +0 -4
- package/dist/engines/api/capabilities.d.ts +0 -21
- package/dist/engines/api/capabilities.js +0 -1
- package/dist/engines/api/evidence.d.ts +0 -38
- package/dist/engines/api/execution-observer.d.ts +0 -8
- package/dist/engines/api/execution-scope.d.ts +0 -17
- package/dist/engines/api/execution.d.ts +0 -101
- package/dist/engines/api/index.d.ts +0 -5
- package/dist/engines/api/k6-runtime-input.d.ts +0 -26
- package/dist/engines/api/k6-runtime-input.js +0 -1
- package/dist/engines/api/runtime-artifact.d.ts +0 -19
- package/dist/engines/bundle-cache.d.ts +0 -32
- package/dist/engines/catalog.d.ts +0 -27
- package/dist/engines/contracts/fixture-manifest.d.ts +0 -34
- package/dist/engines/contracts/json-bounds.d.ts +0 -36
- package/dist/engines/contracts/json-bounds.js +0 -2
- package/dist/engines/contracts/k6-repository-configuration.d.ts +0 -12
- package/dist/engines/contracts/k6-repository-configuration.js +0 -1
- package/dist/engines/contracts/test-context.d.ts +0 -15
- package/dist/engines/contracts/test-context.js +0 -1
- package/dist/engines/definitions.d.ts +0 -23
- package/dist/engines/factory.d.ts +0 -6
- package/dist/engines/generated-performance.d.ts +0 -1
- package/dist/engines/installation-catalog.d.ts +0 -27
- package/dist/engines/installation-catalog.js +0 -1
- package/dist/engines/installations/k6.d.ts +0 -98
- package/dist/engines/installations/k6.js +0 -1
- package/dist/engines/installations/node-vitest.d.ts +0 -33
- package/dist/engines/installations/package-requirements.d.ts +0 -28
- package/dist/engines/installations/package-resolution.d.ts +0 -51
- package/dist/engines/installations/playwright-resolution-child.d.ts +0 -1
- package/dist/engines/installations/playwright.d.ts +0 -75
- package/dist/engines/installations/types.d.ts +0 -10
- package/dist/engines/k6/adapter/bundle.d.ts +0 -25
- package/dist/engines/k6/adapter/bundle.js +0 -112
- package/dist/engines/k6/adapter/evidence.d.ts +0 -15
- package/dist/engines/k6/adapter/evidence.js +0 -4
- package/dist/engines/k6/adapter/executor.d.ts +0 -13
- package/dist/engines/k6/adapter/executor.js +0 -1
- package/dist/engines/k6/adapter/index.d.ts +0 -1
- package/dist/engines/k6/adapter/index.js +0 -1
- package/dist/engines/k6/adapter/input.d.ts +0 -21
- package/dist/engines/k6/adapter/input.js +0 -1
- package/dist/engines/k6/adapter/native-summary.d.ts +0 -11
- package/dist/engines/k6/adapter/native-summary.js +0 -1
- package/dist/engines/k6/adapter/repository-configuration.d.ts +0 -2
- package/dist/engines/k6/adapter/repository-configuration.js +0 -1
- package/dist/engines/k6/authoring-type-paths.d.ts +0 -3
- package/dist/engines/k6/authoring-type-paths.js +0 -1
- package/dist/engines/k6/runtime/ambient-types/bundle-manifest.json +0 -146
- package/dist/engines/k6/runtime/ambient-types/k6/LICENSE +0 -21
- package/dist/engines/k6/runtime/ambient-types/k6/browser/index.d.ts +0 -6332
- package/dist/engines/k6/runtime/ambient-types/k6/crypto/index.d.ts +0 -218
- package/dist/engines/k6/runtime/ambient-types/k6/data/index.d.ts +0 -16
- package/dist/engines/k6/runtime/ambient-types/k6/encoding/index.d.ts +0 -46
- package/dist/engines/k6/runtime/ambient-types/k6/execution/index.d.ts +0 -127
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/csv/index.d.ts +0 -96
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/fs/index.d.ts +0 -104
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/redis/index.d.ts +0 -821
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/streams/index.d.ts +0 -198
- package/dist/engines/k6/runtime/ambient-types/k6/global.d.ts +0 -83
- package/dist/engines/k6/runtime/ambient-types/k6/html/index.d.ts +0 -1325
- package/dist/engines/k6/runtime/ambient-types/k6/http/index.d.ts +0 -806
- package/dist/engines/k6/runtime/ambient-types/k6/index.d.ts +0 -126
- package/dist/engines/k6/runtime/ambient-types/k6/metrics/index.d.ts +0 -66
- package/dist/engines/k6/runtime/ambient-types/k6/net/grpc/index.d.ts +0 -247
- package/dist/engines/k6/runtime/ambient-types/k6/options/index.d.ts +0 -459
- package/dist/engines/k6/runtime/ambient-types/k6/package.json +0 -79
- package/dist/engines/k6/runtime/ambient-types/k6/secrets/index.d.ts +0 -36
- package/dist/engines/k6/runtime/ambient-types/k6/timers/index.d.ts +0 -47
- package/dist/engines/k6/runtime/ambient-types/k6/websockets/index.d.ts +0 -324
- package/dist/engines/k6/runtime/ambient-types/k6/ws/index.d.ts +0 -283
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/LICENSE +0 -201
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/index.d.ts +0 -397
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/package.json +0 -15
- package/dist/engines/k6/runtime/artifacts.d.ts +0 -2
- package/dist/engines/k6/runtime/artifacts.js +0 -1
- package/dist/engines/k6/runtime/checks.d.ts +0 -17
- package/dist/engines/k6/runtime/checks.js +0 -1
- package/dist/engines/k6/runtime/dal-fixtures.d.ts +0 -24
- package/dist/engines/k6/runtime/dal-fixtures.js +0 -1
- package/dist/engines/k6/runtime/dal-suite.d.ts +0 -24
- package/dist/engines/k6/runtime/dal-suite.js +0 -1
- package/dist/engines/k6/runtime/dal.d.ts +0 -10
- package/dist/engines/k6/runtime/dal.js +0 -1
- package/dist/engines/k6/runtime/fixtures.d.ts +0 -3
- package/dist/engines/k6/runtime/fixtures.js +0 -1
- package/dist/engines/k6/runtime/http-assertions.d.ts +0 -19
- package/dist/engines/k6/runtime/http-assertions.js +0 -1
- package/dist/engines/k6/runtime/http-checks.d.ts +0 -19
- package/dist/engines/k6/runtime/http-checks.js +0 -1
- package/dist/engines/k6/runtime/http-suite-runtime.d.ts +0 -103
- package/dist/engines/k6/runtime/http-suite-runtime.js +0 -1
- package/dist/engines/k6/runtime/http.d.ts +0 -15
- package/dist/engines/k6/runtime/http.js +0 -1
- package/dist/engines/k6/runtime/index.d.ts +0 -11
- package/dist/engines/k6/runtime/index.js +0 -1
- package/dist/engines/k6/runtime/input.d.ts +0 -3
- package/dist/engines/k6/runtime/input.js +0 -1
- package/dist/engines/k6/runtime/k6-repository-configuration.d.ts +0 -9
- package/dist/engines/k6/runtime/k6-repository-configuration.js +0 -1
- package/dist/engines/k6/runtime/node-setup.d.ts +0 -13
- package/dist/engines/k6/runtime/node-setup.js +0 -1
- package/dist/engines/k6/runtime/runtime-globals.d.ts +0 -10
- package/dist/engines/k6/runtime/runtime.d.ts +0 -54
- package/dist/engines/k6/runtime/runtime.js +0 -1
- package/dist/engines/k6/runtime/shared/assertion-details.d.ts +0 -19
- package/dist/engines/k6/runtime/shared/assertion-details.js +0 -2
- package/dist/engines/k6/runtime/shared/db-normalization.d.ts +0 -19
- package/dist/engines/k6/runtime/shared/db-normalization.js +0 -1
- package/dist/engines/k6/runtime/shared/error-body.d.ts +0 -3
- package/dist/engines/k6/runtime/shared/error-body.js +0 -1
- package/dist/engines/k6/runtime/shared/file-data.d.ts +0 -1
- package/dist/engines/k6/runtime/shared/file-data.js +0 -1
- package/dist/engines/k6/runtime/shared/fixture-engine.d.ts +0 -8
- package/dist/engines/k6/runtime/shared/fixture-engine.js +0 -2
- package/dist/engines/k6/runtime/shared/http-check-plan.d.ts +0 -29
- package/dist/engines/k6/runtime/shared/http-check-plan.js +0 -1
- package/dist/engines/k6/runtime/shared/http-parsing.d.ts +0 -10
- package/dist/engines/k6/runtime/shared/http-parsing.js +0 -3
- package/dist/engines/k6/runtime/shared/ordering.d.ts +0 -2
- package/dist/engines/k6/runtime/shared/ordering.js +0 -1
- package/dist/engines/k6/runtime/shared/properties.d.ts +0 -1
- package/dist/engines/k6/runtime/shared/properties.js +0 -1
- package/dist/engines/k6/runtime/suite.d.ts +0 -4
- package/dist/engines/k6/runtime/suite.js +0 -1
- package/dist/engines/k6/runtime/types.d.ts +0 -244
- package/dist/engines/k6/runtime/types.js +0 -1
- package/dist/engines/k6/runtime/xk6-sql-driver-postgres.d.ts +0 -7
- package/dist/engines/k6/runtime/xk6-sql-driver-postgres.js +0 -1
- package/dist/engines/managed-module-resolution-policy-input.d.ts +0 -8
- package/dist/engines/managed-module-resolution-policy.d.ts +0 -25
- package/dist/engines/managed-module-resolution.d.ts +0 -13
- package/dist/engines/manager.d.ts +0 -25
- package/dist/engines/node-vitest/adapter/adapter.d.ts +0 -16
- package/dist/engines/node-vitest/adapter/consumer-typescript-paths.d.ts +0 -17
- package/dist/engines/node-vitest/adapter/consumer-typescript-paths.js +0 -3
- package/dist/engines/node-vitest/adapter/evidence.d.ts +0 -33
- package/dist/engines/node-vitest/adapter/failure-details.d.ts +0 -3
- package/dist/engines/node-vitest/adapter/index.d.ts +0 -1
- package/dist/engines/node-vitest/adapter/reporter.d.ts +0 -7
- package/dist/engines/node-vitest/adapter/resolution.d.ts +0 -12
- package/dist/engines/node-vitest/adapter/resolution.js +0 -1
- package/dist/engines/node-vitest/adapter/workspace.d.ts +0 -19
- package/dist/engines/node-vitest/runtime/contract/index.d.ts +0 -64
- package/dist/engines/node-vitest/runtime/data/http.d.ts +0 -4
- package/dist/engines/node-vitest/runtime/data/index.d.ts +0 -8
- package/dist/engines/node-vitest/runtime/data/primitives.d.ts +0 -1
- package/dist/engines/node-vitest/runtime/data/report.d.ts +0 -3
- package/dist/engines/node-vitest/runtime/data/runner.d.ts +0 -4
- package/dist/engines/node-vitest/runtime/data/scenario.d.ts +0 -11
- package/dist/engines/node-vitest/runtime/data/types.d.ts +0 -384
- package/dist/engines/node-vitest/runtime/runtime-input.d.ts +0 -64
- package/dist/engines/playwright/adapter/adapter.d.ts +0 -18
- package/dist/engines/playwright/adapter/attachments.d.ts +0 -26
- package/dist/engines/playwright/adapter/config.d.ts +0 -45
- package/dist/engines/playwright/adapter/evidence-validation.d.ts +0 -9
- package/dist/engines/playwright/adapter/evidence.d.ts +0 -32
- package/dist/engines/playwright/adapter/failure-details.d.ts +0 -2
- package/dist/engines/playwright/adapter/index.d.ts +0 -3
- package/dist/engines/playwright/adapter/reporter.d.ts +0 -12
- package/dist/engines/playwright/runtime/config-file.d.ts +0 -2
- package/dist/engines/playwright/runtime/config.d.ts +0 -24
- package/dist/engines/playwright/runtime/index.d.ts +0 -4
- package/dist/engines/playwright/runtime/runtime-input.d.ts +0 -36
- package/dist/engines/playwright/runtime/sandbox.d.ts +0 -84
- package/dist/engines/runtime-input-file.d.ts +0 -27
- package/dist/environment/lifecycle-artifacts.d.ts +0 -7
- package/dist/environment/lifecycle-controller.d.ts +0 -60
- package/dist/environment/lifecycle.d.ts +0 -32
- package/dist/environment/maintenance.d.ts +0 -68
- package/dist/environment/planning-types.d.ts +0 -33
- package/dist/environment/ports.d.ts +0 -10
- package/dist/environment/ready-environment.d.ts +0 -16
- package/dist/environment/run-environment.d.ts +0 -39
- package/dist/environment/run-stopping.d.ts +0 -13
- package/dist/environment/runtime-contexts.d.ts +0 -37
- package/dist/environment/runtime-manager.d.ts +0 -87
- package/dist/environment/runtime-planning.d.ts +0 -16
- package/dist/environment/runtime-preparation.d.ts +0 -30
- package/dist/environment/runtime-service.d.ts +0 -12
- package/dist/environment/services.d.ts +0 -56
- package/dist/environment/state.d.ts +0 -15
- package/dist/environment/status-runtime.d.ts +0 -53
- package/dist/environment/template.d.ts +0 -164
- package/dist/evidence/artifact-config.d.ts +0 -14
- package/dist/evidence/artifact-validation.d.ts +0 -4
- package/dist/evidence/artifacts.d.ts +0 -75
- package/dist/evidence/bundles.d.ts +0 -27
- package/dist/evidence/ci-provenance.d.ts +0 -9
- package/dist/evidence/contracts.d.ts +0 -154
- package/dist/evidence/environment-record.d.ts +0 -22
- package/dist/evidence/file-evidence.d.ts +0 -23
- package/dist/evidence/finalization.d.ts +0 -9
- package/dist/evidence/index.d.ts +0 -8
- package/dist/evidence/logs.d.ts +0 -31
- package/dist/evidence/operation-timings.d.ts +0 -60
- package/dist/evidence/read-bundle.d.ts +0 -4
- package/dist/evidence/read-fields.d.ts +0 -21
- package/dist/evidence/read-provenance.d.ts +0 -2
- package/dist/evidence/read-redaction.d.ts +0 -2
- package/dist/evidence/read-retention.d.ts +0 -2
- package/dist/evidence/read-run.d.ts +0 -2
- package/dist/evidence/reading.d.ts +0 -28
- package/dist/evidence/reporting-types.d.ts +0 -349
- package/dist/evidence/reporting.d.ts +0 -3
- package/dist/evidence/secure-file-copy.d.ts +0 -24
- package/dist/evidence/setup-progress.d.ts +0 -63
- package/dist/evidence/step-output.d.ts +0 -16
- package/dist/evidence/storage-inventory.d.ts +0 -27
- package/dist/evidence/storage.d.ts +0 -25
- package/dist/evidence/timing.d.ts +0 -23
- package/dist/file.d.ts +0 -11
- package/dist/index.d.ts +0 -4
- package/dist/kernel/error-serialization.d.ts +0 -40
- package/dist/kernel/redaction.d.ts +0 -2
- package/dist/kernel/unknown-values.d.ts +0 -11
- package/dist/kernel/work-metrics.d.ts +0 -6
- package/dist/process/capture-output.d.ts +0 -7
- package/dist/process/command-shell.d.ts +0 -1
- package/dist/process/environment-overlay.d.ts +0 -17
- package/dist/process/environment.d.ts +0 -33
- package/dist/process/files/contained-path.d.ts +0 -8
- package/dist/process/files/directory-status.d.ts +0 -14
- package/dist/process/files/dotenv.d.ts +0 -2
- package/dist/process/files/file-snapshot.d.ts +0 -34
- package/dist/process/files/json-file.d.ts +0 -11
- package/dist/process/files/paths.d.ts +0 -3
- package/dist/process/files/product-dir.d.ts +0 -1
- package/dist/process/files/temp-dir.d.ts +0 -11
- package/dist/process/host/metadata.d.ts +0 -6
- package/dist/process/host/platform.d.ts +0 -57
- package/dist/process/host-command.d.ts +0 -4
- package/dist/process/host-inspection-command.d.ts +0 -13
- package/dist/process/host-process.d.ts +0 -19
- package/dist/process/index.d.ts +0 -9
- package/dist/process/lifecycle-fence.d.ts +0 -10
- package/dist/process/locks.d.ts +0 -28
- package/dist/process/process-contracts.d.ts +0 -78
- package/dist/process/process-group.d.ts +0 -12
- package/dist/process/process-identity.d.ts +0 -27
- package/dist/process/process-limits.d.ts +0 -6
- package/dist/process/process.d.ts +0 -12
- package/dist/process/readiness.d.ts +0 -43
- package/dist/process/recovery.d.ts +0 -3
- package/dist/process/runs/inspection.d.ts +0 -5
- package/dist/process/runs/manifest.d.ts +0 -86
- package/dist/process/runs/ownership.d.ts +0 -11
- package/dist/process/runs/product-state.d.ts +0 -2
- package/dist/process/runs/schema.d.ts +0 -3
- package/dist/process/runs/stop.d.ts +0 -19
- package/dist/process/runtime-socket.d.ts +0 -4
- package/dist/process/service-processes.d.ts +0 -13
- package/dist/process/shutdown.d.ts +0 -10
- package/dist/process/stoppable-settlement.d.ts +0 -26
- package/dist/process/url-redaction.d.ts +0 -1
- package/dist/process/windows-cli-owner.d.ts +0 -2
- package/dist/process/windows-native.d.ts +0 -12
- package/dist/process/windows-process-identity.d.ts +0 -4
- package/dist/repo/ci-environment.d.ts +0 -7
- package/dist/repo/fingerprint-policy.d.ts +0 -13
- package/dist/repo/git-path.d.ts +0 -2
- package/dist/repo/history.d.ts +0 -17
- package/dist/repo/managed-git.d.ts +0 -10
- package/dist/repo/metadata.d.ts +0 -3
- package/dist/repo/physical-tree.d.ts +0 -37
- package/dist/repo/publish-directory.d.ts +0 -20
- package/dist/repo/remote.d.ts +0 -6
- package/dist/repo/state.d.ts +0 -26
- package/dist/repo/tree-listing.d.ts +0 -10
- package/dist/steps/build-config.d.ts +0 -34
- package/dist/steps/configured-step-testkit-modules.d.ts +0 -19
- package/dist/steps/configured-steps.d.ts +0 -51
- package/dist/steps/environment.d.ts +0 -82
- package/dist/steps/index.d.ts +0 -2
- package/dist/steps/module-runner.d.ts +0 -1
- package/dist/steps/run.d.ts +0 -36
- package/dist/toolchains/archive.d.ts +0 -53
- package/dist/toolchains/esbuild.d.ts +0 -9
- package/dist/toolchains/host-node-support.d.ts +0 -3
- package/dist/toolchains/index.d.ts +0 -114
- package/dist/toolchains/managed-node-releases.d.ts +0 -28
- package/dist/toolchains/node-cache.d.ts +0 -20
- package/dist/toolchains/node-integrity.d.ts +0 -18
- package/dist/toolchains/node-provisioning.d.ts +0 -29
- package/dist/toolchains/semver.d.ts +0 -13
- package/dist/toolchains/shared-operation.d.ts +0 -11
- package/dist/toolchains/timeouts.d.ts +0 -1
- package/dist/toolchains/vitest/index.d.ts +0 -13
- package/dist/tracker/gitea.d.ts +0 -14
- package/dist/tracker/github.d.ts +0 -14
- package/dist/tracker/http.d.ts +0 -33
- package/dist/tracker/index.d.ts +0 -4
- package/dist/tracker/redaction.d.ts +0 -4
- package/dist/tracker/requests.d.ts +0 -17
- package/dist/tracker/responses.d.ts +0 -24
- package/dist/tracker/types.d.ts +0 -51
- package/docs/engine-architecture.md +0 -682
- /package/dist/engines/{k6/runtime/runtime-globals.js → api/profiles.js} +0 -0
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import type { OperationProgressInput } from "./operation-progress.js";
|
|
2
|
-
import type { FinalizedServiceResult, ResultServicePlan } from "./results.js";
|
|
3
|
-
import type { ReadyServiceConfig } from "../../environment/runtime-service.js";
|
|
4
|
-
import type { BatchableTask } from "./task-batches.js";
|
|
5
|
-
import type { WorkerReportedOutcome } from "./worker-loop.js";
|
|
6
|
-
import type { ReportingSetupOperation } from "../../evidence/index.js";
|
|
7
|
-
import type { SetupOperationSnapshot } from "../../evidence/setup-progress.js";
|
|
8
|
-
import type { ResolvedNodeToolchain, ToolchainReportConfig } from "../../toolchains/index.js";
|
|
9
|
-
type ResultServicePlanSuite = ResultServicePlan["suites"][number];
|
|
10
|
-
export type RunEventTaskOutcome = Partial<WorkerReportedOutcome>;
|
|
11
|
-
export type RunEventSetupOperation = ReportingSetupOperation & Partial<Pick<SetupOperationSnapshot, "kind">>;
|
|
12
|
-
export interface RunEventServicePlanSuite {
|
|
13
|
-
engineId: ResultServicePlanSuite["engineId"];
|
|
14
|
-
files: ResultServicePlanSuite["files"];
|
|
15
|
-
name: ResultServicePlanSuite["name"];
|
|
16
|
-
profileId: ResultServicePlanSuite["profileId"];
|
|
17
|
-
testType: ResultServicePlanSuite["testType"];
|
|
18
|
-
}
|
|
19
|
-
export interface RunEventServicePlan {
|
|
20
|
-
service: string;
|
|
21
|
-
skipped: boolean;
|
|
22
|
-
suites: readonly RunEventServicePlanSuite[];
|
|
23
|
-
}
|
|
24
|
-
export interface RunEventTaskRef {
|
|
25
|
-
engineId: BatchableTask["engineId"];
|
|
26
|
-
file: BatchableTask["file"];
|
|
27
|
-
profileId: BatchableTask["profileId"];
|
|
28
|
-
service: string;
|
|
29
|
-
suite: BatchableTask["suiteName"];
|
|
30
|
-
testType: BatchableTask["testType"];
|
|
31
|
-
}
|
|
32
|
-
export interface RunDebugLineEvent {
|
|
33
|
-
line: string;
|
|
34
|
-
type: "run.debug";
|
|
35
|
-
}
|
|
36
|
-
export interface RunLocalServiceStartingEvent {
|
|
37
|
-
command: string;
|
|
38
|
-
runtimeLabel: string;
|
|
39
|
-
service: string;
|
|
40
|
-
type: "run.local_service_starting";
|
|
41
|
-
}
|
|
42
|
-
export interface RunOperationFinishedEvent {
|
|
43
|
-
operation: Readonly<OperationProgressInput>;
|
|
44
|
-
type: "run.operation_finished";
|
|
45
|
-
}
|
|
46
|
-
export interface RunOperationProgressEvent {
|
|
47
|
-
operation: Readonly<OperationProgressInput>;
|
|
48
|
-
type: "run.operation_progress";
|
|
49
|
-
}
|
|
50
|
-
export interface RunOperationStartedEvent {
|
|
51
|
-
operation: Readonly<OperationProgressInput>;
|
|
52
|
-
type: "run.operation_started";
|
|
53
|
-
}
|
|
54
|
-
export interface RunPhaseStartedEvent {
|
|
55
|
-
label: string;
|
|
56
|
-
type: "run.phase_started";
|
|
57
|
-
}
|
|
58
|
-
export interface RunRuntimeErrorEvent {
|
|
59
|
-
file: string;
|
|
60
|
-
message: string;
|
|
61
|
-
service: string;
|
|
62
|
-
type: "run.runtime_error";
|
|
63
|
-
}
|
|
64
|
-
export interface RunServicePlansEvent {
|
|
65
|
-
services: readonly RunEventServicePlan[];
|
|
66
|
-
type: "run.service_plans";
|
|
67
|
-
}
|
|
68
|
-
export interface RunServiceSkippedEvent {
|
|
69
|
-
reason: string;
|
|
70
|
-
service: string;
|
|
71
|
-
type: "run.service_skipped";
|
|
72
|
-
}
|
|
73
|
-
export interface RunSetupOperationFinishedEvent {
|
|
74
|
-
operation: Readonly<RunEventSetupOperation>;
|
|
75
|
-
type: "run.setup_finished";
|
|
76
|
-
}
|
|
77
|
-
export interface RunSummaryEvent {
|
|
78
|
-
durationMs: number;
|
|
79
|
-
results: readonly FinalizedServiceResult[];
|
|
80
|
-
runStatus: "failed" | "interrupted" | "passed";
|
|
81
|
-
type: "run.summary";
|
|
82
|
-
}
|
|
83
|
-
export interface RunTaskFinishedEvent extends RunEventTaskRef {
|
|
84
|
-
outcome: Readonly<RunEventTaskOutcome>;
|
|
85
|
-
type: "run.task_finished";
|
|
86
|
-
}
|
|
87
|
-
export interface RunTaskPlannedSkipEvent {
|
|
88
|
-
engineId: BatchableTask["engineId"];
|
|
89
|
-
file: BatchableTask["file"];
|
|
90
|
-
profileId: BatchableTask["profileId"];
|
|
91
|
-
reason: null | string;
|
|
92
|
-
service: string;
|
|
93
|
-
testType: BatchableTask["testType"];
|
|
94
|
-
type: "run.task_planned_skip";
|
|
95
|
-
}
|
|
96
|
-
export interface RunTaskStartedEvent extends RunEventTaskRef {
|
|
97
|
-
targetName: string;
|
|
98
|
-
type: "run.task_started";
|
|
99
|
-
}
|
|
100
|
-
export interface RunToolchainResolvedEvent {
|
|
101
|
-
runtimeLabel: string;
|
|
102
|
-
service: string;
|
|
103
|
-
summary: string;
|
|
104
|
-
type: "run.toolchain_resolved";
|
|
105
|
-
}
|
|
106
|
-
export interface RunTotalFilesEvent {
|
|
107
|
-
total: number;
|
|
108
|
-
type: "run.total_files";
|
|
109
|
-
}
|
|
110
|
-
export interface RunWarningEvent {
|
|
111
|
-
message: string;
|
|
112
|
-
type: "run.warning";
|
|
113
|
-
}
|
|
114
|
-
export type RunEvent = RunDebugLineEvent | RunLocalServiceStartingEvent | RunOperationFinishedEvent | RunOperationProgressEvent | RunOperationStartedEvent | RunPhaseStartedEvent | RunRuntimeErrorEvent | RunServicePlansEvent | RunServiceSkippedEvent | RunSetupOperationFinishedEvent | RunSummaryEvent | RunTaskFinishedEvent | RunTaskPlannedSkipEvent | RunTaskStartedEvent | RunToolchainResolvedEvent | RunTotalFilesEvent | RunWarningEvent;
|
|
115
|
-
export type RunEventListener = (event: RunEvent) => void;
|
|
116
|
-
type ReporterTask = Pick<BatchableTask, "engineId" | "file" | "profileId" | "serviceName" | "suiteName" | "testType">;
|
|
117
|
-
type ReporterPlannedSkip = Pick<BatchableTask, "engineId" | "file" | "profileId" | "serviceName" | "testType"> & {
|
|
118
|
-
reason?: null | string;
|
|
119
|
-
};
|
|
120
|
-
export interface RunListenerReporter {
|
|
121
|
-
localServiceStarting(config: Readonly<ToolchainReportConfig>, command: string): void;
|
|
122
|
-
operationFinished(operation: Readonly<OperationProgressInput>): void;
|
|
123
|
-
operationProgress(operation: Readonly<OperationProgressInput>): void;
|
|
124
|
-
operationStarted(operation: Readonly<OperationProgressInput>): void;
|
|
125
|
-
readonly outputMode: "compact" | "debug";
|
|
126
|
-
phaseStarted(label: string): void;
|
|
127
|
-
plannedSkip(entry: Readonly<ReporterPlannedSkip>): void;
|
|
128
|
-
runSummary(results: readonly FinalizedServiceResult[], durationMs: number, runStatus: "failed" | "interrupted" | "passed"): void;
|
|
129
|
-
runtimeError(task: Readonly<ReporterTask>, message: string): void;
|
|
130
|
-
serviceSkipped(config: Readonly<ToolchainReportConfig>, reason: string): void;
|
|
131
|
-
setServicePlans(plans: readonly ResultServicePlan[]): void;
|
|
132
|
-
setTotalFileCount(count: number): void;
|
|
133
|
-
setupOperationFinished(operation: Readonly<RunEventSetupOperation> | null): void;
|
|
134
|
-
taskFinished(task: Readonly<ReporterTask>, outcome: Readonly<RunEventTaskOutcome>): void;
|
|
135
|
-
taskStarted(task: Readonly<ReporterTask>, targetConfig: Readonly<Pick<ReadyServiceConfig, "name">>): void;
|
|
136
|
-
toolchainResolved(config: Readonly<ToolchainReportConfig>, resolvedToolchain: Readonly<ResolvedNodeToolchain>): void;
|
|
137
|
-
warning(message: string): void;
|
|
138
|
-
writeDebugLine(line?: string): void;
|
|
139
|
-
}
|
|
140
|
-
export interface RunReporterFromListenerOptions {
|
|
141
|
-
debug?: boolean;
|
|
142
|
-
}
|
|
143
|
-
export declare function createRunReporterFromListener(listener: RunEventListener, { debug }?: Readonly<RunReporterFromListenerOptions>): RunListenerReporter;
|
|
144
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { type CommittedRunFinalization } from "../../evidence/finalization.js";
|
|
2
|
-
import { writeRunArtifact, type NormalizedArtifactArchiveConfig, type ReportedRunArtifact, type ReportingEnvironmentService, type ReportingExecution, type ReportingMetadata, type ReportingOperationTimingInput, type ReportingRecord, type ReportingServiceLogReference, type ReportingSetupLogReference, type ReportingSetupOperation, type ReportingSuiteSelector, type RunServiceResult } from "../../evidence/index.js";
|
|
3
|
-
interface RunSelection {
|
|
4
|
-
fileNames: readonly string[];
|
|
5
|
-
planning?: null | ReportingRecord;
|
|
6
|
-
serviceFilter: null | string;
|
|
7
|
-
suiteSelectors: readonly ReportingSuiteSelector[];
|
|
8
|
-
typeValues: readonly string[];
|
|
9
|
-
}
|
|
10
|
-
interface RunEnvironmentRecord {
|
|
11
|
-
listServices(): readonly ReportingEnvironmentService[];
|
|
12
|
-
}
|
|
13
|
-
interface RunLogRegistry {
|
|
14
|
-
listServiceLogs(): readonly ReportingServiceLogReference[];
|
|
15
|
-
listSetupLogs(): readonly ReportingSetupLogReference[];
|
|
16
|
-
}
|
|
17
|
-
interface SetupOperationRegistry {
|
|
18
|
-
listOperations(): readonly ReportingSetupOperation[];
|
|
19
|
-
}
|
|
20
|
-
interface OperationTimingRegistry {
|
|
21
|
-
listOperations(): readonly ReportingOperationTimingInput[];
|
|
22
|
-
}
|
|
23
|
-
export interface RunFinalizationReporter<Result extends RunServiceResult = RunServiceResult> {
|
|
24
|
-
runSummary?(results: readonly Result[], durationMs: number, runStatus: CommittedRunFinalization["artifactStatus"]): void;
|
|
25
|
-
}
|
|
26
|
-
export interface FinalizeRunArtifactsOptions<Result extends RunServiceResult = RunServiceResult> {
|
|
27
|
-
archiveConfig?: NormalizedArtifactArchiveConfig | null;
|
|
28
|
-
declaredEnvironmentKeys?: readonly string[];
|
|
29
|
-
environmentRecord: RunEnvironmentRecord;
|
|
30
|
-
execution: ReportingExecution;
|
|
31
|
-
finishedAt: number;
|
|
32
|
-
logRegistry: RunLogRegistry;
|
|
33
|
-
metadata: ReportingMetadata;
|
|
34
|
-
operationTimingRegistry?: OperationTimingRegistry | null;
|
|
35
|
-
productDir: string;
|
|
36
|
-
reporter: RunFinalizationReporter<Result> | null;
|
|
37
|
-
results: readonly Result[];
|
|
38
|
-
runId: null | string;
|
|
39
|
-
runInterruptReason?: null | string;
|
|
40
|
-
runStatus?: null | string;
|
|
41
|
-
runtimeInstanceCount: number;
|
|
42
|
-
runtimeStats: readonly unknown[];
|
|
43
|
-
selection: RunSelection;
|
|
44
|
-
setupRegistry: SetupOperationRegistry;
|
|
45
|
-
startedAt: number;
|
|
46
|
-
workerCount: number;
|
|
47
|
-
publishRunFinalization?: PublishRunFinalization;
|
|
48
|
-
}
|
|
49
|
-
export interface FinalizedRunArtifacts {
|
|
50
|
-
runArtifact: ReturnType<typeof writeRunArtifact<ReportedRunArtifact>>;
|
|
51
|
-
shouldFailArchiveCleanup: boolean;
|
|
52
|
-
shouldFailArchivePublication: boolean;
|
|
53
|
-
}
|
|
54
|
-
export type PublishRunFinalization = (artifactStatus: "failed" | "passed", publish: (finalization: Readonly<CommittedRunFinalization>) => FinalizedRunArtifacts) => Promise<FinalizedRunArtifacts>;
|
|
55
|
-
export declare function finalizeRunArtifacts<Result extends RunServiceResult = RunServiceResult>({ productDir, runId, results, startedAt, finishedAt, execution, workerCount, runtimeInstanceCount, runtimeStats, selection, archiveConfig, declaredEnvironmentKeys, metadata, environmentRecord, logRegistry, setupRegistry, operationTimingRegistry, reporter, runInterruptReason, runStatus, publishRunFinalization, }: FinalizeRunArtifactsOptions<Result>): Promise<FinalizedRunArtifacts>;
|
|
56
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type PlanningServiceConfig } from "./planning.js";
|
|
2
|
-
import type { SuiteSelector } from "../../domain/suite-selection.js";
|
|
3
|
-
export declare function ensureRequestedFilesMatch(configs: readonly PlanningServiceConfig[], typeValues: readonly string[], suiteSelectors: readonly SuiteSelector[], requestedFiles?: readonly string[]): void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { NormalizedFailureDetail } from "./failure-details.js";
|
|
2
|
-
import type { ProvisionedRun, RuntimeGraphIdentity } from "../../environment/run-environment.js";
|
|
3
|
-
interface RuntimeFailureTask {
|
|
4
|
-
graphKey: string;
|
|
5
|
-
targetName?: string;
|
|
6
|
-
}
|
|
7
|
-
export type RuntimeManagerFailureGraph = RuntimeGraphIdentity;
|
|
8
|
-
export interface BlockedRuntimeTask<Task extends RuntimeFailureTask> {
|
|
9
|
-
blockedByRuntime: true;
|
|
10
|
-
failureDetails: NormalizedFailureDetail[];
|
|
11
|
-
graph: RuntimeManagerFailureGraph;
|
|
12
|
-
infraFailed: true;
|
|
13
|
-
message: string;
|
|
14
|
-
reason: string;
|
|
15
|
-
task: Task;
|
|
16
|
-
}
|
|
17
|
-
export declare function drainRuntimeFailedTasks<Task extends RuntimeFailureTask>(queue: Task[], runtimeManager: Pick<ProvisionedRun, "getGraphFailure" | "getGraph">): BlockedRuntimeTask<Task>[];
|
|
18
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReadyServiceConfig } from "../../environment/runtime-service.js";
|
|
2
|
-
import type { ArtifactTask, PersistedArtifactReference, ReportingFailureDetail, ReportingRecord } from "../../evidence/index.js";
|
|
3
|
-
import type { TestOutcomeStatus } from "../../domain/test-outcomes.js";
|
|
4
|
-
export interface RuntimeTask extends ArtifactTask {
|
|
5
|
-
file: string;
|
|
6
|
-
}
|
|
7
|
-
export interface RuntimeTaskReporter<Task extends RuntimeTask = RuntimeTask> {
|
|
8
|
-
taskStarted?(task: Readonly<Task>, targetConfig: Readonly<Pick<ReadyServiceConfig, "name">>): unknown;
|
|
9
|
-
}
|
|
10
|
-
export interface CompletedRuntimeTaskResult<FailureDetail = ReportingFailureDetail, CheckDetail = ReportingRecord> {
|
|
11
|
-
artifacts: PersistedArtifactReference[];
|
|
12
|
-
checkDetails: CheckDetail[];
|
|
13
|
-
durationMs: number;
|
|
14
|
-
error: null | string;
|
|
15
|
-
failureDetails: FailureDetail[];
|
|
16
|
-
finishedAt: number;
|
|
17
|
-
startedAt: number;
|
|
18
|
-
status: TestOutcomeStatus;
|
|
19
|
-
task: RuntimeTask;
|
|
20
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { EngineId, PublicTestType, RunnerProfileId } from "../../../domain/identifiers.js";
|
|
2
|
-
import type { Timings } from "../../../evidence/index.js";
|
|
3
|
-
export declare const DEFAULT_ESTIMATE_SOURCE = "default";
|
|
4
|
-
export type TaskEstimateSource = "default" | "timings";
|
|
5
|
-
export type TaskEstimateConfidence = "high" | "low" | "medium";
|
|
6
|
-
export interface TaskEstimate {
|
|
7
|
-
confidence: TaskEstimateConfidence;
|
|
8
|
-
durationMs: number;
|
|
9
|
-
key: null | string;
|
|
10
|
-
runs: number;
|
|
11
|
-
source: TaskEstimateSource;
|
|
12
|
-
}
|
|
13
|
-
export interface EstimatedTaskInput {
|
|
14
|
-
engineId: EngineId;
|
|
15
|
-
profileId: RunnerProfileId;
|
|
16
|
-
testType: PublicTestType;
|
|
17
|
-
timingKey?: null | string;
|
|
18
|
-
}
|
|
19
|
-
export interface EstimateSuiteInput {
|
|
20
|
-
engineId: EngineId;
|
|
21
|
-
files?: readonly string[];
|
|
22
|
-
profileId: RunnerProfileId;
|
|
23
|
-
testType: PublicTestType;
|
|
24
|
-
weight?: number;
|
|
25
|
-
}
|
|
26
|
-
export type SchedulerTimings = Timings;
|
|
27
|
-
export interface EstimateTaskOptions {
|
|
28
|
-
suite: EstimateSuiteInput;
|
|
29
|
-
task: EstimatedTaskInput;
|
|
30
|
-
timings?: null | SchedulerTimings;
|
|
31
|
-
}
|
|
32
|
-
export declare function estimateTask({ task, suite, timings }: EstimateTaskOptions): TaskEstimate;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { EngineId, PublicTestType, RunnerProfileId } from "../../../domain/identifiers.js";
|
|
2
|
-
export interface SchedulerTaskIdentityInput {
|
|
3
|
-
engineId: EngineId;
|
|
4
|
-
file: string;
|
|
5
|
-
profileId: RunnerProfileId;
|
|
6
|
-
serviceName: string;
|
|
7
|
-
testType: PublicTestType;
|
|
8
|
-
}
|
|
9
|
-
export declare function buildSchedulerTaskKey({ serviceName, testType, engineId, profileId, file, }: Readonly<SchedulerTaskIdentityInput>): string;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { type EstimateSuiteInput, type EstimatedTaskInput, type SchedulerTimings, type TaskEstimateConfidence, type TaskEstimateSource } from "./estimates.js";
|
|
2
|
-
import { type TypedSuiteSelector } from "../../../domain/suite-selection.js";
|
|
3
|
-
import type { ReportingRecord } from "../../../evidence/index.js";
|
|
4
|
-
import { type RuntimeIsolationFileMetadata, type RuntimeIsolationPolicy, type RuntimeIsolationResolutionSuite, type RuntimeIsolationResolverConfig, type RuntimeIsolationResolverTestkitConfig } from "../../../config/loader/index.js";
|
|
5
|
-
export declare const SCHEDULER_POLICY = "longest-estimated-duration-first";
|
|
6
|
-
export declare const SCHEDULER_VERSION = 2;
|
|
7
|
-
export interface SchedulerFileMetadata extends RuntimeIsolationFileMetadata {
|
|
8
|
-
locks?: readonly string[];
|
|
9
|
-
}
|
|
10
|
-
export interface SchedulerSuiteRequirement {
|
|
11
|
-
locks?: readonly string[];
|
|
12
|
-
selector: TypedSuiteSelector;
|
|
13
|
-
}
|
|
14
|
-
export interface SchedulerRequirements {
|
|
15
|
-
fileLocksByPath?: ReadonlyMap<string, readonly string[]>;
|
|
16
|
-
suites?: readonly SchedulerSuiteRequirement[];
|
|
17
|
-
}
|
|
18
|
-
export interface SchedulerServiceTestkitConfig extends RuntimeIsolationResolverTestkitConfig<RuntimeIsolationPolicy> {
|
|
19
|
-
fileMetadataByPath?: ReadonlyMap<string, SchedulerFileMetadata>;
|
|
20
|
-
requirements?: SchedulerRequirements;
|
|
21
|
-
}
|
|
22
|
-
export interface SchedulerServiceConfig extends RuntimeIsolationResolverConfig<RuntimeIsolationPolicy> {
|
|
23
|
-
name: string;
|
|
24
|
-
testkit: SchedulerServiceTestkitConfig;
|
|
25
|
-
}
|
|
26
|
-
export interface SchedulerSuiteInput extends EstimateSuiteInput, RuntimeIsolationResolutionSuite {
|
|
27
|
-
files: readonly string[];
|
|
28
|
-
name: string;
|
|
29
|
-
orderIndex: number;
|
|
30
|
-
}
|
|
31
|
-
export interface SchedulerServicePlanInput {
|
|
32
|
-
assignedGraphKey?: null | string;
|
|
33
|
-
config: SchedulerServiceConfig;
|
|
34
|
-
execution?: unknown;
|
|
35
|
-
runtimeConfigs?: readonly SchedulerServiceConfig[];
|
|
36
|
-
runtimeKey?: null | string;
|
|
37
|
-
runtimeNames?: readonly string[];
|
|
38
|
-
skipped?: boolean;
|
|
39
|
-
suites: readonly SchedulerSuiteInput[];
|
|
40
|
-
}
|
|
41
|
-
export interface SchedulerResourceReservation {
|
|
42
|
-
available: number;
|
|
43
|
-
capacity: number;
|
|
44
|
-
kind: string;
|
|
45
|
-
key: string;
|
|
46
|
-
perRuntime: number;
|
|
47
|
-
reserved: number;
|
|
48
|
-
resourceName: string;
|
|
49
|
-
scope: string;
|
|
50
|
-
services?: readonly string[];
|
|
51
|
-
}
|
|
52
|
-
export interface SchedulerRuntimeGraph {
|
|
53
|
-
key: string;
|
|
54
|
-
resourceReservations?: readonly SchedulerResourceReservation[];
|
|
55
|
-
}
|
|
56
|
-
export interface BuildScheduledQueueOptions {
|
|
57
|
-
timings?: null | SchedulerTimings;
|
|
58
|
-
}
|
|
59
|
-
export interface ScheduledTask extends EstimatedTaskInput {
|
|
60
|
-
estimateConfidence: TaskEstimateConfidence;
|
|
61
|
-
estimatedDurationMs: number;
|
|
62
|
-
estimateKey: null | string;
|
|
63
|
-
estimateRuns: number;
|
|
64
|
-
estimateSource: TaskEstimateSource;
|
|
65
|
-
file: string;
|
|
66
|
-
graphKey: string;
|
|
67
|
-
id: number;
|
|
68
|
-
locks: string[];
|
|
69
|
-
orderIndex: number;
|
|
70
|
-
resourceCost: number;
|
|
71
|
-
runtimeIsolation: RuntimeIsolationPolicy;
|
|
72
|
-
schedulerPolicy: typeof SCHEDULER_POLICY;
|
|
73
|
-
schedulerRank: number;
|
|
74
|
-
serviceName: string;
|
|
75
|
-
suiteKey: string;
|
|
76
|
-
suiteName: string;
|
|
77
|
-
targetName: string;
|
|
78
|
-
timingKey: string;
|
|
79
|
-
}
|
|
80
|
-
type RankedTaskInput = Omit<ScheduledTask, "schedulerPolicy" | "schedulerRank">;
|
|
81
|
-
export interface PlanningTaskMetadata {
|
|
82
|
-
engineId: ScheduledTask["engineId"];
|
|
83
|
-
estimateConfidence: TaskEstimateConfidence;
|
|
84
|
-
estimatedDurationMs: number;
|
|
85
|
-
estimateRuns: number;
|
|
86
|
-
estimateSource: TaskEstimateSource;
|
|
87
|
-
file: string;
|
|
88
|
-
graphKey: string;
|
|
89
|
-
id: number;
|
|
90
|
-
profileId: ScheduledTask["profileId"];
|
|
91
|
-
rank: null | number;
|
|
92
|
-
runtimeIsolation: RuntimeIsolationPolicy;
|
|
93
|
-
service: string;
|
|
94
|
-
suite: string;
|
|
95
|
-
timingKey: string;
|
|
96
|
-
testType: ScheduledTask["testType"];
|
|
97
|
-
}
|
|
98
|
-
export interface PlanningResourceBudgetGraph {
|
|
99
|
-
graphKey: string;
|
|
100
|
-
perRuntime: number;
|
|
101
|
-
services: readonly string[];
|
|
102
|
-
}
|
|
103
|
-
export interface PlanningResourceBudget {
|
|
104
|
-
available: number;
|
|
105
|
-
capacity: number;
|
|
106
|
-
graphs: PlanningResourceBudgetGraph[];
|
|
107
|
-
kind: string;
|
|
108
|
-
key: string;
|
|
109
|
-
reserved: number;
|
|
110
|
-
resourceName: string;
|
|
111
|
-
scope: string;
|
|
112
|
-
}
|
|
113
|
-
export interface RunPlanningMetadata extends ReportingRecord {
|
|
114
|
-
resourceBudgets: PlanningResourceBudget[];
|
|
115
|
-
scheduler: {
|
|
116
|
-
policy: typeof SCHEDULER_POLICY;
|
|
117
|
-
version: typeof SCHEDULER_VERSION;
|
|
118
|
-
};
|
|
119
|
-
tasks: PlanningTaskMetadata[];
|
|
120
|
-
}
|
|
121
|
-
export declare function buildScheduledQueue(servicePlans: readonly SchedulerServicePlanInput[], graphs: readonly SchedulerRuntimeGraph[], { timings }?: BuildScheduledQueueOptions): ScheduledTask[];
|
|
122
|
-
export declare function buildRunPlanningMetadata(queue: null | readonly ScheduledTask[] | undefined, graphs?: null | readonly SchedulerRuntimeGraph[]): RunPlanningMetadata;
|
|
123
|
-
export declare function compareScheduledTasks(a: RankedTaskInput, b: RankedTaskInput): number;
|
|
124
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { TestOutcomeStatus } from "../../../domain/test-outcomes.js";
|
|
2
|
-
import type { TimingUpdate } from "../../../evidence/index.js";
|
|
3
|
-
import type { ScheduledTask } from "./index.js";
|
|
4
|
-
export type TimingObservationTask = Pick<ScheduledTask, "estimateConfidence" | "estimatedDurationMs" | "estimateSource" | "timingKey">;
|
|
5
|
-
export interface TimingObservation extends TimingUpdate {
|
|
6
|
-
estimate: {
|
|
7
|
-
confidence: ScheduledTask["estimateConfidence"];
|
|
8
|
-
durationMs: number;
|
|
9
|
-
source: ScheduledTask["estimateSource"];
|
|
10
|
-
};
|
|
11
|
-
finishedAt: null | number;
|
|
12
|
-
startedAt: null | number;
|
|
13
|
-
status: TestOutcomeStatus;
|
|
14
|
-
}
|
|
15
|
-
export declare function buildTimingObservation(task: Readonly<TimingObservationTask>, outcome: Readonly<{
|
|
16
|
-
durationMs?: number;
|
|
17
|
-
finishedAt?: number;
|
|
18
|
-
startedAt?: number;
|
|
19
|
-
status: TestOutcomeStatus;
|
|
20
|
-
}>): TimingObservation | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SuiteSelector } from "../../domain/suite-selection.js";
|
|
2
|
-
export interface SelectionSuite {
|
|
3
|
-
files: readonly string[];
|
|
4
|
-
}
|
|
5
|
-
export interface SelectionSuiteCollectionOptions {
|
|
6
|
-
ignoreSkipRules: true;
|
|
7
|
-
}
|
|
8
|
-
export type SelectionSuiteCollector<Config> = (config: Config, typeValues: readonly string[], suiteSelectors: readonly SuiteSelector[], fileNames: readonly string[], options: SelectionSuiteCollectionOptions) => readonly SelectionSuite[];
|
|
9
|
-
export declare function findUnmatchedRequestedFiles<Config>(configs: readonly Config[], typeValues: readonly string[], suiteSelectors: readonly SuiteSelector[], fileNames: readonly string[], collectSuites: SelectionSuiteCollector<Config>, normalizePathSeparators: (filePath: string) => string): string[];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { RuntimeNodeSetupCleanupOwner } from "./runtime-node-setup-protocol.js";
|
|
2
|
-
export type RuntimeNodeSetupFailureKind = "cancelled" | "deadline" | "infra" | "product";
|
|
3
|
-
export interface RuntimeNodeSetupCleanupFailure {
|
|
4
|
-
readonly error: Error;
|
|
5
|
-
readonly owner: RuntimeNodeSetupCleanupOwner;
|
|
6
|
-
}
|
|
7
|
-
export declare function createSetupFailure(kind: RuntimeNodeSetupFailureKind, message: string, cause?: unknown): Error;
|
|
8
|
-
export declare function withSetupCleanupFailures(error: Error, cleanupFailures: readonly RuntimeNodeSetupCleanupFailure[]): Error;
|
|
9
|
-
export declare function createSetupCleanupError(cleanupFailures: readonly RuntimeNodeSetupCleanupFailure[]): Error;
|
|
10
|
-
export declare function createSetupCleanupTimeoutError(timeoutMs: number, owner: RuntimeNodeSetupCleanupOwner): Error;
|
|
11
|
-
export declare function createUnacknowledgedSetupCleanupError(abortAcknowledged: boolean): Error;
|
|
12
|
-
export declare function classifyRuntimeNodeSetupFailure(error: unknown): RuntimeNodeSetupFailureKind;
|
|
13
|
-
export declare function getRuntimeNodeSetupCleanupFailures(error: unknown): readonly RuntimeNodeSetupCleanupFailure[];
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import type { EngineJsonValue } from "../../../engines/api/index.js";
|
|
2
|
-
import type { RuntimeNodeSetupFailureKind } from "./runtime-node-setup-errors.js";
|
|
3
|
-
export declare const MAX_RUNTIME_NODE_SETUP_DATA_BYTES: number;
|
|
4
|
-
export declare const MAX_RUNTIME_NODE_SETUP_SIDECARS = 16;
|
|
5
|
-
export type RuntimeNodeSetupCleanupOwner = "consumer" | "testkit";
|
|
6
|
-
export interface RuntimeNodeSetupSerializedError {
|
|
7
|
-
message: string;
|
|
8
|
-
name: string;
|
|
9
|
-
stack?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface RuntimeNodeSetupSerializedCleanupFailure {
|
|
12
|
-
error: RuntimeNodeSetupSerializedError;
|
|
13
|
-
owner: RuntimeNodeSetupCleanupOwner;
|
|
14
|
-
}
|
|
15
|
-
export interface RuntimeNodeSetupCleanupFailureInput {
|
|
16
|
-
error: unknown;
|
|
17
|
-
owner: RuntimeNodeSetupCleanupOwner;
|
|
18
|
-
}
|
|
19
|
-
export interface RuntimeNodeSetupWorkerRequest {
|
|
20
|
-
deadlineMs: number;
|
|
21
|
-
leaseDir: null | string;
|
|
22
|
-
modulePath: string;
|
|
23
|
-
moduleRelativePath: string;
|
|
24
|
-
productDir: string;
|
|
25
|
-
runtimeEnv: Readonly<Record<string, string>>;
|
|
26
|
-
serviceName: string;
|
|
27
|
-
sessionId: string;
|
|
28
|
-
testFile: string;
|
|
29
|
-
}
|
|
30
|
-
export type RuntimeNodeSetupParentMessage = {
|
|
31
|
-
error: RuntimeNodeSetupSerializedError;
|
|
32
|
-
sessionId: string;
|
|
33
|
-
kind: RuntimeNodeSetupFailureKind;
|
|
34
|
-
type: "abort";
|
|
35
|
-
} | {
|
|
36
|
-
sessionId: string;
|
|
37
|
-
type: "cleanup";
|
|
38
|
-
};
|
|
39
|
-
export type RuntimeNodeSetupWorkerMessage = {
|
|
40
|
-
sessionId: string;
|
|
41
|
-
type: "abort-acknowledged";
|
|
42
|
-
} | {
|
|
43
|
-
cleanupFailures: readonly RuntimeNodeSetupSerializedCleanupFailure[];
|
|
44
|
-
sessionId: string;
|
|
45
|
-
type: "aborted";
|
|
46
|
-
} | {
|
|
47
|
-
owners: readonly RuntimeNodeSetupCleanupOwner[];
|
|
48
|
-
sessionId: string;
|
|
49
|
-
type: "cleanup-started";
|
|
50
|
-
} | {
|
|
51
|
-
owner: RuntimeNodeSetupCleanupOwner;
|
|
52
|
-
remainingCallbacks: number;
|
|
53
|
-
sessionId: string;
|
|
54
|
-
type: "cleanup-progress";
|
|
55
|
-
} | {
|
|
56
|
-
cleanupFailures: readonly RuntimeNodeSetupSerializedCleanupFailure[];
|
|
57
|
-
sessionId: string;
|
|
58
|
-
type: "cleanup-complete";
|
|
59
|
-
} | {
|
|
60
|
-
sessionId: string;
|
|
61
|
-
setupData: EngineJsonValue;
|
|
62
|
-
sidecars: readonly RuntimeNodeSetupWorkerSidecarHandle[];
|
|
63
|
-
type: "ready";
|
|
64
|
-
} | {
|
|
65
|
-
cleanupFailures: readonly RuntimeNodeSetupSerializedCleanupFailure[];
|
|
66
|
-
error: RuntimeNodeSetupSerializedError;
|
|
67
|
-
sessionId: string;
|
|
68
|
-
kind: RuntimeNodeSetupFailureKind;
|
|
69
|
-
type: "setup-error";
|
|
70
|
-
};
|
|
71
|
-
export interface RuntimeNodeSetupWorkerSidecarHandle {
|
|
72
|
-
id: string;
|
|
73
|
-
requestsUrl: string;
|
|
74
|
-
resetUrl: string;
|
|
75
|
-
type: "http-capture";
|
|
76
|
-
url: string;
|
|
77
|
-
}
|
|
78
|
-
export declare function isRuntimeNodeSetupWorkerRequest(value: unknown): value is RuntimeNodeSetupWorkerRequest;
|
|
79
|
-
export declare function isRuntimeNodeSetupParentMessage(value: unknown): value is RuntimeNodeSetupParentMessage;
|
|
80
|
-
export declare function readRuntimeNodeSetupWorkerMessage(value: unknown): RuntimeNodeSetupWorkerMessage | null;
|
|
81
|
-
export declare function serializeRuntimeNodeSetupError(error: unknown): RuntimeNodeSetupSerializedError;
|
|
82
|
-
export declare function serializeRuntimeNodeSetupCleanupFailures(failures: readonly RuntimeNodeSetupCleanupFailureInput[]): readonly RuntimeNodeSetupSerializedCleanupFailure[];
|
|
83
|
-
export declare function normalizeRuntimeNodeSetupData(input: unknown): EngineJsonValue;
|
|
84
|
-
export declare function normalizeRuntimeNodeSetupSidecarId(value: unknown): string;
|
|
85
|
-
export declare function normalizeRuntimeNodeSetupSidecarPath(value: unknown): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export { classifyRuntimeNodeSetupFailure, getRuntimeNodeSetupCleanupFailures, type RuntimeNodeSetupCleanupFailure, type RuntimeNodeSetupFailureKind, } from "./runtime-node-setup-errors.js";
|
|
2
|
-
import { type EngineRuntimeArtifactPayload } from "../../../engines/api/index.js";
|
|
3
|
-
import { type RuntimeNodeSetupWorkerSidecarHandle } from "./runtime-node-setup-protocol.js";
|
|
4
|
-
import type { ExecutionEnvironmentLease } from "../../../steps/index.js";
|
|
5
|
-
export declare const MAX_RUNTIME_NODE_SETUP_CLEANUP_TIMEOUT_MS = 60000;
|
|
6
|
-
export interface RuntimeNodeSetupTargetConfig {
|
|
7
|
-
name: string;
|
|
8
|
-
productDir: string;
|
|
9
|
-
}
|
|
10
|
-
export interface RuntimeNodeSetupTask {
|
|
11
|
-
file: string;
|
|
12
|
-
}
|
|
13
|
-
export interface RunRuntimeNodeSetupOptions {
|
|
14
|
-
cleanupTimeoutMs?: number;
|
|
15
|
-
deadlineMs: number;
|
|
16
|
-
lease?: ExecutionEnvironmentLease | null;
|
|
17
|
-
runtimeEnv?: Readonly<Record<string, string>>;
|
|
18
|
-
signal: AbortSignal;
|
|
19
|
-
targetConfig: RuntimeNodeSetupTargetConfig;
|
|
20
|
-
task: RuntimeNodeSetupTask;
|
|
21
|
-
}
|
|
22
|
-
export interface HttpCaptureSidecarOptions {
|
|
23
|
-
id?: string;
|
|
24
|
-
maxBodyBytes?: number;
|
|
25
|
-
maxRequests?: number;
|
|
26
|
-
path?: string;
|
|
27
|
-
status?: number;
|
|
28
|
-
}
|
|
29
|
-
export interface RuntimeNodeSetupSidecars {
|
|
30
|
-
httpCapture(options?: Readonly<HttpCaptureSidecarOptions>): Promise<RuntimeNodeSetupWorkerSidecarHandle>;
|
|
31
|
-
}
|
|
32
|
-
export interface RuntimeNodeSetupContext {
|
|
33
|
-
deadlineMs: number;
|
|
34
|
-
env: Record<string, string>;
|
|
35
|
-
leaseDir: string | null;
|
|
36
|
-
productDir: string;
|
|
37
|
-
serviceName: string;
|
|
38
|
-
sidecars: RuntimeNodeSetupSidecars;
|
|
39
|
-
signal: AbortSignal;
|
|
40
|
-
testFile: string;
|
|
41
|
-
}
|
|
42
|
-
export interface RuntimeNodeSetupResult {
|
|
43
|
-
artifacts: EngineRuntimeArtifactPayload[];
|
|
44
|
-
cleanup: () => Promise<void>;
|
|
45
|
-
setupData: unknown;
|
|
46
|
-
}
|
|
47
|
-
export declare function runRuntimeNodeSetup({ cleanupTimeoutMs, deadlineMs, targetConfig, task, signal, lease, runtimeEnv, }: Readonly<RunRuntimeNodeSetupOptions>): Promise<RuntimeNodeSetupResult>;
|
|
48
|
-
export declare function findRuntimeNodeSetupFile(productDir: string, testFile: string): null | string;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ScheduledTask } from "./scheduler/index.js";
|
|
2
|
-
export declare const DEFAULT_COMPATIBLE_BATCH_MAX_FILES = 25;
|
|
3
|
-
export type BatchableTask = Pick<ScheduledTask, "engineId" | "file" | "graphKey" | "id" | "locks" | "profileId" | "resourceCost" | "runtimeIsolation" | "serviceName" | "suiteKey" | "suiteName" | "targetName" | "testType">;
|
|
4
|
-
export type TaskBatch<Task extends BatchableTask> = Task & {
|
|
5
|
-
batchFiles: string[];
|
|
6
|
-
batchId: string;
|
|
7
|
-
batchTasks: [Task, Task, ...Task[]];
|
|
8
|
-
};
|
|
9
|
-
export interface ClaimCompatibleTaskBatchOptions {
|
|
10
|
-
maxFiles?: number;
|
|
11
|
-
}
|
|
12
|
-
interface TaskOutcomeCollection<Outcome> {
|
|
13
|
-
outcomes: readonly Outcome[];
|
|
14
|
-
}
|
|
15
|
-
export declare function claimCompatibleTaskBatch<Task extends BatchableTask>(queue: Task[], anchorTask: Task, options?: Readonly<ClaimCompatibleTaskBatchOptions>): Task[];
|
|
16
|
-
export declare function buildTaskBatch<Task extends BatchableTask>(tasks: readonly Task[]): Task | TaskBatch<Task> | null;
|
|
17
|
-
export declare function expandTaskResultOutcomes<Outcome extends {
|
|
18
|
-
status: string;
|
|
19
|
-
outcomes?: never;
|
|
20
|
-
}>(result: null | Outcome | TaskOutcomeCollection<Outcome> | undefined): Outcome[];
|
|
21
|
-
export declare function isBatchableEngineTask(task: Readonly<BatchableTask>): boolean;
|
|
22
|
-
export declare function isCompatibleEngineBatchTask(anchor: Readonly<BatchableTask>, candidate: Readonly<BatchableTask>): boolean;
|
|
23
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { EnvironmentLease } from "./environment.js";
|
|
2
|
-
export interface TaskLease extends EnvironmentLease {
|
|
3
|
-
readonly engineCacheDirectory: string;
|
|
4
|
-
readonly engineWorkspaceDirectory: string;
|
|
5
|
-
}
|
|
6
|
-
export interface TaskLeases {
|
|
7
|
-
allocate(task: Readonly<{
|
|
8
|
-
id: number;
|
|
9
|
-
}>): TaskLease;
|
|
10
|
-
close(): void;
|
|
11
|
-
create(lease: Readonly<TaskLease>): void;
|
|
12
|
-
remove(lease: Readonly<TaskLease>): void;
|
|
13
|
-
}
|
|
14
|
-
export declare function taskExecutionRoot(productDir: string): string;
|
|
15
|
-
export declare function createTaskLeases(productDir: string): TaskLeases;
|