Skip to content

Commit d2ed725

Browse files
Bump SDK to 0.141.0 (#5361)
## Changes - Regular SDK bump to v0.141.0 (`c68a27fa9`) including all auto-generated files - Fixes to Taskfile - Use relative path to `bazel` - Ignore error code on `generate-refschema` - Invoke `generate_resources.py` with `uv`, and add [PEP 723 header](https://peps.python.org/pep-0723) to have it install `pyyaml` if needed ## Why SDK update needed for feature development ## Tests CI
1 parent 4a1347a commit d2ed725

48 files changed

Lines changed: 1979 additions & 285 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0555d6a59265799ed8ea12f355eee662e739430d
1+
c68a27fa9c9d838e839c584be8018eb3b68377d5

.github/workflows/tagging.yml

100644100755
File mode changed.

NEXT_CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@
1515
* Support `purge_on_delete: true` on `postgres_projects` so bundles can hard-delete a Lakebase project on destroy (skipping the soft-delete retention window) ([#5414](https://github.com/databricks/cli/pull/5414)).
1616

1717
### Dependency updates
18-
1918
* Bump Go toolchain to 1.26.4 ([#5420](https://github.com/databricks/cli/pull/5420)).
19+
* Bump `github.com/databricks/databricks-sdk-go` from v0.136.0 to v0.138.0 ([#5361](https://github.com/databricks/cli/pull/5361))
20+
21+
### API Changes

Taskfile.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ tasks:
765765
echo "UNIVERSE_SKIP_CHECKOUT set; using current {{.UNIVERSE_DIR}} HEAD"
766766
fi
767767
- echo "Building genkit..."
768-
- cd {{.UNIVERSE_DIR}} && bazel build //openapi/genkit
768+
- cd {{.UNIVERSE_DIR}} && ./tools/bazel build //openapi/genkit
769769
- echo "Generating CLI code..."
770770
- "{{.UNIVERSE_DIR}}/bazel-bin/openapi/genkit/genkit_/genkit update-sdk"
771771
- "cat .gitattributes.manual .gitattributes > .gitattributes.tmp && mv .gitattributes.tmp .gitattributes"
@@ -799,7 +799,8 @@ tasks:
799799
generates:
800800
- acceptance/bundle/refschema/out.fields.txt
801801
cmds:
802-
- go test ./acceptance -run TestAccept/bundle/refschema -update &> /dev/null
802+
- cmd: go test ./acceptance -run TestAccept/bundle/refschema -update &> /dev/null
803+
ignore_error: true # -update returns non-zero exit code on changes
803804

804805
generate-schema:
805806
desc: Generate bundle JSON schema
@@ -913,7 +914,7 @@ tasks:
913914
generates:
914915
- bundle/direct/dresources/resources.generated.yml
915916
cmds:
916-
- "sh -c 'python3 bundle/direct/tools/generate_resources.py .codegen/openapi.json bundle/direct/dresources/apitypes.generated.yml bundle/direct/dresources/apitypes.yml acceptance/bundle/refschema/out.fields.txt > bundle/direct/dresources/resources.generated.yml'"
917+
- "sh -c 'uv run --script bundle/direct/tools/generate_resources.py .codegen/openapi.json bundle/direct/dresources/apitypes.generated.yml bundle/direct/dresources/apitypes.yml acceptance/bundle/refschema/out.fields.txt > bundle/direct/dresources/resources.generated.yml'"
917918

918919
generate-openapi-json:
919920
desc: Download OpenAPI spec (triggered by _openapi_sha change)

acceptance/bundle/refschema/out.fields.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ resources.apps.*.app_status *apps.ApplicationStatus ALL
8888
resources.apps.*.app_status.message string ALL
8989
resources.apps.*.app_status.state apps.ApplicationState ALL
9090
resources.apps.*.budget_policy_id string ALL
91+
resources.apps.*.compute_max_instances int ALL
92+
resources.apps.*.compute_min_instances int ALL
9193
resources.apps.*.compute_size apps.ComputeSize ALL
9294
resources.apps.*.compute_status *apps.ComputeStatus ALL
9395
resources.apps.*.compute_status.active_instances int ALL
@@ -739,8 +741,10 @@ resources.jobs.*.continuous.task_retry_mode jobs.TaskRetryMode ALL
739741
resources.jobs.*.created_time int64 REMOTE
740742
resources.jobs.*.creator_user_name string REMOTE
741743
resources.jobs.*.deployment *jobs.JobDeployment ALL
744+
resources.jobs.*.deployment.deployment_id string ALL
742745
resources.jobs.*.deployment.kind jobs.JobDeploymentKind ALL
743746
resources.jobs.*.deployment.metadata_file_path string ALL
747+
resources.jobs.*.deployment.version_id string ALL
744748
resources.jobs.*.description string ALL
745749
resources.jobs.*.edit_mode jobs.JobEditMode ALL
746750
resources.jobs.*.effective_budget_policy_id string REMOTE
@@ -1237,6 +1241,8 @@ resources.jobs.*.tasks[*].for_each_task.task.pipeline_task *jobs.PipelineTask AL
12371241
resources.jobs.*.tasks[*].for_each_task.task.pipeline_task.full_refresh bool ALL
12381242
resources.jobs.*.tasks[*].for_each_task.task.pipeline_task.full_refresh_selection []string ALL
12391243
resources.jobs.*.tasks[*].for_each_task.task.pipeline_task.full_refresh_selection[*] string ALL
1244+
resources.jobs.*.tasks[*].for_each_task.task.pipeline_task.parameters map[string]string ALL
1245+
resources.jobs.*.tasks[*].for_each_task.task.pipeline_task.parameters.* string ALL
12401246
resources.jobs.*.tasks[*].for_each_task.task.pipeline_task.pipeline_id string ALL
12411247
resources.jobs.*.tasks[*].for_each_task.task.pipeline_task.refresh_flow_selection []string ALL
12421248
resources.jobs.*.tasks[*].for_each_task.task.pipeline_task.refresh_flow_selection[*] string ALL
@@ -1520,6 +1526,8 @@ resources.jobs.*.tasks[*].pipeline_task *jobs.PipelineTask ALL
15201526
resources.jobs.*.tasks[*].pipeline_task.full_refresh bool ALL
15211527
resources.jobs.*.tasks[*].pipeline_task.full_refresh_selection []string ALL
15221528
resources.jobs.*.tasks[*].pipeline_task.full_refresh_selection[*] string ALL
1529+
resources.jobs.*.tasks[*].pipeline_task.parameters map[string]string ALL
1530+
resources.jobs.*.tasks[*].pipeline_task.parameters.* string ALL
15231531
resources.jobs.*.tasks[*].pipeline_task.pipeline_id string ALL
15241532
resources.jobs.*.tasks[*].pipeline_task.refresh_flow_selection []string ALL
15251533
resources.jobs.*.tasks[*].pipeline_task.refresh_flow_selection[*] string ALL
@@ -2302,8 +2310,10 @@ resources.pipelines.*.configuration.* string ALL
23022310
resources.pipelines.*.continuous bool ALL
23032311
resources.pipelines.*.creator_user_name string REMOTE
23042312
resources.pipelines.*.deployment *pipelines.PipelineDeployment ALL
2313+
resources.pipelines.*.deployment.deployment_id string ALL
23052314
resources.pipelines.*.deployment.kind pipelines.DeploymentKind ALL
23062315
resources.pipelines.*.deployment.metadata_file_path string ALL
2316+
resources.pipelines.*.deployment.version_id string ALL
23072317
resources.pipelines.*.development bool ALL
23082318
resources.pipelines.*.dry_run bool ALL
23092319
resources.pipelines.*.edition string ALL
@@ -2758,6 +2768,8 @@ resources.pipelines.*.notifications[*].alerts []string ALL
27582768
resources.pipelines.*.notifications[*].alerts[*] string ALL
27592769
resources.pipelines.*.notifications[*].email_recipients []string ALL
27602770
resources.pipelines.*.notifications[*].email_recipients[*] string ALL
2771+
resources.pipelines.*.parameters map[string]string ALL
2772+
resources.pipelines.*.parameters.* string ALL
27612773
resources.pipelines.*.photon bool ALL
27622774
resources.pipelines.*.pipeline_id string REMOTE
27632775
resources.pipelines.*.restart_window *pipelines.RestartWindow ALL
@@ -2835,7 +2847,6 @@ resources.postgres_catalogs.*.name string REMOTE
28352847
resources.postgres_catalogs.*.postgres_database string ALL
28362848
resources.postgres_catalogs.*.status *postgres.CatalogCatalogStatus REMOTE
28372849
resources.postgres_catalogs.*.status.branch string REMOTE
2838-
resources.postgres_catalogs.*.status.catalog_id string REMOTE
28392850
resources.postgres_catalogs.*.status.postgres_database string REMOTE
28402851
resources.postgres_catalogs.*.status.project string REMOTE
28412852
resources.postgres_catalogs.*.uid string REMOTE

acceptance/bundle/resources/apps/lifecycle-started/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Deployment complete!
9090
"description": "MY_APP_DESCRIPTION_2",
9191
"name": "[UNIQUE_NAME]"
9292
},
93-
"update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_size,git_repository,telemetry_export_destinations"
93+
"update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_size,compute_min_instances,compute_max_instances,git_repository,telemetry_export_destinations"
9494
}
9595
}
9696

@@ -117,7 +117,7 @@ Deployment complete!
117117
"description": "MY_APP_DESCRIPTION_3",
118118
"name": "[UNIQUE_NAME]"
119119
},
120-
"update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_size,git_repository,telemetry_export_destinations"
120+
"update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_size,compute_min_instances,compute_max_instances,git_repository,telemetry_export_destinations"
121121
}
122122
}
123123
{

acceptance/bundle/resources/apps/update/out.requests.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"description": "MY_APP_DESCRIPTION",
1616
"name": "myappname"
1717
},
18-
"update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_size,git_repository,telemetry_export_destinations"
18+
"update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_size,compute_min_instances,compute_max_instances,git_repository,telemetry_export_destinations"
1919
},
2020
"method": "POST",
2121
"path": "/api/2.0/apps/myappname/update"

