Skip to content

Commit 7b18028

Browse files
Revert some changes in evg setup
1 parent 587d507 commit 7b18028

File tree

3 files changed

+60
-5
lines changed

3 files changed

+60
-5
lines changed

Diff for: .evergreen/config/common.yml.erb

+50-2
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,51 @@ task_groups:
513513
$DRIVERS_TOOLS/.evergreen/atlas/teardown-atlas-cluster.sh
514514
tasks:
515515
- test-full-atlas-task
516+
517+
- name: test_aws_lambda_task_group
518+
setup_group_can_fail_task: true
519+
setup_group_timeout_secs: 1800 # 30 minutes
520+
setup_group:
521+
- func: fetch source
522+
- func: create expansions
523+
- command: shell.exec
524+
params:
525+
shell: "bash"
526+
working_dir: "src"
527+
script: |
528+
${PREPARE_SHELL}
529+
530+
echo "Setting up Atlas cluster"
531+
532+
DRIVERS_ATLAS_PUBLIC_API_KEY="${DRIVERS_ATLAS_PUBLIC_API_KEY}" \
533+
DRIVERS_ATLAS_PRIVATE_API_KEY="${DRIVERS_ATLAS_PRIVATE_API_KEY}" \
534+
DRIVERS_ATLAS_GROUP_ID="${DRIVERS_ATLAS_GROUP_ID}" \
535+
DRIVERS_ATLAS_LAMBDA_USER="${DRIVERS_ATLAS_LAMBDA_USER}" \
536+
DRIVERS_ATLAS_LAMBDA_PASSWORD="${DRIVERS_ATLAS_LAMBDA_PASSWORD}" \
537+
LAMBDA_STACK_NAME="dbx-ruby-lambda" \
538+
MONGODB_VERSION="7.0" \
539+
task_id="${task_id}" \
540+
execution="${execution}" \
541+
$DRIVERS_TOOLS/.evergreen/atlas/setup-atlas-cluster.sh
542+
- command: expansions.update
543+
params:
544+
file: src/atlas-expansion.yml
545+
teardown_group:
546+
- command: shell.exec
547+
params:
548+
shell: "bash"
549+
working_dir: "src"
550+
script: |
551+
${PREPARE_SHELL}
552+
553+
DRIVERS_ATLAS_PUBLIC_API_KEY="${DRIVERS_ATLAS_PUBLIC_API_KEY}" \
554+
DRIVERS_ATLAS_PRIVATE_API_KEY="${DRIVERS_ATLAS_PRIVATE_API_KEY}" \
555+
DRIVERS_ATLAS_GROUP_ID="${DRIVERS_ATLAS_GROUP_ID}" \
556+
LAMBDA_STACK_NAME="dbx-ruby-lambda" \
557+
task_id="${task_id}" \
558+
execution="${execution}" \
559+
$DRIVERS_TOOLS/.evergreen/atlas/teardown-atlas-cluster.sh
560+
tasks:
516561
- test-aws-lambda-deployed
517562

518563
- name: testgcpkms_task_group
@@ -716,12 +761,14 @@ tasks:
716761
params:
717762
working_dir: "src"
718763
shell: "bash"
719-
add_expansions_to_env: true
720764
script: |
721765
${PREPARE_SHELL}
722-
MONGODB_URI="${MONGODB_URI}" .evergreen/run-tests-deployed-lambda.sh
766+
export MONGODB_URI=${MONGODB_URI}
767+
.evergreen/run-tests-deployed-lambda.sh
723768
env:
769+
TEST_LAMBDA_DIRECTORY: ${PROJECT_DIRECTORY}/spec/faas/ruby-sam-app
724770
AWS_REGION: us-east-1
771+
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
725772
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
726773
DRIVERS_ATLAS_PUBLIC_API_KEY: ${DRIVERS_ATLAS_PUBLIC_API_KEY}
727774
DRIVERS_ATLAS_PRIVATE_API_KEY: ${DRIVERS_ATLAS_PRIVATE_API_KEY}
@@ -733,3 +780,4 @@ tasks:
733780
AWS_SESSION_TOKEN: ${AWS_SESSION_TOKEN}
734781
LAMBDA_STACK_NAME: "dbx-ruby-lambda"
735782
RVM_RUBY: ruby-3.2
783+
MONGODB_URI: ${MONGODB_URI}

Diff for: .evergreen/config/standard.yml.erb

+10-2
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,10 @@ buildvariants:
494494
- name: testazurekms_task_group
495495
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
496496

497-
- matrix_name: atlas-full-and-lambda
497+
- matrix_name: atlas-full
498498
matrix_spec:
499499
ruby: <%= latest_ruby %>
500-
os: ubuntu2204
500+
os: rhel8
501501
display_name: "Atlas (Full)"
502502
tasks:
503503
- name: testatlas_task_group
@@ -520,3 +520,11 @@ buildvariants:
520520
display_name: "Atlas serverless ${ruby} single mongos"
521521
tasks:
522522
- name: test-serverless
523+
524+
- matrix_name: "aws-lambda"
525+
matrix_spec:
526+
ruby: <%= latest_ruby %>
527+
os: ubuntu2204
528+
display_name: "AWS Lambda"
529+
tasks:
530+
- name: test_aws_lambda_task_group

Diff for: .evergreen/run-tests-deployed-lambda.sh

-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ set_env_ruby
1313
echo MONGODB_URI: ${MONGODB_URI}
1414

1515
export MONGODB_URI=${MONGODB_URI}
16-
export TEST_LAMBDA_DIRECTORY=`dirname "$0"`/../spec/faas/ruby-sam-app
1716

1817
. `dirname "$0"`/run-deployed-lambda-aws-tests.sh

0 commit comments

Comments
 (0)