You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let make_serving_endpoint reference a valid model version (#106)
## Changes
The `make_serving_endpoint` fixture [stopped working as of
yesterday](https://github.com/databrickslabs/pytester/actions/runs/13405748534).
Apparently, the created models from the `make_model` fixture do not come
with a model version anymore (which used to be `'1'`).
The `make_serving_endpoint` is updated to fallback on a UC model
version. Also, it allows users to provide input parameters in case they
want to use another model.
### Linked issues
Resolves #databrickslabs/ucx#3714
Resolves #databrickslabs/ucx#3715
### Tests
- [x] added unit tests
- [ ] fixed integration test
See also [`make_serving_endpoint`](#make_serving_endpoint-fixture), [`ws`](#ws-fixture), [`make_random`](#make_random-fixture), [`watchdog_remove_after`](#watchdog_remove_after-fixture).
1068
+
See also [`ws`](#ws-fixture), [`make_random`](#make_random-fixture), [`watchdog_remove_after`](#watchdog_remove_after-fixture).
1069
1069
1070
1070
1071
1071
[[back to top](#python-testing-for-databricks)]
@@ -1204,6 +1204,13 @@ The function returns a [`ServingEndpointDetailed`](https://databricks-sdk-py.rea
1204
1204
1205
1205
Under the covers, this fixture also creates a model to serve on a small workload size.
1206
1206
1207
+
Keyword arguments:
1208
+
*`endpoint_name` (str, optional): The name of the endpoint. Defaults to `dummy-*`.
1209
+
*`model_name` (str, optional): The name of the model to serve on the endpoint.
1210
+
Defaults to system model `system.ai.llama_v3_2_1b_instruct`.
1211
+
*`model_version` (str, optional): The model version to serve. If None, tries to get the latest version for
1212
+
workspace local models. Otherwise, defaults to version `1`.
See also [`ws`](#ws-fixture), [`make_random`](#make_random-fixture), [`make_model`](#make_model-fixture), [`watchdog_remove_after`](#watchdog_remove_after-fixture).
1226
+
See also [`ws`](#ws-fixture), [`make_random`](#make_random-fixture), [`watchdog_remove_after`](#watchdog_remove_after-fixture).
0 commit comments