Release v2.14.0: Resolve tracked deploy/push-all-to-git-libre-audio.sh fallback in deploy_scripts_sync.py when parent push script is absent on VPS

This commit is contained in:
Hermes Agent committed 2026-12-01 11:55:11 +00:00
1 parent f78cf47e00
commit 1014390e37
4 files changed
+31 -5

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.14.0` • Namespace `urn:io:hyperstitionstud`)** > **Gitea Commit & Release Telemetry (`v2.14.0` • 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.14.0 release state across 38 tracked module/artifact surface(s) > - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.14.0 release state across 3 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `deploy/push-all-to-git-libre-audio.sh`, `deploy/sync-vps-repos.sh`, `package.json`, `packages-js/ciphers-aq/package.json`, `pyproject.toml`, `scripts/build_gallery_manifest.py`, `site/donate/index.html`, `site/engineering/cicd-vps-tmpfs-and-regression/index.html` (+30 more) > - **Touched Files / Surfaces:** `deploy/sync-vps-repos.sh`, `src/hyperstitionstud_io/ci/deploy_scripts_sync.py`, `src/hyperstitionstud_io/version_sync.py`
> - **Live Verified Ecosystem Metrics (`v2.14.0`):** `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.14.0`):** `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 -->
+1
View File
@@ -158,6 +158,7 @@ if p.is_file():
' '
fi fi
run_checked "hs-readme-sync --hooks-only" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --hooks-only run_checked "hs-readme-sync --hooks-only" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --hooks-only
run_checked "hs-deploy-scripts-sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root "${REPOS_ROOT}" --check
run_checked "hs-closeups-sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.closeups_sync --check run_checked "hs-closeups-sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.closeups_sync --check
run_checked "version_sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.version_sync --check run_checked "version_sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.version_sync --check
run_checked "hs-db-build (--build)" "${PYTHON_BIN}" -m hyperstitionstud_io.db.sqlite_meta --build run_checked "hs-db-build (--build)" "${PYTHON_BIN}" -m hyperstitionstud_io.db.sqlite_meta --build
@@ -57,6 +57,8 @@ def prepare_and_verify_deploy_scripts(
errors: list[str] = [] errors: list[str] = []
# Gate D1: Version Header & Tracked Mirror Parity # Gate D1: Version Header & Tracked Mirror Parity
# Note: On VPS (/srv/hyperstitionstud.io/repos), the tracked copy is `hyperstitionstudio-core/deploy/push-all-to-git-libre-audio.sh`
# while the parent directory `ws_root/push-all-to-git-libre-audio.sh` may be absent until hydrated.
if ws_push_sh.is_file(): if ws_push_sh.is_file():
push_txt = ws_push_sh.read_text(encoding="utf-8") push_txt = ws_push_sh.read_text(encoding="utf-8")
upd_push = re.sub(r"^#\s*Release\s+v\d+\.\d+\.\d+:", f"# Release v{ver}:", push_txt, count=1, flags=re.M) upd_push = re.sub(r"^#\s*Release\s+v\d+\.\d+\.\d+:", f"# Release v{ver}:", push_txt, count=1, flags=re.M)
@@ -69,7 +71,6 @@ def prepare_and_verify_deploy_scripts(
modified_files.append(_norm_ws_path(ws_push_sh, workspace_root=ws_root)) modified_files.append(_norm_ws_path(ws_push_sh, workspace_root=ws_root))
push_txt = upd_push push_txt = upd_push
# Ensure tracked mirror inside hyperstitionstudio-core/deploy/push-all-to-git-libre-audio.sh is byte-identical
tracked_txt = tracked_push_sh.read_text(encoding="utf-8") if tracked_push_sh.is_file() else "" tracked_txt = tracked_push_sh.read_text(encoding="utf-8") if tracked_push_sh.is_file() else ""
if tracked_txt != push_txt: if tracked_txt != push_txt:
if check_only: if check_only:
@@ -79,8 +80,25 @@ def prepare_and_verify_deploy_scripts(
tracked_push_sh.write_text(push_txt, encoding="utf-8") tracked_push_sh.write_text(push_txt, encoding="utf-8")
tracked_push_sh.chmod(0o755) tracked_push_sh.chmod(0o755)
modified_files.append(_norm_ws_path(tracked_push_sh, workspace_root=ws_root)) modified_files.append(_norm_ws_path(tracked_push_sh, workspace_root=ws_root))
elif tracked_push_sh.is_file():
push_txt = tracked_push_sh.read_text(encoding="utf-8")
upd_push = re.sub(r"^#\s*Release\s+v\d+\.\d+\.\d+:", f"# Release v{ver}:", push_txt, count=1, flags=re.M)
if upd_push != push_txt:
if check_only:
errors.append(f"Gate D1: {tracked_push_sh} release header does not match v{ver}")
else:
tracked_push_sh.write_text(upd_push, encoding="utf-8")
tracked_push_sh.chmod(0o755)
modified_files.append(_norm_ws_path(tracked_push_sh, workspace_root=ws_root))
push_txt = upd_push
if not check_only:
try:
ws_push_sh.write_text(push_txt, encoding="utf-8")
ws_push_sh.chmod(0o755)
except OSError:
pass
else: else:
errors.append(f"Gate D1: Missing {ws_push_sh}") errors.append(f"Gate D1: Missing both {ws_push_sh} and {tracked_push_sh}")
if sync_vps_sh.is_file(): if sync_vps_sh.is_file():
sync_txt = sync_vps_sh.read_text(encoding="utf-8") sync_txt = sync_vps_sh.read_text(encoding="utf-8")
@@ -155,7 +173,8 @@ def prepare_and_verify_deploy_scripts(
# Gate D6: Single-Layer 1x Compression & Caddyfile Media Extension Parity # Gate D6: Single-Layer 1x Compression & Caddyfile Media Extension Parity
caddy_txt = caddyfile_p.read_text(encoding="utf-8") if caddyfile_p.is_file() else "" caddy_txt = caddyfile_p.read_text(encoding="utf-8") if caddyfile_p.is_file() else ""
push_txt_cur = ws_push_sh.read_text(encoding="utf-8") if ws_push_sh.is_file() else "" push_src = ws_push_sh if ws_push_sh.is_file() else tracked_push_sh
push_txt_cur = push_src.read_text(encoding="utf-8") if push_src.is_file() else ""
gate_d6_ok = ( gate_d6_ok = (
"--enforce-single-compression" in push_txt_cur "--enforce-single-compression" in push_txt_cur
and "--enforce-single-compression" in sync_txt_cur and "--enforce-single-compression" in sync_txt_cur
+6
View File
@@ -425,6 +425,12 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'encyclopedia-knowledge-graph \(v{SEMVER_RE}\)', "encyclopedia-knowledge-graph (v{V})"), (rf'encyclopedia-knowledge-graph \(v{SEMVER_RE}\)', "encyclopedia-knowledge-graph (v{V})"),
], ],
), ),
(
core / "deploy" / "push-all-to-git-libre-audio.sh",
[
(rf'# Release v{SEMVER_RE}:', "# Release v{V}:"),
],
),
( (
core.parent / "push-all-to-git-libre-audio.sh", core.parent / "push-all-to-git-libre-audio.sh",
[ [