@@ -931,11 +931,11 @@ def _call_patch_base_image_for_aws_efa(
931931 ],
932932 )
933933 def test_patch_aws_efa_instance_with_suffix (self , suffix : str , instance_type : str ):
934- image_name = f"{ settings .DSTACK_BASE_IMAGE } :{ settings .DSTACK_BASE_IMAGE_VERSION } { suffix } "
934+ image_name = f"{ settings .DSTACK_BASE_IMAGE } :{ settings .DSTACK_BASE_IMAGE_VERSION } { suffix } -ubuntu { settings . DSTACK_BASE_IMAGE_UBUNTU_VERSION } "
935935 result = self ._call_patch_base_image_for_aws_efa (
936936 image_name , BackendType .AWS , instance_type
937937 )
938- expected = f"{ settings .DSTACK_BASE_IMAGE } :{ settings .DSTACK_BASE_IMAGE_VERSION } -devel-efa"
938+ expected = f"{ settings .DSTACK_BASE_IMAGE } :{ settings .DSTACK_BASE_IMAGE_VERSION } -devel-efa-ubuntu { settings . DSTACK_BASE_IMAGE_UBUNTU_VERSION } "
939939 assert result == expected
940940
941941 @pytest .mark .parametrize ("suffix" , ["-base" , "-devel" ])
@@ -954,11 +954,11 @@ def test_patch_aws_efa_instance_with_suffix(self, suffix: str, instance_type: st
954954 ],
955955 )
956956 def test_patch_all_efa_instance_types (self , instance_type : str , suffix : str ):
957- image_name = f"{ settings .DSTACK_BASE_IMAGE } :{ settings .DSTACK_BASE_IMAGE_VERSION } { suffix } "
957+ image_name = f"{ settings .DSTACK_BASE_IMAGE } :{ settings .DSTACK_BASE_IMAGE_VERSION } { suffix } -ubuntu { settings . DSTACK_BASE_IMAGE_UBUNTU_VERSION } "
958958 result = self ._call_patch_base_image_for_aws_efa (
959959 image_name , BackendType .AWS , instance_type
960960 )
961- expected = f"{ settings .DSTACK_BASE_IMAGE } :{ settings .DSTACK_BASE_IMAGE_VERSION } -devel-efa"
961+ expected = f"{ settings .DSTACK_BASE_IMAGE } :{ settings .DSTACK_BASE_IMAGE_VERSION } -devel-efa-ubuntu { settings . DSTACK_BASE_IMAGE_UBUNTU_VERSION } "
962962 assert result == expected
963963
964964 @pytest .mark .parametrize ("suffix" , ["-base" , "-devel" ])
@@ -978,7 +978,7 @@ def test_patch_all_efa_instance_types(self, instance_type: str, suffix: str):
978978 def test_no_patch_non_aws_backends (
979979 self , backend : BackendType , suffix : str , instance_type : str
980980 ):
981- image_name = f"{ settings .DSTACK_BASE_IMAGE } :{ settings .DSTACK_BASE_IMAGE_VERSION } { suffix } "
981+ image_name = f"{ settings .DSTACK_BASE_IMAGE } :{ settings .DSTACK_BASE_IMAGE_VERSION } { suffix } -ubuntu { settings . DSTACK_BASE_IMAGE_UBUNTU_VERSION } "
982982 result = self ._call_patch_base_image_for_aws_efa (image_name , backend , instance_type )
983983 assert result == image_name
984984
0 commit comments