acceptance/bundle/resources/postgres_catalogs/basic/output.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Deployment complete!
3535
"name": "catalogs/lakebase_test_[UNIQUE_NAME]",
3636
"status": {
3737
"branch": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production",
38-
"catalog_id": "lakebase_test_[UNIQUE_NAME]",
3938
"postgres_database": "appdb",
4039
"project": "projects/test-pg-proj-[UNIQUE_NAME]"
4140
}

acceptance/bundle/resources/sql_warehouses/lifecycle-started-toggle/output.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ Deployment complete!
2121
}
2222
{
2323
"method": "POST",
24-
"path": "/api/2.0/sql/warehouses/[UUID]/stop"
24+
"path": "/api/2.0/sql/warehouses/[UUID]/stop",
25+
"body": {}
2526
}
2627

2728
>>> errcode [CLI] warehouses get [UUID]
@@ -39,7 +40,8 @@ Deployment complete!
3940
>>> print_requests.py //sql/warehouses
4041
{
4142
"method": "POST",
42-
"path": "/api/2.0/sql/warehouses/[UUID]/start"
43+
"path": "/api/2.0/sql/warehouses/[UUID]/start",
44+
"body": {}
4345
}
4446

4547
>>> errcode [CLI] warehouses get [UUID]
@@ -57,7 +59,8 @@ Deployment complete!
5759
>>> print_requests.py //sql/warehouses
5860
{
5961
"method": "POST",
60-
"path": "/api/2.0/sql/warehouses/[UUID]/stop"
62+
"path": "/api/2.0/sql/warehouses/[UUID]/stop",
63+
"body": {}
6164
}
6265

