diff options
-rw-r--r-- | etc/perf.yml | 15 | ||||
-rw-r--r-- | etc/system_perf.yml | 57 |
2 files changed, 70 insertions, 2 deletions
diff --git a/etc/perf.yml b/etc/perf.yml index 966303c717f..51b7eddb537 100644 --- a/etc/perf.yml +++ b/etc/perf.yml @@ -160,9 +160,22 @@ functions: - command: shell.exec params: working_dir: src + silent: true + script: | + set -o errexit + + # Create the Evergreen API credentials + cat > .evergreen.yml <<END_OF_CREDS + api_server_host: https://evergreen.mongodb.com/api + api_key: "${evergreen_api_key}" + user: "${evergreen_api_user}" + END_OF_CREDS + - command: shell.exec + params: + working_dir: src script: | set -v - ./dsi/run-dsi detect-changes + ./dsi/run-dsi detect-changes --evergreen-api-config .evergreen.yml - command: json.get_history params: task: ${task_name} diff --git a/etc/system_perf.yml b/etc/system_perf.yml index b3bbfeb0408..64bfe2ea810 100644 --- a/etc/system_perf.yml +++ b/etc/system_perf.yml @@ -265,8 +265,22 @@ functions: - command: shell.exec params: working_dir: work + silent: true script: | - ../src/dsi/dsi/run-dsi detect-changes + set -o errexit + + # Create the Evergreen API credentials + cat > .evergreen.yml <<END_OF_CREDS + api_server_host: https://evergreen.mongodb.com/api + api_key: "${evergreen_api_key}" + user: "${evergreen_api_user}" + END_OF_CREDS + + - command: shell.exec + params: + working_dir: work + script: | + ../src/dsi/dsi/run-dsi detect-changes --evergreen-api-config .evergreen.yml - command: shell.exec type : test params: @@ -277,6 +291,47 @@ functions: TAG="3.4.17-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} +<<<<<<< HEAD +======= + # 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: | + ../src/dsi/dsi/run-dsi detect-outliers --evergreen-api-config .evergreen.yml + - command: shell.exec + type: setup + params: + working_dir: work + script: | + set -o verbose + filename=rejects.json + if [ -s "$filename" ]; then + echo "Rejecting task due to the following outliers:" + cat "$filename" + exit ${detected_outlier_exit_code|0} + fi + - command: shell.exec + type: test + params: + working_dir: work + script: | + set -o verbose + exit $(cat post_run_check.status) + + "upload pip requirements": + command: s3.put + params: + aws_key: ${aws_key} + aws_secret: ${aws_secret} + local_file: pip-requirements.txt + remote_file: ${project}/${build_variant}/${revision}/pip-requirements-${task_id}-${execution}.txt + bucket: mciuploads + permissions: public-read + content_type: atext-plain + display_name: Pip Requirements +>>>>>>> e9061ddf06... SERVER-44312: Setup evergreen authentication for performance tests ####################################### # Tasks # |