From fe0947f0cb76502418b02dd2f7dbd42e773be7ec Mon Sep 17 00:00:00 2001 From: Jvst Me Date: Wed, 5 Aug 2026 17:47:44 +0200 Subject: [PATCH] Update future release references 0.20.30 -> 0.21.0 --- runner/docs/shim.openapi.yaml | 4 ++-- .../server/background/pipeline_tasks/gateway_replicas.py | 4 ++-- .../server/background/pipeline_tasks/gateways.py | 8 ++++---- src/dstack/_internal/server/models.py | 4 ++-- src/tests/_internal/server/services/runner/test_client.py | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/runner/docs/shim.openapi.yaml b/runner/docs/shim.openapi.yaml index 25f853c43..99f76e5c3 100644 --- a/runner/docs/shim.openapi.yaml +++ b/runner/docs/shim.openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.1.2 info: title: dstack-shim API - version: v2/0.20.30 + version: v2/0.21.0 x-logo: url: https://avatars.githubusercontent.com/u/54146142?s=260 description: > @@ -90,7 +90,7 @@ paths: get: summary: Get instance info description: > - (since [0.20.30](https://github.com/dstackai/dstack/releases/tag/0.20.30)) + (since [0.21.0](https://github.com/dstackai/dstack/releases/tag/0.21.0)) Returns facts about the host observed by shim, e.g., the GPU driver version. Unlike `/components`, the reported entities are not managed by shim. tags: [Instance] diff --git a/src/dstack/_internal/server/background/pipeline_tasks/gateway_replicas.py b/src/dstack/_internal/server/background/pipeline_tasks/gateway_replicas.py index cfc058793..d089b6eb6 100644 --- a/src/dstack/_internal/server/background/pipeline_tasks/gateway_replicas.py +++ b/src/dstack/_internal/server/background/pipeline_tasks/gateway_replicas.py @@ -835,8 +835,8 @@ def _is_legacy_aws_acm_gateway_with_pending_migration(gateway_model: GatewayMode and gateway_model.hostname is None ): logger.warning( - "Found AWS ACM gateway %s without a hostname, which should indicate a pre-0.20.30" - " gateway not yet migrated to the 0.20.30 format. Waiting for the gateway pipeline to" + "Found AWS ACM gateway %s without a hostname, which should indicate a pre-0.21.0" + " gateway not yet migrated to the 0.21.0 format. Waiting for the gateway pipeline to" " perform the migration", gateway_model.id, ) diff --git a/src/dstack/_internal/server/background/pipeline_tasks/gateways.py b/src/dstack/_internal/server/background/pipeline_tasks/gateways.py index 3a50add43..55eb6b800 100644 --- a/src/dstack/_internal/server/background/pipeline_tasks/gateways.py +++ b/src/dstack/_internal/server/background/pipeline_tasks/gateways.py @@ -189,7 +189,7 @@ async def fetch(self, limit: int) -> list[GatewayPipelineItem]: GatewayModel.replica_scale_attempt > 0, ), ), - # fetch pre-0.20.30 AWS ACM gateways to migrate their hostname + # fetch pre-0.21.0 AWS ACM gateways to migrate their hostname # and backend_data onto GatewayModel and_( GatewayModel.hostname.is_(None), @@ -737,7 +737,7 @@ def _reconcile_gateway_replica_count( gateway_replicas: list[GatewayComputeModel], ) -> _ReplicaScalingResult: desired_replica_count = gateway_model.desired_replica_count - if desired_replica_count is None: # pre-0.20.30 gateway + if desired_replica_count is None: # pre-0.21.0 gateway if gateway_model.status != GatewayStatus.SUBMITTED: return _ReplicaScalingResult() desired_replica_count = gateways_services.get_gateway_configuration(gateway_model).replicas @@ -891,7 +891,7 @@ def _migrate_hostname_and_backend_data_from_legacy_replica( gateway_computes: list[GatewayComputeModel], ) -> _GatewayUpdateMap: """ - Move `hostname` and `backend_data` from pre-0.20.30 GatewayComputeModel onto GatewayModel. + Move `hostname` and `backend_data` from pre-0.21.0 GatewayComputeModel onto GatewayModel. Alembic migration ecc9e8a0bfac does the same thing. This function is a fallback in case any gateways are created by an older server replica after the migration passes. @@ -902,7 +902,7 @@ def _migrate_hostname_and_backend_data_from_legacy_replica( if gateway_compute.hostname_deprecated_readonly is not None: update_map: _GatewayUpdateMap = { "hostname": gateway_compute.hostname_deprecated_readonly, - # Pre-0.20.30 AWS ACM gateways used GatewayComputeModel.backend_data exclusively + # Pre-0.21.0 AWS ACM gateways used GatewayComputeModel.backend_data exclusively # for load-balancer related fields, and not for gateway replica instance fields. # So GatewayComputeModel.backend_data is copied entirely. "backend_data": gateway_compute.backend_data, diff --git a/src/dstack/_internal/server/models.py b/src/dstack/_internal/server/models.py index 72c974542..c99d27789 100644 --- a/src/dstack/_internal/server/models.py +++ b/src/dstack/_internal/server/models.py @@ -613,7 +613,7 @@ class GatewayModel(PipelineModelMixin, BaseModel): status: Mapped[GatewayStatus] = mapped_column(EnumAsString(GatewayStatus, 100)) status_message: Mapped[Optional[str]] = mapped_column(Text) desired_replica_count: Mapped[Optional[int]] = mapped_column(Integer) - """Only `None` for pre-0.20.30 gateways that were never scaled""" + """Only `None` for pre-0.21.0 gateways that were never scaled""" replica_scale_attempt: Mapped[int] = mapped_column(Integer, server_default="0") last_replica_scale_attempt_at: Mapped[Optional[datetime]] = mapped_column(NaiveDateTime) last_update_at: Mapped[Optional[datetime]] = mapped_column(NaiveDateTime) @@ -690,7 +690,7 @@ class GatewayComputeModel(PipelineModelMixin, BaseModel): **TODO**: rename. """ hostname_deprecated_readonly: Mapped[Optional[str]] = mapped_column("hostname", String(100)) - """Replaced by GatewayModel.hostname since 0.20.30""" + """Replaced by GatewayModel.hostname since 0.21.0""" configuration: Mapped[Optional[str]] = mapped_column(Text) """`configuration` is optional for compatibility with pre-0.18.2 gateways. Use `get_gateway_compute_configuration` to construct `configuration` for old gateways. diff --git a/src/tests/_internal/server/services/runner/test_client.py b/src/tests/_internal/server/services/runner/test_client.py index efa6b64e3..0257dcd51 100644 --- a/src/tests/_internal/server/services/runner/test_client.py +++ b/src/tests/_internal/server/services/runner/test_client.py @@ -638,7 +638,7 @@ def test_gpu_driver(self): class TestShimClientGetInstanceInfo(BaseShimClientTest): - @pytest.mark.shim_version("0.20.30") + @pytest.mark.shim_version("0.21.0") def test_returns_instance_info(self, adapter: requests_mock.Adapter, client: ShimClient): adapter.register_uri( "GET",