Skip to content

Conversation

@shreyas-goenka
Copy link
Contributor

@shreyas-goenka shreyas-goenka commented Nov 5, 2025

Changes && Why

served_models was deprecated and the fields in it were moved to served_endpoints. The GET API response for a model serving endpoint returns with both served_models and served_entities even if one is set on the client side (not AIP complaint).

In order to simplify the direct deployment logic, this PR translates the served_models config to served_entities, so that we can keep the core diff logic in direct deployment simple.

Note: This is not a breaking change. TF also had the same logic with a conflicts_with annotation for served_models and served_entities

Tests

New acceptance tests. Manually confirmed that a deployment succeeds with no issues.

@eng-dev-ecosystem-bot
Copy link
Collaborator

eng-dev-ecosystem-bot commented Nov 5, 2025

Run: 19108849133

Env 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip
💚​ aws linux 1 1 356 594
💚​ aws windows 1 1 357 593
💚​ aws-ucws linux 1 1 479 489
💚​ aws-ucws windows 1 1 480 488
💚​ azure linux 1 1 356 593
💚​ azure windows 1 1 357 592
🔄​ azure-ucws linux 3 1 473 488
💚​ azure-ucws windows 1 1 476 487
💚​ gcp linux 1 1 355 595
💚​ gcp windows 1 1 356 594
Test Name aws linux aws windows aws-ucws linux aws-ucws windows azure linux azure windows azure-ucws linux azure-ucws windows gcp linux gcp windows
TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 🔄​f 💚​R 💚​R 💚​R
TestAccept/bundle/resources/dashboards/detect-change ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
TestAccept/bundle/resources/dashboards/detect-change/DATABRICKS_BUNDLE_ENGINE=terraform ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
TestAccept/bundle/run/app-with-job 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S

@shreyas-goenka shreyas-goenka changed the title Add client side validation and defaults for model serving endpoints Add validation that served_models and served_entities are not used at the same time. Add client side translation logic. Nov 5, 2025
@shreyas-goenka shreyas-goenka changed the title Add validation that served_models and served_entities are not used at the same time. Add client side translation logic. Add validation and translation for served_models and served_entities in serving endpoints Nov 5, 2025
@shreyas-goenka shreyas-goenka marked this pull request as ready for review November 5, 2025 13:49
@shreyas-goenka shreyas-goenka requested a review from denik November 5, 2025 16:23

func servedModelToServedEntity(model serving.ServedModelInput) serving.ServedEntityInput {
return serving.ServedEntityInput{
// served_models does not support ExternalModel, so we set ExternalModel to nil
Copy link
Contributor

Choose a reason for hiding this comment

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

// served_models

typo? should be "served entities"?

@shreyas-goenka shreyas-goenka merged commit 8126230 into main Nov 5, 2025
12 of 13 checks passed
@shreyas-goenka shreyas-goenka deleted the model-serving-processing branch November 5, 2025 16:38
deco-sdk-tagging bot added a commit that referenced this pull request Nov 13, 2025
## Release v0.277.0

### Bundles
* Add `default-minimal` template for users who want a clean slate without sample code ([#3885](#3885))
* Add validation that served_models and served_entities are not used at the same time. Add client side translation logic. ([#3880](#3880))
* Filter out provided permissions, to select a single permissions level per principal (([#3904](#3904))).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants