@@ -2,10 +2,10 @@ version: 0.2
22
33env :
44 variables :
5- FRAMEWORK_VERSION : ' 1.6.0 '
5+ FRAMEWORK_VERSION : ' 1.10.2 '
66 EIA_FRAMEWORK_VERSION : ' 1.3.1'
77 CPU_INSTANCE_TYPE : ' ml.c4.xlarge'
8- GPU_INSTANCE_TYPE : ' ml.p2 .8xlarge'
8+ GPU_INSTANCE_TYPE : ' ml.p3 .8xlarge'
99 EIA_ACCELERATOR_TYPE : ' ml.eia2.medium'
1010 ECR_REPO : ' sagemaker-test'
1111 GITHUB_REPO : ' sagemaker-pytorch-serving-container'
@@ -39,12 +39,12 @@ phases:
3939 - GENERIC_TAG="$FRAMEWORK_VERSION-pytorch-$BUILD_ID"
4040 - DLC_CPU_TAG="$FRAMEWORK_VERSION-dlc-cpu-$BUILD_ID"
4141 - DLC_GPU_TAG="$FRAMEWORK_VERSION-dlc-gpu-$BUILD_ID"
42- - DLC_EIA_TAG="$FRAMEWORK_VERSION -dlc-eia-$BUILD_ID"
42+ - DLC_EIA_TAG="$EIA_FRAMEWORK_VERSION -dlc-eia-$BUILD_ID"
4343
4444 # run local CPU integration tests (build and push the image to ECR repo)
45- - test_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --build-image --push-image --dockerfile-type pytorch --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --aws-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --tag $GENERIC_TAG"
45+ - test_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local -vv -rA -s - -build-image --push-image --dockerfile-type pytorch --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --aws-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --tag $GENERIC_TAG"
4646 - execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml" "artifacts/*"
47- - test_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --build-image --push-image --dockerfile-type dlc.cpu --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --aws-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --tag $DLC_CPU_TAG"
47+ - test_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local -vv -rA -s - -build-image --push-image --dockerfile-type dlc.cpu --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --aws-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --tag $DLC_CPU_TAG"
4848 - execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml" "artifacts/*"
4949
5050 # launch remote GPU instance
@@ -65,10 +65,10 @@ phases:
6565 # run GPU local integration tests
6666 - printf "$SETUP_CMDS" > $SETUP_FILE
6767 # no reason to rebuild the image again since it was already built and pushed to ECR during CPU tests
68- - generic_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --aws-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --tag $GENERIC_TAG"
68+ - generic_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local -vv -rA -s - -region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --aws-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --tag $GENERIC_TAG"
6969 - test_cmd="remote-test --github-repo $GITHUB_REPO --test-cmd \"$generic_cmd\" --setup-file $SETUP_FILE --pr-number \"$PR_NUM\""
7070 - execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml" "artifacts/*"
71- - dlc_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --aws-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --tag $DLC_GPU_TAG"
71+ - dlc_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local -vv -rA -s - -region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --aws-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --tag $DLC_GPU_TAG"
7272 - test_cmd="remote-test --github-repo $GITHUB_REPO --test-cmd \"$dlc_cmd\" --setup-file $SETUP_FILE --pr-number \"$PR_NUM\" --skip-setup"
7373 - execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml" "artifacts/*"
7474
0 commit comments