From 0954ed78ce07ff5b7a61d58244f3f5a30105418c Mon Sep 17 00:00:00 2001 From: Pavel Safronov Date: Wed, 22 Oct 2025 13:32:11 -0700 Subject: [PATCH 1/3] docs: add info about running older versions and arch support on mac --- .evergreen/run-orchestration.sh | 1 + README.md | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/.evergreen/run-orchestration.sh b/.evergreen/run-orchestration.sh index 6428164e..7ead347a 100755 --- a/.evergreen/run-orchestration.sh +++ b/.evergreen/run-orchestration.sh @@ -4,6 +4,7 @@ set -eu # Supported environment variables: # AUTH Set to "auth" to enable authentication. Defaults to "noauth" +# ARCH Set to "x86_64" or "arm64". Defaults to the architecture of the machine running the script. # SSL Set to "yes" to enable SSL. Defaults to "nossl" # TOPOLOGY Set to "server", "replica_set", or "sharded_cluster". Defaults to "server" (i.e. standalone). # MONGODB_VERSION Set the MongoDB version to use. Defaults to "latest". diff --git a/README.md b/README.md index 9e9c2ba1..04260e38 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,33 @@ See (run-orchestration.sh)[./evergreen/run-orchestration.sh] for the available e Run `bash ./evergreen/start-orchestration.sh --help` for usage of command line flags. +### Testing Against Different Versions + +Sometimes you'll need to run tests against a specific version, such as "7.0", and to do that you can use the `VERSION` env var. + +```sh +VERSION=7.0 TOPOLOGY='replica_set' bash .evergreen/run-orchestration.sh +``` + +Older versions of MongoDB may not have Mac binaries, so you may also need to specify a different architecture: + +```sh +VERSION=4.2 ARCH=x86_64 TOPOLOGY='replica_set' bash .evergreen/run-orchestration.sh +``` + +#### "Bad CPU type in executable" error + +You may encounter this error if Rosetta isn't properly configured on your system. +```txt +OSError: [Errno 86] Bad CPU type in executable: '.../node-mongodb-native/drivers-evergreen-tools/mongodb/bin/mongod' +``` + +To fix it, simply run: + +```sh +softwareupdate --install-rosetta +``` + ## Updating Dependencies The MongoDB server management scripts under [`.evergreen/orchestration`](https://github.com/mongodb-labs/drivers-evergreen-tools/tree/master/.evergreen/orchestration) From dc6acc19ead9a559c4ba06411eda53a70c1fae22 Mon Sep 17 00:00:00 2001 From: Pavel Safronov Date: Thu, 23 Oct 2025 10:35:05 -0700 Subject: [PATCH 2/3] Update README.md Co-authored-by: Bailey Pearson --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 04260e38..13b45ad0 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ Sometimes you'll need to run tests against a specific version, such as "7.0", an VERSION=7.0 TOPOLOGY='replica_set' bash .evergreen/run-orchestration.sh ``` -Older versions of MongoDB may not have Mac binaries, so you may also need to specify a different architecture: +Older versions of MongoDB may not have arm64 macOS binaries, so you may also need to install the x86_64 binary (note: this will use Rosetta to run the binary): ```sh VERSION=4.2 ARCH=x86_64 TOPOLOGY='replica_set' bash .evergreen/run-orchestration.sh From df91dec79c04c71803ba7452386d316faf3bab02 Mon Sep 17 00:00:00 2001 From: Pavel Safronov Date: Thu, 23 Oct 2025 12:39:18 -0700 Subject: [PATCH 3/3] pr feedback --- .evergreen/run-orchestration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.evergreen/run-orchestration.sh b/.evergreen/run-orchestration.sh index 7ead347a..f3565bfa 100755 --- a/.evergreen/run-orchestration.sh +++ b/.evergreen/run-orchestration.sh @@ -4,7 +4,7 @@ set -eu # Supported environment variables: # AUTH Set to "auth" to enable authentication. Defaults to "noauth" -# ARCH Set to "x86_64" or "arm64". Defaults to the architecture of the machine running the script. +# ARCH Set to the target architecture of the server binaries (e.g. "x86_64", "arm64", etc.). Defaults to the architecture of the machine running the script. # SSL Set to "yes" to enable SSL. Defaults to "nossl" # TOPOLOGY Set to "server", "replica_set", or "sharded_cluster". Defaults to "server" (i.e. standalone). # MONGODB_VERSION Set the MongoDB version to use. Defaults to "latest".