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

Properly daemonize the csfle servers #570

Merged
merged 8 commits into from
Jan 15, 2025

Conversation

blink1073
Copy link
Member

I tested this with the Go driver, which had use the background approach. This will allow us to move the encryption setup to a task in the Python driver, without having to use the background approach.

@blink1073 blink1073 requested a review from ShaneHarvey January 6, 2025 13:42
params:
binary: bash
include_expansions_in_env: [AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID, AWS_SESSION_TOKEN]
args: [src/.evergreen/csfle/teardown.sh]
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work? It looks like we are calling setup.sh then immediately calling teardown.sh. Shouldn't the teardown happen later after running the test suite?

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 is just to ensure that setup doesn't hang. The test suite itself does its own setup and teardown for each python version.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a comment explaining this and also the purpose of test-csfle.sh below?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

if [ "$(uname -s)" != "Darwin" ]; then
# On linux and windows host, we need to use nohup to daemonize the process
# and prevent the task from hanging.
# The macos hosts do not support nohup.
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens on macos?

Copy link
Member Author

Choose a reason for hiding this comment

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

@blink1073 blink1073 requested a review from ShaneHarvey January 14, 2025 03:04
@blink1073 blink1073 merged commit 5adf782 into mongodb-labs:master Jan 15, 2025
62 checks passed
@blink1073 blink1073 deleted the use-nohup branch January 15, 2025 01:50
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.

2 participants