-
Notifications
You must be signed in to change notification settings - Fork 14
285 lines (242 loc) · 8.3 KB
/
run_performance_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
name: Run performance tests
on:
schedule:
- cron: "0 23 * * *"
workflow_dispatch:
env:
DOCKER_BUILDKIT: 1
KOSKI_SERVER_COUNT: 2
KOSKI_USER: ${{ secrets.KOSKI_USER_USERNAME }}
KOSKI_PASS: ${{ secrets.KOSKI_USER_PASSWORD }}
TILASTOKESKUS_USER: ${{ secrets.TILASTOKESKUS_PERFTEST_USER }}
TILASTOKESKUS_PASS: ${{ secrets.TILASTOKESKUS_PERFTEST_PASS }}
KOSKI_BASE_URL: https://koski.testiopintopolku.fi/koski
VIRKAILIJA: https://virkailija.testiopintopolku.fi
jobs:
random_get_light:
name: random-get-light
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Java 11
uses: actions/setup-java@v3
with:
java-version: "11"
architecture: "x64"
distribution: "zulu"
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: "20.17.0"
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache Node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
run: mvn test-compile
- name: Run perftest randomget-light
run: |
export PERFTEST_THREADS=2
mvn exec:java -Dexec.mainClass="fi.oph.koski.perftest.RandomOpiskeluoikeusGetter"
- name: Report failure
uses: ravsamhq/notify-slack-action@95a35215cdf7ab510d2cdd20ae94f342d212a1a1
if: ${{ failure() }}
with:
status: ${{ job.status }}
notification_title: "Run performance tests: failure in randomget-light"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
insert_light:
needs: [random_get_light]
name: insert-light
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Java 11
uses: actions/setup-java@v3
with:
java-version: "11"
architecture: "x64"
distribution: "zulu"
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: "20.17.0"
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache Node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
run: mvn test-compile
- name: Run perftest insert-light
run: |
export PERFTEST_THREADS=4
mvn exec:java -Dexec.mainClass="fi.oph.koski.perftest.MixedOpiskeluoikeusInserterUpdater"
- name: Report failure
uses: ravsamhq/notify-slack-action@95a35215cdf7ab510d2cdd20ae94f342d212a1a1
if: ${{ failure() }}
with:
status: ${{ job.status }}
notification_title: "Run performance tests: failure in insert-light"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
mixed-overload:
needs: [insert_light]
name: mixed-overload
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Java 11
uses: actions/setup-java@v3
with:
java-version: "11"
architecture: "x64"
distribution: "zulu"
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: "20.17.0"
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache Node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
run: mvn test-compile
- name: Run perftest mixed-overload
run: |
export PERFTEST_THREADS=100
mvn exec:java -Dexec.mainClass="fi.oph.koski.perftest.MixedPerfTester"
- name: Report failure
uses: ravsamhq/notify-slack-action@95a35215cdf7ab510d2cdd20ae94f342d212a1a1
if: ${{ failure() }}
with:
status: ${{ job.status }}
notification_title: "Run performance tests: failure in mixed-overload"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
valpas-organisaatio-listaus:
needs: [insert_light]
name: valpas-organisaatio-listaus
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Java 11
uses: actions/setup-java@v3
with:
java-version: "11"
architecture: "x64"
distribution: "zulu"
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: "20.17.0"
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache Node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
run: mvn test-compile
- name: Run perftest valpas-organisaatio-listaus
run: |
export PERFTEST_THREADS=30
export PERFTEST_ROUNDS=1700
export WARMUP_ROUNDS=50
export PERFTEST_SUCCESS_THRESHOLD_PERCENTAGE=98
export KOSKI_VALPAS_ORGANISAATIOT_FILENAME="valpas_qa_peruskoulujen_ja_oppijoiden_oidit.txt"
mvn exec:java -Dexec.mainClass="fi.oph.koski.perftest.ValpasRandomPerusopetuksenOppilaitoksetGetter"
- name: Report failure
uses: ravsamhq/notify-slack-action@95a35215cdf7ab510d2cdd20ae94f342d212a1a1
if: ${{ failure() }}
with:
status: ${{ job.status }}
notification_title: "Run performance tests: failure in valpas-organisaatio-listaus"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
valpas-oppija-detaalit:
needs: [insert_light]
name: valpas-oppija-detaalit
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Java 11
uses: actions/setup-java@v3
with:
java-version: "11"
architecture: "x64"
distribution: "zulu"
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: "20.17.0"
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache Node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
run: mvn test-compile
- name: Run perftest valpas-oppija-detaalit
run: |
export PERFTEST_THREADS=30
export PERFTEST_ROUNDS=5000
export WARMUP_ROUNDS=50
export PERFTEST_SUCCESS_THRESHOLD_PERCENTAGE=98
export KOSKI_VALPAS_OPPIJAOIDIT_FILENAME="valpas_qa_oppija_oidit.txt"
mvn exec:java -Dexec.mainClass="fi.oph.koski.perftest.ValpasRandomPerusopetuksenOppijaGetter"
- name: Report failure
uses: ravsamhq/notify-slack-action@95a35215cdf7ab510d2cdd20ae94f342d212a1a1
if: ${{ failure() }}
with:
status: ${{ job.status }}
notification_title: "Run performance tests: failure in valpas-oppija-detaalit"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}