File tree Expand file tree Collapse file tree 4 files changed +20
-89
lines changed Expand file tree Collapse file tree 4 files changed +20
-89
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,29 @@ jobs:
52
52
run : |
53
53
cd ../driver
54
54
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
55
61
- 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
56
63
run : |
57
- cd ../driver/repos/ delphi/delphi-epidata/tests/performance
64
+ cd delphi-admin/load-testing/locust
58
65
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
60
78
61
79
comment-output :
62
80
runs-on : ubuntu-latest
77
95
repo: context.repo.repo,
78
96
body: '✅ Performance tests complete! Click here to view results: ${{ env.GITHUB_WORKFLOW_URL }}'
79
97
})
80
-
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments