diff options
| author | Henrik Ingo <henrik.ingo@mongodb.com> | 2020-02-13 12:39:28 +0000 |
|---|---|---|
| committer | evergreen <evergreen@mongodb.com> | 2020-02-13 12:39:28 +0000 |
| commit | f75e109e3dba2164b6a7a5b16c87f4552f4a7fb5 (patch) | |
| tree | 0ac532f7076565869a799df2cba2753d929529ef | |
| parent | 1191a063fd235df4ab23bb75e59eb1e530e2e93c (diff) | |
| download | mongo-f75e109e3dba2164b6a7a5b16c87f4552f4a7fb5.tar.gz | |
SERVER-46082 Use bin/analysis.py for performance projects
(cherry picked from commit e594e572c3d1b30948058523b629185c1ef94f14)
(cherry picked from commit 37bdcc9339dab2d1a9d7c4825822cae33f25296d)
| -rw-r--r-- | etc/perf.yml | 69 | ||||
| -rw-r--r-- | etc/system_perf.yml | 22 |
2 files changed, 40 insertions, 51 deletions
diff --git a/etc/perf.yml b/etc/perf.yml index 509b544906c..ddcf44a792d 100644 --- a/etc/perf.yml +++ b/etc/perf.yml @@ -130,36 +130,6 @@ functions: - command: shell.exec params: working_dir: src - script: | - cat > bootstrap.yml <<EOF - infrastructure_provisioning: ${cluster} - platform: ${platform} - mongodb_setup: ${setup} - storageEngine: ${storageEngine} - test_control: ${test} - production: true - EOF - - cat > runtime.yml <<EOF - # evergreen default expansions - is_patch: ${is_patch} - task_id: ${task_id} - EOF - - cp ./dsi/configurations/analysis/analysis.common.yml analysis.yml - - command: shell.exec - params: - working_dir: src - silent: true - script: | - cat > runtime_secret.yml <<EOF - dsi_analysis_atlas_user: "${dsi_analysis_atlas_user}" - dsi_analysis_atlas_pw: "${dsi_analysis_atlas_pw}" - EOF - chmod 400 runtime_secret.yml - - command: shell.exec - params: - working_dir: src silent: true script: | is_patch=${is_patch} @@ -184,7 +154,35 @@ functions: file: "src/tags.json" name: "perf" - command: shell.exec - type : test + params: + working_dir: src + script: | + set -o errexit + set -o verbose + cat > overrides.yml <<EOF + bootstrap: + production: true + test_control: + reports_dir_basename: .. + runtime: + # evergreen default expansions + is_patch: ${is_patch} + task_id: ${task_id} + EOF + + cp ./dsi/configurations/analysis/analysis.microbenchmarks.yml analysis.yml + - command: shell.exec + params: + working_dir: src + silent: true + script: | + cat > runtime_secret.yml <<EOF + dsi_analysis_atlas_user: "${dsi_analysis_atlas_user}" + dsi_analysis_atlas_pw: "${dsi_analysis_atlas_pw}" + EOF + chmod 400 runtime_secret.yml + - command: shell.exec + type: test params: working_dir: src script: | @@ -192,15 +190,8 @@ functions: set -o verbose ./dsi/run-dsi setup source ./dsi/dsi_venv/bin/activate + ./dsi/bin/analysis.py - # 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 - # appropriate flags if it's `true`. - 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 "run perf tests": - command: shell.exec params: diff --git a/etc/system_perf.yml b/etc/system_perf.yml index 8f30f73a77d..c8e8882106a 100644 --- a/etc/system_perf.yml +++ b/etc/system_perf.yml @@ -306,6 +306,16 @@ functions: "analyze": - command: shell.exec + type: test + params: + working_dir: work + script: | + set -o verbose + source ./dsienv.sh + ../src/dsi/dsi/run-dsi analysis.py + # detect outliers needs to run, so defer the post_run_check exit status to later + echo $? > post_run_check.status + - command: shell.exec params: working_dir: work script: | @@ -320,18 +330,6 @@ functions: source ../src/buildscripts/signal_processing_setup.sh detect-changes --evergreen-api-config .evergreen.yml - command: shell.exec - type : test - params: - working_dir: work - script: | - set -o errexit - set -o verbose - TAG="4.0.2-Baseline" - OVERRIDEFILE="../src/dsi/dsi/analysis/${branch_name}/system_perf_override.json" - python -u ../src/dsi/dsi/analysis/post_run_check.py ${script_flags} --reports-analysis reports --perf-file perf.json --rev ${revision} --refTag $TAG --overrideFile $OVERRIDEFILE --project_id sys-perf --variant ${build_variant} --task ${task_name} - # detect outliers needs to run, so defer the post_run_check exit status to later - echo $? > post_run_check.status - - command: shell.exec params: working_dir: work script: | |
