diff options
author | Alexander Costas <alexander.costas@mongodb.com> | 2019-09-06 18:03:12 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-06 18:03:12 +0000 |
commit | 60a1ed3f932fd08da5e36106e2788dbe9f4bc217 (patch) | |
tree | cf359834a15595fd6a5c2acee8625af848521018 /etc | |
parent | 19509c977c96ded7b3e7c954fc5f8885065a0d9f (diff) | |
download | mongo-60a1ed3f932fd08da5e36106e2788dbe9f4bc217.tar.gz |
SERVER-42075: Add DSI module to perf.yml
Diffstat (limited to 'etc')
-rw-r--r-- | etc/perf.yml | 83 |
1 files changed, 35 insertions, 48 deletions
diff --git a/etc/perf.yml b/etc/perf.yml index 75fde6c605a..ce3f4d76482 100644 --- a/etc/perf.yml +++ b/etc/perf.yml @@ -53,6 +53,13 @@ modules: - name: genny repo: git@github.com:mongodb/genny.git branch: master +- name: dsi + repo: git@github.com:10gen/dsi.git + branch: master + +- name: mongo-perf + repo: git@github.com:mongodb/mongo-perf.git + branch: master functions: "git get project": &git_get_project @@ -62,24 +69,9 @@ functions: revisions: # for each module include revision as <module_name> : ${<module_name>_rev} enterprise: ${enterprise_rev} genny: ${genny_rev} - - "download analysis scripts": - - command: shell.exec - params: - script: | - set -v - rm -rf ./dsi - mkdir -p ./src - git clone git@github.com:10gen/dsi.git - # get the mongo source, note the s3.get calls put the - # exe files in their respective make locations. - - *git_get_project + dsi: ${dsi_rev} + mongo-perf: ${mongo-perf_rev} "start server": - - command: shell.exec - params: - script: | - rm -rf ./* - mkdir src - command: s3.get params: aws_key: ${aws_key} @@ -102,9 +94,6 @@ functions: set -v chmod +x mongod chmod +x mongo - git clone git@github.com:mongodb/mongo-perf.git perf - cd perf - git describe --abbrev=7 --tags - command: shell.exec params: background: true @@ -149,13 +138,6 @@ functions: params: working_dir: src script: | - set -e - set -v - ../dsi/run-dsi setup - - command: shell.exec - params: - working_dir: src - script: | cat > bootstrap.yml <<EOF infrastructure_provisioning: ${cluster} platform: ${platform} @@ -171,7 +153,7 @@ functions: task_id: ${task_id} EOF - cp ../dsi/configurations/analysis/analysis.common.yml analysis.yml + cp ./dsi/configurations/analysis/analysis.common.yml analysis.yml - command: shell.exec params: working_dir: src @@ -187,7 +169,7 @@ functions: working_dir: src script: | set -v - ../dsi/run-dsi detect-changes + ./dsi/run-dsi detect-changes - command: json.get_history params: task: ${task_name} @@ -206,7 +188,7 @@ functions: script: | set -o errexit set -o verbose - source ./venv/bin/activate + source ./dsi/dsi_venv/bin/activate # Any tasks that want the analysis scripts to analyze mongod.log files should pass in # `reports_analysis: true` as a var to this function. The following line will select the @@ -214,8 +196,8 @@ functions: reports_analysis_flags="--reports-analysis . --perf-file perf/perf.json" cmd_flags=$([ "${reports_analysis}" = "true" ] && echo "$reports_analysis_flags" || echo "") REFTAG="3.6.5-Baseline" - OVERRIDE="../dsi/analysis/${branch_name}/perf_override.json" - python ../dsi/analysis/perf_regression_check.py $cmd_flags -f history.json --rev ${revision} -t tags.json --refTag $REFTAG --overrideFile $OVERRIDE --variant ${build_variant} --task ${task_name} --threshold 0.075 --threadThreshold 0.12 + OVERRIDE="./dsi/analysis/${branch_name}/perf_override.json" + python ./dsi/analysis/perf_regression_check.py $cmd_flags -f history.json --rev ${revision} -t tags.json --refTag $REFTAG --overrideFile $OVERRIDE --variant ${build_variant} --task ${task_name} --threshold 0.075 --threadThreshold 0.12 # Params: # workload: the path relative to genny/src/workloads to run e.g. @@ -262,10 +244,11 @@ functions: set -e set -v source ./venv/bin/activate - cd perf + cd mongo-perf + mkdir -p ../perf # give mongod a few seconds to start up so that we can connect. sleep 5 - ${perf_exec_wrapper} python benchrun.py --shell ../mongo -t ${threads} --trialCount 5 -f testcases/*.js --readCmd ${readCmd} --includeFilter ${includeFilter1} --includeFilter ${includeFilter2} --excludeFilter ${excludeFilter} --out perf.json --exclude-testbed --username admin --password password + ${perf_exec_wrapper} python benchrun.py --shell ../mongo -t ${threads} --trialCount 5 -f testcases/*.js --readCmd ${readCmd} --includeFilter ${includeFilter1} --includeFilter ${includeFilter2} --excludeFilter ${excludeFilter} --out ../perf/perf.json --exclude-testbed --username admin --password password echo "Oplog size at end of tests..." ../mongo --username admin --password password --eval "db.getSiblingDB('local').oplog.rs.totalSize()/1024/1024" admin - command: "json.send" @@ -361,6 +344,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -369,7 +353,6 @@ tasks: excludeFilter: "single_threaded" threads: "1 2 4 8" readCmd: false - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -378,6 +361,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -386,7 +370,6 @@ tasks: excludeFilter: "single_threaded" threads: "1 2 4 8" readCmd: true - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -395,6 +378,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -403,7 +387,6 @@ tasks: excludeFilter: "none" threads: "1" readCmd: true - - func: "download analysis scripts" - func: "analyze" vars: report_analysis: true @@ -412,6 +395,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -420,7 +404,6 @@ tasks: excludeFilter: "single_threaded" threads: "1 2 4 8" readCmd: false - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -429,6 +412,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -437,7 +421,6 @@ tasks: excludeFilter: "single_threaded" threads: "1 2 4 8" readCmd: false - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -446,6 +429,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -454,7 +438,6 @@ tasks: excludeFilter: "single_threaded" threads: "1 2 4 8" readCmd: false - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -463,6 +446,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -471,7 +455,6 @@ tasks: excludeFilter: "single_threaded" threads: "1 2 4 8" readCmd: false - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -480,6 +463,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -488,7 +472,6 @@ tasks: excludeFilter: "single_threaded" threads: "1 2 4 8" readCmd: false - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -497,6 +480,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -505,7 +489,6 @@ tasks: excludeFilter: "single_threaded" threads: "1 2 4 8" readCmd: false - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -514,6 +497,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -522,7 +506,6 @@ tasks: excludeFilter: "single_threaded" threads: "1 2 4 8" readCmd: false - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -531,6 +514,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -539,7 +523,6 @@ tasks: excludeFilter: "none" threads: "1" readCmd: false - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -548,6 +531,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -556,7 +540,6 @@ tasks: excludeFilter: "none" threads: "1" readCmd: false - - func: "download analysis scripts" - func: "analyze" vars: report_analysis: true @@ -565,6 +548,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -573,7 +557,6 @@ tasks: excludeFilter: "single_threaded" threads: "1 2 4 8" readCmd: false - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -582,6 +565,7 @@ tasks: - variant: linux-wt-standalone name: compile commands: + - func: "git get project" - func: "start server" - func: "run perf tests" vars: @@ -590,7 +574,6 @@ tasks: excludeFilter: "none" threads: "1 2 4 8" readCmd: true - - func: "download analysis scripts" - func: "analyze" vars: reports_analysis: true @@ -602,6 +585,8 @@ buildvariants: modules: - enterprise - genny + - dsi + - mongo-perf expansions: # We are explicitly tracking the rhel62 variant compile options from evergreen.yml for # microbenchmarks, since they run on the centos6 boxes. If we can get proper artifacts directly @@ -650,6 +635,8 @@ buildvariants: batchtime: 90 # 1.5 hours modules: - genny + - dsi + - mongo-perf expansions: mongod_exec_wrapper: *exec_wrapper perf_exec_wrapper: *perf_wrapper |