feat(deploy): add over-the-wire Fedora 41 exegesis RPM SSH deployment & rollback to push-all-to-git-libre-audio.sh

This commit is contained in:
Hermes Agent committed 2026-12-02 22:09:58 +00:00
1 parent 9b587d6351
commit 70a69ef647
3 files changed
+123 -2

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@
<!-- HS-COMMIT-STATUS:START --> <!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)** > **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)**
> - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots &rarr; [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/) > - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots &rarr; [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/)
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 19 tracked module/artifact surface(s) > - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 2 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `deploy/push-all-to-git-libre-audio.sh`, `src/hyperstitionstud_io/ci/citation_sources.py`, `src/hyperstitionstud_io/ci/deploy_scripts_sync.py`, `src/hyperstitionstud_io/ci/doctor.py`, `src/hyperstitionstud_io/ci/public_regression.py`, `src/hyperstitionstud_io/db/sqlite_meta.py`, `src/hyperstitionstud_io/mcp/tools.py`, `src/hyperstitionstud_io/publishing/archive_rotator.py` (+11 more) > - **Touched Files / Surfaces:** `deploy/push-all-to-git-libre-audio.sh`, `src/hyperstitionstud_io/ci/deploy_scripts_sync.py`
> - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data > - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
<!-- HS-COMMIT-STATUS:END --> <!-- HS-COMMIT-STATUS:END -->
+118
View File
@@ -48,6 +48,64 @@ export PYTHONPATH="${WORKSPACE_DIR}/hyperstitionstudio-core/src${PYTHONPATH:+:${
export HYPERSTITIONSTUDIO_CONFIG="${HYPERSTITIONSTUDIO_CONFIG:-${WORKSPACE_DIR}/workspace.toml}" export HYPERSTITIONSTUDIO_CONFIG="${HYPERSTITIONSTUDIO_CONFIG:-${WORKSPACE_DIR}/workspace.toml}"
FORGE_SSH="${FORGE_SSH:-ssh://git@git.libre.audio:2222/seasharp}" FORGE_SSH="${FORGE_SSH:-ssh://git@git.libre.audio:2222/seasharp}"
EXEGESIS_HOST="${EXEGESIS_HOST:-}"
EXEGESIS_UNINSTALL=0
SKIP_EXEGESIS_DEPLOY=0
while [[ $# -gt 0 ]]; do
case "$1" in
--exegesis-host=*)
EXEGESIS_HOST="${1#*=}"
shift
;;
--exegesis-host)
if [[ $# -lt 2 ]] || [[ -z "${2:-}" ]]; then
echo "[ERROR] --exegesis-host requires a <user@host> argument." >&2
exit 2
fi
EXEGESIS_HOST="$2"
shift 2
;;
--exegesis-uninstall)
EXEGESIS_UNINSTALL=1
shift
;;
--skip-exegesis-deploy)
SKIP_EXEGESIS_DEPLOY=1
shift
;;
-h|--help)
echo "Usage: $0 [--exegesis-host=<user@host>] [--exegesis-uninstall] [--skip-exegesis-deploy]"
exit 0
;;
*)
echo "[ERROR] Unknown option: $1" >&2
echo "Usage: $0 [--exegesis-host=<user@host>] [--exegesis-uninstall] [--skip-exegesis-deploy]" >&2
exit 2
;;
esac
done
if [[ "${EXEGESIS_UNINSTALL}" -eq 1 ]]; then
if [[ -z "${EXEGESIS_HOST}" ]] && [[ -t 0 ]]; then
read -r -p "Enter target Fedora 41 host (user@host) to uninstall ingglish-isopsephic-exegesis: " EXEGESIS_HOST || EXEGESIS_HOST=""
fi
if [[ -z "${EXEGESIS_HOST}" ]]; then
echo "[ERROR] --exegesis-uninstall requires --exegesis-host=<user@host>." >&2
exit 2
fi
echo "[uninstall] Verifying SSH connectivity to ${EXEGESIS_HOST}..."
ssh -o BatchMode=yes -o ConnectTimeout=5 "${EXEGESIS_HOST}" true
echo "[uninstall] Uninstalling ingglish-isopsephic-exegesis on ${EXEGESIS_HOST}..."
if [[ -t 0 ]]; then
ssh -t "${EXEGESIS_HOST}" sudo rpm -e ingglish-isopsephic-exegesis
else
ssh "${EXEGESIS_HOST}" sudo rpm -e ingglish-isopsephic-exegesis
fi
echo "[OK] Cleanly uninstalled ingglish-isopsephic-exegesis from ${EXEGESIS_HOST}."
exit 0
fi
echo "[info] WORKSPACE_DIR=${WORKSPACE_DIR}" echo "[info] WORKSPACE_DIR=${WORKSPACE_DIR}"
echo "[info] PYTHONPATH=${PYTHONPATH}" echo "[info] PYTHONPATH=${PYTHONPATH}"
@@ -126,3 +184,63 @@ if [[ -d "${WORKSPACE_DIR}/haiperdohp-jemaytreeah/.git" ]]; then
fi fi
echo "[OK] All 6 repositories and release tags pushed to ${FORGE_SSH}." echo "[OK] All 6 repositories and release tags pushed to ${FORGE_SSH}."
if [[ "${SKIP_EXEGESIS_DEPLOY}" -eq 1 ]]; then
echo "[info] Skipping Fedora 41 exegesis RPM over-the-wire deployment (--skip-exegesis-deploy)."
elif [[ -z "${EXEGESIS_HOST}" ]] && [[ -t 0 ]]; then
read -r -p "Deploy built Fedora 41 exegesis RPM over the wire via SSH? [y/N / enter user@host]: " EXEGESIS_INPUT || EXEGESIS_INPUT=""
EXEGESIS_INPUT="${EXEGESIS_INPUT#"${EXEGESIS_INPUT%%[![:space:]]*}"}"
EXEGESIS_INPUT="${EXEGESIS_INPUT%"${EXEGESIS_INPUT##*[![:space:]]}"}"
case "${EXEGESIS_INPUT}" in
""|n|N|no|NO)
echo "[info] Skipping Fedora 41 exegesis RPM over-the-wire deployment."
;;
y|Y|yes|YES)
read -r -p "Enter target Fedora 41 host (user@host or IP): " EXEGESIS_HOST || EXEGESIS_HOST=""
EXEGESIS_HOST="${EXEGESIS_HOST#"${EXEGESIS_HOST%%[![:space:]]*}"}"
EXEGESIS_HOST="${EXEGESIS_HOST%"${EXEGESIS_HOST##*[![:space:]]}"}"
;;
*)
EXEGESIS_HOST="${EXEGESIS_INPUT}"
;;
esac
elif [[ -z "${EXEGESIS_HOST}" ]]; then
echo "[info] Non-interactive session and --exegesis-host not set; skipping Fedora 41 exegesis RPM deployment."
fi
if [[ "${SKIP_EXEGESIS_DEPLOY}" -eq 0 ]] && [[ -n "${EXEGESIS_HOST}" ]]; then
echo "[deploy] Verifying SSH connectivity to ${EXEGESIS_HOST}..."
ssh -o BatchMode=yes -o ConnectTimeout=5 "${EXEGESIS_HOST}" true
RPM_FILE=""
shopt -s nullglob
RPM_CANDIDATES=(
"${WORKSPACE_DIR}/ingglish-hyperdope-gematria/packaging"/ingglish-isopsephic-exegesis-*.fc41.noarch.rpm
"${WORKSPACE_DIR}/untracked/rpm-builds"/ingglish-isopsephic-exegesis-*.fc41.noarch.rpm
)
shopt -u nullglob
if [[ ${#RPM_CANDIDATES[@]} -gt 0 ]]; then
RPM_FILE="$(printf '%s\n' "${RPM_CANDIDATES[@]}" | sort -V | tail -n 1)"
fi
if [[ -z "${RPM_FILE}" ]] || [[ ! -f "${RPM_FILE}" ]]; then
echo "[ERROR] No built Fedora 41 RPM found in ${WORKSPACE_DIR}/ingglish-hyperdope-gematria/packaging/ or ${WORKSPACE_DIR}/untracked/rpm-builds/." >&2
exit 1
fi
RPM_NAME="$(basename "${RPM_FILE}")"
echo "[deploy] Found built RPM: ${RPM_FILE}"
echo "[deploy] Transferring ${RPM_NAME} to ${EXEGESIS_HOST}:/tmp/${RPM_NAME}..."
scp "${RPM_FILE}" "${EXEGESIS_HOST}:/tmp/${RPM_NAME}"
echo "[deploy] Installing/upgrading ${RPM_NAME} on ${EXEGESIS_HOST}..."
if [[ -t 0 ]]; then
ssh -t "${EXEGESIS_HOST}" "sudo rpm -Uvh --replacepkgs /tmp/${RPM_NAME} && rm -f /tmp/${RPM_NAME}"
else
ssh "${EXEGESIS_HOST}" "sudo rpm -Uvh --replacepkgs /tmp/${RPM_NAME} && rm -f /tmp/${RPM_NAME}"
fi
echo "[deploy] Running in-situ dry-run verification on ${EXEGESIS_HOST}..."
ssh "${EXEGESIS_HOST}" "/usr/bin/ingglish-exegesis-push --dry-run"
echo "[OK] Verified in-situ execution of /usr/bin/ingglish-exegesis-push --dry-run on ${EXEGESIS_HOST}."
echo "[rollback] To reverse this installation on ${EXEGESIS_HOST}, run: ssh ${EXEGESIS_HOST} sudo rpm -e ingglish-isopsephic-exegesis"
fi
@@ -205,6 +205,9 @@ def prepare_and_verify_deploy_scripts(
'push --force "${remote_name}" "refs/tags/${head_tag}"', 'push --force "${remote_name}" "refs/tags/${head_tag}"',
"build-fedora41-rpm.sh", "build-fedora41-rpm.sh",
"run_exegesis_and_push_fedora41.sh", "run_exegesis_and_push_fedora41.sh",
"--exegesis-host",
"--exegesis-uninstall",
"--skip-exegesis-deploy",
) )
gate_d7_ok = all(m in push_txt_cur for m in required_push_markers) gate_d7_ok = all(m in push_txt_cur for m in required_push_markers)
if not gate_d7_ok: if not gate_d7_ok: