Skip to content

Commit 1f35649

Browse files
authored
RUST-2010 Work around evergreen agent bug(?) (#1221)
1 parent 69d919f commit 1f35649

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -o errexit
4+
5+
source ./.evergreen/env.sh
6+
7+
cd benchmarks
8+
cargo run \
9+
--release \
10+
-- --output="../benchmark-results.json" -i 21
11+
12+
cat ../benchmark-results.json

benchmarks/src/main.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,8 @@ fn parse_ids(matches: ArgMatches) -> HashSet<BenchmarkId> {
563563
ids.insert(BenchmarkId::LdJsonMultiFileImport);
564564
ids.insert(BenchmarkId::LdJsonMultiFileExport);
565565
ids.insert(BenchmarkId::GridFsMultiDownload);
566-
ids.insert(BenchmarkId::GridFsMultiUpload);
566+
// TODO RUST-2010 Re-enable this benchmark
567+
//ids.insert(BenchmarkId::GridFsMultiUpload);
567568
}
568569
if matches.is_present("bson") {
569570
ids.insert(BenchmarkId::BsonFlatDocumentDecode);
@@ -589,13 +590,16 @@ fn parse_ids(matches: ArgMatches) -> HashSet<BenchmarkId> {
589590
ids.insert(BenchmarkId::GridFsDownload);
590591
ids.insert(BenchmarkId::GridFsUpload);
591592
ids.insert(BenchmarkId::GridFsMultiDownload);
592-
ids.insert(BenchmarkId::GridFsMultiUpload);
593+
// TODO RUST-2010 Re-enable this benchmark
594+
//ids.insert(BenchmarkId::GridFsMultiUpload);
593595
}
594596

595597
// if none were enabled, that means no arguments were provided and all should be enabled.
596598
if ids.is_empty() {
597599
ids = (1..=MAX_ID)
598600
.map(|id| BenchmarkId::try_from(id as u8).unwrap())
601+
// TODO RUST-2010 Re-enable this benchmark
602+
.filter(|id| *id != BenchmarkId::GridFsMultiUpload)
599603
.collect()
600604
}
601605

0 commit comments

Comments
 (0)