Skip to content

Commit cfc4ac5

Browse files
authored
fix: add branch name to remote gpu test run command (#195)
1 parent 7bb4475 commit cfc4ac5

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

buildspec-release.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,25 @@ phases:
3131
# Build all images
3232
- python3 scripts/build_all.py --account $ACCOUNT --region $AWS_DEFAULT_REGION
3333

34+
# Publish all images
35+
- python3 scripts/publish_all.py --account $ACCOUNT --region $AWS_DEFAULT_REGION
36+
37+
- base_name="$ACCOUNT.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/sagemaker-tensorflow-scriptmode"
3438
# run local cpu integ tests
3539
- $(aws ecr get-login --registry-ids $ACCOUNT --no-include-email --region $AWS_DEFAULT_REGION)
36-
- IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --docker-base-name sagemaker-tensorflow-scriptmode --framework-version $FRAMEWORK_VERSION --processor cpu
37-
- IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --docker-base-name sagemaker-tensorflow-scriptmode --py-version 2 --framework-version $FRAMEWORK_VERSION --processor cpu
40+
- IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --docker-base-name $base_name --framework-version $FRAMEWORK_VERSION --processor cpu
41+
- IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --docker-base-name $base_name --py-version 2 --framework-version $FRAMEWORK_VERSION --processor cpu
3842

3943
# launch remote gpu instance
4044
- prefix='ml.'
4145
- instance_type=${GPU_INSTANCE_TYPE#"$prefix"}
4246
- create-key-pair
4347
- launch-ec2-instance --instance-type $instance_type --ami-name dlami-ubuntu
4448

45-
- py2_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --docker-base-name sagemaker-tensorflow-scriptmode --py-version 2 --framework-version $FRAMEWORK_VERSION --processor gpu"
46-
- remote-test --github-repo $GITHUB_REPO --test-cmd "$py2_cmd"
47-
- py3_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --docker-base-name sagemaker-tensorflow-scriptmode --framework-version $FRAMEWORK_VERSION --processor gpu"
48-
- remote-test --github-repo $GITHUB_REPO --test-cmd "$py3_cmd"
49-
50-
# Publish all images
51-
- python3 scripts/publish_all.py --account $ACCOUNT --region $AWS_DEFAULT_REGION
49+
- py2_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --docker-base-name $base_name --py-version 2 --framework-version $FRAMEWORK_VERSION --processor gpu"
50+
- remote-test --github-repo sagemaker-tensorflow-container --branch script-mode --test-cmd "$py2_cmd"
51+
- py3_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --docker-base-name $base_name --framework-version $FRAMEWORK_VERSION --processor gpu"
52+
- remote-test --github-repo sagemaker-tensorflow-container --branch script-mode --test-cmd "$py3_cmd"
5253

5354
- |
5455
echo '[{

0 commit comments

Comments
 (0)