summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDavid Bradford <david.bradford@mongodb.com>2019-10-30 22:01:42 +0000
committerevergreen <evergreen@mongodb.com>2019-10-30 22:01:42 +0000
commit75b580d614e9f36d804e81d0fc1b87ff764f852c (patch)
treea7145128e5e9e7ed37c1f9e0442758b33fb25533 /etc
parent18934fb5c814e87895c5e38ae1515dd6cb4c00f7 (diff)
downloadmongo-75b580d614e9f36d804e81d0fc1b87ff764f852c.tar.gz
SERVER-44312: Setup evergreen authentication for performance tests
(cherry picked from commit e9061ddf0622ccf379223dbae94d01505e4ee8ce)
Diffstat (limited to 'etc')
-rw-r--r--etc/perf.yml15
-rw-r--r--etc/system_perf.yml57
2 files changed, 70 insertions, 2 deletions
diff --git a/etc/perf.yml b/etc/perf.yml
index d5a62dba423..11231cfb059 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 b2c69e174b9..78e084b1a2c 100644
--- a/etc/system_perf.yml
+++ b/etc/system_perf.yml
@@ -289,8 +289,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:
@@ -301,6 +315,47 @@ functions:
TAG="3.4.14-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 #