@@ -58,16 +58,23 @@ jobs:
5858 - name : Helm install devlake
5959 if : matrix.database_type == 'mysql-external'
6060 run : |
61- helm repo add bitnami https://charts.bitnami.com/bitnami
6261 helm repo add grafana https://grafana.github.io/helm-charts
63- helm install mysql bitnami/mysql --version 9.19.1 --set auth.rootPassword=admin --set auth.database=lake --set auth.username=merico --set auth.password=merico
64- # external mysql at service: mysql
62+ kubectl run mysql --image=mysql:8.0 \
63+ --env="MYSQL_ROOT_PASSWORD=admin" \
64+ --env="MYSQL_DATABASE=lake" \
65+ --env="MYSQL_USER=merico" \
66+ --env="MYSQL_PASSWORD=merico" \
67+ --port=3306
68+ kubectl expose pod mysql --port=3306
69+ kubectl wait --for=condition=ready pod/mysql --timeout=300s
6570 helm dep build charts/devlake
66- helm install --debug --wait --timeout 2400s deploy-test charts/devlake \
71+ helm install --debug --wait --timeout 600s deploy-test charts/devlake \
6772 --set service.uiPort=30000 \
6873 --set mysql.useExternal=true \
6974 --set mysql.externalServer=mysql \
70- --set lake.encryptionSecret.secret=$(openssl rand -base64 2000 | tr -dc 'A-Z' | fold -w 128 | head -n 1)
75+ --set grafana.persistence.enabled=false \
76+ --set lake.encryptionSecret.secret=$(openssl rand -base64 2000 | tr -dc 'A-Z' | fold -w 128 | head -n 1) \
77+ || { kubectl get pods -o wide; kubectl describe pods; kubectl get events --sort-by='.lastTimestamp'; exit 1; }
7178
7279 - name : Helm install devlake
7380 if : matrix.database_type == 'mysql-builtin'
@@ -76,10 +83,12 @@ jobs:
7683 helm dep build charts/devlake
7784 export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")
7885 echo Node IP: ${NODE_IP}
79- helm install --debug --wait --timeout 2400s deploy-test charts/devlake \
86+ helm install --debug --wait --timeout 600s deploy-test charts/devlake \
8087 --set service.uiPort=30000 \
8188 --set mysql.image.tag=8-debian \
82- --set lake.encryptionSecret.secret=$(openssl rand -base64 2000 | tr -dc 'A-Z' | fold -w 128 | head -n 1)
89+ --set grafana.persistence.enabled=false \
90+ --set lake.encryptionSecret.secret=$(openssl rand -base64 2000 | tr -dc 'A-Z' | fold -w 128 | head -n 1) \
91+ || { kubectl get pods -o wide; kubectl describe pods; kubectl get events --sort-by='.lastTimestamp'; exit 1; }
8392
8493 - name : List cluster resources
8594 if : ${{ always() }}
@@ -101,7 +110,7 @@ jobs:
101110 # home
102111 curl --fail http://${NODE_IP}:30000 || failed=1
103112 # API for devlake
104- curl --fail http://${NODE_IP}:30000/api/blueprints || failed=1
113+ curl --fail http://${NODE_IP}:30000/api/ping || failed=1
105114 # API for grafana
106115 curl --fail http://${NODE_IP}:30000/grafana/api/health || failed=1
107116 if [ $failed -eq 0 ] ; then
0 commit comments