Skip to content

Commit

Permalink
chore: set DRIVERS_TOOLS for benchmarks (#4305)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken authored Nov 1, 2024
1 parent 5e6638a commit 2f3fb46
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .evergreen/config.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,7 @@ functions:
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
MONGODB_URI: ${MONGODB_URI}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-benchmarks.sh
Expand Down
1 change: 1 addition & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,7 @@ functions:
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
MONGODB_URI: ${MONGODB_URI}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-benchmarks.sh
Expand Down
4 changes: 4 additions & 0 deletions .evergreen/run-benchmarks.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#! /bin/bash

set -o errexit
set -o xtrace
set -o nounset

source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh

export MONGODB_URI=$MONGODB_URI
Expand Down
3 changes: 2 additions & 1 deletion test/benchmarks/driverBench/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const systemInfo = () =>
`- cores: ${platform.cores}`,
`- arch: ${os.arch()}`,
`- os: ${process.platform} (${os.release()})`,
`- ram: ${platform.ram}\n`
`- ram: ${platform.ram}`,
`- node: ${process.version}\n`
].join('\n');
console.log(systemInfo());

Expand Down

0 comments on commit 2f3fb46

Please sign in to comment.