Skip to content

Conversation

@gagik
Copy link
Contributor

@gagik gagik commented Oct 24, 2025

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)

@gagik gagik requested a review from a team as a code owner October 24, 2025 15:49
Copilot AI review requested due to automatic review settings October 24, 2025 15:49
@gagik gagik marked this pull request as draft October 24, 2025 15:49
Copy link

Copilot AI left a 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-runner from 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.
@gagik gagik force-pushed the gagik/excessive-download branch from 7908d1b to 8d69118 Compare October 24, 2025 15:49
@gagik
Copy link
Contributor Author

gagik commented Oct 28, 2025

This looks promising! No beforeEach errors on first go.
There's a CodeQL error for @mongodb-js/saslprep which is weird, publishing seems to have skipped it in devtools-shared?

@gagik gagik marked this pull request as ready for review October 28, 2025 10:06
@gagik gagik force-pushed the gagik/excessive-download branch from d38800e to d282ce0 Compare October 28, 2025 13:45
Copy link
Collaborator

@addaleax addaleax left a 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)

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";
Copy link
Collaborator

Choose a reason for hiding this comment

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

😬

@gagik gagik force-pushed the gagik/excessive-download branch from 88b53a8 to 48a7ec5 Compare October 28, 2025 18:08
@gagik gagik force-pushed the gagik/excessive-download branch from 728b582 to 2f7792c Compare October 28, 2025 18:33
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.

3 participants