fix(deploy): gate rebase conflict-side flags and unchecked pull --rebase in DEPLOY-GATE-D07.TOPO_PUSH_PARITY
This commit is contained in:
1 parent
0d4b2a5d27
commit
808882e0a6
4 files changed
+57
-20
No files matched your search
@@ -1470,17 +1470,30 @@ def test_ipld_quant_and_mcp_server() -> None:
|
||||
f"Expected thin delegator wrapper for {ci_prov_mirror}"
|
||||
)
|
||||
|
||||
# Verify Plan #58: Pre-Commit Preparation & Gates DEPLOY-GATE-D01.MIRROR_PARITY..DEPLOY-GATE-D08.PRE_COMMIT_STAGE for push-all-to-git-libre-audio.sh & deploy/sync-vps-repos.sh
|
||||
from hyperstitionstud_io.ci.deploy_scripts_sync import prepare_and_verify_deploy_scripts
|
||||
# Verify Plan #58 & DEPLOY-GATE-D07.TOPO_PUSH_PARITY: Pre-Commit Preparation & Gates DEPLOY-GATE-D01.MIRROR_PARITY..DEPLOY-GATE-D08.PRE_COMMIT_STAGE for push-all-to-git-libre-audio.sh & deploy/sync-vps-repos.sh
|
||||
from hyperstitionstud_io.ci.deploy_scripts_sync import (
|
||||
prepare_and_verify_deploy_scripts,
|
||||
validate_push_script_rebase_gating,
|
||||
)
|
||||
|
||||
dep_sync = prepare_and_verify_deploy_scripts(workspace_root=cfg.workspace_root, check_only=False)
|
||||
assert dep_sync["ok"] is True, f"Deploy scripts sync failed: {dep_sync}"
|
||||
assert all(dep_sync["gates"].values()), f"Deploy scripts gates failed: {dep_sync['gates']}"
|
||||
dep_chk = prepare_and_verify_deploy_scripts(workspace_root=cfg.workspace_root, check_only=True)
|
||||
assert dep_chk["ok"] is True, f"Deploy scripts check_only failed: {dep_chk}"
|
||||
assert (cfg.core_dir / "deploy" / "push-all-to-git-libre-audio.sh").read_text(encoding="utf-8") == (
|
||||
cfg.workspace_root / "push-all-to-git-libre-audio.sh"
|
||||
).read_text(encoding="utf-8")
|
||||
ws_push_txt = (cfg.workspace_root / "push-all-to-git-libre-audio.sh").read_text(encoding="utf-8")
|
||||
assert (cfg.core_dir / "deploy" / "push-all-to-git-libre-audio.sh").read_text(encoding="utf-8") == ws_push_txt
|
||||
assert validate_push_script_rebase_gating(ws_push_txt) == []
|
||||
assert 'run_checked "git pull --rebase' in ws_push_txt
|
||||
for bad_rebase_snippet in (
|
||||
"git checkout --theirs README.md",
|
||||
"git checkout --ours README.md",
|
||||
"git pull --rebase -X theirs origin main",
|
||||
"git pull --rebase -X ours origin main",
|
||||
"git pull --rebase --autostash origin main || true",
|
||||
):
|
||||
bad_v = validate_push_script_rebase_gating(bad_rebase_snippet)
|
||||
assert len(bad_v) >= 1, f"Gate DEPLOY-GATE-D07.TOPO_PUSH_PARITY failed to reject {bad_rebase_snippet!r}"
|
||||
|
||||
# Verify Plan #60: /calc/ (haiperdohpjematreeah) Homepage Group 3 UI Parity, Zero "Cypher Calculator" & hyperdope-ci-build Patch Integration
|
||||
calc_dir = cfg.paths["gematria_js_dir"]
|
||||
|
||||
Reference in new issue
Block a user