summaryrefslogtreecommitdiff
path: root/src/third_party
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2018-09-22 15:46:43 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2018-09-22 15:46:43 -0400
commit6c4ea338c3ed514c79b59dab75882a228fd48329 (patch)
tree3fa018de45a09219329ebd879a3481a7558a35f2 /src/third_party
parent807e67c902f0406ed8c186c0afa7ee7f799bbf7b (diff)
downloadmongo-6c4ea338c3ed514c79b59dab75882a228fd48329.tar.gz
SERVER-37013 Generate mongoebench config files using --readCmd=true.
The benchrun.py script defaults to --readCmd=false which would otherwise prevent the usage of views. We still use --readCmd=false for the non-views tests to match what etc/perf.yml does. (cherry picked from commit a3c62ebeebb69982fda16697294827bb68a093bc)
Diffstat (limited to 'src/third_party')
-rwxr-xr-xsrc/third_party/scripts/mongo-perf_get_sources.sh30
1 files changed, 24 insertions, 6 deletions
diff --git a/src/third_party/scripts/mongo-perf_get_sources.sh b/src/third_party/scripts/mongo-perf_get_sources.sh
index 80f9d1bc07b..113fef3532f 100755
--- a/src/third_party/scripts/mongo-perf_get_sources.sh
+++ b/src/third_party/scripts/mongo-perf_get_sources.sh
@@ -45,12 +45,30 @@ NUM_CPUS=$(python -c 'import multiprocessing; print(multiprocessing.cpu_count())
#
# We don't generate JSON config files for tests that are tagged with "capped" or "where" because
# they aren't supported by embedded.
-find testcases -type f -print0 | xargs -0 -I% -n1 -P$NUM_CPUS \
- python2 benchrun.py --testfiles % \
- --threads 1 \
- --excludeFilter capped \
- --excludeFilter where \
- --generateMongoeBenchConfigFiles mongoebench/
+#
+# We generate JSON config files for tests that are tagged with "aggregation_identityview" or
+# "query_identityview" while using --readCmd=true because the find command is necessary to read from
+# a view. We use --readCmd=false for all other tests to match what etc/perf.yml does.
+find testcases -type f -print0 | xargs -0 -I% -n1 -P$NUM_CPUS \
+ python2 benchrun.py --testfiles % \
+ --threads 1 \
+ --excludeFilter capped \
+ --excludeFilter where \
+ --generateMongoeBenchConfigFiles mongoebench/ \
+ --readCmd false \
+ --writeCmd true \
+ --excludeFilter aggregation_identityview \
+ --excludeFilter query_identityview
+
+find testcases -type f -print0 | xargs -0 -I% -n1 -P$NUM_CPUS \
+ python2 benchrun.py --testfiles % \
+ --threads 1 \
+ --excludeFilter capped \
+ --excludeFilter where \
+ --generateMongoeBenchConfigFiles mongoebench/ \
+ --readCmd true \
+ --writeCmd true \
+ --includeFilter aggregation_identityview query_identityview
popd