Skip to content

Commit 4af262f

Browse files
authored
Merge pull request #166 from sunya-ch/e2e-test
add missing integration check (exclude online-trainer)
2 parents aa80bdc + 61d8f21 commit 4af262f

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

.github/workflows/integration-test.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ jobs:
3939
make cleanup
4040
env:
4141
OPTS: "ESTIMATOR"
42+
- name: test deploying kepler with only server
43+
run: |
44+
make deploy
45+
make e2e-test
46+
make cleanup
47+
env:
48+
OPTS: "SERVER"
49+
- name: test deploying kepler with estimator and model server
50+
run: |
51+
make deploy
52+
make e2e-test
53+
make cleanup
54+
env:
55+
OPTS: "ESTIMATOR SERVER"
4256
- name: test deploying dummy kepler with only estimator
4357
run: |
4458
make deploy

tests/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@ Optional arguments:
260260
scenario|test cases|deploy options|status
261261
|---|---|---|---|
262262
Kepler with estimator only|Latest Kepler image is connected to estimator|ESTIMATOR|✔
263-
||Latest Kepler image can power from estimator||WIP
263+
||Estimator can load model from config|ESTIMATOR|✔
264264
||Dummy power request can be made to estimator|ESTIMATOR TEST|✔
265-
Kepler with model server only|Latest Kepler image can request weight model from model server|SERVER|WIP
265+
Kepler with model server only|Latest Kepler image can request weight model from model server|SERVER|✔
266266
||Dummy weight model request can be made to model server|SERVER TEST|✔
267-
Kepler with estimator and model server|Dummy power request can be made to estimator|ESTIMATOR SERVER TEST|✔
268-
||Estimator can load model from model server||✔
269-
||Model server can load initial model||✔
267+
Kepler with estimator and model server|Estimator can load model from model server|ESTIMATOR SERVER|✔
268+
||Model server can load initial model|ESTIMATOR SERVER|✔
269+
||Dummy power request can be made to estimator|ESTIMATOR SERVER TEST|✔
270270
Kepler with model server and online trainer|Kepler can provide metric to online trainer to train|ONLINE|WIP
271271
||Dummy prometheus server can provide metric to online trainer to train|ONLINE TEST|WIP
272272
||Trained model is updated to pipeline and availble on model server||WIP

tests/e2e_test.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ test() {
9797
if [ ! -z ${ESTIMATOR} ]; then
9898
# with estimator
9999
if [ ! -z ${TEST} ]; then
100+
# dummy kepler
100101
kubectl patch ds kepler-exporter -n kepler --patch-file ${top_dir}/manifests/test/power-request-client.yaml
101102
if [ ! -z ${SERVER} ]; then
102103
restart_model_server
@@ -109,18 +110,26 @@ test() {
109110
fi
110111

111112
if [ ! -z ${SERVER} ]; then
113+
# with server
112114
wait_for_server
113115
wait_for_keyword estimator "load model from model server" "estimator should be able to load model from server"
116+
else
117+
# no server
118+
wait_for_keyword estimator "load model from config" "estimator should be able to load model from config"
114119
fi
115120
else
116121
# no estimator
117122
if [ ! -z ${SERVER} ]; then
123+
# with server
118124
if [ ! -z ${TEST} ]; then
125+
# dummy kepler
119126
kubectl patch ds kepler-exporter -n kepler --patch-file ${top_dir}/manifests/test/model-request-client.yaml
120127
restart_model_server
121128
sleep 1
122129
wait_for_kepler
123130
wait_for_keyword kepler Done "cannot get model weight"
131+
else
132+
wait_for_keyword kepler "getWeightFromServer.*core" "kepler should get weight from server"
124133
fi
125134
fi
126135
fi

0 commit comments

Comments
 (0)