fix(deploy): auto-sync untracked workspace.toml in sync-vps-repos.sh before version_sync --check and fix run_checked exit code capture (v2.0.16)

This commit is contained in:
m00t & Hermes Agent committed 2026-11-30 04:52:39 +00:00
1 parent 7a0a058085
commit 62592f2efd
13 files changed
+25 -20

No files matched your search

+9 -4
View File
@@ -20,9 +20,10 @@ trap 'on_error ${LINENO}' ERR
run_checked() {
local label="$1"
shift
local out
if ! out="$("$@" 2>&1)"; then
local rc=$?
local out=""
local rc=0
out="$("$@" 2>&1)" || rc=$?
if [[ "${rc}" -ne 0 ]]; then
echo "[ERROR] ${label} failed (exit code ${rc}): $*" >&2
if [[ -n "${out}" ]]; then
echo "${out}" >&2
@@ -119,7 +120,11 @@ if [[ -d "${REPOS_ROOT}/haiperdohp-jemaytreeah" ]]; then
fi
fi
echo "[2/5] Running hs-doctor, version_sync --check, and 6-Gate Knowledge Graph Verification..."
echo "[2/5] Synchronizing local workspace.toml version and running hs-doctor, version_sync --check, and 6-Gate Knowledge Graph Verification..."
if [[ -f "${REPOS_ROOT}/workspace.toml" ]] && [[ -f "${REPOS_ROOT}/hyperstitionstudio-core/workspace.example.toml" ]]; then
# Sync schema_version in untracked parent workspace.toml with hyperstitionstud_io.__version__
run_checked "version_sync (sync untracked workspace.toml)" "${PYTHON_BIN}" -m hyperstitionstud_io.version_sync
fi
run_checked "version_sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.version_sync --check
run_checked "hs-doctor" "${PYTHON_BIN}" -m hyperstitionstud_io.ci.doctor
run_checked "build_encyclopedia_knowledge_graph.py --verify-only" "${PYTHON_BIN}" "${REPOS_ROOT}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only