Skip to content

Commit ee3d912

Browse files
authored
change: use us-east-1 for PR test runs (#1014)
1 parent aec88d6 commit ee3d912

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

buildspec.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ phases:
1616
- start_time=`date +%s`
1717
- |
1818
if has-matching-changes "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"; then
19-
tox -e py36 -- tests/integ -m "not local_mode" -n 48 --reruns 3 --reruns-delay 5 --durations 50
19+
tox -e py36 -- tests/integ -m "not local_mode" -n 48 --reruns 3 --reruns-delay 5 --durations 50 --boto-config '{"region_name": "us-east-1"}'
2020
fi
2121
- ./ci-scripts/displaytime.sh 'py36 tests/integ' $start_time
2222

@@ -27,6 +27,5 @@ phases:
2727
FILENAME=$(ls ci-lock/ || true)
2828
ACCOUNT=$(aws sts get-caller-identity --output text | awk '{print $1}')
2929
S3_BUCKET_DIR=s3://sagemaker-us-west-2-${ACCOUNT}/ci-lock/
30-
aws s3 rm ${S3_BUCKET_DIR}${FILENAME}
30+
aws s3 rm ${S3_BUCKET_DIR}${FILENAME}
3131
fi
32-

tests/integ/vpc_test_utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ def _create_vpc_resources(ec2_client, name):
171171

172172

173173
def _create_vpc_with_name(ec2_client, region, name):
174-
vpc_id, [subnet_id_a, subnet_id_b], security_group_id = _create_vpc_resources(
175-
ec2_client, region, name
176-
)
174+
vpc_id, [subnet_id_a, subnet_id_b], security_group_id = _create_vpc_resources(ec2_client, name)
177175
return [subnet_id_a, subnet_id_b], security_group_id
178176

179177

0 commit comments

Comments
 (0)