Skip to content

Commit fd63d23

Browse files
authored
PHPLIB-1678: Fix failing builds (#1702)
* Use assume_role command before accessing secrets for atlas-data-lake tests * Increase task timeout to 30 minutes * Include AWS expansions when pulling mongohoused image
1 parent 435c386 commit fd63d23

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.evergreen/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ command_type: system
99
# Fail builds when pre tasks fail.
1010
pre_error_fails_task: true
1111

12-
# Protect ourselves against rogue test case that runs forever. Tasks are killed after 20 minutes, which shouldn't occur
12+
# Protect ourselves against rogue test case that runs forever. Tasks are killed after 30 minutes, which shouldn't occur
1313
# under normal circumstances.
14-
exec_timeout_secs: 1200
14+
exec_timeout_secs: 1800
1515

1616
# These pre and post rules apply to all tasks not part of a task group, which should only ever be tests against local
1717
# MongoDB instances. All other tasks that require special preparation should be run from within a task group

.evergreen/config/functions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ functions:
158158
"bootstrap mongohoused":
159159
- command: shell.exec
160160
params:
161+
include_expansions_in_env: [AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID, AWS_SESSION_TOKEN]
161162
script: |
162163
cd ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake
163164

.evergreen/config/test-tasks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ tasks:
2525

2626
- name: "test-atlas-data-lake"
2727
commands:
28+
- command: ec2.assume_role
29+
params:
30+
role_arn: ${aws_test_secrets_role}
2831
- func: "bootstrap mongohoused"
2932
- func: "run atlas data lake test"
3033

0 commit comments

Comments
 (0)