Skip to content

Commit ac8313e

Browse files
Fix autogluon license test (#4977)
* Fix license test for Autogluon images * Python formatting fix * Resolve comments * Add Pytorch as framework
1 parent 7784105 commit ac8313e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/dlc_tests/sanity/test_pre_release.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,9 @@ def test_license_file(image):
10781078
framework, version = get_framework_and_version_from_tag(image)
10791079
if framework == "autogluon":
10801080
short_version = get_pytorch_version_from_autogluon_image(image)
1081+
# Default to pytorch framework for autogluon since autogluon is built on top of pytorch
1082+
# and uses the same license file structure in S3
1083+
framework = "pytorch"
10811084
else:
10821085
short_version = re.search(r"(\d+\.\d+)", version).group(0)
10831086
LICENSE_FILE_BUCKET = "aws-dlc-licenses"

0 commit comments

Comments
 (0)