Skip to content

Commit 2f3fb46

Browse files
authored
chore: set DRIVERS_TOOLS for benchmarks (#4305)
1 parent 5e6638a commit 2f3fb46

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.evergreen/config.in.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ functions:
11021102
env:
11031103
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
11041104
MONGODB_URI: ${MONGODB_URI}
1105+
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
11051106
binary: bash
11061107
args:
11071108
- ${PROJECT_DIRECTORY}/.evergreen/run-benchmarks.sh

.evergreen/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,7 @@ functions:
10641064
env:
10651065
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
10661066
MONGODB_URI: ${MONGODB_URI}
1067+
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
10671068
binary: bash
10681069
args:
10691070
- ${PROJECT_DIRECTORY}/.evergreen/run-benchmarks.sh

.evergreen/run-benchmarks.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#! /bin/bash
22

3+
set -o errexit
4+
set -o xtrace
5+
set -o nounset
6+
37
source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh
48

59
export MONGODB_URI=$MONGODB_URI

test/benchmarks/driverBench/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ const systemInfo = () =>
2222
`- cores: ${platform.cores}`,
2323
`- arch: ${os.arch()}`,
2424
`- os: ${process.platform} (${os.release()})`,
25-
`- ram: ${platform.ram}\n`
25+
`- ram: ${platform.ram}`,
26+
`- node: ${process.version}\n`
2627
].join('\n');
2728
console.log(systemInfo());
2829

0 commit comments

Comments
 (0)