File tree Expand file tree Collapse file tree 12 files changed +14
-35
lines changed Expand file tree Collapse file tree 12 files changed +14
-35
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,5 @@ phases:
11
11
12
12
# local mode tests
13
13
- start_time=`date +%s`
14
- - HAS_MATCHING_CHANGES_OUTPUT=$(has-matching-changes "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml")
15
- - |
16
- if [ "$HAS_MATCHING_CHANGES" = "Changes Found" ] ; then
17
- tox -e py36 -- tests/integ -m local_mode --durations 50
18
- fi
19
- - ./ci-scripts/displaytime.sh 'py36 local mode' $start_time
20
-
21
- - start_time=`date +%s`
22
- - |
23
- if [ "$HAS_MATCHING_CHANGES" = "Changes Found" ] ; then
24
- tox -e py27 -- tests/integ -m local_mode --durations 50
25
- fi
26
- - ./ci-scripts/displaytime.sh 'py27 local mode' $start_time
14
+ - execute-command-if-has-matching-changes "tox -e py27,py36 -- tests/integ -m local_mode --durations 50" "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"
15
+ - ./ci-scripts/displaytime.sh 'py27,py36 local mode' $start_time
Original file line number Diff line number Diff line change 6
6
# run notebook test
7
7
- echo "running notebook test"
8
8
- start_time=`date +%s`
9
- - HAS_MATCHING_CHANGES_OUTPUT=$(has-matching-changes "src/*.py" "setup.py" "setup.cfg" "tests/scripts/run-notebook-test.sh")
10
- - |
11
- if [ "$HAS_MATCHING_CHANGES" = "Changes Found" ] ; then
12
- ./tests/scripts/run-notebook-test.sh
13
- fi
9
+ - execute-command-if-has-matching-changes "./tests/scripts/run-notebook-test.sh" "src/*.py" "setup.py" "setup.cfg" "tests/scripts/run-notebook-test.sh"
14
10
- ./ci-scripts/displaytime.sh 'notebook test' $start_time
Original file line number Diff line number Diff line change @@ -11,18 +11,12 @@ phases:
11
11
12
12
# run integration tests
13
13
- start_time=`date +%s`
14
- - HAS_MATCHING_CHANGES_OUTPUT=$(has-matching-changes "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml")
15
- - |
16
- if [ "$HAS_MATCHING_CHANGES" = "Changes Found" ] ; then
17
- python3 -u ci-scripts/queue_build.py
18
- fi
14
+ - execute-command-if-has-matching-changes "python3 -u ci-scripts/queue_build.py" "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"
19
15
- ./ci-scripts/displaytime.sh 'build queue' $start_time
20
16
21
17
- start_time=`date +%s`
22
18
- |
23
- if [ "$HAS_MATCHING_CHANGES" = "Changes Found" ] ; then
24
- tox -e py36 -- tests/integ -m "not local_mode" -n 512 --reruns 3 --reruns-delay 5 --durations 50 --boto-config '{"region_name": "us-east-2"}'
25
- fi
19
+ execute-command-if-has-matching-changes "tox -e py36 -- tests/integ -m \"not local_mode\" -n 512 --reruns 3 --reruns-delay 5 --durations 50 --boto-config '{\"region_name\": \"us-east-2\"}'" "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"
26
20
- ./ci-scripts/displaytime.sh 'py36 tests/integ' $start_time
27
21
28
22
post_build :
Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ The ChainerModel constructor takes the following arguments:
509
509
which should be executed as the entry point to model hosting.
510
510
- ``source_dir (str): `` Optional. Path (absolute or relative) to a
511
511
directory with any other training source code dependencies including
512
- tne entry point file. Structure within this directory will be
512
+ the entry point file. Structure within this directory will be
513
513
preserved when training on SageMaker.
514
514
- ``enable_cloudwatch_metrics (boolean): `` Optional. If true, training
515
515
and hosting containers will generate Cloudwatch metrics under the
Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ The MXNetModel constructor takes the following arguments:
720
720
which should be executed as the entry point to model hosting.
721
721
- ``source_dir (str): `` Optional. Path (absolute or relative) to a
722
722
directory with any other training source code dependencies including
723
- tne entry point file. Structure within this directory will be
723
+ the entry point file. Structure within this directory will be
724
724
preserved when training on SageMaker.
725
725
- ``container_log_level (int): `` Log level to use within the container.
726
726
Valid values are defined in the Python logging module.
Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ The sklearn_model constructor takes the following arguments:
486
486
which should be executed as the entry point to model hosting.
487
487
- ``source_dir (str): `` Optional. Path (absolute or relative) to a
488
488
directory with any other training source code dependencies including
489
- tne entry point file. Structure within this directory will be
489
+ the entry point file. Structure within this directory will be
490
490
preserved when training on SageMaker.
491
491
- ``enable_cloudwatch_metrics (boolean): `` Optional. If true, training
492
492
and hosting containers will generate Cloudwatch metrics under the
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def __init__(
92
92
NCCL_DEBUG=WARN' will pass that option string to the mpirun
93
93
command.
94
94
source_dir (str): Path (absolute or relative) to a directory with
95
- any other training source code dependencies aside from tne entry
95
+ any other training source code dependencies aside from the entry
96
96
point file (default: None). Structure within this directory are
97
97
preserved when training on Amazon SageMaker.
98
98
hyperparameters (dict): Hyperparameters that will be used for
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ def __init__(
71
71
file which should be executed as the entry point to training.
72
72
This should be compatible with either Python 2.7 or Python 3.5.
73
73
source_dir (str): Path (absolute or relative) to a directory with
74
- any other training source code dependencies aside from tne entry
74
+ any other training source code dependencies aside from the entry
75
75
point file (default: None). Structure within this directory are
76
76
preserved when training on Amazon SageMaker.
77
77
hyperparameters (dict): Hyperparameters that will be used for
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def __init__(
69
69
file which should be executed as the entry point to training.
70
70
This should be compatible with either Python 2.7 or Python 3.5.
71
71
source_dir (str): Path (absolute or relative) to a directory with
72
- any other training source code dependencies aside from tne entry
72
+ any other training source code dependencies aside from the entry
73
73
point file (default: None). Structure within this directory are
74
74
preserved when training on Amazon SageMaker.
75
75
hyperparameters (dict): Hyperparameters that will be used for
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ def create_model(
189
189
hosting. This should be compatible with Python 3.5 (default:
190
190
self.entry_point)
191
191
source_dir (str): Path (absolute or relative) to a directory with
192
- any other training source code dependencies aside from tne entry
192
+ any other training source code dependencies aside from the entry
193
193
point file (default: self.source_dir). Structure within this
194
194
directory are preserved when hosting on Amazon SageMaker.
195
195
dependencies (list[str]): A list of paths to directories (absolute
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def __init__(
70
70
executing your model training code. List of supported versions
71
71
https://github.com/aws/sagemaker-python-sdk#sklearn-sagemaker-estimators
72
72
source_dir (str): Path (absolute or relative) to a directory with
73
- any other training source code dependencies aside from tne entry
73
+ any other training source code dependencies aside from the entry
74
74
point file (default: None). Structure within this directory are
75
75
preserved when training on Amazon SageMaker.
76
76
hyperparameters (dict): Hyperparameters that will be used for
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ def __init__(
82
82
training code. List of supported versions
83
83
https://github.com/aws/sagemaker-python-sdk#xgboost-sagemaker-estimators
84
84
source_dir (str): Path (absolute or relative) to a directory with any other training
85
- source code dependencies aside from tne entry point file (default: None).
85
+ source code dependencies aside from the entry point file (default: None).
86
86
Structure within this directory are preserved when training on Amazon SageMaker.
87
87
hyperparameters (dict): Hyperparameters that will be used for training (default: None).
88
88
The hyperparameters are made accessible as a dict[str, str] to the training code
You can’t perform that action at this time.
0 commit comments