Release v2.1.0: Programmatic zero-token version bumper (hs-sync-version --auto-bump) and daily 00:20 UTC VPS archive rotation cronjob (deploy/run-vps-archive-rotation.sh)
This commit is contained in:
1 parent
54e7f8ff61
commit
b9703cda5e
47 files changed
+1243
-598
No files matched your search
@@ -741,6 +741,61 @@ def test_ipld_quant_and_mcp_server() -> None:
|
||||
assert math_man["algebraic_invariants"]["cluster_292_gen1_variance"] == 0.0
|
||||
assert math_man["algebraic_invariants"]["g4_isometric_fixed_point_count"] == 21
|
||||
|
||||
# Verify PLAN-PROGRAMMATIC-VERSION-BUMP-HEURISTICS-ZERO-TOKEN (0 LLM tokens)
|
||||
from hyperstitionstud_io.version_sync import (
|
||||
compute_programmatic_version_bump,
|
||||
evaluate_change_scope_heuristics,
|
||||
)
|
||||
|
||||
r_noop = evaluate_change_scope_heuristics(
|
||||
{"current_version": "2.0.30", "total_dirty_files": 0, "total_commits_ahead": 0}
|
||||
)
|
||||
assert r_noop["recommended_bump_level"] == "noop"
|
||||
assert r_noop["next_version"] == "2.0.30"
|
||||
assert r_noop["llm_tokens_used"] == 0
|
||||
|
||||
r_patch = evaluate_change_scope_heuristics(
|
||||
{"current_version": "2.0.30", "total_dirty_files": 2, "total_commits_ahead": 0}
|
||||
)
|
||||
assert r_patch["recommended_bump_level"] == "patch"
|
||||
assert r_patch["next_version"] == "2.0.31"
|
||||
|
||||
r_minor = evaluate_change_scope_heuristics(
|
||||
{
|
||||
"current_version": "2.0.30",
|
||||
"total_dirty_files": 1,
|
||||
"newly_archived_plans": ["PLAN-SAMPLE-FEATURE"],
|
||||
}
|
||||
)
|
||||
assert r_minor["recommended_bump_level"] == "minor"
|
||||
assert r_minor["next_version"] == "2.1.0"
|
||||
|
||||
r_major = evaluate_change_scope_heuristics(
|
||||
{
|
||||
"current_version": "2.0.30",
|
||||
"total_dirty_files": 1,
|
||||
"removed_cli_scripts": ["hs-doctor"],
|
||||
}
|
||||
)
|
||||
assert r_major["recommended_bump_level"] == "major"
|
||||
assert r_major["next_version"] == "3.0.0"
|
||||
|
||||
live_bump = compute_programmatic_version_bump()
|
||||
assert live_bump["llm_tokens_used"] == 0
|
||||
assert live_bump["recommended_bump_level"] in ("noop", "patch", "minor", "major")
|
||||
|
||||
# Verify PLAN-CRONJOB-ARCHIVE-ROTATION-ON-HYPERSTITIONSTUD-IO scripts & cron/systemd units
|
||||
vps_rot_sh = cfg.core_dir / "deploy" / "run-vps-archive-rotation.sh"
|
||||
cron_rot = cfg.core_dir / "deploy" / "cron.d" / "hyperstition-archive-rotate"
|
||||
timer_rot = cfg.core_dir / "deploy" / "hyperstition-archive-rotate.timer"
|
||||
svc_rot = cfg.core_dir / "deploy" / "hyperstition-archive-rotate.service"
|
||||
for p_rot in (vps_rot_sh, cron_rot, timer_rot, svc_rot):
|
||||
assert p_rot.is_file(), f"Missing {p_rot}"
|
||||
assert "/dev/null" not in p_rot.read_text(encoding="utf-8")
|
||||
assert "unset OPENROUTER_API_KEY OPENAI_API_KEY ANTHROPIC_API_KEY" in vps_rot_sh.read_text(encoding="utf-8")
|
||||
assert "20 0 * * * root" in cron_rot.read_text(encoding="utf-8")
|
||||
assert "OnCalendar=*-*-* 00:20:00 UTC" in timer_rot.read_text(encoding="utf-8")
|
||||
|
||||
# Write cached internal test baseline (.cache/internal-test-baseline-latest.json) for hs-public-smoke
|
||||
from hyperstitionstud_io.ci.public_regression import write_internal_test_baseline_cache
|
||||
|
||||
|
||||
Reference in new issue
Block a user