-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into revert_changes
- Loading branch information
Showing
182 changed files
with
14,014 additions
and
3,363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
version: 0.2 | ||
phases: | ||
install: | ||
commands: | ||
- . config/change_branch.sh | ||
- su && apt-get update | ||
- apt-get install sudo -qq -o=Dpkg::Use-Pty=0 # silence output: https://askubuntu.com/a/668859/724247 | ||
- sudo apt-get update -qq -o=Dpkg::Use-Pty=0 | ||
- pip install --upgrade pip==19.3.1 | ||
- pip install -q pre-commit awscli | ||
|
||
pre_build: | ||
commands: | ||
- cd $CODEBUILD_SRC_DIR && pre-commit install && pre-commit run --all-files | ||
|
||
build: | ||
commands: | ||
- echo "PRE COMMIT SUCCESSFUL" | ||
|
||
post_build: | ||
commands: | ||
- . $CODEBUILD_SRC_DIR/config/upload_on_end.sh | ||
- rm -rf $CODEBUILD_SRC_DIR/upload/$CURRENT_COMMIT_PATH | ||
- rm -rf $RULES_CODEBUILD_SRC_DIR/upload/$CURRENT_COMMIT_PATH | ||
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 0 ]; then echo "ERROR BUILD FAILED " && exit 1 ; fi | ||
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 1 ]; then echo "INFO BUILD SUCCEEDED !!! " ; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Build Spec for AWS CodeBuild CI TF 2.3.1 CPU and GPU Containers | ||
# Target Containers: | ||
# CPU Container: 763104351884.dkr.ecr.us-east-1.amazonaws.com/tensorflow-training:2.3.1-cpu-py37-ubuntu18.04 | ||
# GPU Container 1: 763104351884.dkr.ecr.us-east-1.amazonaws.com/tensorflow-training:2.3.1-gpu-py37-cu110-ubuntu18.04 | ||
# GPU Container 2: 763104351884.dkr.ecr.us-east-1.amazonaws.com/tensorflow-training:2.3.1-gpu-py37-cu102-ubuntu18.04 | ||
|
||
# The PR CI Uses: | ||
# 763104351884.dkr.ecr.us-east-1.amazonaws.com/tensorflow-training:2.3.1-gpu-py37-cu110-ubuntu18.04 | ||
|
||
version: 0.2 | ||
env: | ||
variables: | ||
run_pytest_pytorch: "disable" | ||
run_pytest_mxnet: "disable" | ||
run_pytest_tensorflow: "disable" | ||
run_pytest_tensorflow2: "enable" | ||
run_pytest_xgboost: "disable" | ||
run_pytest_profiler: "enable" | ||
run_integration_pytest_pytorch: "disable" | ||
run_integration_pytest_mxnet: "disable" | ||
run_integration_pytest_tensorflow: "disable" | ||
run_integration_pytest_tensorflow2: "enable" | ||
run_integration_pytest_xgboost: "disable" | ||
# below needs to be enabled | ||
zero_code_change_test: "enable" | ||
# set code coverage flag | ||
code_coverage_smdebug: "true" | ||
phases: | ||
install: | ||
commands: | ||
- . config/change_branch.sh | ||
- su && apt-get update | ||
- apt-get install sudo -qq -o=Dpkg::Use-Pty=0 # silence output: https://askubuntu.com/a/668859/724247 | ||
- sudo apt-get update -qq -o=Dpkg::Use-Pty=0 | ||
- sudo apt-get install unzip -qq -o=Dpkg::Use-Pty=0 | ||
- cd $CODEBUILD_SRC_DIR && chmod +x config/protoc_downloader.sh && ./config/protoc_downloader.sh | ||
- pip install --upgrade pip==19.3.1 | ||
- pip install -q matplotlib==3.3.1 seaborn==0.10.1 nbconvert==5.6.1 papermill==2.1.2 jupyter==1.0.0 scipy==1.5.2 scikit-learn==0.23.2 bokeh==2.2.3 simplejson==3.17.2 transformers==4.2.1 | ||
- pip install -q pytest wheel pytest-html pre-commit awscli pytest-cov | ||
|
||
pre_build: | ||
commands: | ||
- cd $CODEBUILD_SRC_DIR | ||
|
||
build: | ||
commands: | ||
- cd $CODEBUILD_SRC_DIR && python setup.py bdist_wheel --universal | ||
# We do not need to force install smdebug-rules. The container used for PR builds do not have smdebug rules binary. | ||
# Force installing rules binary attempts to re-install ipython-genutils which fails on PyTorch Ubuntu 16.04 containers. | ||
- cd $RULES_CODEBUILD_SRC_DIR && python setup.py bdist_wheel --universal | ||
- cd $CODEBUILD_SRC_DIR && pip install --force-reinstall dist/*.whl && cd .. | ||
- pip install --force-reinstall numpy==1.18.5 | ||
- cd $CODEBUILD_SRC_DIR && chmod +x config/tests.sh && PYTHONPATH=. && ./config/tests.sh && mkdir -p upload/$CURRENT_COMMIT_PATH/wheels && cp ./dist/*.whl upload/$CURRENT_COMMIT_PATH/wheels && cd .. | ||
- pip show smdebug | ||
- echo 'Uploading Coverage to CodeCov' | ||
- bash $CODEBUILD_SRC_DIR/config/codecov.sh | ||
- cd $RULES_CODEBUILD_SRC_DIR && chmod +x config/tests.sh && PYTHONPATH=. && mkdir -p upload/$CURRENT_COMMIT_PATH/wheels && ./config/tests.sh && cp ./dist/*.whl upload/$CURRENT_COMMIT_PATH/wheels && cd .. | ||
|
||
post_build: | ||
commands: | ||
- . $CODEBUILD_SRC_DIR/config/upload_on_end.sh | ||
- rm -rf $CODEBUILD_SRC_DIR/upload/$CURRENT_COMMIT_PATH | ||
- rm -rf $RULES_CODEBUILD_SRC_DIR/upload/$CURRENT_COMMIT_PATH | ||
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 0 ]; then echo "ERROR BUILD FAILED " && exit 1 ; fi | ||
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 1 ]; then echo "INFO BUILD SUCCEEDED !!! " ; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Build Spec for AWS CodeBuild CI TF 2.4.x CPU and GPU Containers | ||
# Containers Used: | ||
# Note: The public DLC is not yet available so this buildspec is currently consuming a custom built container | ||
|
||
version: 0.2 | ||
env: | ||
variables: | ||
run_pytest_pytorch: "disable" | ||
run_pytest_mxnet: "disable" | ||
run_pytest_tensorflow: "disable" | ||
run_pytest_tensorflow2: "enable" | ||
run_pytest_xgboost: "disable" | ||
run_pytest_profiler: "enable" | ||
run_integration_pytest_pytorch: "disable" | ||
run_integration_pytest_mxnet: "disable" | ||
run_integration_pytest_tensorflow: "disable" | ||
run_integration_pytest_tensorflow2: "enable" | ||
run_integration_pytest_xgboost: "disable" | ||
# below needs to be enabled | ||
zero_code_change_test: "enable" | ||
# set code coverage flag | ||
code_coverage_smdebug: "true" | ||
phases: | ||
install: | ||
commands: | ||
- . config/change_branch.sh | ||
- su && apt-get update | ||
- apt-get install sudo -qq -o=Dpkg::Use-Pty=0 # silence output: https://askubuntu.com/a/668859/724247 | ||
- sudo apt-get update -qq -o=Dpkg::Use-Pty=0 | ||
- sudo apt-get install unzip -qq -o=Dpkg::Use-Pty=0 | ||
- cd $CODEBUILD_SRC_DIR && chmod +x config/protoc_downloader.sh && ./config/protoc_downloader.sh | ||
- pip install --upgrade pip==19.3.1 | ||
- pip install -q matplotlib==3.3.1 seaborn==0.10.1 nbconvert==5.6.1 papermill==2.1.2 jupyter==1.0.0 scipy==1.5.2 scikit-learn==0.23.2 bokeh==2.2.3 simplejson==3.17.2 transformers==4.2.1 | ||
- if [ "$run_pytest_xgboost" = "enable" ]; then pip install --upgrade pyYaml==5.1; else pip install -q pyYaml; fi | ||
- pip install -q pytest wheel pytest-html pre-commit awscli pytest-cov | ||
|
||
pre_build: | ||
commands: | ||
- cd $CODEBUILD_SRC_DIR | ||
|
||
build: | ||
commands: | ||
- cd $CODEBUILD_SRC_DIR && python setup.py bdist_wheel --universal | ||
# We do not need to force install smdebug-rules. The container used for PR builds do not have smdebug rules binary. | ||
# Force installing rules binary attempts to re-install ipython-genutils which fails on PyTorch Ubuntu 16.04 containers. | ||
- cd $RULES_CODEBUILD_SRC_DIR && python setup.py bdist_wheel --universal | ||
- if [ "$run_pytest_xgboost" = "enable" ]; then pip install --force-reinstall $RULES_CODEBUILD_SRC_DIR/dist/*.whl; else pip install $RULES_CODEBUILD_SRC_DIR/dist/*.whl; fi | ||
- cd $CODEBUILD_SRC_DIR && pip install --force-reinstall dist/*.whl && cd .. | ||
- cd $CODEBUILD_SRC_DIR && chmod +x config/tests.sh && PYTHONPATH=. && ./config/tests.sh && mkdir -p upload/$CURRENT_COMMIT_PATH/wheels && cp ./dist/*.whl upload/$CURRENT_COMMIT_PATH/wheels && cd .. | ||
- pip show smdebug | ||
- pip show smdebug_rules | ||
- echo 'Uploading Coverage to CodeCov' | ||
- bash $CODEBUILD_SRC_DIR/config/codecov.sh | ||
- cd $RULES_CODEBUILD_SRC_DIR && chmod +x config/tests.sh && PYTHONPATH=. && mkdir -p upload/$CURRENT_COMMIT_PATH/wheels && ./config/tests.sh && cp ./dist/*.whl upload/$CURRENT_COMMIT_PATH/wheels && cd .. | ||
|
||
post_build: | ||
commands: | ||
- . $CODEBUILD_SRC_DIR/config/upload_on_end.sh | ||
- rm -rf $CODEBUILD_SRC_DIR/upload/$CURRENT_COMMIT_PATH | ||
- rm -rf $RULES_CODEBUILD_SRC_DIR/upload/$CURRENT_COMMIT_PATH | ||
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 0 ]; then echo "ERROR BUILD FAILED " && exit 1 ; fi | ||
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 1 ]; then echo "INFO BUILD SUCCEEDED !!! " ; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Build Spec for AWS CodeBuild CI for XGBoost 1.2-1 | ||
# CPU Container Used: 683313688378.dkr.ecr.us-east-1.amazonaws.com/sagemaker-xgboost:1.2-1-cpu-py3 | ||
# GPU Container Used: 683313688378.dkr.ecr.us-east-1.amazonaws.com/sagemaker-xgboost:1.2-1 | ||
|
||
# Note: The xgboost team maintains a single container for both CPU and GPU | ||
# There is no special image tag for GPU containers; | ||
|
||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
run_pytest_pytorch: "disable" | ||
run_pytest_mxnet: "disable" | ||
run_pytest_tensorflow: "disable" | ||
run_pytest_tensorflow2: "disable" | ||
run_pytest_profiler: "disable" | ||
run_pytest_xgboost: "enable" | ||
run_integration_pytest_pytorch: "disable" | ||
run_integration_pytest_mxnet: "disable" | ||
run_integration_pytest_tensorflow: "disable" | ||
run_integration_pytest_tensorflow2: "disable" | ||
run_integration_pytest_xgboost: "enable" | ||
zero_code_change_test: "enable" | ||
code_coverage_smdebug_rules: "true" | ||
|
||
phases: | ||
install: | ||
commands: | ||
# The XGBoost container requires an update PUB_KEY to run the apt-get update | ||
- if [ "$run_pytest_xgboost" = "enable" ]; then su && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 684BA42D; fi | ||
- su && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 684BA42D && apt-get update | ||
- apt-get install sudo -qq -o=Dpkg::Use-Pty=0 # silence output: https://askubuntu.com/a/668859/724247 | ||
- pip install awscli==1.19.5 | ||
- . config/change_branch.sh #EXPORTS BRANCHES FOR OTHER REPOS AND CURRENT REPO. | ||
- cd $CODEBUILD_SRC_DIR && chmod +x config/protoc_downloader.sh && ./config/protoc_downloader.sh | ||
- pip install --upgrade pip==19.3.1 | ||
- pip install -q pytest==6.1.2 pytest-cov==2.10.1 wheel==0.35.1 pyYaml==5.3.1 pytest-html==3.0.0 sagemaker==2.16.3 pre-commit==2.6.0 | ||
- pip install -q matplotlib==3.3.1 && pip3 install seaborn==0.10.1 nbconvert==5.6.1 papermill==2.1.2 jupyter==1.0.0 scipy==1.5.2 scikit-learn==0.23.2 bokeh==2.2.3 | ||
- pip uninstall -y boto3 && pip uninstall -y aiobotocore && pip uninstall -y botocore | ||
- pip uninstall -y typing # see: https://t.corp.amazon.com/P43975146/overview | ||
|
||
pre_build: | ||
commands: | ||
- cd $CODEBUILD_SRC_DIR | ||
- cd $RULES_CODEBUILD_SRC_DIR | ||
|
||
build: | ||
commands: | ||
- cd $RULES_CODEBUILD_SRC_DIR && python setup.py bdist_wheel --universal && pip install --upgrade --force-reinstall dist/*.whl && cd .. | ||
- cd $CODEBUILD_SRC_DIR && python setup.py bdist_wheel --universal && pip install --force-reinstall dist/*.whl && cd .. | ||
- cd $RULES_CODEBUILD_SRC_DIR && chmod +x config/tests.sh && mkdir -p upload/$CURRENT_COMMIT_PATH/wheels && ./config/tests.sh && cp ./dist/*.whl upload/$CURRENT_COMMIT_PATH/wheels && cd .. | ||
- cd $CODEBUILD_SRC_DIR && chmod +x config/tests.sh && mkdir -p upload/$CURRENT_COMMIT_PATH/wheels && ./config/tests.sh && cp ./dist/*.whl upload/$CURRENT_COMMIT_PATH/wheels && cd .. | ||
- echo 'Connect to CodeCov' | ||
- bash $CODEBUILD_SRC_DIR/config/codecov.sh | ||
|
||
post_build: | ||
commands: | ||
- rm -rf $CODEBUILD_SRC_DIR/upload/$CURRENT_COMMIT_PATH | ||
- rm -rf $RULES_CODEBUILD_SRC_DIR/upload/$CURRENT_COMMIT_PATH | ||
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 0 ]; then echo "ERROR BUILD FAILED " && exit 1 ; fi | ||
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 1 ]; then echo "INFO BUILD SUCCEEDED !!! " ; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
config/profiler/buildspec_profiler_sagemaker_pytorch_1_5_0_integration_tests.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Build Spec for AWS CodeBuild CI | ||
|
||
version: 0.2 | ||
env: | ||
variables: | ||
use_current_branch: "true" | ||
enable_smdataparallel_tests: "false" | ||
force_run_tests: "false" | ||
framework: "pytorch" | ||
phases: | ||
build: | ||
commands: | ||
- chmod +x config/profiler/run_profiler_integration_tests.sh && ./config/profiler/run_profiler_integration_tests.sh |
13 changes: 13 additions & 0 deletions
13
config/profiler/buildspec_profiler_sagemaker_pytorch_1_6_0_integration_tests.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Build Spec for AWS CodeBuild CI | ||
|
||
version: 0.2 | ||
env: | ||
variables: | ||
use_current_branch: "true" | ||
enable_smdataparallel_tests: "true" | ||
force_run_tests: "false" | ||
framework: "pytorch" | ||
phases: | ||
build: | ||
commands: | ||
- chmod +x config/profiler/run_profiler_integration_tests.sh && ./config/profiler/run_profiler_integration_tests.sh |
13 changes: 13 additions & 0 deletions
13
config/profiler/buildspec_profiler_sagemaker_pytorch_1_7_0_integration_tests.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Build Spec for AWS CodeBuild CI | ||
|
||
version: 0.2 | ||
env: | ||
variables: | ||
use_current_branch: "true" | ||
enable_smdataparallel_tests: "false" | ||
force_run_tests: "false" | ||
framework: "pytorch" | ||
phases: | ||
build: | ||
commands: | ||
- chmod +x config/profiler/run_profiler_integration_tests.sh && ./config/profiler/run_profiler_integration_tests.sh |
Oops, something went wrong.