Skip to content

Commit 73c3cfb

Browse files
authored
Merge branch 'main' into INTPYTHON-611
2 parents c423d62 + 11cd722 commit 73c3cfb

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.evergreen/config.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@ functions:
2929
directory: "src"
3030

3131
"fetch secrets":
32+
- command: ec2.assume_role
33+
params:
34+
role_arn: ${drivers_test_secrets_role}
3235
- command: subprocess.exec
3336
type: setup
3437
params:
3538
working_dir: "src"
3639
binary: bash
40+
include_expansions_in_env: [AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID, AWS_SESSION_TOKEN]
3741
args: [.evergreen/fetch-secrets.sh]
3842

3943
"fetch repo":
@@ -48,7 +52,7 @@ functions:
4852
"assume role":
4953
- command: ec2.assume_role
5054
params:
51-
role_arn: ${assume_role_arn}
55+
role_arn: ${drivers_test_secrets_role}
5256

5357
"execute tests":
5458
- command: subprocess.exec
@@ -64,7 +68,7 @@ functions:
6468
type: test
6569
retry_on_failure: true
6670
params:
67-
include_expansions_in_env: [DIR]
71+
include_expansions_in_env: [DIR, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
6872
working_dir: "src"
6973
binary: bash
7074
args:
@@ -74,14 +78,15 @@ functions:
7478
- command: subprocess.exec
7579
type: test
7680
params:
77-
include_expansions_in_env: [DIR]
81+
include_expansions_in_env: [DIR, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
7882
working_dir: "src"
7983
binary: bash
8084
args: [.evergreen/setup-remote.sh]
8185

8286
pre_error_fails_task: true
8387
post_error_fails_task: true
8488
pre:
89+
- func: "assume role"
8590
- func: "fetch source"
8691
- func: "fetch secrets"
8792
post:
@@ -201,15 +206,13 @@ tasks:
201206
tags: [local]
202207
commands:
203208
- func: "fetch repo"
204-
- func: "assume role"
205209
- func: "setup local atlas"
206210
- func: "execute tests"
207211

208212
- name: test-pymongo-voyageai-remote
209213
tags: [remote]
210214
commands:
211215
- func: "fetch repo"
212-
- func: "assume role"
213216
- func: "setup remote atlas"
214217
- func: "execute tests"
215218

0 commit comments

Comments
 (0)