-
Notifications
You must be signed in to change notification settings - Fork 92
Initial implementation of "direct" deployment backend #2926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
f5f2e06
60c6cf9
a4c1618
503003c
cd6e82d
660acb0
55e56aa
535c064
37b391f
cb449c1
ecaa097
3677bc0
2cff2aa
f107fae
83e56d5
ee1925c
b5a0b9d
b502310
a06fd78
f3d1453
8e8c8d3
bc14e59
86ed498
26cd78a
24fa168
b96d08f
683077f
dccfb67
4296258
bec75c4
edd09ac
a060936
a4d6006
e9cd1dd
8e45207
7111327
e550078
261413a
dcc1c16
9d2d7bf
671007e
f8e9c11
37d5b8d
b6509b7
85c89be
8e53d56
4782f5b
04c1b9e
c0a5218
0656b1b
0d6e0cd
350a574
54a415a
c3f48a9
0424fdc
9ed2e45
b1f17b7
9310c18
07e960b
614481a
656d937
a0d6ead
e862d00
da7f1c9
85a1521
c35f959
7cba575
8d4c2fe
7965758
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[[Repls]] | ||
Old = '(resources.json|terraform.tfstate)' | ||
New = 'STATE_FILENAME' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
|
||
>>> [CLI] bundle validate --debug | ||
10:07:59 Info: start pid=12345 version=[DEV_VERSION] args="[CLI], bundle, validate, --debug" | ||
10:07:59 Debug: Found bundle root at [TEST_TMP_DIR] (file [TEST_TMP_DIR]/databricks.yml) pid=12345 | ||
10:07:59 Info: Phase: load pid=12345 | ||
10:07:59 Debug: Apply pid=12345 mutator=EntryPoint | ||
10:07:59 Debug: Apply pid=12345 mutator=scripts.preinit | ||
10:07:59 Debug: No script defined for preinit, skipping pid=12345 mutator=scripts.preinit | ||
10:07:59 Debug: Apply pid=12345 mutator=ProcessRootIncludes | ||
10:07:59 Debug: Apply pid=12345 mutator=VerifyCliVersion | ||
10:07:59 Debug: Apply pid=12345 mutator=EnvironmentsToTargets | ||
10:07:59 Debug: Apply pid=12345 mutator=ComputeIdToClusterId | ||
10:07:59 Debug: Apply pid=12345 mutator=InitializeVariables | ||
10:07:59 Debug: Apply pid=12345 mutator=DefineDefaultTarget(default) | ||
10:07:59 Debug: Apply pid=12345 mutator=validate:unique_resource_keys | ||
10:07:59 Debug: Apply pid=12345 mutator=SelectDefaultTarget | ||
10:07:59 Debug: Apply pid=12345 mutator=SelectDefaultTarget mutator=SelectTarget(default) | ||
10:07:59 Debug: Apply pid=12345 mutator=<func> | ||
10:07:59 Info: Phase: initialize pid=12345 | ||
10:07:59 Debug: Apply pid=12345 mutator=validate:AllResourcesHaveValues | ||
10:07:59 Debug: Apply pid=12345 mutator=validate:interpolation_in_auth_config | ||
10:07:59 Debug: Apply pid=12345 mutator=RewriteSyncPaths | ||
10:07:59 Debug: Apply pid=12345 mutator=SyncDefaultPath | ||
10:07:59 Debug: Apply pid=12345 mutator=SyncInferRoot | ||
10:07:59 Debug: Apply pid=12345 mutator=PopulateCurrentUser | ||
10:07:59 Debug: GET /api/2.0/preview/scim/v2/Me | ||
< HTTP/1.1 200 OK | ||
< { | ||
< "id": "[USERID]", | ||
< "userName": "[USERNAME]" | ||
< } pid=12345 mutator=PopulateCurrentUser sdk=true | ||
10:07:59 Debug: Apply pid=12345 mutator=LoadGitDetails | ||
10:07:59 Debug: Apply pid=12345 mutator=ApplySourceLinkedDeploymentPreset | ||
10:07:59 Debug: Apply pid=12345 mutator=DefineDefaultWorkspaceRoot | ||
10:07:59 Debug: Apply pid=12345 mutator=ExpandWorkspaceRoot | ||
10:07:59 Debug: Apply pid=12345 mutator=DefaultWorkspacePaths | ||
10:07:59 Debug: Apply pid=12345 mutator=PrependWorkspacePrefix | ||
10:07:59 Debug: Apply pid=12345 mutator=RewriteWorkspacePrefix | ||
10:07:59 Debug: Apply pid=12345 mutator=SetVariables | ||
10:07:59 Debug: Apply pid=12345 mutator=ResolveVariableReferences | ||
10:07:59 Debug: Apply pid=12345 mutator=ResolveResourceReferences | ||
10:07:59 Debug: Apply pid=12345 mutator=ResolveVariableReferences | ||
10:07:59 Debug: Apply pid=12345 mutator=validate:volume-path | ||
10:07:59 Debug: Apply pid=12345 mutator=ApplyTargetMode | ||
10:07:59 Debug: Apply pid=12345 mutator=ConfigureWSFS | ||
10:07:59 Debug: Apply pid=12345 mutator=ProcessStaticResources | ||
10:07:59 Debug: Apply pid=12345 mutator=ProcessStaticResources mutator=ResolveVariableReferences(resources) | ||
10:07:59 Debug: Apply pid=12345 mutator=ProcessStaticResources mutator=NormalizePaths | ||
10:07:59 Debug: Apply pid=12345 mutator=ProcessStaticResources mutator=TranslatePathsDashboards | ||
10:07:59 Debug: Apply pid=12345 mutator=PythonMutator(load) | ||
10:07:59 Debug: Apply pid=12345 mutator=PythonMutator(init) | ||
10:07:59 Debug: Apply pid=12345 mutator=PythonMutator(load_resources) | ||
10:07:59 Debug: Apply pid=12345 mutator=PythonMutator(apply_mutators) | ||
10:07:59 Debug: Apply pid=12345 mutator=CheckPermissions | ||
10:07:59 Debug: Apply pid=12345 mutator=TranslatePaths | ||
10:07:59 Debug: Apply pid=12345 mutator=PythonWrapperWarning | ||
10:07:59 Debug: Apply pid=12345 mutator=ApplyArtifactsDynamicVersion | ||
10:07:59 Debug: Apply pid=12345 mutator=artifacts.Prepare | ||
10:07:59 Info: No local tasks in databricks.yml config, skipping auto detect pid=12345 mutator=artifacts.Prepare | ||
10:07:59 Debug: Apply pid=12345 mutator=apps.Validate | ||
10:07:59 Debug: Apply pid=12345 mutator=ValidateTargetMode | ||
10:07:59 Debug: Apply pid=12345 mutator=ValidateSharedRootPermissions | ||
10:07:59 Debug: Apply pid=12345 mutator=metadata.AnnotateJobs | ||
10:07:59 Debug: Apply pid=12345 mutator=metadata.AnnotatePipelines | ||
10:07:59 Debug: Apply pid=12345 mutator=scripts.postinit | ||
10:07:59 Debug: No script defined for postinit, skipping pid=12345 mutator=scripts.postinit | ||
10:07:59 Debug: ApplyParallel pid=12345 mutator=fast_validate(readonly) | ||
10:07:59 Debug: ApplyParallel pid=12345 mutator=validate:files_to_sync | ||
10:07:59 Debug: ApplyParallel pid=12345 mutator=validate:folder_permissions | ||
10:07:59 Debug: ApplyParallel pid=12345 mutator=validate:validate_sync_patterns | ||
10:07:59 Debug: ApplyParallel pid=12345 mutator=fast_validate(readonly) mutator=validate:job_cluster_key_defined | ||
10:07:59 Debug: ApplyParallel pid=12345 mutator=fast_validate(readonly) mutator=validate:job_task_cluster_spec | ||
10:07:59 Debug: ApplyParallel pid=12345 mutator=fast_validate(readonly) mutator=validate:artifact_paths | ||
10:07:59 Debug: GET /api/2.0/workspace/get-status?path=/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files | ||
< HTTP/1.1 404 Not Found | ||
< { | ||
< "message": "Workspace path not found" | ||
< } pid=12345 mutator=validate:files_to_sync sdk=true | ||
10:07:59 Debug: non-retriable error: Workspace path not found pid=12345 mutator=validate:files_to_sync sdk=true | ||
10:07:59 Debug: POST /api/2.0/workspace/mkdirs | ||
> { | ||
> "path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files" | ||
> } | ||
< HTTP/1.1 200 OK pid=12345 mutator=validate:files_to_sync sdk=true | ||
10:07:59 Debug: GET /api/2.0/workspace/get-status?path=/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files | ||
< HTTP/1.1 200 OK | ||
< { | ||
< "object_type": "DIRECTORY", | ||
< "path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files" | ||
< } pid=12345 mutator=validate:files_to_sync sdk=true | ||
10:07:59 Debug: Path /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files has type directory (ID: 0) pid=12345 mutator=validate:files_to_sync | ||
10:07:59 Info: completed execution pid=12345 exit_code=0 | ||
10:07:59 Debug: no telemetry logs to upload pid=12345 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Name: test-bundle | ||
Target: default | ||
Workspace: | ||
User: [USERNAME] | ||
Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default | ||
|
||
Validation OK! | ||
|
||
>>> diff.py [TESTROOT]/bundle/debug/direct/../tf/out.stderr.txt out.stderr.txt | ||
--- [TESTROOT]/bundle/debug/direct/../tf/out.stderr.txt | ||
+++ out.stderr.txt | ||
@@ -1,2 +1,4 @@ | ||
+ | ||
+>>> [CLI] bundle validate --debug | ||
10:07:59 Info: start pid=12345 version=[DEV_VERSION] args="[CLI], bundle, validate, --debug" | ||
10:07:59 Debug: Found bundle root at [TEST_TMP_DIR] (file [TEST_TMP_DIR]/databricks.yml) pid=12345 | ||
@@ -61,8 +63,4 @@ | ||
10:07:59 Debug: Apply pid=12345 mutator=metadata.AnnotateJobs | ||
10:07:59 Debug: Apply pid=12345 mutator=metadata.AnnotatePipelines | ||
-10:07:59 Debug: Apply pid=12345 mutator=terraform.Initialize | ||
-10:07:59 Debug: Using Terraform from DATABRICKS_TF_EXEC_PATH at [TERRAFORM] pid=12345 mutator=terraform.Initialize | ||
-10:07:59 Debug: Using Terraform CLI config from DATABRICKS_TF_CLI_CONFIG_FILE at [DATABRICKS_TF_CLI_CONFIG_FILE] pid=12345 mutator=terraform.Initialize | ||
-10:07:59 Debug: Environment variables for Terraform: ...redacted... pid=12345 mutator=terraform.Initialize | ||
10:07:59 Debug: Apply pid=12345 mutator=scripts.postinit | ||
10:07:59 Debug: No script defined for postinit, skipping pid=12345 mutator=scripts.postinit |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
trace $CLI bundle validate --debug 2> out.stderr.txt | ||
trace diff.py $TESTDIR/../tf/out.stderr.txt out.stderr.txt |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
EnvMatrix.DATABRICKS_CLI_DEPLOYMENT = ["direct-exp"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
EnvMatrix.DATABRICKS_CLI_DEPLOYMENT = ["terraform"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
EnvMatrix.DATABRICKS_CLI_DEPLOYMENT = ["terraform"] # dashboard not supported yet |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
Local = true | ||
Cloud = true | ||
|
||
EnvMatrix.DATABRICKS_CLI_DEPLOYMENT = ["terraform"] # needs investigation Error: deploying jobs.foo: Method=Jobs.Create *retries.Err *apierr.APIError StatusCode=400 ErrorCode="INVALID_PARAMETER_VALUE" Message="Missing required field: settings.tasks.task_key." | ||
|
||
Ignore = [ | ||
"databricks.yml", | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
Local = true | ||
Cloud = true | ||
|
||
EnvMatrix.DATABRICKS_CLI_DEPLOYMENT = ["terraform"] # requires "bundle summary" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: mix of preceding line and suffix comments. Do you have a list of these missing features or intend to grep for this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Going to grep. |
||
|
||
Ignore = [ | ||
"databricks.yml" | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
Cloud = true | ||
Local = true | ||
|
||
EnvMatrix.DATABRICKS_CLI_DEPLOYMENT = ["terraform"] | ||
|
||
Ignore = [ | ||
"databricks.yml", | ||
] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
Cloud = true | ||
|
||
EnvMatrix.DATABRICKS_CLI_DEPLOYMENT = ["terraform"] # summary,bind,unbind not implemented |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
EnvMatrix.DATABRICKS_CLI_DEPLOYMENT = ["terraform"] # dashboards not supported yet | ||
|
||
[[Repls]] | ||
Old = "[0-9a-f]{32}" | ||
New = "[DASHBOARD_ID]" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# "bundle summary" is not implemented | ||
EnvMatrix.DATABRICKS_CLI_DEPLOYMENT = ["terraform"] |
Uh oh!
There was an error while loading. Please reload this page.