Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRIVERS-2909 Add Env File Handling #444

Merged
merged 21 commits into from
Jun 5, 2024

Conversation

blink1073
Copy link
Member

No description provided.

@blink1073 blink1073 requested a review from Jibola May 15, 2024 00:22
@blink1073 blink1073 changed the title DRIVERS-2909 Add Env File Handling in Drivers Evergreen Tools DRIVERS-2909 Add Env File Handling May 15, 2024
Copy link
Contributor

@Jibola Jibola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a comment on env usage

.evergreen/config.yml Show resolved Hide resolved
Comment on lines -344 to -359
"run serverless tests":
- command: shell.exec
type: test
params:
include_expansions_in_env: ["SERVERLESS_ATLAS_PASSWORD"]
working_dir: "src"
script: |
${PREPARE_SHELL}
set +o xtrace
MONGODB_URI="${MONGODB_URI}" \
SERVERLESS_ATLAS_USER="${SERVERLESS_ATLAS_USER}" \
CRYPT_SHARED_LIB_PATH="${CRYPT_SHARED_LIB_PATH}" \
bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh

"run atlas tests":
- command: shell.exec
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We no longer need these tests because we're deprecating serverless, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a mistake, I need to uncomment this these tests. 😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wait, I remember, we didn't need separate test commands for these anymore, they still get run from their respective task groups.

${PREPARE_SHELL}
set -ex
cd $DRIVERS_TOOLS/.evergreen/docker
ARCH=${ARCH} TARGET_IMAGE=${TARGET_IMAGE} MONGODB_VERSION=${MONGODB_VERSION} ENTRYPOINT=/root/test-entrypoint.sh bash run-server.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. Do we need to put these as envs in the subprocess.exec?

Co-authored-by: Jib <Jibzade@gmail.com>
@blink1073 blink1073 marked this pull request as draft May 28, 2024 19:36
@blink1073 blink1073 marked this pull request as ready for review May 30, 2024 12:24
@blink1073 blink1073 requested a review from Jibola May 30, 2024 12:24
Copy link
Contributor

@Jibola Jibola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@blink1073 blink1073 merged commit 19d18c5 into mongodb-labs:master Jun 5, 2024
24 checks passed
@blink1073 blink1073 deleted the use-env-files branch June 5, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants