Skip to content

Commit 79cd6d6

Browse files
authored
Update performance scaling test rig (#1096)
1 parent 9f22ca5 commit 79cd6d6

File tree

4 files changed

+20
-89
lines changed

4 files changed

+20
-89
lines changed

.github/workflows/performance-tests.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,29 @@ jobs:
5252
run: |
5353
cd ../driver
5454
sudo make web sql="${{ secrets.DB_CONN_STRING }}"
55+
- name: Check out delphi-admin
56+
uses: actions/checkout@v3
57+
with:
58+
repository: cmu-delphi/delphi-admin
59+
token: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_PAT }}
60+
path: delphi-admin
5561
- name: Build & run Locust
62+
continue-on-error: true # sometimes ~2-5 queries fail, we shouldn't end the run if that's the case
5663
run: |
57-
cd ../driver/repos/delphi/delphi-epidata/tests/performance
64+
cd delphi-admin/load-testing/locust
5865
docker build -t locust .
59-
docker run --net=host -v $PWD:/mnt/locust -e CSV=/mnt/locust/v4-requests-smaller.csv locust -f /mnt/locust/v4.py --host http://127.0.0.1:10080/ --users 10 --spawn-rate 1 --headless -t 15m
66+
export CSV=v4-requests-small.csv
67+
touch output_stats.csv && chmod 666 output_stats.csv
68+
touch output_stats_history.csv && chmod 666 output_stats_history.csv
69+
touch output_failures.csv && chmod 666 output_failures.csv
70+
touch output_exceptions.csv && chmod 666 output_exceptions.csv
71+
docker run --net=host -v $PWD:/mnt/locust -e CSV="/mnt/locust/${CSV}" locust -f /mnt/locust/v4.py --host http://127.0.0.1:10080/ --users 10 --spawn-rate 1 --headless -i "$(cat ${CSV} | wc -l)" --csv=/mnt/locust/output
72+
- name: Archive results as artifacts
73+
uses: actions/upload-artifact@v3
74+
with:
75+
name: locust-output
76+
path: |
77+
delphi-admin/load-testing/locust/output_*.csv
6078
6179
comment-output:
6280
runs-on: ubuntu-latest
@@ -77,4 +95,3 @@ jobs:
7795
repo: context.repo.repo,
7896
body: '✅ Performance tests complete! Click here to view results: ${{ env.GITHUB_WORKFLOW_URL }}'
7997
})
80-

tests/performance/Dockerfile

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/performance/v4-requests-smaller.csv

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/performance/v4.py

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)