Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 215
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
cf9186100d36e9730f236fbe71d526f52dcf9a4de41833be7c1989337efd96dd0540bba3f789aeb57201a9cbe11399423234e68e8546b9924969f03692ac15b967717236d614043c98904ebcdc8450c6a25f7e7902f8c1dedea00a798f52dec885e64af0935163a80ed7736f43e012e136429b9c1832b8f983f76579184f415d7f66c569d69664f2599466e6e4c9c9153ba539b6d6b440f1b25642231f7fc8c4efd2d551fafd3edbf97837fc651d1cf0ffeabef18b53cd6a68c97862ada884a88718f1cd7031e5fd6e5721317bac20119d3e07a7c29072c70a6e7f80b7599bb9238dd4f485d41b42a9a04a3b5d27b47b1f6978274cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
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,91 @@ | ||
| >>> [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_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 | ||
| @@ -59,8 +61,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" | ||
Contributor 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 ContributorAuthor 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.
Uh oh!
There was an error while loading. Please reload this page.