-
Couldn't load subscription status.
- Fork 82
chore(testing): prevent excessive MongoDB binary downloads in testing MONGOSH-1875 #2559
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the testing infrastructure to prevent excessive MongoDB binary downloads by consolidating download locations and leveraging new locking mechanisms from the mongodb-runner package upgrade.
Key Changes:
- Upgraded
mongodb-runnerfrom v5.7.1 to v6.0.0 to utilize new locking mechanism - Consolidated MongoDB binary downloads to a single shared location (
tmpDir/mongodb-runner) - Applied code formatting changes (single quotes to double quotes throughout)
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| testing/integration-testing-hooks.ts | Consolidated binary download location by setting shared binDir path and applying formatting updates |
| package.json | Upgraded mongodb-runner dependency to v6.0.0 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This is making use of the new locking mechanism with the runner and downloader in mongodb-js/devtools-shared#580 as well as having a single place for all binaries.
7908d1b to
8d69118
Compare
|
This looks promising! No |
d38800e to
d282ce0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes seem to LGTM but there's a lot of formatting changes in here that conflict with our general eslint config (+ the e2e test failures seem real)
testing/integration-testing-hooks.ts
Outdated
| import which from "which"; | ||
| import { ConnectionString } from "mongodb-connection-string-url"; | ||
| import { MongoCluster, MongoClusterOptions } from "mongodb-runner"; | ||
| import { downloadCryptLibrary } from "../packages/build/src/packaging/download-crypt-library"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😬
88b53a8 to
48a7ec5
Compare
728b582 to
2f7792c
Compare
This is making use of the new locking mechanism with the runner and downloader in mongodb-js/devtools-shared#580.
It also sets 1 location for all binary downloads.
The relevant changes are in commit:
8d69118(#2559)