Skip to content

Commit

Permalink
GODRIVER-3040 Add driver tests for Serverless Proxy incremental rollo…
Browse files Browse the repository at this point in the history
…ut (#1473)
  • Loading branch information
blink1073 authored Jan 25, 2024
1 parent ff8ab9e commit 134d007
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2289,6 +2289,16 @@ axes:
variables:
GO_DIST: "/opt/golang/go1.20"

- id: serverless-type
display_name: "Serverless Type"
values:
- id: "original"
display_name: "Serverless"
- id: "proxy"
display_name: "Serverless Proxy"
variables:
VAULT_NAME: "serverless_next"

task_groups:
- name: serverless_task_group
setup_group_can_fail_task: true
Expand All @@ -2304,12 +2314,8 @@ task_groups:
shell: "bash"
script: |
${PREPARE_SHELL}
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
LOADBALANCED=ON \
bash ${DRIVERS_TOOLS}/.evergreen/serverless/create-instance.sh
bash ${DRIVERS_TOOLS}/.evergreen/serverless/setup-secrets.sh ${VAULT_NAME}
bash ${DRIVERS_TOOLS}/.evergreen/serverless/create-instance.sh
- command: expansions.update
params:
file: serverless-expansion.yml
Expand Down Expand Up @@ -2345,12 +2351,7 @@ task_groups:
shell: "bash"
script: |
${PREPARE_SHELL}
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
SERVERLESS_INSTANCE_NAME=${SERVERLESS_INSTANCE_NAME} \
bash ${DRIVERS_TOOLS}/.evergreen/serverless/delete-instance.sh
bash ${DRIVERS_TOOLS}/.evergreen/serverless/delete-instance.sh ${VAULT_NAME}
- func: handle-test-artifacts
- func: cleanup
tasks:
Expand Down Expand Up @@ -2673,8 +2674,14 @@ buildvariants:

- matrix_name: "serverless"
tags: ["pullrequest"]
matrix_spec: { os-serverless: "*" }
display_name: "Serverless ${os-serverless}"
matrix_spec: { os-serverless: "*", serverless-type: "original" }
display_name: "${serverless-type} ${os-serverless}"
tasks:
- "serverless_task_group"

- matrix_name: "serverless-proxy"
matrix_spec: { os-serverless: "*", serverless-type: "proxy" }
display_name: "${serverless-type} ${os-serverless}"
tasks:
- "serverless_task_group"

Expand Down

0 comments on commit 134d007

Please sign in to comment.