-
Notifications
You must be signed in to change notification settings - Fork 131
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
[Internal] Extract "before retry" handler, use it to rewind the stream #878
Merged
renaudhartert-db
merged 1 commit into
databricks:main
from
ksafonov-db:factor-out-retry-hook
Jan 29, 2025
Merged
[Internal] Extract "before retry" handler, use it to rewind the stream #878
renaudhartert-db
merged 1 commit into
databricks:main
from
ksafonov-db:factor-out-retry-hook
Jan 29, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
ksafonov-db
temporarily deployed
to
test-trigger-is
January 29, 2025 11:14 — with
GitHub Actions
Inactive
ksafonov-db
changed the title
[Internal] Factor out stream rewind before retry
[Internal] Extract "before retry" handler, is it to rewind the stream
Jan 29, 2025
ksafonov-db
changed the title
[Internal] Extract "before retry" handler, is it to rewind the stream
[Internal] Extract "before retry" handler, use it to rewind the stream
Jan 29, 2025
renaudhartert-db
approved these changes
Jan 29, 2025
renaudhartert-db
added a commit
that referenced
this pull request
Jan 30, 2025
### Bug Fixes * Fix docs generation when two services have the same name ([#872](#872)). ### Internal Changes * Add CICD environment to the User Agent ([#866](#866)). * Add unit tests for retriable requests ([#879](#879)). * Extract "before retry" handler, use it to rewind the stream ([#878](#878)). * Update Model Serving `http_request` mixin to correctly use the underlying API. ([#876](#876)). ### API Changes: * Added [a.budget_policy](https://databricks-sdk-py.readthedocs.io/en/latest/account/budget_policy.html) account-level service. * Added [a.enable_ip_access_lists](https://databricks-sdk-py.readthedocs.io/en/latest/account/account_settings/enable_ip_access_lists.html) account-level service. * Added `review_state`, `reviews` and `runner_collaborators` fields for `databricks.sdk.service.cleanrooms.CleanRoomAssetNotebook`. * Added `statement_id` field for `databricks.sdk.service.dashboards.QueryAttachment`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.BaseRun`. * Added `performance_target` field for `databricks.sdk.service.jobs.CreateJob`. * Added `performance_target` field for `databricks.sdk.service.jobs.JobSettings`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.Run`. * Added `performance_target` field for `databricks.sdk.service.jobs.RunNow`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.RunTask`. * Added `run_as_repl` field for `databricks.sdk.service.jobs.SparkJarTask`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.CreateCustomAppIntegration`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.GetCustomAppIntegrationOutput`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.UpdateCustomAppIntegration`. * Added `contents` field for `databricks.sdk.service.serving.HttpRequestResponse`. * Added . * Added . * Added . * Changed `create()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service with new required argument order. * Changed `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service to type `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service. * Changed `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service to return `databricks.sdk.service.serving.HttpRequestResponse` dataclass. * Changed `config` field for `databricks.sdk.service.serving.CreateServingEndpoint` to no longer be required. * Removed `securable_kind` field for `databricks.sdk.service.catalog.CatalogInfo`. * Removed `securable_kind` field for `databricks.sdk.service.catalog.ConnectionInfo`. * Removed `status_code` and `text` fields for `databricks.sdk.service.serving.ExternalFunctionResponse`. OpenAPI SHA: 840c660106f820a1a5dff931d51fa5f65cd9fdd9, Date: 2025-01-28
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jan 30, 2025
### Bug Fixes * Fix docs generation when two services have the same name ([#872](#872)). ### Internal Changes * Add CICD environment to the User Agent ([#866](#866)). * Add unit tests for retriable requests ([#879](#879)). * Extract "before retry" handler, use it to rewind the stream ([#878](#878)). * Update Model Serving `http_request` mixin to correctly use the underlying API. ([#876](#876)). ### Backward Incompatible Changes * Changed `create()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving/serving_endpoints.html) workspace-level service with new required argument order. * Changed `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving/serving_endpoints.html) workspace-level service to type `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving/serving_endpoints.html) workspace-level service. * Changed `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving/serving_endpoints.html) workspace-level service to return `databricks.sdk.service.serving.HttpRequestResponse` dataclass. * Changed `config` field for `databricks.sdk.service.serving.CreateServingEndpoint` to no longer be required. * Removed `securable_kind` field for `databricks.sdk.service.catalog.CatalogInfo`. * Removed `securable_kind` field for `databricks.sdk.service.catalog.ConnectionInfo`. * Removed `status_code` and `text` fields for `databricks.sdk.service.serving.ExternalFunctionResponse`. ### API Changes: * Added [a.budget_policy](https://databricks-sdk-py.readthedocs.io/en/latest/account/billing/budget_policy.html) account-level service. * Added [a.enable_ip_access_lists](https://databricks-sdk-py.readthedocs.io/en/latest/account/settings/settings/enable_ip_access_lists.html) account-level service. * Added `review_state`, `reviews` and `runner_collaborators` fields for `databricks.sdk.service.cleanrooms.CleanRoomAssetNotebook`. * Added `statement_id` field for `databricks.sdk.service.dashboards.QueryAttachment`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.BaseRun`. * Added `performance_target` field for `databricks.sdk.service.jobs.CreateJob`. * Added `performance_target` field for `databricks.sdk.service.jobs.JobSettings`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.Run`. * Added `performance_target` field for `databricks.sdk.service.jobs.RunNow`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.RunTask`. * Added `run_as_repl` field for `databricks.sdk.service.jobs.SparkJarTask`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.CreateCustomAppIntegration`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.GetCustomAppIntegrationOutput`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.UpdateCustomAppIntegration`. * Added `contents` field for `databricks.sdk.service.serving.HttpRequestResponse`. * Added `clean_room` enum value for `databricks.sdk.service.catalog.SecurableType`. * Added `budget_policy_limit_exceeded` enum value for `databricks.sdk.service.jobs.TerminationCodeCode`. * Added `arclight_azure_exchange_token_with_user_delegation_key` enum value for `databricks.sdk.service.settings.TokenType`. OpenAPI SHA: 840c660106f820a1a5dff931d51fa5f65cd9fdd9, Date: 2025-01-28 --------- Signed-off-by: Renaud Hartert <renaud.hartert@databricks.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes are proposed in this pull request?
How is this tested?
Existing tests.
ALWAYS ANSWER THIS QUESTION: Answer with "N/A" if tests are not applicable
to your PR (e.g. if the PR only modifies comments). Do not be afraid of
answering "Not tested" if the PR has not been tested. Being clear about what
has been done and not done provides important context to the reviewers.