Skip to content

Commit

Permalink
[Hot-fix] Pinning DLAMIs to prevent failures due to nvidia-docker dep…
Browse files Browse the repository at this point in the history
…recation (#3882)

* Pinning DLAMIs to prevent failures due to nvidia-docker deprecation

* buildspec override for traning and inf images

* Revert temp files
  • Loading branch information
shantanutrip authored May 3, 2024
1 parent 67c9001 commit 4eec93b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/test_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@ def get_ami_id_boto3(region_name, ami_name_pattern, IncludeDeprecated=False):
Owners=["amazon"],
IncludeDeprecated=IncludeDeprecated,
)
ami = max(ami_list["Images"], key=lambda x: x["CreationDate"])
#### TODO: remove/comment this when the 3881 is merged ####
# Date pinning AMI IDs due to nvidia-docker deprecation
filtered_images = [
element
for element in ami_list["Images"]
if datetime.strptime(element["CreationDate"], "%Y-%m-%dT%H:%M:%S.%fZ")
< datetime.strptime("2024-05-02", "%Y-%m-%d")
]
ami = max(filtered_images, key=lambda x: x["CreationDate"])
return ami["ImageId"]


Expand Down

0 comments on commit 4eec93b

Please sign in to comment.