forked from danswer-ai/danswer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalize automation of query testing
- Loading branch information
1 parent
ebecb36
commit cd83661
Showing
3 changed files
with
88 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Run Performance Test | ||
# NB This only works on the default (prod) branch | ||
on: | ||
workflow_dispatch: | ||
# schedule: | ||
# - cron: '0 9 1-7 * 5' | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: production | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Configure SSH | ||
run: | | ||
mkdir -p ~/.ssh/ | ||
echo "$PROD_SSH_KEY" > ~/.ssh/hubgpt_prod.key | ||
chmod 600 ~/.ssh/hubgpt_prod.key | ||
cat >>~/.ssh/config <<END | ||
Host prod | ||
HostName $PROD_EC2_HOST_IP | ||
User $PROD_EC2_USER | ||
IdentityFile ~/.ssh/hubgpt_prod.key | ||
StrictHostKeyChecking no | ||
END | ||
env: | ||
PROD_EC2_USER: ${{ secrets.PROD_EC2_USER }} | ||
PROD_SSH_KEY: ${{ secrets.PROD_SSH_KEY }} | ||
PROD_EC2_HOST_IP: ${{ secrets.PROD_EC2_HOST_IP }} | ||
|
||
- name: Trigger metric dispatch | ||
run: | | ||
ssh prod << 'EOF' | ||
cd danswer | ||
make send-slack-metrics | ||
EOF |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ secrets.yaml | |
deployment/data/nginx/app.conf | ||
/deployment/data/nginx/app.conf | ||
.vscode/launch.json | ||
*.csv |
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