@@ -11,6 +11,13 @@ phases:
1111 - pip install --upgrade pip==19.3.1
1212 - cd $CODEBUILD_SRC_DIR && chmod +x config/protoc_downloader.sh && ./config/protoc_downloader.sh && cd ..
1313 - pip install -q pytest wheel pyYaml pytest-html pre-commit awscli pytest-cov
14+ # download the data from s3 bucket.
15+ - cd $CODEBUILD_SRC_DIR/tests/sagemaker/scripts/pytorch && mkdir -p data && aws s3 cp s3://smdebug-testing/datasets/cifar-10-python.tar.gz data/cifar-10-batches-py.tar.gz
16+ - cd $CODEBUILD_SRC_DIR/tests/sagemaker/scripts/pytorch/data && tar -zxf cifar-10-batches-py.tar.gz
17+ - cd $CODEBUILD_SRC_DIR/tests/sagemaker/scripts/pytorch && mkdir -p data && aws s3 cp s3://smdebug-testing/datasets/MNIST_pytorch.tar.gz data/MNIST_pytorch.tar.gz
18+ - cd $CODEBUILD_SRC_DIR/tests/sagemaker/scripts/pytorch/data && tar -zxf MNIST_pytorch.tar.gz
19+ # download and install sagemaker SDK
20+ - cd $CODEBUILD_SRC_DIR
1421 - mkdir -p smprofiler-setup-files
1522 - aws s3 cp --recursive s3://sm-profiler-external-preview/sdk/ smprofiler-setup-files
1623 - pip install smprofiler-setup-files/sagemaker-1.60.3.dev0.tar.gz -q
@@ -23,11 +30,6 @@ phases:
2330 - cd $CODEBUILD_SRC_DIR && python setup.py bdist_wheel --universal && pip install --force-reinstall dist/*.whl
2431 - cd $CODEBUILD_SRC_DIR/dist && echo "./"`ls smdebug*` > $CODEBUILD_SRC_DIR/tests/sagemaker/scripts/pytorch/requirements.txt
2532 - cd $CODEBUILD_SRC_DIR/dist && cp smdebug* $CODEBUILD_SRC_DIR/tests/sagemaker/scripts/pytorch/.
26- - cd $CODEBUILD_SRC_DIR/tests/sagemaker/scripts/pytorch && mkdir -p data && aws s3 cp s3://smdebug-testing/datasets/cifar-10-python.tar.gz data/cifar-10-batches-py.tar.gz
27- - cd $CODEBUILD_SRC_DIR/tests/sagemaker/scripts/pytorch/data && tar -zxf cifar-10-batches-py.tar.gz
28- - cd $CODEBUILD_SRC_DIR/tests/sagemaker/scripts/pytorch && mkdir -p data && aws s3 cp s3://smdebug-testing/datasets/MNIST_pytorch.tar.gz data/MNIST_pytorch.tar.gz
29- - cd $CODEBUILD_SRC_DIR/tests/sagemaker/scripts/pytorch/data && tar -zxf MNIST_pytorch.tar.gz
30-
3133 # Runs the smprofiler sagemaker integration tests
3234 - cd $CODEBUILD_SRC_DIR && python -m pytest -v -s -W=ignore --html=$REPORT_DIR/profiler_report_analysis.html --self-contained-html tests/sagemaker/test_profiler_pytorch.py
3335
0 commit comments