Skip to content

[Internal] Merge main in dev/sdk-mod #1138

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

Closed
wants to merge 54 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
b83a726
[Release] Release v0.55.0 (#1117)
parthban-db Jan 13, 2025
914ab6b
[Internal] Scope the traversing directory in the Recursive list works…
parthban-db Jan 13, 2025
1045fb9
[Internal] Delete examples/mocking module (#1126)
parthban-db Jan 19, 2025
e079db9
[Fix] Support Query parameters for all HTTP operations (#1124)
hectorcast-db Jan 20, 2025
1134540
[Internal] Add download target to MakeFile (#1125)
parthban-db Jan 21, 2025
28ff749
[Release] Release v0.56.0 (#1134)
mgyucht Jan 22, 2025
18cebf1
[Fix] Do not send query parameters when set to zero value (#1136)
mgyucht Jan 23, 2025
bf617bb
[Release] Release v0.56.1 (#1137)
mgyucht Jan 23, 2025
31fdc69
[Feature] Add support for async OAuth token refreshes (#1135)
renaudhartert-db Feb 3, 2025
7cb1883
[Release] Release v0.57.0 (#1140)
mgyucht Feb 3, 2025
3aebd68
[Internal] Introduce new TokenSource interface that takes a `context.…
renaudhartert-db Feb 6, 2025
815cace
[Internal] Add support for asynchronous data plane token refreshes (#…
renaudhartert-db Feb 7, 2025
8307a4d
[Feature] Enable async refreshes for OAuth tokens (#1143)
renaudhartert-db Feb 7, 2025
9dc3c56
[Release] Release v0.58.0 (#1144)
hectorcast-db Feb 11, 2025
967d063
[Release] Release v0.58.1 (#1146)
hectorcast-db Feb 12, 2025
43c3d0e
[Internal] GetRun logic paginates more arrays (#1132)
gkiko10 Feb 13, 2025
5a9ddae
[Internal] Update Jobs GetJob API to support paginated responses (#1133)
gkiko10 Feb 13, 2025
515359f
[Internal] Enable Automated Tagging for SDK (#1148)
hectorcast-db Feb 17, 2025
8f32c2e
[Internal] Update Jobs `list` function to support paginated responses…
gkiko10 Feb 24, 2025
c72cd2d
[Fix] Add support for all error details types and fix potential unmar…
renaudhartert-db Feb 25, 2025
cdb2800
[Internal] add `poll.SimpleError` to mock waiter objects returning er…
nkvuong Feb 28, 2025
7bf8372
[Internal] Update Jobs `list_runs` function to support paginated resp…
gkiko10 Mar 3, 2025
62307c9
[Internal] Update OpenAPI spec (#1163)
hectorcast-db Mar 3, 2025
728c6e7
[Release] Release v0.59.0
deco-sdk-tagging[bot] Mar 3, 2025
2f2d945
[Fix] Properly parse the `RetryInfo` error detail (#1162)
renaudhartert-db Mar 4, 2025
c33f416
Remove unnecessary config files and GitHub workflows (#1165)
hectorcast-db Mar 7, 2025
19e0348
Update OpenAPI spec and Update mockery version (#1168)
parthban-db Mar 11, 2025
424a24b
[Release] Release v0.60.0
deco-sdk-tagging[bot] Mar 11, 2025
c371ad8
Slightly simplify `CredentialsProvider` and add doc comments (#1169)
renaudhartert-db Mar 13, 2025
3cbc196
Do not close all TCP connections on an HTTP error (#1188)
shreyas-goenka Mar 20, 2025
c2e0b1c
Use the same connection pool in all `ApiClient` by default. (#1190)
renaudhartert-db Mar 20, 2025
e16cb32
Stop recommending opening an issue in case of unknown error (#1189)
renaudhartert-db Mar 21, 2025
8bb4786
[Feature] Implement U2M Authentication in the Go SDK (#1108)
mgyucht Mar 24, 2025
c920df8
Udate OpenAPI spec (#1195)
hectorcast-db Mar 26, 2025
3aaa4c0
[Release] Release v0.61.0
deco-sdk-tagging[bot] Mar 26, 2025
0022508
[Internal] Remove `TestAccDashboards` as legacy dashboard creation on…
tanmay-db Apr 8, 2025
8bf673d
[Release] Release v0.62.0
deco-sdk-tagging[bot] Apr 10, 2025
c99ac65
[Internal] Update SDK to latest OpenAPI spec (#1207)
tanmay-db Apr 14, 2025
68f3330
[Release] Release v0.63.0
deco-sdk-tagging[bot] Apr 14, 2025
68499d8
Fix example test names to comply with Go 1.24 vet checks (#1203)
rauchy Apr 16, 2025
79e4b3a
Enabled asynchronous token refreshes by default (#1208)
hectorcast-db Apr 17, 2025
e7f1736
[Internal] Update SDK to latest OpenAPI spec (#1209)
tanmay-db Apr 24, 2025
8027ec9
[Release] Release v0.64.0
deco-sdk-tagging[bot] Apr 24, 2025
be2e0db
Implement Databricks OIDC as Token Source (#1204)
hectorcast-db Apr 29, 2025
0787306
[Release] Release v0.65.0
deco-sdk-tagging[bot] Apr 29, 2025
eab964f
Tolerate trailing slash (#1211)
mgyucht Apr 30, 2025
cedae03
Bump API specification to 30 Apr 2025 (#1212)
mgyucht Apr 30, 2025
4e77514
[Release] Release v0.66.0
deco-sdk-tagging[bot] Apr 30, 2025
c7796ce
Bump API Specification to 2 May 2025 (#1214)
mgyucht May 2, 2025
13af087
[Release] Release v0.67.0
deco-sdk-tagging[bot] May 2, 2025
8a6d0df
Add support for OIDC ID token authentication using an environment var…
renaudhartert-db May 6, 2025
49996cc
Add support to load OIDC ID Tokens from a file (#1213)
hectorcast-db May 6, 2025
4f0fe87
[Release] Release v0.68.0
deco-sdk-tagging[bot] May 6, 2025
a2a34b9
Add support to authenticate with Account-wide token federation (#1219)
renaudhartert-db May 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .codegen.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mode": "go_v0",
"changelog_config": ".codegen/changelog_config.yml",
"api_changelog": true,
"version": {
"version/version.go": "const Version = \"$VERSION\""
},
Expand All @@ -10,7 +10,7 @@
],
"post_generate": [
"make fmt",
"go run github.com/vektra/mockery/v2@0229bd4bb4357cd09af7ac15ecab85022d296b12"
"go run github.com/vektra/mockery/v2@bfd46e35b15c2689ced221299bdcdeeff8aa0be3"
]
}
}
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1668b0db17e23605f8c9d29fb3b674c01590732d
d4c86c045ee9d0410a41ef07e8ae708673b95fa1
91 changes: 0 additions & 91 deletions .codegen/changelog.md.tmpl

This file was deleted.

14 changes: 0 additions & 14 deletions .codegen/changelog_config.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ experimental/mocks/mock_account_client.go linguist-generated=true
experimental/mocks/mock_workspace_client.go linguist-generated=true
experimental/mocks/service/apps/mock_apps_interface.go linguist-generated=true
experimental/mocks/service/billing/mock_billable_usage_interface.go linguist-generated=true
experimental/mocks/service/billing/mock_budget_policy_interface.go linguist-generated=true
experimental/mocks/service/billing/mock_budgets_interface.go linguist-generated=true
experimental/mocks/service/billing/mock_log_delivery_interface.go linguist-generated=true
experimental/mocks/service/billing/mock_usage_dashboards_interface.go linguist-generated=true
Expand Down Expand Up @@ -46,9 +47,12 @@ experimental/mocks/service/compute/mock_libraries_interface.go linguist-generate
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_embedded_interface.go linguist-generated=true
experimental/mocks/service/dashboards/mock_lakeview_interface.go linguist-generated=true
experimental/mocks/service/dashboards/mock_query_execution_interface.go linguist-generated=true
experimental/mocks/service/files/mock_dbfs_interface.go linguist-generated=true
experimental/mocks/service/files/mock_files_interface.go linguist-generated=true
experimental/mocks/service/iam/mock_access_control_interface.go linguist-generated=true
experimental/mocks/service/iam/mock_account_access_control_interface.go linguist-generated=true
experimental/mocks/service/iam/mock_account_access_control_proxy_interface.go linguist-generated=true
experimental/mocks/service/iam/mock_account_groups_interface.go linguist-generated=true
Expand Down Expand Up @@ -76,6 +80,7 @@ experimental/mocks/service/marketplace/mock_provider_personalization_requests_in
experimental/mocks/service/marketplace/mock_provider_provider_analytics_dashboards_interface.go linguist-generated=true
experimental/mocks/service/marketplace/mock_provider_providers_interface.go linguist-generated=true
experimental/mocks/service/ml/mock_experiments_interface.go linguist-generated=true
experimental/mocks/service/ml/mock_forecasting_interface.go linguist-generated=true
experimental/mocks/service/ml/mock_model_registry_interface.go linguist-generated=true
experimental/mocks/service/oauth2/mock_account_federation_policy_interface.go linguist-generated=true
experimental/mocks/service/oauth2/mock_custom_app_integration_interface.go linguist-generated=true
Expand Down Expand Up @@ -105,6 +110,10 @@ experimental/mocks/service/settings/mock_default_namespace_interface.go linguist
experimental/mocks/service/settings/mock_disable_legacy_access_interface.go linguist-generated=true
experimental/mocks/service/settings/mock_disable_legacy_dbfs_interface.go linguist-generated=true
experimental/mocks/service/settings/mock_disable_legacy_features_interface.go linguist-generated=true
experimental/mocks/service/settings/mock_enable_export_notebook_interface.go linguist-generated=true
experimental/mocks/service/settings/mock_enable_ip_access_lists_interface.go linguist-generated=true
experimental/mocks/service/settings/mock_enable_notebook_table_clipboard_interface.go linguist-generated=true
experimental/mocks/service/settings/mock_enable_results_downloading_interface.go linguist-generated=true
experimental/mocks/service/settings/mock_enhanced_security_monitoring_interface.go linguist-generated=true
experimental/mocks/service/settings/mock_esm_enablement_account_interface.go linguist-generated=true
experimental/mocks/service/settings/mock_ip_access_lists_interface.go linguist-generated=true
Expand All @@ -122,6 +131,7 @@ experimental/mocks/service/sharing/mock_recipients_interface.go linguist-generat
experimental/mocks/service/sharing/mock_shares_interface.go linguist-generated=true
experimental/mocks/service/sql/mock_alerts_interface.go linguist-generated=true
experimental/mocks/service/sql/mock_alerts_legacy_interface.go linguist-generated=true
experimental/mocks/service/sql/mock_alerts_v2_interface.go linguist-generated=true
experimental/mocks/service/sql/mock_dashboard_widgets_interface.go linguist-generated=true
experimental/mocks/service/sql/mock_dashboards_interface.go linguist-generated=true
experimental/mocks/service/sql/mock_data_sources_interface.go linguist-generated=true
Expand All @@ -131,6 +141,7 @@ experimental/mocks/service/sql/mock_queries_legacy_interface.go linguist-generat
experimental/mocks/service/sql/mock_query_history_interface.go linguist-generated=true
experimental/mocks/service/sql/mock_query_visualizations_interface.go linguist-generated=true
experimental/mocks/service/sql/mock_query_visualizations_legacy_interface.go linguist-generated=true
experimental/mocks/service/sql/mock_redash_config_interface.go linguist-generated=true
experimental/mocks/service/sql/mock_statement_execution_interface.go linguist-generated=true
experimental/mocks/service/sql/mock_warehouses_interface.go linguist-generated=true
experimental/mocks/service/vectorsearch/mock_vector_search_endpoints_interface.go linguist-generated=true
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/message.yml

This file was deleted.

105 changes: 105 additions & 0 deletions .github/workflows/next-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Generated file. DO NOT EDIT.
name: Check for NEXT_CHANGELOG.md Changes

on:
# Use pull_request_target to have access to GitHub API
pull_request_target:

jobs:
check-next-changelog:
runs-on:
group: databricks-deco-testing-runner-group
labels: ubuntu-latest-deco

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Fetch list of changed files
id: changed-files
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Use the GitHub API to fetch changed files
files=$(gh pr view ${{ github.event.pull_request.number }} --json files -q '.files[].path')

# Sanitize to avoid code injection
sanitized_files=$(echo "$files" | sed 's/[^a-zA-Z0-9._/-]/_/g')

# Store the sanitized list of files in a temporary file to avoid env variable issues
echo "$sanitized_files" > modified_files.txt

- name: Fetch PR message
id: pr-message
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Use the GitHub API to fetch the PR message
pr_message=$(gh pr view ${{ github.event.pull_request.number }} --json body -q '.body')

# Sanitize the PR message to avoid code injection, keeping the equal sign
sanitized_pr_message=$(echo "$pr_message" | sed 's/[^a-zA-Z0-9._/-=]/_/g')

# Store the sanitized PR message
echo "$sanitized_pr_message" > pr_message.txt

- name: Verify NEXT_CHANGELOG.md was modified or PR message contains NO_CHANGELOG=true
run: |
# Read the sanitized files and PR message from the temporary files
modified_files=$(cat modified_files.txt)
pr_message=$(cat pr_message.txt)

# Check if NEXT_CHANGELOG.md exists in the list of changed files
echo "Changed files: $modified_files"
if ! echo "$modified_files" | grep -q "NEXT_CHANGELOG.md"; then
echo "NEXT_CHANGELOG.md not modified."

# Check if PR message contains NO_CHANGELOG=true
if echo "$pr_message" | grep -q "NO_CHANGELOG=true"; then
echo "NO_CHANGELOG=true found in PR message. Skipping changelog check."
exit 0
else
echo "WARNING: file NEXT_CHANGELOG.md not changed. If this is expected, add NO_CHANGELOG=true to the PR message."
exit 1
fi
fi

- name: Comment on PR with instructions if needed
if: failure() # This step will only run if the previous step fails (i.e., if NEXT_CHANGELOG.md was not modified and NO_CHANGELOG=true was not in the PR message)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Check if a comment exists with the instructions
previous_comment_ids=$(gh api "repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" \
--jq '.[] | select(.body | startswith("<!-- NEXT_CHANGELOG_INSTRUCTIONS -->")) | .id')
echo "Previous comment IDs: $previous_comment_ids"

# If no previous comment exists, add one with instructions
if [ -z "$previous_comment_ids" ]; then
echo "Adding instructions comment."
gh pr comment ${{ github.event.pull_request.number }} --body \
"<!-- NEXT_CHANGELOG_INSTRUCTIONS -->
Please ensure that the NEXT_CHANGELOG.md file is updated with any relevant changes.
If this is not necessary for your PR, please include the following in your PR description:
NO_CHANGELOG=true
and rerun the job."
fi

- name: Delete instructions comment on success
if: success() # This step will only run if the previous check passed (i.e., if NEXT_CHANGELOG.md was modified or NO_CHANGELOG=true is in the PR message)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Check if there is a previous instructions comment
previous_comment_ids=$(gh api "repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" \
--jq '.[] | select(.body | startswith("<!-- NEXT_CHANGELOG_INSTRUCTIONS -->")) | .id')

# If a comment exists, delete it
if [ -n "$previous_comment_ids" ]; then
echo "Deleting previous instructions comment."
for comment_id in $previous_comment_ids; do
gh api "repos/${{ github.repository }}/issues/comments/$comment_id" --method DELETE
done
else
echo "No instructions comment found to delete."
fi
52 changes: 52 additions & 0 deletions .github/workflows/tagging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Generated file. DO NOT EDIT.
name: tagging

on:
workflow_dispatch:
# Enable for automatic tagging
#schedule:
# - cron: '0 0 * * TUE'

# Ensure that only a single instance of the workflow is running at a time.
concurrency:
group: "tagging"


jobs:
tag:
environment: "release-is"
runs-on:
group: databricks-deco-testing-runner-group
labels: ubuntu-latest-deco
steps:
- name: Generate GitHub App Token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.DECO_SDK_TAGGING_APP_ID }}
private-key: ${{ secrets.DECO_SDK_TAGGING_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate-token.outputs.token }}

#NOTE: email must be the GitHub App email or the commit will not be verified.
- name: Set up Git configuration
run: |
git config user.name "Databricks SDK Release Bot"
git config user.email "DECO-SDK-Tagging[bot]@users.noreply.github.com"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install PyGithub

- name: Run script
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: |
python tagging.py

1 change: 1 addition & 0 deletions .package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions .release_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"timestamp": "2025-05-06 19:23:28+0000"
}
Loading
Loading