@@ -211,6 +211,8 @@ jobs:
211211 ip="$(lxc list -c n4 -f csv | grep '^ncp' | cut -d ',' -f2)"
212212 ip="${ip/% *}"
213213 echo "${ip} nextcloudpi.local" | sudo tee /etc/hosts
214+ lxc exec ncp -- ncc notify_push:self-test || true
215+ lxc exec ncp -- ncc config:system:get overwrite.cli.url || true
214216
215217 - name : Update ncp
216218 run : |
@@ -230,6 +232,7 @@ jobs:
230232 latest_nc_version="$(cat etc/ncp.cfg | jq -r '.nextcloud_version')"
231233
232234 lxc exec ncp -- bash -c "DBG=x ncp-update ${UPDATE_ARGS[*]}"
235+ sleep 30
233236 lxc exec ncp -- /usr/local/bin/ncc status
234237
235238 if [[ "$current_nc_version" =~ "$latest_nc_version".* ]]
@@ -240,14 +243,12 @@ jobs:
240243 fi
241244
242245 lxc stop ncp
243- lxc publish -q ncp -f --alias "ncp/updated"
244246 - name : Relaunch container
245247 run : |
246248 set -x
247- lxc delete -q -f ncp || true
248- systemd-run --user --scope -p "Delegate=yes" lxc launch -q "ncp/updated" ncp
249+ systemd-run --user --scope -p "Delegate=yes" lxc start ncp
249250 lxc exec ncp -- bash -c 'while [ "$(systemctl is-system-running 2>/dev/null)" != "running" ] && [ "$(systemctl is-system-running 2>/dev/null)" != "degraded" ]; do :; done'
250- sleep 30
251+ sleep 60
251252 ip="$(lxc list -c n4 -f csv | grep '^ncp' | cut -d ',' -f2)"
252253 ip="${ip/% *}"
253254 echo "${ip} nextcloudpi.local" | sudo tee /etc/hosts
@@ -257,6 +258,8 @@ jobs:
257258 lxc exec ncp -- bash -c 'tail -f /var/log/ncp.log' |& awk '{ print "NCP::" $0 }' &
258259 python system_tests.py --non-interactive || {
259260 echo "System test failed!"
261+ lxc exec ncp -- ncc status
262+ lxc exec ncp -- ncc notify_push:self-test
260263 exit 1
261264 }
262265 python nextcloud_tests.py --no-gui "nextcloudpi.local" 443 4443 || {
0 commit comments