Skip to content

Conversation

@asnare
Copy link
Contributor

@asnare asnare commented May 13, 2025

Changes

Databricks SDK 0.51 included some breaking changes, including removal of an enumeration where a set of well-known string constants must now be used instead:

Breaking] Removed large, medium and small enum values for databricks.sdk.service.serving.ServedModelInputWorkloadSize.

The change is not forward-compatible, so in addition to updating the fixture we need to bump the minimum-required SDK version because older versions expect the enum.

Credits

This was earlier discovered and reported by @cornzyblack as #156.

Linked issues

Resolves #156.
Supersedes #157.

This is also causing CI test failures on downstream projects including:

Tests

  • existing unit tests

This version of the SDK was released with a breaking change: an enumeration was removed, with a set of documented strings expected instead.
@asnare asnare requested review from gueniai and sundarshankar89 May 13, 2025 09:52
@asnare asnare self-assigned this May 13, 2025
@asnare asnare requested a review from nfx as a code owner May 13, 2025 09:52
@asnare asnare added bug Something isn't working dependencies Pull requests that update a dependency file labels May 13, 2025
@asnare asnare temporarily deployed to account-admin May 13, 2025 09:52 — with GitHub Actions Inactive
@github-actions
Copy link

✅ 41/41 passed, 5 skipped, 8m32s total

Running from acceptance #200

Copy link
Collaborator

@sundarshankar89 sundarshankar89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sundarshankar89 sundarshankar89 merged commit 450da89 into main May 13, 2025
8 checks passed
@sundarshankar89 sundarshankar89 deleted the fix/model-input-workload-size branch May 13, 2025 13:37
sundarshankar89 added a commit that referenced this pull request May 13, 2025
* Compatibility fix for Databricks SDK 0.51 ([#158](#158)). The minimum required version of the Databricks SDK has been updated to 0.51.0 to accommodate breaking changes introduced in this version, including the removal of certain enumeration values. Notably, the `ServedModelInputWorkloadSize` enumeration has been replaced with well-known string constants, prompting an update to the `create` function to use the string constant `Small` instead of the removed `ServedModelInputWorkloadSize.SMALL` value. This change affects the creation of serving endpoints, which now specify workload size using a string value, and resolves issues reported in related projects, including test failures in downstream projects, by ensuring compatibility with the updated SDK version.
@sundarshankar89 sundarshankar89 mentioned this pull request May 13, 2025
sundarshankar89 added a commit that referenced this pull request May 13, 2025
* Compatibility fix for Databricks SDK 0.51
([#158](#158)). The
minimum required version of the Databricks SDK has been updated to
0.51.0 to accommodate breaking changes introduced in this version,
including the removal of certain enumeration values. Notably, the
`ServedModelInputWorkloadSize` enumeration has been replaced with
well-known string constants, prompting an update to the `create`
function to use the string constant `Small` instead of the removed
`ServedModelInputWorkloadSize.SMALL` value. This change affects the
creation of serving endpoints, which now specify workload size using a
string value, and resolves issues reported in related projects,
including test failures in downstream projects, by ensuring
compatibility with the updated SDK version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants