summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorAlexander Costas <alexander.costas@mongodb.com>2019-11-13 16:42:41 +0000
committerevergreen <evergreen@mongodb.com>2019-11-13 16:42:41 +0000
commit53049dbd83cb491bb23ed4dc5a727f74f60d7173 (patch)
tree84ca14cab2a9621c53a0303b013013a0a377118a /buildscripts
parent094f49707819a7a5029e514824bef85f71e79c13 (diff)
downloadmongo-53049dbd83cb491bb23ed4dc5a727f74f60d7173.tar.gz
BACKPORT-5443: [v3.6] Use signal processing without DSI
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/signal_processing_setup.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/buildscripts/signal_processing_setup.sh b/buildscripts/signal_processing_setup.sh
new file mode 100755
index 00000000000..d0d023c94c5
--- /dev/null
+++ b/buildscripts/signal_processing_setup.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+if [[ -d "signal_processing_venv" ]]; then
+ source ./signal_processing_venv/bin/activate
+ exit 0
+fi
+
+# Configure signal processing
+cat > ./analysis.yml << EOF
+mongo_uri: mongodb+srv://\${analysis_user}:\${analysis_password}@performancedata-g6tsc.mongodb.net/perf
+is_patch: ${is_patch}
+task_id: ${task_id}
+EOF
+virtualenv -p /opt/mongodbtoolchain/v3/bin/python3 signal_processing_venv
+
+# Setup pip to use our internal PyPI
+cat > ./signal_processing_venv/pip.conf << EOF
+[global]
+index-url = https://pypi.org/simple
+extra-index-url = https://${perf_jira_user}:${perf_jira_pw}@artifactory.corp.mongodb.com/artifactory/api/pypi/mongodb-dag-local/simple
+EOF
+
+# 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
+
+source ./signal_processing_venv/bin/activate
+pip install dag-signal-processing~=1.0
+
+export analysis_user="${dsi_analysis_atlas_user}"
+export analysis_password="${dsi_analysis_atlas_pw}" \ No newline at end of file