Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .evergreen/run-orchestration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -eu

# Supported environment variables:
# AUTH Set to "auth" to enable authentication. Defaults to "noauth"
# 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".
Expand Down
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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
```

#### "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)
Expand Down
Loading