Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 17c6435

Browse files
icywang86ruiRui Wang Napieralski
and
Rui Wang Napieralski
authoredFeb 16, 2021
change: add build spec for slow tests (#2151)
Co-authored-by: Rui Wang Napieralski <[email protected]>
1 parent c5cc224 commit 17c6435

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
 

‎buildspec-slowtests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 0.2
2+
3+
phases:
4+
build:
5+
commands:
6+
- IGNORE_COVERAGE=-
7+
8+
# slow tests
9+
- start_time=`date +%s`
10+
- execute-command-if-has-matching-changes "tox -e py38 -- tests/integ -m slow_test -n 10 --durations 0" "tests/integ" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "setup.py" "setup.cfg" "buildspec-slowtests.yml"
11+
- ./ci-scripts/displaytime.sh 'py38 slow tests' $start_time

‎buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ phases:
1616

1717
- start_time=`date +%s`
1818
- |
19-
execute-command-if-has-matching-changes "env -u AWS_DEFAULT_REGION tox -e py38 -- tests/integ -m \"not local_mode and not cron\" -n 384 --reruns 3 --reruns-delay 15 --durations 50 --boto-config '{\"region_name\": \"us-east-2\"}'" "tests/integ" "tests/scripts" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "src/sagemaker/image_uri_config/*.json" "setup.py" "setup.cfg" "buildspec.yml"
19+
execute-command-if-has-matching-changes "env -u AWS_DEFAULT_REGION tox -e py38 -- tests/integ -m \"not local_mode and not cron and not slow_test\" -n 384 --reruns 3 --reruns-delay 15 --durations 50 --boto-config '{\"region_name\": \"us-east-2\"}'" "tests/integ" "tests/scripts" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "src/sagemaker/image_uri_config/*.json" "setup.py" "setup.cfg" "buildspec.yml"
2020
- ./ci-scripts/displaytime.sh 'py38 tests/integ' $start_time
2121

2222
post_build:

0 commit comments

Comments
 (0)
Please sign in to comment.