15
15
16
16
- name : Install dependencies
17
17
run : |
18
- sudo apt-get install python3-setuptools
18
+ set -eux
19
+ sudo apt update
20
+ sudo apt install python3-setuptools
19
21
sudo pip3 install black flake8
20
22
21
23
- name : Check black
@@ -34,19 +36,18 @@ jobs:
34
36
35
37
36
38
with :
37
- channel : " 1.20 /stable"
39
+ channel : " 1.21 /stable"
38
40
addons : ' ["dns", "storage", "rbac"]'
39
41
40
42
- name : Install dependencies
41
43
run : |
42
44
set -eux
43
45
sudo apt update
44
46
sudo apt install -y python3-pip
45
- sudo snap install charm --classic
46
47
sudo snap install juju --classic
47
- sudo snap install juju-helpers --classic
48
+ sudo snap install juju-bundle --classic
48
49
sudo snap install juju-wait --classic
49
- sudo pip3 install charmcraft==1.0.0
50
+ sudo pip3 install charmcraft==1.3.1
50
51
51
52
- name : Build Docker images
52
53
run : |
@@ -62,20 +63,20 @@ jobs:
62
63
done
63
64
64
65
- name : Deploy Katib
66
+ env :
67
+ CHARMCRAFT_DEVELOPER : " 1"
65
68
run : |
66
69
set -eux
67
70
cd operators/
68
71
git clone git://git.launchpad.net/canonical-osm
69
72
cp -r canonical-osm/charms/interfaces/juju-relation-mysql mysql
70
73
sg microk8s -c 'juju bootstrap microk8s uk8s'
71
74
juju add-model kubeflow
72
- juju bundle deploy -b bundle-edge.yaml --build
75
+ juju bundle deploy --build --destructive-mode --serial
73
76
juju wait -wvt 300
74
77
75
78
- name : Test Katib
76
- run : |
77
- set -eux
78
- kubectl apply -f examples/v1beta1/hp-tuning/random.yaml
79
+ run : kubectl apply -f examples/v1beta1/hp-tuning/random.yaml
79
80
80
81
- name : Get pod statuses
81
82
run : kubectl get all -A
@@ -86,25 +87,32 @@ jobs:
86
87
if : failure()
87
88
88
89
- name : Get katib-controller workload logs
89
- run : kubectl logs --tail 100 -nkubeflow -ljuju-app =katib-controller
90
+ run : kubectl logs --tail 100 -nkubeflow -lapp.kubernetes.io/name =katib-controller
90
91
if : failure()
91
92
92
93
- name : Get katib-controller operator logs
93
- run : kubectl logs --tail 100 -nkubeflow -ljuju-operator =katib-controller
94
+ run : kubectl logs --tail 100 -nkubeflow -loperator.juju.is/name =katib-controller
94
95
if : failure()
95
96
96
97
- name : Get katib-ui workload logs
97
- run : kubectl logs --tail 100 -nkubeflow -ljuju-app =katib-ui
98
+ run : kubectl logs --tail 100 -nkubeflow -lapp.kubernetes.io/name =katib-ui
98
99
if : failure()
99
100
100
101
- name : Get katib-ui operator logs
101
- run : kubectl logs --tail 100 -nkubeflow -ljuju-operator =katib-ui
102
+ run : kubectl logs --tail 100 -nkubeflow -loperator.juju.is/name =katib-ui
102
103
if : failure()
103
104
104
105
- name : Get katib-db-manager workload logs
105
- run : kubectl logs --tail 100 -nkubeflow -ljuju-app =katib-db-manager
106
+ run : kubectl logs --tail 100 -nkubeflow -lapp.kubernetes.io/name =katib-db-manager
106
107
if : failure()
107
108
108
109
- name : Get katib-db-manager operator logs
109
- run : kubectl logs --tail 100 -nkubeflow -ljuju-operator=katib-db-manager
110
+ run : kubectl logs --tail 100 -nkubeflow -loperator.juju.is/name=katib-db-manager
111
+ if : failure()
112
+
113
+ - name : Upload charmcraft logs
114
+ uses : actions/upload-artifact@v2
115
+ with :
116
+ name : charmcraft-logs
117
+ path : /tmp/charmcraft-log-*
110
118
if : failure()
0 commit comments