summaryrefslogtreecommitdiff
path: root/etc/longevity.yml
diff options
context:
space:
mode:
authorHenrik Ingo <henrik.ingo@mongodb.com>2016-11-25 14:05:22 +0200
committerHenrik Ingo <henrik.ingo@mongodb.com>2016-11-25 14:14:23 +0200
commit2ffcc80fcdb1802900da7c473c70bf2f82e7b805 (patch)
tree0df12961af83432dd1654359def94457e2e5afb0 /etc/longevity.yml
parent48741605f13b278f3c51bfc11660bd0a2dbb498b (diff)
downloadmongo-2ffcc80fcdb1802900da7c473c70bf2f82e7b805.tar.gz
SERVER-27183 sys-perf: Add runtime.yml, runtime_secret.yml and bootstrap.yml modules to the ConfigDict system
Diffstat (limited to 'etc/longevity.yml')
-rw-r--r--etc/longevity.yml62
1 files changed, 55 insertions, 7 deletions
diff --git a/etc/longevity.yml b/etc/longevity.yml
index 6b40db64d49..1d2af33c25f 100644
--- a/etc/longevity.yml
+++ b/etc/longevity.yml
@@ -84,13 +84,61 @@ functions:
directory: src
- command: shell.exec
params:
+ working_dir: work
+ script: |
+ cat > bootstrap.yml <<EOF
+ cluster_type: ${cluster}
+ platform: ${platform}
+ setup: ${setup}
+ storageEngine: ${storageEngine}
+ test: ${test}
+ production: true
+ EOF
+
+ cat > runtime.yml <<EOF
+ # evergreen default expansions
+ is_patch: ${is_patch}
+ task_id: ${task_id}
+ task_name: ${task_name}
+ execution: ${execution}
+ build_id: ${build_id}
+ build_variant: ${build_variant}
+ version_id: ${version_id}
+ workdir: ${workdir}
+ revision: ${revision}
+ project: ${project}
+ branch_name: ${branch_name}
+
+ # sys-perf expansions
+ # Shouldn't be needed: testList: ${testList}
+ ext: ${ext}
+ script_flags : ${script_flags}
+ dsi_rev: ${dsi_rev}
+ compare_task: ${compare_task}
+ workloads_rev: ${workloads_rev}
+ YCSB_rev: ${YCSB_rev}
+
+ # compositions of expansions
+ mongodb_binary_archive: "https://s3.amazonaws.com/mciuploads/${project}/${version_id}/${revision}/${platform}/mongod-${version_id}.tar.gz"
+ EOF
+ - command: shell.exec
+ params:
silent: true
+ working_dir: work
script: |
- # generate aws private key file
- echo "${terraform_secret}" > secret
- chmod 400 secret
- echo "${ec2_pem}" > keys/aws.pem
- chmod 400 keys/aws.pem
+ # AWS ssh secret key
+ echo "${ec2_pem}" > aws_ssh_key.pem
+ chmod 400 aws_ssh_key.pem
+
+ cat > runtime_secret.yml <<EOF
+ # Note that inside system_perf.yml we have ${aws_key} & ${aws_secret}, which are used for
+ # Evergreen resources. The below are used for dsi resources, and are NOT the same!
+ aws_access_key: "${terraform_key}"
+ aws_secret_key: "${terraform_secret}"
+ perf_jira_user: "${perf_jira_user}"
+ perf_jira_pw: "${perf_jira_pw}"
+ EOF
+ chmod 400 runtime_secret.yml
- command: shell.exec
params:
working_dir: work
@@ -100,7 +148,7 @@ functions:
virtualenv ./venv
source ./venv/bin/activate
pip install -r ../src/dsi/dsi/requirements.txt
- python ../src/dsi/dsi/bin/setup_work_env.py --cluster-type ${cluster} --aws-key-name ${terraform_key} --ssh-keyfile-path ../keys/aws.pem --aws-secret-file ../secret --production
+ python ../src/dsi/dsi/bin/setup_work_env.py --production
- command: shell.exec
params:
script: |
@@ -140,7 +188,7 @@ functions:
source ./dsienv.sh
source ./venv/bin/activate
cp mongodb_setup.${setup}.${storageEngine}.yml mongodb_setup.yml
- $DSI_PATH/bin/mongodb_setup.py --mongodb-binary-archive https://s3.amazonaws.com/mciuploads/longevity/${build_variant}/${revision}/mongodb-${build_id}.tar.gz
+ $DSI_PATH/bin/mongodb_setup.py && echo "${setup} MongoDB Cluster STARTED."
"run test":
- command: shell.exec