6366
>>> errcode [CLI] warehouses get [UUID]

acceptance/bundle/resources/sql_warehouses/lifecycle-started/output.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ Deployment complete!
4242
>>> print_requests.py //sql/warehouses
4343
{
4444
"method": "POST",
45-
"path": "/api/2.0/sql/warehouses/[UUID]/stop"
45+
"path": "/api/2.0/sql/warehouses/[UUID]/stop",
46+
"body": {}
4647
}
4748
{
4849
"method": "POST",
49-
"path": "/api/2.0/sql/warehouses/[UUID]/start"
50+
"path": "/api/2.0/sql/warehouses/[UUID]/start",
51+
"body": {}
5052
}
5153

5254
>>> errcode [CLI] warehouses get [UUID]
@@ -67,7 +69,8 @@ Deployment complete!
6769
>>> print_requests.py //sql/warehouses
6870
{
6971
"method": "POST",
70-
"path": "/api/2.0/sql/warehouses/[UUID]/stop"
72+
"path": "/api/2.0/sql/warehouses/[UUID]/stop",
73+
"body": {}
7174
}
7275

7376
>>> errcode [CLI] warehouses get [UUID]
@@ -85,7 +88,8 @@ Deployment complete!
8588
>>> print_requests.py //sql/warehouses
8689
{
8790
"method": "POST",
88-
"path": "/api/2.0/sql/warehouses/[UUID]/start"
91+
"path": "/api/2.0/sql/warehouses/[UUID]/start",
92+
"body": {}
8993
}
9094

9195
>>> errcode [CLI] warehouses get [UUID]

0 commit comments

Comments
 (0)