Files
esh-pfi-infrastructure/playbooks/svos-releases/nh3-svos-00882e0-v0.0.29.yaml
T

27 lines
1.8 KiB
YAML

# nh3-svos -> SVOS v0.0.29 (00882e0): UI-only publish. UI 0.0.34 (U25: the desk as one viewport with a dock and drawers, the phone with a tab strip).
# Kernel = a version bump; no app change, no manifest revision, no card.
# svos-dev's request, thread 01M5APGEDGHSPFT0T8BG2N4KW3. PRE-REQS: the stage playbook; origin's v0.0.29 == 00882e0cb5b1
# (git ls-remote on nh3-dev before this runs). current must move because svos-front-inventory generates from
# /opt/svos/current/static; NOTHING restarts: the kernel, knowledge and voice keep running 2f29d0d's code, the judge
# d14dc94's and the interface d5e15c3's (all identical in code to 00882e0), so keep those dirs until they restart.
steps:
- name: Pre-reqs present
sudo: true
shell: test -f /opt/svos/releases/00882e0/static/index.html && readlink /opt/svos/current
changed_when: "false"
- name: Switch current to 00882e0
sudo: true
shell: ln -sfn /opt/svos/releases/00882e0 /opt/svos/current.new && chgrp -h svc-svos /opt/svos/current.new && mv -T /opt/svos/current.new /opt/svos/current && readlink /opt/svos/current
- name: Front door inventory (UI 0.0.34 live; d6298f7 becomes previous)
sudo: true
shell: /usr/local/sbin/svos-front-inventory 2>&1 | grep -E 'GENERATED|updated|root \*|path /assets' | head -4
verify:
- name: Front door inventory current; health unchanged
sudo: true
shell: /usr/local/sbin/svos-front-inventory --check && curl -s http://127.0.0.1:8400/health && echo
changed_when: "false"
- name: Which release dir each running service maps (nothing restarted)
sudo: true
shell: for u in svos-kernel svos-interface svos-knowledge svos-judge svos-voice; do pid=$(systemctl show $u -p MainPID --value); printf '%s %s\n' $u "$(grep -oE '/opt/svos/releases/[0-9a-f]+' /proc/$pid/maps | sort -u | tr '\n' ' ')"; done
changed_when: "false"