-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from blink1073/INTPYTHON-309
INTPYTHON-309 & INTPYTHON-417 Use new cluster and schedule on interval
- Loading branch information
Showing
23 changed files
with
412 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
# Clone drivers-evergeen-tools. | ||
git clone https://github.com/mongodb-labs/drivers-evergreen-tools | ||
|
||
# Get the secrets for drivers/ai-ml-pipeline-testing. | ||
. drivers-evergreen-tools/.evergreen/secrets_handling/setup-secrets.sh drivers/ai-ml-pipeline-testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
. .evergreen/utils.sh | ||
|
||
PYTHON_BINARY=$(find_python3) | ||
|
||
# Should be called from src | ||
EVERGREEN_PATH=$(pwd)/.evergreen | ||
TARGET_DIR=$(pwd)/$DIR | ||
SCAFFOLD_SCRIPT=$EVERGREEN_PATH/scaffold_atlas.py | ||
|
||
set -ex | ||
mkdir atlas | ||
|
||
setup_local_atlas | ||
scaffold_atlas | ||
|
||
cd atlas | ||
|
||
$PYTHON_BINARY -m venv . | ||
source ./bin/activate | ||
|
||
# Test server is up | ||
$PYTHON_BINARY -m pip install pymongo | ||
CONN_STRING=$CONN_STRING \ | ||
$PYTHON_BINARY -c "from pymongo import MongoClient; import os; MongoClient(os.environ['CONN_STRING']).db.command('ping')" | ||
# Get the secrets. | ||
source secrets-export.sh | ||
|
||
# Add database and index configurations | ||
DATABASE=$DATABASE \ | ||
CONN_STRING=$CONN_STRING \ | ||
REPO_NAME=$REPO_NAME \ | ||
DIR=$DIR \ | ||
TARGET_DIR=$TARGET_DIR \ | ||
$PYTHON_BINARY $SCAFFOLD_SCRIPT | ||
# Create the env file | ||
echo "export OPENAI_API_KEY=$OPENAI_API_KEY" >> env.sh | ||
echo "export MONGODB_URI=$CONN_STRING" >> env.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.