feat(svos): v0.0.28 UI 0.0.33 published on nh3-svos (U24 the 3-D tree); no restart

This commit is contained in:
vh
2026-10-19 10:32:40 -07:00
parent c1867088e4
commit 2929bfc60c
4 changed files with 58 additions and 1 deletions
@@ -0,0 +1,26 @@
# nh3-svos: STAGE SVOS v0.0.28 (d6298f7) beside the live release. Installs into /opt/svos/releases/d6298f7 and runs the
# new kernel's check-config against the live configuration. Does NOT switch current, stop or start anything.
# svos-dev's request (thread 01M5AKFPPNEW9615GSCPSH8F0H): UI 0.0.33 (U24 the 3-D tree); kernel 0.0.28 is a
# version bump; everything else carried from d5e15c3. Built from the LOCAL tag before the push; the publish
# (nh3-svos-d6298f7-v0.0.28.yaml) first needs origin's v0.0.28 to name the same commit.
steps:
- name: Private staging dir
shell: install -d -m 0700 /tmp/svos-stage-d6298f7
- {name: stage release, upload: {src: /tmp/claude-1000/-home-lkraven-development-eshpfi-management/e0be18fd-0734-4786-b933-904f0a74d2a2/scratchpad/svos-d6298f7/svos-release-d6298f7.tar.gz, dest: /tmp/svos-stage-d6298f7/release.tar.gz, mode: "0644"}}
- {name: stage uv, upload: {src: /home/lkraven/bin/uv, dest: /tmp/svos-stage-d6298f7/uv, mode: "0755"}}
- {name: stage installer, upload: {src: /tmp/claude-1000/-home-lkraven-development-eshpfi-management/e0be18fd-0734-4786-b933-904f0a74d2a2/scratchpad/svos-d6298f7/install-release.py, dest: /tmp/svos-stage-d6298f7/install-release.py, mode: "0644"}}
- name: Verify staged hashes
shell: cd /tmp/svos-stage-d6298f7 && printf '%s %s\n' d046755fd216a74c6be4e5e80e7e66a3a8bda290357fbec3abf89583f8b800f9 release.tar.gz 83aa128da93e168283ed32cf75cd819fe17b135b3fc1f7ccb3c912eec198d9fb uv | sha256sum -c -
changed_when: "false"
- name: Install release d6298f7 beside the live one (current NOT switched)
sudo: true
shell: python3 /tmp/svos-stage-d6298f7/install-release.py
creates: /opt/svos/releases/d6298f7/apps-env/pyvenv.cfg
verify:
- name: New kernel 0.0.28 accepts the live configuration as it is
sudo: true
shell: runuser -u svc-svos -- /opt/svos/releases/d6298f7/kernel-env/bin/svos-kernel check-config --data-root /var/lib/svos
changed_when: "false"
- name: current still points at the live release
shell: readlink /opt/svos/current
changed_when: "false"
@@ -0,0 +1,26 @@
# nh3-svos -> SVOS v0.0.28 (d6298f7): UI-only publish. UI 0.0.33 (U24: Yggdrasil as a 3-D tree turning with the mote cloud).
# Kernel = a version bump; no app change, no manifest revision, no card.
# svos-dev's request, thread 01M5AKFPPNEW9615GSCPSH8F0H. PRE-REQS: the stage playbook; origin's v0.0.28 == d6298f7b465a
# (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 d6298f7), so keep those dirs until they restart.
steps:
- name: Pre-reqs present
sudo: true
shell: test -f /opt/svos/releases/d6298f7/static/index.html && readlink /opt/svos/current
changed_when: "false"
- name: Switch current to d6298f7
sudo: true
shell: ln -sfn /opt/svos/releases/d6298f7 /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.33 live; d5e15c3 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"