Skip to content

Commit

Permalink
Merge branch 'main' into renaud.hartert/dco
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudhartert-db authored Sep 25, 2024
2 parents 59654f3 + cccd378 commit cfc4e64
Show file tree
Hide file tree
Showing 56 changed files with 3,298 additions and 651 deletions.
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3eae49b444cac5a0118a3503e5b7ecef7f96527a
6f6b1371e640f2dfeba72d365ac566368656f6b6
60 changes: 3 additions & 57 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ experimental/mocks/service/catalog/mock_model_versions_interface.go linguist-gen
experimental/mocks/service/catalog/mock_online_tables_interface.go linguist-generated=true
experimental/mocks/service/catalog/mock_quality_monitors_interface.go linguist-generated=true
experimental/mocks/service/catalog/mock_registered_models_interface.go linguist-generated=true
experimental/mocks/service/catalog/mock_resource_quotas_interface.go linguist-generated=true
experimental/mocks/service/catalog/mock_schemas_interface.go linguist-generated=true
experimental/mocks/service/catalog/mock_storage_credentials_interface.go linguist-generated=true
experimental/mocks/service/catalog/mock_system_schemas_interface.go linguist-generated=true
Expand All @@ -37,6 +38,7 @@ experimental/mocks/service/compute/mock_global_init_scripts_interface.go linguis
experimental/mocks/service/compute/mock_instance_pools_interface.go linguist-generated=true
experimental/mocks/service/compute/mock_instance_profiles_interface.go linguist-generated=true
experimental/mocks/service/compute/mock_libraries_interface.go linguist-generated=true
experimental/mocks/service/compute/mock_policy_compliance_for_clusters_interface.go linguist-generated=true
experimental/mocks/service/compute/mock_policy_families_interface.go linguist-generated=true
experimental/mocks/service/dashboards/mock_genie_interface.go linguist-generated=true
experimental/mocks/service/dashboards/mock_lakeview_interface.go linguist-generated=true
Expand All @@ -55,6 +57,7 @@ experimental/mocks/service/iam/mock_service_principals_interface.go linguist-gen
experimental/mocks/service/iam/mock_users_interface.go linguist-generated=true
experimental/mocks/service/iam/mock_workspace_assignment_interface.go linguist-generated=true
experimental/mocks/service/jobs/mock_jobs_interface.go linguist-generated=true
experimental/mocks/service/jobs/mock_policy_compliance_for_jobs_interface.go linguist-generated=true
experimental/mocks/service/marketplace/mock_consumer_fulfillments_interface.go linguist-generated=true
experimental/mocks/service/marketplace/mock_consumer_installations_interface.go linguist-generated=true
experimental/mocks/service/marketplace/mock_consumer_listings_interface.go linguist-generated=true
Expand Down Expand Up @@ -130,39 +133,17 @@ service/apps/impl.go linguist-generated=true
service/apps/interface.go linguist-generated=true
service/apps/model.go linguist-generated=true
service/billing/api.go linguist-generated=true
service/billing/billable_usage_usage_test.go linguist-generated=true
service/billing/budgets_usage_test.go linguist-generated=true
service/billing/impl.go linguist-generated=true
service/billing/interface.go linguist-generated=true
service/billing/log_delivery_usage_test.go linguist-generated=true
service/billing/model.go linguist-generated=true
service/catalog/api.go linguist-generated=true
service/catalog/catalogs_usage_test.go linguist-generated=true
service/catalog/connections_usage_test.go linguist-generated=true
service/catalog/external_locations_usage_test.go linguist-generated=true
service/catalog/grants_usage_test.go linguist-generated=true
service/catalog/impl.go linguist-generated=true
service/catalog/interface.go linguist-generated=true
service/catalog/metastore_assignments_usage_test.go linguist-generated=true
service/catalog/metastores_usage_test.go linguist-generated=true
service/catalog/model.go linguist-generated=true
service/catalog/schemas_usage_test.go linguist-generated=true
service/catalog/storage_credentials_usage_test.go linguist-generated=true
service/catalog/tables_usage_test.go linguist-generated=true
service/catalog/volumes_usage_test.go linguist-generated=true
service/catalog/workspace_bindings_usage_test.go linguist-generated=true
service/compute/api.go linguist-generated=true
service/compute/cluster_policies_usage_test.go linguist-generated=true
service/compute/clusters_usage_test.go linguist-generated=true
service/compute/command_execution_usage_test.go linguist-generated=true
service/compute/global_init_scripts_usage_test.go linguist-generated=true
service/compute/impl.go linguist-generated=true
service/compute/instance_pools_usage_test.go linguist-generated=true
service/compute/instance_profiles_usage_test.go linguist-generated=true
service/compute/interface.go linguist-generated=true
service/compute/libraries_usage_test.go linguist-generated=true
service/compute/model.go linguist-generated=true
service/compute/policy_families_usage_test.go linguist-generated=true
service/dashboards/api.go linguist-generated=true
service/dashboards/impl.go linguist-generated=true
service/dashboards/interface.go linguist-generated=true
Expand All @@ -172,30 +153,21 @@ service/files/impl.go linguist-generated=true
service/files/interface.go linguist-generated=true
service/files/model.go linguist-generated=true
service/iam/api.go linguist-generated=true
service/iam/current_user_usage_test.go linguist-generated=true
service/iam/groups_usage_test.go linguist-generated=true
service/iam/impl.go linguist-generated=true
service/iam/interface.go linguist-generated=true
service/iam/model.go linguist-generated=true
service/iam/permissions_usage_test.go linguist-generated=true
service/iam/service_principals_usage_test.go linguist-generated=true
service/iam/users_usage_test.go linguist-generated=true
service/iam/workspace_assignment_usage_test.go linguist-generated=true
service/jobs/api.go linguist-generated=true
service/jobs/impl.go linguist-generated=true
service/jobs/interface.go linguist-generated=true
service/jobs/jobs_usage_test.go linguist-generated=true
service/jobs/model.go linguist-generated=true
service/marketplace/api.go linguist-generated=true
service/marketplace/impl.go linguist-generated=true
service/marketplace/interface.go linguist-generated=true
service/marketplace/model.go linguist-generated=true
service/ml/api.go linguist-generated=true
service/ml/experiments_usage_test.go linguist-generated=true
service/ml/impl.go linguist-generated=true
service/ml/interface.go linguist-generated=true
service/ml/model.go linguist-generated=true
service/ml/model_registry_usage_test.go linguist-generated=true
service/oauth2/api.go linguist-generated=true
service/oauth2/impl.go linguist-generated=true
service/oauth2/interface.go linguist-generated=true
Expand All @@ -204,59 +176,33 @@ service/pipelines/api.go linguist-generated=true
service/pipelines/impl.go linguist-generated=true
service/pipelines/interface.go linguist-generated=true
service/pipelines/model.go linguist-generated=true
service/pipelines/pipelines_usage_test.go linguist-generated=true
service/pkg.go linguist-generated=true
service/provisioning/api.go linguist-generated=true
service/provisioning/credentials_usage_test.go linguist-generated=true
service/provisioning/encryption_keys_usage_test.go linguist-generated=true
service/provisioning/impl.go linguist-generated=true
service/provisioning/interface.go linguist-generated=true
service/provisioning/model.go linguist-generated=true
service/provisioning/networks_usage_test.go linguist-generated=true
service/provisioning/private_access_usage_test.go linguist-generated=true
service/provisioning/storage_usage_test.go linguist-generated=true
service/provisioning/vpc_endpoints_usage_test.go linguist-generated=true
service/provisioning/workspaces_usage_test.go linguist-generated=true
service/serving/api.go linguist-generated=true
service/serving/impl.go linguist-generated=true
service/serving/interface.go linguist-generated=true
service/serving/model.go linguist-generated=true
service/settings/api.go linguist-generated=true
service/settings/impl.go linguist-generated=true
service/settings/interface.go linguist-generated=true
service/settings/ip_access_lists_usage_test.go linguist-generated=true
service/settings/model.go linguist-generated=true
service/settings/token_management_usage_test.go linguist-generated=true
service/settings/tokens_usage_test.go linguist-generated=true
service/settings/workspace_conf_usage_test.go linguist-generated=true
service/sharing/api.go linguist-generated=true
service/sharing/impl.go linguist-generated=true
service/sharing/interface.go linguist-generated=true
service/sharing/model.go linguist-generated=true
service/sharing/providers_usage_test.go linguist-generated=true
service/sharing/recipients_usage_test.go linguist-generated=true
service/sharing/shares_usage_test.go linguist-generated=true
service/sql/alerts_usage_test.go linguist-generated=true
service/sql/api.go linguist-generated=true
service/sql/dashboards_usage_test.go linguist-generated=true
service/sql/data_sources_usage_test.go linguist-generated=true
service/sql/impl.go linguist-generated=true
service/sql/interface.go linguist-generated=true
service/sql/model.go linguist-generated=true
service/sql/queries_usage_test.go linguist-generated=true
service/sql/query_history_usage_test.go linguist-generated=true
service/sql/statement_execution_usage_test.go linguist-generated=true
service/sql/warehouses_usage_test.go linguist-generated=true
service/vectorsearch/api.go linguist-generated=true
service/vectorsearch/impl.go linguist-generated=true
service/vectorsearch/interface.go linguist-generated=true
service/vectorsearch/model.go linguist-generated=true
service/workspace/api.go linguist-generated=true
service/workspace/git_credentials_usage_test.go linguist-generated=true
service/workspace/impl.go linguist-generated=true
service/workspace/interface.go linguist-generated=true
service/workspace/model.go linguist-generated=true
service/workspace/repos_usage_test.go linguist-generated=true
service/workspace/secrets_usage_test.go linguist-generated=true
service/workspace/workspace_usage_test.go linguist-generated=true
workspace_client.go linguist-generated=true
66 changes: 66 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Integration Tests

