Skip to content

Commit b797f92

Browse files
authored
infra: Make docker folder read only, remove unused tests. (#370)
1 parent a630ba6 commit b797f92

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+182
-2471
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[flake8]
2-
application_import_names = image_utils, integration, sagemaker_tensorflow_container, test, test-toolkit, timeout, utils
2+
application_import_names = image_utils, integration, sagemaker_tensorflow_container, test, timeout, utils
33
import-order-style = google

buildspec-toolkit.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ phases:
3333
- tox -e flake8,twine
3434

3535
# run unit tests
36-
- tox -e py27,py36,py37 --parallel all test-toolkit/unit
36+
- tox -e py27,py36,py37 --parallel all test/unit
3737

3838
# define tags
3939
- GENERIC_TAG="$FRAMEWORK_VERSION-tensorflow-$BUILD_ID"
4040
- DLC_CPU_TAG="$FRAMEWORK_VERSION-dlc-cpu-$BUILD_ID"
4141
- DLC_GPU_TAG="$FRAMEWORK_VERSION-dlc-gpu-$BUILD_ID"
4242

4343
# run local CPU integration tests (build and push the image to ECR repo)
44-
- test_cmd="pytest test-toolkit/integration/local --build-image --push-image --dockerfile-type tf --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --tag $GENERIC_TAG"
45-
- execute-command-if-has-matching-changes "$test_cmd" "test-toolkit/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
46-
- test_cmd="pytest test-toolkit/integration/local --build-image --push-image --dockerfile-type dlc.cpu --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --tag $DLC_CPU_TAG"
47-
- execute-command-if-has-matching-changes "$test_cmd" "test-toolkit/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
44+
- test_cmd="pytest test/integration/local --build-image --push-image --dockerfile-type tf --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --tag $GENERIC_TAG"
45+
- execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
46+
- test_cmd="pytest test/integration/local --build-image --push-image --dockerfile-type dlc.cpu --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --tag $DLC_CPU_TAG"
47+
- execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
4848

4949
# launch remote GPU instance
5050
- prefix='ml.'
@@ -54,7 +54,7 @@ phases:
5454

5555
# build DLC GPU image because the base DLC image is too big and takes too long to build as part of the test
5656
- python3 setup.py sdist
57-
- build_dir="test-toolkit/docker/$FRAMEWORK_VERSION"
57+
- build_dir="test/container/$FRAMEWORK_VERSION"
5858
- $(aws ecr get-login --registry-ids $DLC_ACCOUNT --no-include-email --region $AWS_DEFAULT_REGION)
5959
- docker build -f "$build_dir/Dockerfile.dlc.gpu" -t $PREPROD_IMAGE:$DLC_GPU_TAG --build-arg region=$AWS_DEFAULT_REGION .
6060
# push DLC GPU image to ECR
@@ -64,24 +64,24 @@ phases:
6464
# run GPU local integration tests
6565
- printf "$SETUP_CMDS" > $SETUP_FILE
6666
# no reason to rebuild the image again since it was already built and pushed to ECR during CPU tests
67-
- generic_cmd="pytest test-toolkit/integration/local --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --tag $GENERIC_TAG"
67+
- generic_cmd="pytest test/integration/local --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --tag $GENERIC_TAG"
6868
- test_cmd="remote-test --github-repo $GITHUB_REPO --test-cmd \"$generic_cmd\" --setup-file $SETUP_FILE --pr-number \"$PR_NUM\""
69-
- execute-command-if-has-matching-changes "$test_cmd" "test-toolkit/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
70-
- dlc_cmd="pytest test-toolkit/integration/local --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --tag $DLC_GPU_TAG"
69+
- execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
70+
- dlc_cmd="pytest test/integration/local --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --tag $DLC_GPU_TAG"
7171
- test_cmd="remote-test --github-repo $GITHUB_REPO --test-cmd \"$dlc_cmd\" --setup-file $SETUP_FILE --pr-number \"$PR_NUM\" --skip-setup"
72-
- execute-command-if-has-matching-changes "$test_cmd" "test-toolkit/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
72+
- execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
7373

7474
# run CPU sagemaker integration tests
75-
- test_cmd="pytest test-toolkit/integration/sagemaker --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --instance-type $CPU_INSTANCE_TYPE --tag $GENERIC_TAG"
76-
- execute-command-if-has-matching-changes "$test_cmd" "test-toolkit/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
77-
- test_cmd="pytest test-toolkit/integration/sagemaker --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --instance-type $CPU_INSTANCE_TYPE --tag $DLC_CPU_TAG"
78-
- execute-command-if-has-matching-changes "$test_cmd" "test-toolkit/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
75+
- test_cmd="pytest test/integration/sagemaker --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --instance-type $CPU_INSTANCE_TYPE --tag $GENERIC_TAG"
76+
- execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
77+
- test_cmd="pytest test/integration/sagemaker --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor cpu --instance-type $CPU_INSTANCE_TYPE --tag $DLC_CPU_TAG"
78+
- execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
7979

8080
# run GPU sagemaker integration tests
81-
- test_cmd="pytest test-toolkit/integration/sagemaker --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --instance-type $GPU_INSTANCE_TYPE --tag $GENERIC_TAG"
82-
- execute-command-if-has-matching-changes "$test_cmd" "test-toolkit/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
83-
- test_cmd="pytest test-toolkit/integration/sagemaker --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --instance-type $GPU_INSTANCE_TYPE --tag $DLC_GPU_TAG"
84-
- execute-command-if-has-matching-changes "$test_cmd" "test-toolkit/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
81+
- test_cmd="pytest test/integration/sagemaker --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --instance-type $GPU_INSTANCE_TYPE --tag $GENERIC_TAG"
82+
- execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
83+
- test_cmd="pytest test/integration/sagemaker --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --framework-version $FRAMEWORK_VERSION --processor gpu --instance-type $GPU_INSTANCE_TYPE --tag $DLC_GPU_TAG"
84+
- execute-command-if-has-matching-changes "$test_cmd" "test/" "src/*.py" "setup.py" "setup.cfg" "buildspec-toolkit.yml"
8585
finally:
8686
# shut down remote GPU instance
8787
- cleanup-gpu-instances

buildspec.yml

Lines changed: 2 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -1,174 +1,13 @@
11
version: 0.2
22

3-
env:
4-
variables:
5-
FRAMEWORK_VERSION: '1.15.2'
6-
ECR_REPO: 'sagemaker-test'
7-
GITHUB_REPO: 'sagemaker-tensorflow-container'
8-
SETUP_FILE: 'setup_cmds.sh'
9-
SETUP_CMDS: '#!/bin/bash\npip install --upgrade pip\npip install -U -e .\npip install -U -e .[test]'
10-
CPU_DOCKERFILE: 'Dockerfile.cpu'
11-
GPU_DOCKERFILE: 'Dockerfile.gpu'
12-
133
phases:
144
pre_build:
155
commands:
16-
- start-dockerd
17-
- ACCOUNT=$(aws --region $AWS_DEFAULT_REGION sts --endpoint-url https://sts.$AWS_DEFAULT_REGION.amazonaws.com get-caller-identity --query 'Account' --output text)
18-
- PREPROD_IMAGE="$ACCOUNT.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$ECR_REPO"
19-
- PROD_IMAGE="763104351884.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/tensorflow-training"
206
- PR_NUM=$(echo $CODEBUILD_SOURCE_VERSION | grep -o '[0-9]\+')
217
- echo 'Pull request number:' $PR_NUM '. No value means this build is not from pull request.'
228

239
build:
2410
commands:
25-
# install
26-
- pip3 install -U -e .[test]
27-
28-
# run flake8
29-
- tox -e flake8,twine
30-
31-
- root_dir=$(pwd)
32-
- build_id="$(echo $CODEBUILD_BUILD_ID | sed -e 's/:/-/g')"
33-
34-
# Find build artifacts
35-
- build_artifacts=$root_dir/docker/build_artifacts
36-
37-
# login so we can pull prod images for cache
38-
- $(aws ecr get-login --registry-ids 763104351884 --no-include-email --region $AWS_DEFAULT_REGION)
39-
40-
# build py2 images
41-
42-
# prepare build context
43-
- build_dir="$root_dir/docker/$FRAMEWORK_VERSION/py2"
44-
- cp $build_artifacts/*.py $build_dir/
45-
- cd $build_dir
46-
47-
# build cpu image
48-
- prod_tag="$FRAMEWORK_VERSION-cpu-py2"
49-
- CPU_TAG_PY2="$prod_tag-$build_id"
50-
- docker pull $PROD_IMAGE:$prod_tag
51-
- build_cmd="docker build --cache-from $PROD_IMAGE:$prod_tag -f $CPU_DOCKERFILE -t $PREPROD_IMAGE:$CPU_TAG_PY2 . "
52-
- execute-command-if-has-matching-changes "$build_cmd" "test/" "docker/*" "buildspec.yml"
53-
54-
# build gpu image
55-
- prod_tag="$FRAMEWORK_VERSION-gpu-py2"
56-
- GPU_TAG_PY2="$prod_tag-$build_id"
57-
- docker pull $PROD_IMAGE:$prod_tag
58-
- build_cmd="docker build --cache-from $PROD_IMAGE:$prod_tag -f $GPU_DOCKERFILE -t $PREPROD_IMAGE:$GPU_TAG_PY2 . "
59-
- execute-command-if-has-matching-changes "$build_cmd" "test/" "docker/*" "buildspec.yml"
60-
61-
# build py3 images
62-
63-
# prepare build context
64-
- build_dir="$root_dir/docker/$FRAMEWORK_VERSION/py3"
65-
- cp $build_artifacts/*.py $build_dir/
66-
- cd $build_dir
67-
68-
# build cpu image
69-
- prod_tag="$FRAMEWORK_VERSION-cpu-py3"
70-
- CPU_TAG_PY3="$prod_tag-$build_id"
71-
- docker pull $PROD_IMAGE:$prod_tag
72-
- build_cmd="docker build --cache-from $PROD_IMAGE:$prod_tag -f $CPU_DOCKERFILE -t $PREPROD_IMAGE:$CPU_TAG_PY3 . "
73-
- execute-command-if-has-matching-changes "$build_cmd" "test/" "docker/*" "buildspec.yml"
74-
75-
# build gpu image
76-
- prod_tag="$FRAMEWORK_VERSION-gpu-py3"
77-
- GPU_TAG_PY3="$prod_tag-$build_id"
78-
- docker pull $PROD_IMAGE:$prod_tag
79-
- build_cmd="docker build --cache-from $PROD_IMAGE:$prod_tag -f $GPU_DOCKERFILE -t $PREPROD_IMAGE:$GPU_TAG_PY3 . "
80-
- execute-command-if-has-matching-changes "$build_cmd" "test/" "docker/*" "buildspec.yml"
81-
82-
# build py37 images
83-
84-
# prepare build context
85-
- build_dir="$root_dir/docker/$FRAMEWORK_VERSION/py37"
86-
- cp $build_artifacts/*.py $build_dir/
87-
- cd $build_dir
88-
89-
# build cpu image
90-
- prod_tag="$FRAMEWORK_VERSION-cpu-py37"
91-
- CPU_TAG_PY37="$prod_tag-$build_id"
92-
- build_cmd="docker build --no-cache -f $CPU_DOCKERFILE -t $PREPROD_IMAGE:$CPU_TAG_PY37 . "
93-
- execute-command-if-has-matching-changes "$build_cmd" "test/" "docker/*" "buildspec.yml"
94-
95-
# build gpu image
96-
- prod_tag="$FRAMEWORK_VERSION-gpu-py37"
97-
- GPU_TAG_PY37="$prod_tag-$build_id"
98-
- build_cmd="docker build --no-cache -f $GPU_DOCKERFILE -t $PREPROD_IMAGE:$GPU_TAG_PY37 . "
99-
- execute-command-if-has-matching-changes "$build_cmd" "test/" "docker/*" "buildspec.yml"
100-
101-
# push images to ecr
102-
- $(aws ecr get-login --registry-ids $ACCOUNT --no-include-email --region $AWS_DEFAULT_REGION)
103-
- push_cmd="docker push $PREPROD_IMAGE:$CPU_TAG_PY2"
104-
- execute-command-if-has-matching-changes "$push_cmd" "test/" "docker/*" "buildspec.yml"
105-
- push_cmd="docker push $PREPROD_IMAGE:$GPU_TAG_PY2"
106-
- execute-command-if-has-matching-changes "$push_cmd" "test/" "docker/*" "buildspec.yml"
107-
- push_cmd="docker push $PREPROD_IMAGE:$CPU_TAG_PY3"
108-
- execute-command-if-has-matching-changes "$push_cmd" "test/" "docker/*" "buildspec.yml"
109-
- push_cmd="docker push $PREPROD_IMAGE:$GPU_TAG_PY3"
110-
- execute-command-if-has-matching-changes "$push_cmd" "test/" "docker/*" "buildspec.yml"
111-
- push_cmd="docker push $PREPROD_IMAGE:$CPU_TAG_PY37"
112-
- execute-command-if-has-matching-changes "$push_cmd" "test/" "docker/*" "buildspec.yml"
113-
- push_cmd="docker push $PREPROD_IMAGE:$GPU_TAG_PY37"
114-
- execute-command-if-has-matching-changes "$push_cmd" "test/" "docker/*" "buildspec.yml"
115-
116-
# launch remote gpu instance
117-
- instance_type='p2.xlarge'
118-
- create-key-pair
119-
- launch-ec2-instance --instance-type $instance_type --ami-name dlami-ubuntu
120-
121-
# run cpu integration tests
122-
- py3_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --region $AWS_DEFAULT_REGION --docker-base-name $PREPROD_IMAGE --tag $CPU_TAG_PY3 --framework-version $FRAMEWORK_VERSION --py-version 3 --processor cpu --durations 10"
123-
- execute-command-if-has-matching-changes "$py3_cmd" "test/" "docker/*" "buildspec.yml"
124-
- py37_cmd="IGNORE_COVERAGE=- tox -e py37 -- test/integration/local --region $AWS_DEFAULT_REGION --docker-base-name $PREPROD_IMAGE --tag $CPU_TAG_PY37 --framework-version $FRAMEWORK_VERSION --py-version 3 --processor cpu --durations 10"
125-
- execute-command-if-has-matching-changes "$py37_cmd" "test/" "docker/*" "buildspec.yml"
126-
- py2_cmd="IGNORE_COVERAGE=- tox -e py27 -- test/integration/local --region $AWS_DEFAULT_REGION --docker-base-name $PREPROD_IMAGE --tag $CPU_TAG_PY2 --framework-version $FRAMEWORK_VERSION --py-version 2 --processor cpu --durations 10"
127-
- execute-command-if-has-matching-changes "$py2_cmd" "test/" "docker/*" "buildspec.yml"
128-
129-
# run gpu integration tests
130-
- printf "$SETUP_CMDS" > $SETUP_FILE
131-
- cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local -n 4 --region $AWS_DEFAULT_REGION --docker-base-name $PREPROD_IMAGE --tag $GPU_TAG_PY3 --framework-version $FRAMEWORK_VERSION --py-version 3 --processor gpu --durations 10"
132-
- py3_cmd="remote-test --github-repo $GITHUB_REPO --test-cmd \"$cmd\" --setup-file $SETUP_FILE --pr-number \"$PR_NUM\""
133-
- execute-command-if-has-matching-changes "$py3_cmd" "test/" "docker/*" "buildspec.yml"
134-
135-
- cmd="IGNORE_COVERAGE=- tox -e py27 -- test/integration/local -n 4 --region $AWS_DEFAULT_REGION --docker-base-name $PREPROD_IMAGE --tag $GPU_TAG_PY2 --framework-version $FRAMEWORK_VERSION --py-version 2 --processor gpu --durations 10"
136-
- py2_cmd="remote-test --github-repo $GITHUB_REPO --test-cmd \"$cmd\" --setup-file $SETUP_FILE --pr-number \"$PR_NUM\" --skip-setup"
137-
- execute-command-if-has-matching-changes "$py2_cmd" "test/" "docker/*" "buildspec.yml"
138-
139-
- cmd="IGNORE_COVERAGE=- tox -e py37 -- test/integration/local -n 4 --region $AWS_DEFAULT_REGION --docker-base-name $PREPROD_IMAGE --tag $GPU_TAG_PY37 --framework-version $FRAMEWORK_VERSION --py-version 3 --processor gpu --durations 10"
140-
- py37_cmd="remote-test --github-repo $GITHUB_REPO --test-cmd \"$cmd\" --setup-file $SETUP_FILE --pr-number \"$PR_NUM\" --skip-setup"
141-
- execute-command-if-has-matching-changes "$py37_cmd" "test/" "docker/*" "buildspec.yml"
142-
143-
# run sagemaker tests
144-
- test_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/sagemaker -n 8 --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --tag $CPU_TAG_PY3 --py-version 3 --processor cpu --durations 10"
145-
- execute-command-if-has-matching-changes "$test_cmd" "test/" "docker/*" "buildspec.yml"
146-
- test_cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/sagemaker -n 8 --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --tag $GPU_TAG_PY3 --py-version 3 --processor gpu --durations 10"
147-
- execute-command-if-has-matching-changes "$test_cmd" "test/" "docker/*" "buildspec.yml"
148-
- test_cmd="IGNORE_COVERAGE=- tox -e py37 -- test/integration/sagemaker -n 8 --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --tag $CPU_TAG_PY37 --py-version 3 --processor cpu --durations 10"
149-
- execute-command-if-has-matching-changes "$test_cmd" "test/" "docker/*" "buildspec.yml"
150-
- test_cmd="IGNORE_COVERAGE=- tox -e py37 -- test/integration/sagemaker -n 8 --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --tag $GPU_TAG_PY37 --py-version 3 --processor gpu --durations 10"
151-
- execute-command-if-has-matching-changes "$test_cmd" "test/" "docker/*" "buildspec.yml"
152-
- test_cmd="IGNORE_COVERAGE=- tox -e py27 -- test/integration/sagemaker -n 8 --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --tag $CPU_TAG_PY2 --py-version 2 --processor cpu --durations 10"
153-
- execute-command-if-has-matching-changes "$test_cmd" "test/" "docker/*" "buildspec.yml"
154-
- test_cmd="IGNORE_COVERAGE=- tox -e py27 -- test/integration/sagemaker -n 8 --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --account-id $ACCOUNT --tag $GPU_TAG_PY2 --py-version 2 --processor gpu --durations 10"
155-
- execute-command-if-has-matching-changes "$test_cmd" "test/" "docker/*" "buildspec.yml"
156-
157-
finally:
158-
# shut down remote gpu instance
159-
- cleanup-gpu-instances
160-
- cleanup-key-pairs
16111

162-
# remove ecr image
163-
- delete_cmd="aws ecr batch-delete-image --repository-name $ECR_REPO --region $AWS_DEFAULT_REGION --image-ids imageTag=$CPU_TAG_PY2"
164-
- execute-command-if-has-matching-changes "$delete_cmd" "test/" "docker/*" "buildspec.yml"
165-
- delete_cmd="aws ecr batch-delete-image --repository-name $ECR_REPO --region $AWS_DEFAULT_REGION --image-ids imageTag=$GPU_TAG_PY2"
166-
- execute-command-if-has-matching-changes "$delete_cmd" "test/" "docker/*" "buildspec.yml"
167-
- delete_cmd="aws ecr batch-delete-image --repository-name $ECR_REPO --region $AWS_DEFAULT_REGION --image-ids imageTag=$CPU_TAG_PY3"
168-
- execute-command-if-has-matching-changes "$delete_cmd" "test/" "docker/*" "buildspec.yml"
169-
- delete_cmd="aws ecr batch-delete-image --repository-name $ECR_REPO --region $AWS_DEFAULT_REGION --image-ids imageTag=$GPU_TAG_PY3"
170-
- execute-command-if-has-matching-changes "$delete_cmd" "test/" "docker/*" "buildspec.yml"
171-
- delete_cmd="aws ecr batch-delete-image --repository-name $ECR_REPO --region $AWS_DEFAULT_REGION --image-ids imageTag=$CPU_TAG_PY37"
172-
- execute-command-if-has-matching-changes "$delete_cmd" "test/" "docker/*" "buildspec.yml"
173-
- delete_cmd="aws ecr batch-delete-image --repository-name $ECR_REPO --region $AWS_DEFAULT_REGION --image-ids imageTag=$GPU_TAG_PY37"
174-
- execute-command-if-has-matching-changes "$delete_cmd" "test/" "docker/*" "buildspec.yml"
12+
- error_cmd="echo 'In order to make changes to the docker files, please, use https://github.com/aws/deep-learning-containers repository.' && exit 1"
13+
- execute-command-if-has-matching-changes "$error_cmd" "docker/"

test-toolkit/__init__.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)