Skip to content

Commit acaf6e2

Browse files
committed
Also patch effective_run_spec
1 parent f992746 commit acaf6e2

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/dstack/_internal/server/compatibility/runs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ def patch_run_plan(run_plan: RunPlan, client_version: Optional[Version]) -> None
1111
if client_version is None:
1212
return
1313
patch_run_spec(run_plan.run_spec, client_version)
14+
if run_plan.effective_run_spec is not None:
15+
patch_run_spec(run_plan.effective_run_spec, client_version)
1416
if run_plan.current_resource is not None:
1517
patch_run(run_plan.current_resource, client_version)
1618
for job_plan in run_plan.job_plans:

src/tests/_internal/server/routers/test_runs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,7 @@ async def test_patches_service_configuration_probes_for_old_clients(
16251625
assert response.status_code == 200
16261626
run_plan = response.json()
16271627
assert run_plan["run_spec"]["configuration"]["probes"] == expected_probes
1628+
assert run_plan["effective_run_spec"]["configuration"]["probes"] == expected_probes
16281629
assert (
16291630
run_plan["current_resource"]["run_spec"]["configuration"]["probes"] == expected_probes
16301631
)

0 commit comments

Comments
 (0)