on:

pull_request:
types: [opened, synchronize]

merge_group:


jobs:
write-message:
if: github.event_name == 'pull_request'
name: Write Message
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Delete old comments
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Delete previous comment if it exists
previous_comment_ids=$(gh api "repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" \
--jq '.[] | select(.body | startswith("<!-- INTEGRATION_TESTS -->")) | .id')
echo "Previous comment IDs: $previous_comment_ids"
# Iterate over each comment ID and delete the comment
if [ ! -z "$previous_comment_ids" ]; then
echo "$previous_comment_ids" | while read -r comment_id; do
echo "Deleting comment with ID: $comment_id"
gh api "repos/${{ github.repository }}/issues/comments/$comment_id" -X DELETE
done
fi
- name: Write new comment
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr comment ${{ github.event.pull_request.number }} --body \
"<!-- INTEGRATION_TESTS -->
Run integration tests using the corresponding workflow:
Inputs:
PR Number:${{github.event.pull_request.number}}
Commit SHA:${{ github.event.pull_request.head.sha }}
This check will be approved automatically on success.
"
# The hash for the merge queue may not be the same as the hash for the PR.
# Auto approve the check for the merge queue to avoid running integration tests twice.
auto-approve:
if: github.event_name == 'merge_group'
runs-on: ubuntu-latest
steps:
- name: Mark Check
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
gh api -X POST -H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{ github.repository }}/statuses/${{ github.sha }} \
-f 'state=success' \
-f 'context=Integration Tests Check'
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Version changelog

