From 5aa5598fe4c0421e60e424167bc32493250dfe19 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Fri, 23 May 2025 10:56:30 +0200 Subject: [PATCH 1/3] Use assume_role command before accessing secrets for atlas-data-lake tests --- .evergreen/config/test-tasks.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.evergreen/config/test-tasks.yml b/.evergreen/config/test-tasks.yml index 5519561c4..83b301c08 100644 --- a/.evergreen/config/test-tasks.yml +++ b/.evergreen/config/test-tasks.yml @@ -25,6 +25,9 @@ tasks: - name: "test-atlas-data-lake" commands: + - command: ec2.assume_role + params: + role_arn: ${aws_test_secrets_role} - func: "bootstrap mongohoused" - func: "run atlas data lake test" From 24817b10e721f607c89b0a3345d26f576fff68ca Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Mon, 26 May 2025 08:48:33 +0200 Subject: [PATCH 2/3] Increase task timeout to 30 minutes --- .evergreen/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.evergreen/config.yml b/.evergreen/config.yml index 2c7fcb3b9..490093811 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -9,9 +9,9 @@ command_type: system # Fail builds when pre tasks fail. pre_error_fails_task: true -# Protect ourselves against rogue test case that runs forever. Tasks are killed after 20 minutes, which shouldn't occur +# Protect ourselves against rogue test case that runs forever. Tasks are killed after 30 minutes, which shouldn't occur # under normal circumstances. -exec_timeout_secs: 1200 +exec_timeout_secs: 1800 # These pre and post rules apply to all tasks not part of a task group, which should only ever be tests against local # MongoDB instances. All other tasks that require special preparation should be run from within a task group From adf6fc567f96f7a5ba4bf320e47dac55cb2adecc Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Mon, 26 May 2025 09:16:47 +0200 Subject: [PATCH 3/3] Include AWS expansions when pulling mongohoused image --- .evergreen/config/functions.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.evergreen/config/functions.yml b/.evergreen/config/functions.yml index 4fc2ba686..2312b7afa 100644 --- a/.evergreen/config/functions.yml +++ b/.evergreen/config/functions.yml @@ -158,6 +158,7 @@ functions: "bootstrap mongohoused": - command: shell.exec params: + include_expansions_in_env: [AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID, AWS_SESSION_TOKEN] script: | cd ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake