@fabricorg/databricks-testkit 0.7.1 → 0.7.2
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 +2 -2
- package/dist/{chunk-SCVVMUAF.js → chunk-MV752EAZ.js} +144 -10
- package/dist/chunk-MV752EAZ.js.map +1 -0
- package/dist/index.cjs +168 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -7
- package/dist/index.d.ts +18 -7
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/parity.cjs +124 -7
- package/dist/parity.cjs.map +1 -1
- package/dist/parity.js +1 -1
- package/dist/{workspace-context-VLBKMX3V.js → workspace-context-PCQAQSCO.js} +3 -3
- package/dist/{workspace-context-VLBKMX3V.js.map → workspace-context-PCQAQSCO.js.map} +1 -1
- package/package.json +1 -2
- package/dist/chunk-SCVVMUAF.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { T as TableFixture } from './fixtures-CAWhzIHu.cjs';
|
|
2
2
|
export { F as FixtureColumn, p as parseFixtureColumns, r as resolveFixtureRows } from './fixtures-CAWhzIHu.cjs';
|
|
3
|
-
import { DatabricksRestClient } from '@fabric-harness/databricks';
|
|
4
|
-
export { waitForDatabricksRun, waitForDatabricksStatement } from '@fabric-harness/databricks';
|
|
5
3
|
import { LakebasePoolFactory, LakebaseDatabaseProvider } from '@fabricorg/experiments-db-pool';
|
|
6
4
|
|
|
7
5
|
type TestProfile = 'local' | 'live';
|
|
@@ -67,16 +65,29 @@ declare function createDuckDbContext(options?: DuckDbContextOptions): Promise<Ex
|
|
|
67
65
|
*/
|
|
68
66
|
declare function normalizeRow(row: Record<string, unknown>): Record<string, unknown>;
|
|
69
67
|
|
|
70
|
-
/**
|
|
68
|
+
/** Minimal request boundary used by the live Databricks certification suite. */
|
|
71
69
|
interface WorkspaceClientLike {
|
|
72
70
|
get<T>(path: string, query?: Record<string, string | number | boolean | undefined>): Promise<T>;
|
|
73
|
-
post<T>(path: string, body?: unknown, query?: Record<string, string | number | boolean | undefined>, options?:
|
|
71
|
+
post<T>(path: string, body?: unknown, query?: Record<string, string | number | boolean | undefined>, options?: WorkspaceRequestOptions): Promise<T>;
|
|
72
|
+
}
|
|
73
|
+
interface WorkspaceRequestOptions {
|
|
74
|
+
retry?: 'safe' | 'always' | 'never';
|
|
75
|
+
idempotencyKey?: string;
|
|
76
|
+
maxRetries?: number;
|
|
74
77
|
}
|
|
78
|
+
interface WorkspaceWaitOptions {
|
|
79
|
+
pollIntervalMs?: number;
|
|
80
|
+
timeoutMs?: number;
|
|
81
|
+
signal?: AbortSignal;
|
|
82
|
+
}
|
|
83
|
+
declare function waitForDatabricksRun(client: WorkspaceClientLike, runId: number, options?: WorkspaceWaitOptions): Promise<Record<string, unknown>>;
|
|
84
|
+
declare function waitForDatabricksStatement(client: WorkspaceClientLike, statementId: string, options?: WorkspaceWaitOptions): Promise<Record<string, unknown>>;
|
|
85
|
+
|
|
75
86
|
interface WorkspaceContextOptions {
|
|
76
87
|
env?: Record<string, string | undefined>;
|
|
77
88
|
/** Schema within the catalog used by qual(); defaults to DBX_TEST_SCHEMA. */
|
|
78
89
|
schema?: string;
|
|
79
|
-
/** Injectable client for hermetic tests; defaults to
|
|
90
|
+
/** Injectable client for hermetic tests; defaults to the testkit workspace client. */
|
|
80
91
|
client?: WorkspaceClientLike;
|
|
81
92
|
/** Injectable fetch for the OAuth M2M exchange. */
|
|
82
93
|
fetchImpl?: typeof fetch;
|
|
@@ -134,7 +145,7 @@ declare function parseStatementRows(response: StatementResponse): Record<string,
|
|
|
134
145
|
* explicit env/file OIDC federation → DATABRICKS_CLIENT_ID/SECRET (OAuth
|
|
135
146
|
* M2M) → DATABRICKS_TOKEN (legacy PAT).
|
|
136
147
|
*/
|
|
137
|
-
declare function createClientFromEnv(env: Record<string, string | undefined>, fetchImpl?: typeof fetch):
|
|
148
|
+
declare function createClientFromEnv(env: Record<string, string | undefined>, fetchImpl?: typeof fetch): WorkspaceClientLike;
|
|
138
149
|
declare function resolveTokenProvider(host: string, env: Record<string, string | undefined>, fetchImpl?: typeof fetch): string | (() => Promise<string>);
|
|
139
150
|
|
|
140
151
|
/**
|
|
@@ -719,4 +730,4 @@ declare function createAdvancedTargetPacks(): readonly TargetPack[];
|
|
|
719
730
|
declare function createBuiltinTargetPacks(): readonly TargetPack[];
|
|
720
731
|
declare const builtinTargetPacks: readonly TargetPack[];
|
|
721
732
|
|
|
722
|
-
export { type AppHealthCheckOptions, type AutoLoaderCheckOptions, type ConditionJobTask, type CreateContextOptions, type DashboardResource, DatabricksAdvancedWorkloadsAdapter, type DatabricksJobTask, DatabricksJobsAdapter, type DbtJobTask, type DefinedLiveSuite, type DefinedTargetPackRun, type DeltaColumnContract, type DuckDbConnectionLike, type DuckDbContextOptions, type EphemeralLakebaseBranch, type ExecutionContext, type ForEachJobTask, type GenieSpaceResource, type JobOrchestrationLiveSpec, type JobOrchestrationRun, type JobRepairOptions, type JobRepairRunState, type JobTaskBase, type JobTaskDependency, type JobTaskRunState, type JobWaitOptions, type JobsSubmitRequest, type LakebaseBranchOptions, type LakebaseCheckOptions, type LakebaseControlClient, type LiveCheck, type LiveCheckContext, type LiveCheckResult, type LiveCheckStatus, type LiveEvidence, type LiveSuiteRuntime, type LiveSuiteSpec, type MockDatabricksClient, type NotebookJobTask, type PipelineJobTask, type PipelineResource, type PollOptions, type PythonWheelJobTask, type RecordedCall, type RegionalDrCheckOptions, type RegisteredModelResource, type RunJobTask, type RunTargetPackOptions, type SecretRotationCheckOptions, type ServingEndpointResource, type SparkJarJobTask, type SparkPythonJobTask, type SparkSubmitJobTask, type SqlJobTask, TableFixture, type TargetPack, type TargetPackDoctorCheck, type TargetPackDoctorRequirement, type TargetPackDoctorResult, type TargetPackEvidenceMetadata, type TargetPackMaturity, type TargetPackRequirement, type TargetPackSpec, type TestProfile, type VectorSearchEndpointResource, type VectorSearchIndexResource, type VolumeIOCheckOptions, type WorkspaceClientLike, type WorkspaceContextOptions, advancedStreamingCdcCheck, aiBiDashboardCheck, appHealthCheck, assertDeltaContract, autoLoaderIngestionCheck, backupRestoreCheck, builtinTargetPacks, classicComputeCheck, compareToGolden, createAdvancedStreamingTargetPack, createAdvancedTargetPacks, createAiBiGenieTargetPack, createAppsOperationalFoundationPack, createBuiltinTargetPacks, createClientFromEnv, createDuckDbContext, createEphemeralLakebaseBranch, createExecutionContext, createFeatureEngineeringTargetPack, createFederationSharingTargetPack, createFoundationTargetPacks, createJobsCodeFoundationPack, createLakebaseTestProvider, createLakeflowFoundationPack, createLakeflowJobsTargetPack, createMlflowLifecycleTargetPack, createMockDatabricksClient, createModelServingTargetPack, createSecurityCostDrTargetPack, createSqlDeltaFoundationPack, createTargetPackRegistry, createUnityStorageFoundationPack, createVectorRagAgentsTargetPack, createWorkspaceContext, customLiveCheck, dbtBuildCheck, defineLiveSuite, defineTargetPack, defineTargetPackRun, deleteEphemeralLakebaseBranch, deleteVolumeFile, deltaContractCheck, doctorTargetPack, ensureVolumeDirectory, evalJudgeModelServingCheck, expectQueryToMatchGolden, expectTable, failureRecoveryCheck, featureEngineeringServingCheck, federationSharingCleanRoomsCheck, foundationTargetPacks, genieCheck, jobRunCheck, jobsCertificationCheck, jobsOrchestrationCheck, lakebaseCredentialCheck, lakebaseRoundTripCheck, lakeflowConnectCheck, mlflowLifecycleCheck, modelServingCheck, normalizeJobRun, normalizeRow, normalizeVolumeRoot, notebookSubmitCheck, parseJobOrchestrationLiveSpec, parseStatementRows, performanceBudgetCheck, pipelineRefreshCheck, ragAgentCheck, regionalDrCheck, renderJUnit, resolveLakebaseProject, resolveProfile, resolveTokenProvider, restrictedPrincipalCheck, rollbackCheck, runLiveSuite, runTargetPack, secretRotationCheck, secretScopeCheck, securityPostureCostCheck, serverlessComputeCheck, sqlRoundTripCheck, toLakebaseBranchId, toNamedParameters, unityCatalogAccessCheck, uploadVolumeFile, validateJobGraph, vectorSearchCheck, volumeIOCheck, waitForPipelineUpdate };
|
|
733
|
+
export { type AppHealthCheckOptions, type AutoLoaderCheckOptions, type ConditionJobTask, type CreateContextOptions, type DashboardResource, DatabricksAdvancedWorkloadsAdapter, type DatabricksJobTask, DatabricksJobsAdapter, type DbtJobTask, type DefinedLiveSuite, type DefinedTargetPackRun, type DeltaColumnContract, type DuckDbConnectionLike, type DuckDbContextOptions, type EphemeralLakebaseBranch, type ExecutionContext, type ForEachJobTask, type GenieSpaceResource, type JobOrchestrationLiveSpec, type JobOrchestrationRun, type JobRepairOptions, type JobRepairRunState, type JobTaskBase, type JobTaskDependency, type JobTaskRunState, type JobWaitOptions, type JobsSubmitRequest, type LakebaseBranchOptions, type LakebaseCheckOptions, type LakebaseControlClient, type LiveCheck, type LiveCheckContext, type LiveCheckResult, type LiveCheckStatus, type LiveEvidence, type LiveSuiteRuntime, type LiveSuiteSpec, type MockDatabricksClient, type NotebookJobTask, type PipelineJobTask, type PipelineResource, type PollOptions, type PythonWheelJobTask, type RecordedCall, type RegionalDrCheckOptions, type RegisteredModelResource, type RunJobTask, type RunTargetPackOptions, type SecretRotationCheckOptions, type ServingEndpointResource, type SparkJarJobTask, type SparkPythonJobTask, type SparkSubmitJobTask, type SqlJobTask, TableFixture, type TargetPack, type TargetPackDoctorCheck, type TargetPackDoctorRequirement, type TargetPackDoctorResult, type TargetPackEvidenceMetadata, type TargetPackMaturity, type TargetPackRequirement, type TargetPackSpec, type TestProfile, type VectorSearchEndpointResource, type VectorSearchIndexResource, type VolumeIOCheckOptions, type WorkspaceClientLike, type WorkspaceContextOptions, type WorkspaceWaitOptions, advancedStreamingCdcCheck, aiBiDashboardCheck, appHealthCheck, assertDeltaContract, autoLoaderIngestionCheck, backupRestoreCheck, builtinTargetPacks, classicComputeCheck, compareToGolden, createAdvancedStreamingTargetPack, createAdvancedTargetPacks, createAiBiGenieTargetPack, createAppsOperationalFoundationPack, createBuiltinTargetPacks, createClientFromEnv, createDuckDbContext, createEphemeralLakebaseBranch, createExecutionContext, createFeatureEngineeringTargetPack, createFederationSharingTargetPack, createFoundationTargetPacks, createJobsCodeFoundationPack, createLakebaseTestProvider, createLakeflowFoundationPack, createLakeflowJobsTargetPack, createMlflowLifecycleTargetPack, createMockDatabricksClient, createModelServingTargetPack, createSecurityCostDrTargetPack, createSqlDeltaFoundationPack, createTargetPackRegistry, createUnityStorageFoundationPack, createVectorRagAgentsTargetPack, createWorkspaceContext, customLiveCheck, dbtBuildCheck, defineLiveSuite, defineTargetPack, defineTargetPackRun, deleteEphemeralLakebaseBranch, deleteVolumeFile, deltaContractCheck, doctorTargetPack, ensureVolumeDirectory, evalJudgeModelServingCheck, expectQueryToMatchGolden, expectTable, failureRecoveryCheck, featureEngineeringServingCheck, federationSharingCleanRoomsCheck, foundationTargetPacks, genieCheck, jobRunCheck, jobsCertificationCheck, jobsOrchestrationCheck, lakebaseCredentialCheck, lakebaseRoundTripCheck, lakeflowConnectCheck, mlflowLifecycleCheck, modelServingCheck, normalizeJobRun, normalizeRow, normalizeVolumeRoot, notebookSubmitCheck, parseJobOrchestrationLiveSpec, parseStatementRows, performanceBudgetCheck, pipelineRefreshCheck, ragAgentCheck, regionalDrCheck, renderJUnit, resolveLakebaseProject, resolveProfile, resolveTokenProvider, restrictedPrincipalCheck, rollbackCheck, runLiveSuite, runTargetPack, secretRotationCheck, secretScopeCheck, securityPostureCostCheck, serverlessComputeCheck, sqlRoundTripCheck, toLakebaseBranchId, toNamedParameters, unityCatalogAccessCheck, uploadVolumeFile, validateJobGraph, vectorSearchCheck, volumeIOCheck, waitForDatabricksRun, waitForDatabricksStatement, waitForPipelineUpdate };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { T as TableFixture } from './fixtures-CAWhzIHu.js';
|
|
2
2
|
export { F as FixtureColumn, p as parseFixtureColumns, r as resolveFixtureRows } from './fixtures-CAWhzIHu.js';
|
|
3
|
-
import { DatabricksRestClient } from '@fabric-harness/databricks';
|
|
4
|
-
export { waitForDatabricksRun, waitForDatabricksStatement } from '@fabric-harness/databricks';
|
|
5
3
|
import { LakebasePoolFactory, LakebaseDatabaseProvider } from '@fabricorg/experiments-db-pool';
|
|
6
4
|
|
|
7
5
|
type TestProfile = 'local' | 'live';
|
|
@@ -67,16 +65,29 @@ declare function createDuckDbContext(options?: DuckDbContextOptions): Promise<Ex
|
|
|
67
65
|
*/
|
|
68
66
|
declare function normalizeRow(row: Record<string, unknown>): Record<string, unknown>;
|
|
69
67
|
|
|
70
|
-
/**
|
|
68
|
+
/** Minimal request boundary used by the live Databricks certification suite. */
|
|
71
69
|
interface WorkspaceClientLike {
|
|
72
70
|
get<T>(path: string, query?: Record<string, string | number | boolean | undefined>): Promise<T>;
|
|
73
|
-
post<T>(path: string, body?: unknown, query?: Record<string, string | number | boolean | undefined>, options?:
|
|
71
|
+
post<T>(path: string, body?: unknown, query?: Record<string, string | number | boolean | undefined>, options?: WorkspaceRequestOptions): Promise<T>;
|
|
72
|
+
}
|
|
73
|
+
interface WorkspaceRequestOptions {
|
|
74
|
+
retry?: 'safe' | 'always' | 'never';
|
|
75
|
+
idempotencyKey?: string;
|
|
76
|
+
maxRetries?: number;
|
|
74
77
|
}
|
|
78
|
+
interface WorkspaceWaitOptions {
|
|
79
|
+
pollIntervalMs?: number;
|
|
80
|
+
timeoutMs?: number;
|
|
81
|
+
signal?: AbortSignal;
|
|
82
|
+
}
|
|
83
|
+
declare function waitForDatabricksRun(client: WorkspaceClientLike, runId: number, options?: WorkspaceWaitOptions): Promise<Record<string, unknown>>;
|
|
84
|
+
declare function waitForDatabricksStatement(client: WorkspaceClientLike, statementId: string, options?: WorkspaceWaitOptions): Promise<Record<string, unknown>>;
|
|
85
|
+
|
|
75
86
|
interface WorkspaceContextOptions {
|
|
76
87
|
env?: Record<string, string | undefined>;
|
|
77
88
|
/** Schema within the catalog used by qual(); defaults to DBX_TEST_SCHEMA. */
|
|
78
89
|
schema?: string;
|
|
79
|
-
/** Injectable client for hermetic tests; defaults to
|
|
90
|
+
/** Injectable client for hermetic tests; defaults to the testkit workspace client. */
|
|
80
91
|
client?: WorkspaceClientLike;
|
|
81
92
|
/** Injectable fetch for the OAuth M2M exchange. */
|
|
82
93
|
fetchImpl?: typeof fetch;
|
|
@@ -134,7 +145,7 @@ declare function parseStatementRows(response: StatementResponse): Record<string,
|
|
|
134
145
|
* explicit env/file OIDC federation → DATABRICKS_CLIENT_ID/SECRET (OAuth
|
|
135
146
|
* M2M) → DATABRICKS_TOKEN (legacy PAT).
|
|
136
147
|
*/
|
|
137
|
-
declare function createClientFromEnv(env: Record<string, string | undefined>, fetchImpl?: typeof fetch):
|
|
148
|
+
declare function createClientFromEnv(env: Record<string, string | undefined>, fetchImpl?: typeof fetch): WorkspaceClientLike;
|
|
138
149
|
declare function resolveTokenProvider(host: string, env: Record<string, string | undefined>, fetchImpl?: typeof fetch): string | (() => Promise<string>);
|
|
139
150
|
|
|
140
151
|
/**
|
|
@@ -719,4 +730,4 @@ declare function createAdvancedTargetPacks(): readonly TargetPack[];
|
|
|
719
730
|
declare function createBuiltinTargetPacks(): readonly TargetPack[];
|
|
720
731
|
declare const builtinTargetPacks: readonly TargetPack[];
|
|
721
732
|
|
|
722
|
-
export { type AppHealthCheckOptions, type AutoLoaderCheckOptions, type ConditionJobTask, type CreateContextOptions, type DashboardResource, DatabricksAdvancedWorkloadsAdapter, type DatabricksJobTask, DatabricksJobsAdapter, type DbtJobTask, type DefinedLiveSuite, type DefinedTargetPackRun, type DeltaColumnContract, type DuckDbConnectionLike, type DuckDbContextOptions, type EphemeralLakebaseBranch, type ExecutionContext, type ForEachJobTask, type GenieSpaceResource, type JobOrchestrationLiveSpec, type JobOrchestrationRun, type JobRepairOptions, type JobRepairRunState, type JobTaskBase, type JobTaskDependency, type JobTaskRunState, type JobWaitOptions, type JobsSubmitRequest, type LakebaseBranchOptions, type LakebaseCheckOptions, type LakebaseControlClient, type LiveCheck, type LiveCheckContext, type LiveCheckResult, type LiveCheckStatus, type LiveEvidence, type LiveSuiteRuntime, type LiveSuiteSpec, type MockDatabricksClient, type NotebookJobTask, type PipelineJobTask, type PipelineResource, type PollOptions, type PythonWheelJobTask, type RecordedCall, type RegionalDrCheckOptions, type RegisteredModelResource, type RunJobTask, type RunTargetPackOptions, type SecretRotationCheckOptions, type ServingEndpointResource, type SparkJarJobTask, type SparkPythonJobTask, type SparkSubmitJobTask, type SqlJobTask, TableFixture, type TargetPack, type TargetPackDoctorCheck, type TargetPackDoctorRequirement, type TargetPackDoctorResult, type TargetPackEvidenceMetadata, type TargetPackMaturity, type TargetPackRequirement, type TargetPackSpec, type TestProfile, type VectorSearchEndpointResource, type VectorSearchIndexResource, type VolumeIOCheckOptions, type WorkspaceClientLike, type WorkspaceContextOptions, advancedStreamingCdcCheck, aiBiDashboardCheck, appHealthCheck, assertDeltaContract, autoLoaderIngestionCheck, backupRestoreCheck, builtinTargetPacks, classicComputeCheck, compareToGolden, createAdvancedStreamingTargetPack, createAdvancedTargetPacks, createAiBiGenieTargetPack, createAppsOperationalFoundationPack, createBuiltinTargetPacks, createClientFromEnv, createDuckDbContext, createEphemeralLakebaseBranch, createExecutionContext, createFeatureEngineeringTargetPack, createFederationSharingTargetPack, createFoundationTargetPacks, createJobsCodeFoundationPack, createLakebaseTestProvider, createLakeflowFoundationPack, createLakeflowJobsTargetPack, createMlflowLifecycleTargetPack, createMockDatabricksClient, createModelServingTargetPack, createSecurityCostDrTargetPack, createSqlDeltaFoundationPack, createTargetPackRegistry, createUnityStorageFoundationPack, createVectorRagAgentsTargetPack, createWorkspaceContext, customLiveCheck, dbtBuildCheck, defineLiveSuite, defineTargetPack, defineTargetPackRun, deleteEphemeralLakebaseBranch, deleteVolumeFile, deltaContractCheck, doctorTargetPack, ensureVolumeDirectory, evalJudgeModelServingCheck, expectQueryToMatchGolden, expectTable, failureRecoveryCheck, featureEngineeringServingCheck, federationSharingCleanRoomsCheck, foundationTargetPacks, genieCheck, jobRunCheck, jobsCertificationCheck, jobsOrchestrationCheck, lakebaseCredentialCheck, lakebaseRoundTripCheck, lakeflowConnectCheck, mlflowLifecycleCheck, modelServingCheck, normalizeJobRun, normalizeRow, normalizeVolumeRoot, notebookSubmitCheck, parseJobOrchestrationLiveSpec, parseStatementRows, performanceBudgetCheck, pipelineRefreshCheck, ragAgentCheck, regionalDrCheck, renderJUnit, resolveLakebaseProject, resolveProfile, resolveTokenProvider, restrictedPrincipalCheck, rollbackCheck, runLiveSuite, runTargetPack, secretRotationCheck, secretScopeCheck, securityPostureCostCheck, serverlessComputeCheck, sqlRoundTripCheck, toLakebaseBranchId, toNamedParameters, unityCatalogAccessCheck, uploadVolumeFile, validateJobGraph, vectorSearchCheck, volumeIOCheck, waitForPipelineUpdate };
|
|
733
|
+
export { type AppHealthCheckOptions, type AutoLoaderCheckOptions, type ConditionJobTask, type CreateContextOptions, type DashboardResource, DatabricksAdvancedWorkloadsAdapter, type DatabricksJobTask, DatabricksJobsAdapter, type DbtJobTask, type DefinedLiveSuite, type DefinedTargetPackRun, type DeltaColumnContract, type DuckDbConnectionLike, type DuckDbContextOptions, type EphemeralLakebaseBranch, type ExecutionContext, type ForEachJobTask, type GenieSpaceResource, type JobOrchestrationLiveSpec, type JobOrchestrationRun, type JobRepairOptions, type JobRepairRunState, type JobTaskBase, type JobTaskDependency, type JobTaskRunState, type JobWaitOptions, type JobsSubmitRequest, type LakebaseBranchOptions, type LakebaseCheckOptions, type LakebaseControlClient, type LiveCheck, type LiveCheckContext, type LiveCheckResult, type LiveCheckStatus, type LiveEvidence, type LiveSuiteRuntime, type LiveSuiteSpec, type MockDatabricksClient, type NotebookJobTask, type PipelineJobTask, type PipelineResource, type PollOptions, type PythonWheelJobTask, type RecordedCall, type RegionalDrCheckOptions, type RegisteredModelResource, type RunJobTask, type RunTargetPackOptions, type SecretRotationCheckOptions, type ServingEndpointResource, type SparkJarJobTask, type SparkPythonJobTask, type SparkSubmitJobTask, type SqlJobTask, TableFixture, type TargetPack, type TargetPackDoctorCheck, type TargetPackDoctorRequirement, type TargetPackDoctorResult, type TargetPackEvidenceMetadata, type TargetPackMaturity, type TargetPackRequirement, type TargetPackSpec, type TestProfile, type VectorSearchEndpointResource, type VectorSearchIndexResource, type VolumeIOCheckOptions, type WorkspaceClientLike, type WorkspaceContextOptions, type WorkspaceWaitOptions, advancedStreamingCdcCheck, aiBiDashboardCheck, appHealthCheck, assertDeltaContract, autoLoaderIngestionCheck, backupRestoreCheck, builtinTargetPacks, classicComputeCheck, compareToGolden, createAdvancedStreamingTargetPack, createAdvancedTargetPacks, createAiBiGenieTargetPack, createAppsOperationalFoundationPack, createBuiltinTargetPacks, createClientFromEnv, createDuckDbContext, createEphemeralLakebaseBranch, createExecutionContext, createFeatureEngineeringTargetPack, createFederationSharingTargetPack, createFoundationTargetPacks, createJobsCodeFoundationPack, createLakebaseTestProvider, createLakeflowFoundationPack, createLakeflowJobsTargetPack, createMlflowLifecycleTargetPack, createMockDatabricksClient, createModelServingTargetPack, createSecurityCostDrTargetPack, createSqlDeltaFoundationPack, createTargetPackRegistry, createUnityStorageFoundationPack, createVectorRagAgentsTargetPack, createWorkspaceContext, customLiveCheck, dbtBuildCheck, defineLiveSuite, defineTargetPack, defineTargetPackRun, deleteEphemeralLakebaseBranch, deleteVolumeFile, deltaContractCheck, doctorTargetPack, ensureVolumeDirectory, evalJudgeModelServingCheck, expectQueryToMatchGolden, expectTable, failureRecoveryCheck, featureEngineeringServingCheck, federationSharingCleanRoomsCheck, foundationTargetPacks, genieCheck, jobRunCheck, jobsCertificationCheck, jobsOrchestrationCheck, lakebaseCredentialCheck, lakebaseRoundTripCheck, lakeflowConnectCheck, mlflowLifecycleCheck, modelServingCheck, normalizeJobRun, normalizeRow, normalizeVolumeRoot, notebookSubmitCheck, parseJobOrchestrationLiveSpec, parseStatementRows, performanceBudgetCheck, pipelineRefreshCheck, ragAgentCheck, regionalDrCheck, renderJUnit, resolveLakebaseProject, resolveProfile, resolveTokenProvider, restrictedPrincipalCheck, rollbackCheck, runLiveSuite, runTargetPack, secretRotationCheck, secretScopeCheck, securityPostureCostCheck, serverlessComputeCheck, sqlRoundTripCheck, toLakebaseBranchId, toNamedParameters, unityCatalogAccessCheck, uploadVolumeFile, validateJobGraph, vectorSearchCheck, volumeIOCheck, waitForDatabricksRun, waitForDatabricksStatement, waitForPipelineUpdate };
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { compareToGolden } from './chunk-MLBZCHRM.js';
|
|
2
2
|
export { compareToGolden } from './chunk-MLBZCHRM.js';
|
|
3
3
|
export { createDuckDbContext, normalizeRow } from './chunk-7JVDOSBO.js';
|
|
4
|
-
import { createClientFromEnv, createWorkspaceContext, resolveTokenProvider } from './chunk-
|
|
5
|
-
export { createClientFromEnv, createWorkspaceContext, parseStatementRows, resolveTokenProvider, toNamedParameters } from './chunk-
|
|
4
|
+
import { createClientFromEnv, createWorkspaceContext, waitForDatabricksRun, resolveTokenProvider } from './chunk-MV752EAZ.js';
|
|
5
|
+
export { createClientFromEnv, createWorkspaceContext, parseStatementRows, resolveTokenProvider, toNamedParameters, waitForDatabricksRun, waitForDatabricksStatement } from './chunk-MV752EAZ.js';
|
|
6
6
|
export { parseFixtureColumns, resolveFixtureRows } from './chunk-F3KU6VZS.js';
|
|
7
7
|
import { mkdir, writeFile, readFile } from 'fs/promises';
|
|
8
8
|
import { dirname, resolve, basename } from 'path';
|
|
9
|
-
import { waitForDatabricksRun } from '@fabric-harness/databricks';
|
|
10
|
-
export { waitForDatabricksRun, waitForDatabricksStatement } from '@fabric-harness/databricks';
|
|
11
9
|
import { LakebaseDatabaseProvider, exchangeLakebaseCredential } from '@fabricorg/experiments-db-pool';
|
|
12
10
|
import { randomUUID, randomBytes } from 'crypto';
|
|
13
11
|
|
|
@@ -31,7 +29,7 @@ async function createExecutionContext(options = {}) {
|
|
|
31
29
|
const { createDuckDbContext: createDuckDbContext2 } = await import('./duckdb-context-FX23RUBV.js');
|
|
32
30
|
return createDuckDbContext2({ schema: options.schema });
|
|
33
31
|
}
|
|
34
|
-
const { createWorkspaceContext: createWorkspaceContext2 } = await import('./workspace-context-
|
|
32
|
+
const { createWorkspaceContext: createWorkspaceContext2 } = await import('./workspace-context-PCQAQSCO.js');
|
|
35
33
|
return createWorkspaceContext2({
|
|
36
34
|
env,
|
|
37
35
|
schema: options.schema,
|
|
@@ -1378,6 +1376,8 @@ function createFoundationTargetPacks() {
|
|
|
1378
1376
|
];
|
|
1379
1377
|
}
|
|
1380
1378
|
var foundationTargetPacks = createFoundationTargetPacks();
|
|
1379
|
+
|
|
1380
|
+
// src/jobs-orchestration.ts
|
|
1381
1381
|
var DatabricksJobsAdapter = class {
|
|
1382
1382
|
constructor(client) {
|
|
1383
1383
|
this.client = client;
|