## [Release] Release v0.46.0

### Bug Fixes

* Fail fast when authenticating if host is not configured ([#1033](https://github.com/databricks/databricks-sdk-go/pull/1033)).
* Improve non-JSON error handling ([#1031](https://github.com/databricks/databricks-sdk-go/pull/1031)).


### Internal Changes

* Add TestAccCreateOboTokenOnAws to flaky test list ([#1029](https://github.com/databricks/databricks-sdk-go/pull/1029)).
* Add workflows manage integration tests checks ([#1032](https://github.com/databricks/databricks-sdk-go/pull/1032)).
* Fix TestMwsAccWorkspaces cleanup ([#1028](https://github.com/databricks/databricks-sdk-go/pull/1028)).
* Improve integration test comment ([#1035](https://github.com/databricks/databricks-sdk-go/pull/1035)).
* Temporary ignore Metastore test failures ([#1027](https://github.com/databricks/databricks-sdk-go/pull/1027)).
* Update test to support new accounts ([#1026](https://github.com/databricks/databricks-sdk-go/pull/1026)).
* Use statuses instead of checks ([#1036](https://github.com/databricks/databricks-sdk-go/pull/1036)).


### API Changes:

* Added `RegenerateDashboard` method for [w.QualityMonitors](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/catalog#QualityMonitorsAPI) workspace-level service.
* Added [catalog.RegenerateDashboardRequest](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/catalog#RegenerateDashboardRequest) and [catalog.RegenerateDashboardResponse](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/catalog#RegenerateDashboardResponse).
* Added [jobs.QueueDetails](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#QueueDetails), [jobs.QueueDetailsCodeCode](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#QueueDetailsCodeCode), [jobs.RunLifecycleStateV2State](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#RunLifecycleStateV2State), [jobs.RunStatus](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#RunStatus), [jobs.TerminationCodeCode](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#TerminationCodeCode), [jobs.TerminationDetails](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#TerminationDetails) and [jobs.TerminationTypeType](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#TerminationTypeType).
* Added `Status` field for [jobs.BaseRun](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#BaseRun).
* Added `Status` field for [jobs.RepairHistoryItem](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#RepairHistoryItem).
* Added `Status` field for [jobs.Run](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#Run).
* Added `Status` field for [jobs.RunTask](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#RunTask).
* Added `MaxProvisionedThroughput` and `MinProvisionedThroughput` fields for [serving.ServedModelInput](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/serving#ServedModelInput).
* Added `ColumnsToSync` field for [vectorsearch.DeltaSyncVectorIndexSpecRequest](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/vectorsearch#DeltaSyncVectorIndexSpecRequest).
* Changed `WorkloadSize` field for [serving.ServedModelInput](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/serving#ServedModelInput) to no longer be required.

OpenAPI SHA: d05898328669a3f8ab0c2ecee37db2673d3ea3f7, Date: 2024-09-04

## [Release] Release v0.45.0

### Bug Fixes
Expand Down
Loading

0 comments on commit cfc4e64

Please sign in to comment.