8000 ci(NODE-6919): Use `mongodb-runner` in encryption cluster setup by baileympearson · Pull Request #15366 · Automattic/mongoose · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ci(NODE-6 8000 919): Use mongodb-runner in encryption cluster setup #15366

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

Merged
merged 5 commits into from
Apr 22, 2025

Conversation

baileympearson
Copy link
Contributor
@baileympearson baileympearson commented Apr 21, 2025

Summary

This PR re-writes the existing encryption test setup tooling to use https://www.npmjs.com/package/mongodb-runner and https://www.npmjs.com/package/@mongodb-js/mongodb-downloader.

These packages are tooling packages maintained by teams at MongoDB for use in testing. Use of npm packages integrates more seamlessly into Mongoose's existing tooling.

/** @type { string } */
let clusterUri;
before(async function() {
const expansionFile = join(__dirname, '../..', 'fle-cluster-config.json');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because we now use npm packages to launch clusters, it would be straightforward to setup and teardown the clusters as a part of the test suite. I considered adding this and decided against it, just because the existing usage pattern works well and means you don't need to setup/teardown a cluster per test run locally, but I can add this functionality if it is desirable.

Copy link
Collaborator
@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

This looks great! Can you please merge in the latest changes from csfle branch so we can confirm the tests run correctly? Right now the tests aren't running in this PR because GitHub Actions dropped support for Ubuntu 20.04.

@baileympearson baileympearson force-pushed the use-devtools-cluster-tooling branch from 9049eff to 8a2c374 Compare April 22, 2025 15:22
@baileympearson
Copy link
Contributor Author

@vkarpov15 Done. I actually noticed the FLE tests weren't running, because they only run on PR to master, which I've fixed. But they pass now 🙂

vkarpov15
vkarpov15 approved these changes Apr 22, 2025 < 8000 /span>
Copy link
Collaborator
@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

Good catch, thanks 👍

@vkarpov15 vkarpov15 merged commit 92bb79b into Automattic:csfle Apr 22, 2025
34 checks passed
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
0