@@ -22,6 +22,9 @@ variables:
22
22
mongo_url : " https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.10.tgz"
23
23
mongo_v44 : &mongo_v44
24
24
mongo_url : " http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-rhel62-v4.4-latest.tgz"
25
+ mongo_v50_ubuntu : &mongo_v50_ubuntu
26
+ mongo_url : " http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-ubuntu1804-5.0.2.tgz"
27
+
25
28
26
29
# # Common sets of CFLAGS
27
30
cflags :
@@ -83,7 +86,7 @@ functions:
83
86
set -o verbose
84
87
set -o errexit
85
88
rm -rf mongo-c-driver*
86
- curl --retry 5 http://s3.amazonaws.com/mciuploads/mongo-c-driver/c-driver-benchmark-compile /${revision}/artifacts/${file}.tar.gz -o c-perf-binaries.tar.gz -sS --max-time 120
89
+ curl --retry 5 http://s3.amazonaws.com/mciuploads/mongo-c-driver/${compile_variant} /${revision}/artifacts/${file}.tar.gz -o c-perf-binaries.tar.gz -sS --max-time 120
87
90
${decompress} c-perf-binaries.tar.gz
88
91
rm c-perf-binaries.tar.gz
89
92
@@ -141,7 +144,9 @@ functions:
141
144
142
145
echo "Running Benchmark tests "
143
146
start_time=$(date +%s)
144
- LD_LIBRARY_PATH=`pwd`/mongoc/lib64:$LD_LIBRARY_PATH ./mongo-c-driver-performance/mongo-c-performance ./data
147
+ # centos6-perf installs into lib64
148
+ # ubuntu1804-large installs into lib
149
+ LD_LIBRARY_PATH=`pwd`/mongoc/lib64:`pwd`/mongoc/lib:$LD_LIBRARY_PATH ./mongo-c-driver-performance/mongo-c-performance ./data
145
150
set +o errexit
146
151
result=$?
147
152
@@ -231,7 +236,7 @@ tasks:
231
236
aws_key : ${aws_key}
232
237
aws_secret : ${aws_secret}
233
238
local_file : mongo-c-driver.tar.gz
234
- remote_file : mongo-c-driver/${build_variant}/${revision}/artifacts/c-perf-binaries .tar.gz
239
+ remote_file : mongo-c-driver/${build_variant}/${revision}/artifacts/${file} .tar.gz
235
240
bucket : mciuploads
236
241
permissions : public-read
237
242
content_type : ${content_type|application/x-gzip}
@@ -242,8 +247,17 @@ tasks:
242
247
name : compile
243
248
commands :
244
249
- func : " fetch artifacts"
245
- vars :
246
- file : c-perf-binaries
250
+ - func : " fetch mongodb"
251
+ - func : " fetch driver test data"
252
+ - func : " run benchmark tests"
253
+ - func : " attach benchmark test results"
254
+ - func : " send dashboard data"
255
+
256
+ - name : BenchMarkTestsUbuntu1804
257
+ depends_on :
258
+ - compile
259
+ commands :
260
+ - func : " fetch artifacts"
247
261
- func : " fetch mongodb"
248
262
- func : " fetch driver test data"
249
263
- func : " run benchmark tests"
@@ -261,6 +275,7 @@ buildvariants:
261
275
display_name : " C Driver Benchmark Compile"
262
276
expansions :
263
277
<< : [ *cflags_64, *mongo_v32, *benchmark_common ]
278
+ file : c-binaries-centos6
264
279
run_on :
265
280
- rhel62-small
266
281
tasks : *benchmark_compile
@@ -269,6 +284,8 @@ buildvariants:
269
284
display_name : " C Driver Benchmark Mongo 3.2"
270
285
expansions :
271
286
<< : [ *cflags_64, *mongo_v32, *benchmark_common ]
287
+ file : c-binaries-centos6
288
+ compile_variant : c-driver-benchmark-compile
272
289
run_on :
273
290
- centos6-perf
274
291
tasks : *benchmark_tests
@@ -277,6 +294,20 @@ buildvariants:
277
294
display_name : " C Driver Benchmark Mongo 4.4"
278
295
expansions :
279
296
<< : [ *cflags_64, *mongo_v44, *benchmark_common ]
297
+ file : c-binaries-centos6
298
+ compile_variant : c-driver-benchmark-compile
280
299
run_on :
281
300
- centos6-perf
282
301
tasks : *benchmark_tests
302
+
303
+ - name : c-driver-benchmark-mongo50-ubuntu1804
304
+ display_name : " C Driver Benchmark Mongo 5.0 (Ubuntu 18.04)"
305
+ expansions :
306
+ << : [ *cflags_64, *mongo_v50_ubuntu, *benchmark_common ]
307
+ file : c-binaries-ubuntu1804
308
+ compile_variant : c-driver-benchmark-mongo50-ubuntu1804
309
+ run_on :
310
+ - ubuntu1804-large
311
+ tasks :
312
+ - name : " compile"
313
+ - name : " BenchMarkTestsUbuntu1804"
0 commit comments