Skip to content

Commit 5b54fa1

Browse files
committed
assume evergreen role
1 parent 3d41c57 commit 5b54fa1

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.evergreen/generated_configs/functions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ functions:
100100
- project
101101
- TASK_NAME
102102
- DRIVERS_TOOLS
103+
- AWS_ACCESS_KEY_ID
104+
- AWS_SECRET_ACCESS_KEY
105+
- AWS_SESSION_TOKEN
103106
type: test
104107

105108
# Run server

.evergreen/generated_configs/tasks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,6 +2334,7 @@ tasks:
23342334
SUB_TEST_NAME: sync
23352335
- func: attach benchmark test results
23362336
- func: send dashboard data
2337+
- func: assume ec2 role
23372338
- func: create perf comment
23382339
vars:
23392340
TASK_NAME: perf-8.0-standalone-ssl

.evergreen/scripts/generate_config.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,9 +936,10 @@ def create_perf_tasks():
936936
commands = [server_func, test_func, attach_func, send_func]
937937
if ssl == "ssl" and sync == "sync":
938938
tags.append("pr")
939+
assume_func = FunctionCall(func="assume ec2 role")
939940
comment_vars = dict(TASK_NAME=task_name)
940941
comment_func = FunctionCall(func="create perf comment", vars=comment_vars)
941-
commands.append(comment_func)
942+
commands.extend([assume_func, comment_func])
942943
tasks.append(EvgTask(name=task_name, tags=tags, commands=commands))
943944
return tasks
944945

@@ -1231,7 +1232,17 @@ def create_send_dashboard_data_func():
12311232

12321233

12331234
def create_perf_comment_func():
1234-
includes = ["version_id", "revision", "github_commit", "project", "TASK_NAME", "DRIVERS_TOOLS"]
1235+
includes = [
1236+
"version_id",
1237+
"revision",
1238+
"github_commit",
1239+
"project",
1240+
"TASK_NAME",
1241+
"DRIVERS_TOOLS",
1242+
"AWS_ACCESS_KEY_ID",
1243+
"AWS_SECRET_ACCESS_KEY",
1244+
"AWS_SESSION_TOKEN",
1245+
]
12351246
cmds = [
12361247
get_subprocess_exec(
12371248
include_expansions_in_env=includes, args=[".evergreen/scripts/perf-pr-comment.sh"]

0 commit comments

Comments
 (0)