Repoint ADR references after HQ consolidated 65 records to 23
96 comments across the two repos named records that no longer exist. Each now points at the consolidated record that holds its reasoning -- ADR 0034 (a test defends a decision) is 0017, the eight host records are 0005, the four lab records are 0016. Worth noting for next time: these are references from outside HQ, so renumbering there is not free. It cost 38 files here.
This commit is contained in:
@@ -141,7 +141,7 @@ done
|
||||
# These need the launcher to actually run as a supervisor rather than one iteration, so they do
|
||||
# not set MESH_HOST_RUN_ONCE.
|
||||
|
||||
# A host that exits 0 has upgraded itself and stood aside (novox/hq ADR 0057). The launcher must
|
||||
# A host that exits 0 has upgraded itself and stood aside (novox/hq ADR 0005). The launcher must
|
||||
# start it again — and must NOT count it, because it did not fail.
|
||||
setup
|
||||
unset MESH_HOST_RUN_ONCE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Supervise the host: start it, watch it, and decide what to do when it stops.
|
||||
#
|
||||
# novox/hq ADR 0061. The init is asked for ONE thing — run this at boot — and everything else
|
||||
# novox/hq ADR 0005. The init is asked for ONE thing — run this at boot — and everything else
|
||||
# lives here, in a script that can be tested. Whether to restart, how long to wait, when to give
|
||||
# up, when to roll back: all of it is policy, and policy in a unit file can only be read and
|
||||
# hoped for.
|
||||
@@ -109,7 +109,7 @@ while :; do
|
||||
case "$status" in
|
||||
0)
|
||||
# Exited cleanly. That is how the host stands aside for a new binary after an
|
||||
# upgrade (novox/hq ADR 0057) — so loop and run whatever is now on disk.
|
||||
# upgrade (novox/hq ADR 0005) — so loop and run whatever is now on disk.
|
||||
#
|
||||
# Deliberately NOT counted, and this is the whole reason the counter is
|
||||
# incremented here rather than before the start: counting attempts meant a host
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Put the host back on the last version that worked.
|
||||
#
|
||||
# novox/hq ADR 0059. This runs when nox-mesh-host will not start, so it shares no code with it
|
||||
# novox/hq ADR 0005. This runs when nox-mesh-host will not start, so it shares no code with it
|
||||
# and calls none of it: a binary that cannot start cannot be its own recovery. POSIX sh, no
|
||||
# bashisms, nothing that has to be installed.
|
||||
#
|
||||
@@ -60,6 +60,6 @@ if ! pacman -U --noconfirm "$PKG"; then
|
||||
fi
|
||||
|
||||
# Deliberately does NOT start anything. The launcher called this and will exec the host next,
|
||||
# so starting it here would run two. novox/hq ADR 0061 moved that responsibility; this script
|
||||
# so starting it here would run two. novox/hq ADR 0005 moved that responsibility; this script
|
||||
# installs a version and says so, and nothing else.
|
||||
say "rolled back to $VERSION. the launcher will start it."
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/sbin/openrc-run
|
||||
# The Alpine equivalent of the systemd unit beside this. Four lines of the same two facts:
|
||||
# run the launcher, and bring it back if it dies. Everything else is in the launcher, which is
|
||||
# what makes a second init transcription rather than a port (novox/hq ADR 0061).
|
||||
# what makes a second init transcription rather than a port (novox/hq ADR 0005).
|
||||
name="nox-mesh-host"
|
||||
command="/usr/lib/nox-mesh-host/launch"
|
||||
supervisor="supervise-daemon"
|
||||
|
||||
@@ -3,7 +3,7 @@ Description=Novox Mesh node host
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
# One line of policy: run the launcher at boot (novox/hq ADR 0061). Restarting the host,
|
||||
# One line of policy: run the launcher at boot (novox/hq ADR 0005). Restarting the host,
|
||||
# backing off, giving up and rolling back are all the launcher's, where they can be tested.
|
||||
# Restart= here is a backstop for the launcher itself being killed, not the mechanism.
|
||||
[Service]
|
||||
|
||||
@@ -47,7 +47,7 @@ touch "$MESH_HOST_PKG_CACHE/nox-mesh-host-1.4.2-1-x86_64.pkg.tar.zst"
|
||||
check "installs the known-good version" "pacman is asked to install the cached package" \
|
||||
"$(grep -c 'nox-mesh-host-1.4.2' "$MESH_HOST_STATE_DIR/pacman.calls" 2>/dev/null || echo 0)" "1"
|
||||
# It installs and stops. The launcher execs the host next, and starting it here would run two
|
||||
# (novox/hq ADR 0061).
|
||||
# (novox/hq ADR 0005).
|
||||
check "does not start anything itself" "the launcher owns starting" \
|
||||
"$([ -f "$MESH_HOST_STATE_DIR/systemctl.calls" ] && echo started || echo not-started)" "not-started"
|
||||
check "records that it rolled back" "the attempted marker holds the version" \
|
||||
|
||||
Reference in New Issue
Block a user