Skip to content

Add validation and translation for served_models and served_entities in serving endpoints - #3880

Merged
shreyas-goenka merged 13 commits into
mainfrom
model-serving-processing
Nov 5, 2025
Merged

Add validation and translation for served_models and served_entities in serving endpoints#3880
shreyas-goenka merged 13 commits into
mainfrom
model-serving-processing

Conversation

@shreyas-goenka

@shreyas-goenkashreyas-goenka commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
Collaborator

Run: 19108849133

Env🔄​flaky💚​RECOVERED🙈​SKIP✅​pass🙈​skip
💚​aws linux11356594
💚​aws windows11357593
💚​aws-ucws linux11479489
💚​aws-ucws windows11480488
💚​azure linux11356593
💚​azure windows11357592
🔄​azure-ucws linux31473488
💚​azure-ucws windows11476487
💚​gcp linux11355595
💚​gcp windows11356594
Test Nameaws linuxaws windowsaws-ucws linuxaws-ucws windowsazure linuxazure windowsazure-ucws linuxazure-ucws windowsgcp linuxgcp 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-goenkashreyas-goenka changed the title Add client side validation and defaults for model serving endpointsAdd validation that served_models and served_entities are not used at the same time. Add client side translation logic.Nov 5, 2025
@shreyas-goenkashreyas-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 endpointsNov 5, 2025
Comment threadbundle/config/mutator/resourcemutator/model_serving_endpoint_fixups.go Outdated

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

Copy link
Copy Markdown
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 mainNov 5, 2025
12 of 13 checks passed
@shreyas-goenka
shreyas-goenka deleted the model-serving-processing branch November 5, 2025 16:38
deco-sdk-taggingBot 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))).
denik pushed a commit that referenced this pull request May 20, 2026
…in serving endpoints (#3880)
## 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.
denik pushed a commit that referenced this pull request May 20, 2026
## 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 freeto 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.

3 participants

@shreyas-goenka@eng-dev-ecosystem-bot@denik