Release v2.17.1: Backfill full 1-month completed closing-bell series (2026-11-30 & 2026-12-01 across all 23 public tickers), add lossless VPS telemetry snapshot/reconciliation, and enforce read-only VPS closeups/readme sync in Gate D4
This commit is contained in:
1 parent
5eca430cce
commit
52153e76f0
20 files changed
+3590
-3794
No files matched your search
@@ -128,7 +128,7 @@ fi
|
||||
|
||||
if [[ "${DO_PUSH}" -eq 1 ]] && [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_libre_audio" ]]; then
|
||||
echo "[4/5] Committing and pushing automated VPS telemetry updates to git.libre.audio..."
|
||||
run_checked "hs-readme-sync --install-hooks" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --install-hooks
|
||||
run_checked "hs-readme-sync --hooks-only" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --hooks-only
|
||||
DEPLOY_KEY="/etc/hyperstitionstud.io/id_ed25519_git_libre_audio"
|
||||
GIT_SSH_CMD="ssh -i ${DEPLOY_KEY} -p 2222 -o IdentitiesOnly=yes -o IdentityAgent=none -o BatchMode=yes -o StrictHostKeyChecking=accept-new"
|
||||
export GIT_SSH_COMMAND="${GIT_SSH_CMD}"
|
||||
@@ -147,37 +147,44 @@ if [[ "${DO_PUSH}" -eq 1 ]] && [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_li
|
||||
forge_ssh="ssh://git@git.libre.audio:2222/seasharp"
|
||||
git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" config core.sshCommand "${GIT_SSH_CMD}" || true
|
||||
git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" remote set-url origin "${forge_ssh}/${r}.git" || true
|
||||
if [[ "${r}" == "hyperstitionstudio-core" ]]; then
|
||||
TELEMETRY_SNAP_DIR="/tmp/hyperstition-vps-prod-telemetry-snap"
|
||||
rm -rf "${TELEMETRY_SNAP_DIR}"
|
||||
run_checked "snapshot telemetry (${r})" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --snapshot-telemetry "${TELEMETRY_SNAP_DIR}"
|
||||
run_checked "git fetch (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" fetch --force origin main --tags
|
||||
local_head="$(git -C "${REPOS_ROOT}/${r}" rev-parse HEAD)"
|
||||
remote_head="$(git -C "${REPOS_ROOT}/${r}" rev-parse origin/main)"
|
||||
if [[ "${local_head}" != "${remote_head}" ]]; then
|
||||
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||
echo " [sync] Advancing ${r} base to origin/main and reconciling telemetry snapshot..."
|
||||
fi
|
||||
run_checked "git reset --hard origin/main (${r})" git -C "${REPOS_ROOT}/${r}" reset --hard origin/main
|
||||
git -C "${REPOS_ROOT}/${r}" stash clear || true
|
||||
run_checked "reconcile telemetry (${r})" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --reconcile-telemetry "${TELEMETRY_SNAP_DIR}"
|
||||
fi
|
||||
rm -rf "${TELEMETRY_SNAP_DIR}"
|
||||
else
|
||||
run_checked "git fetch (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" fetch --force origin main --tags
|
||||
run_checked "git pull --rebase --autostash (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" pull --rebase -X theirs --autostash origin main
|
||||
fi
|
||||
git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" add -A
|
||||
if ! git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" diff --cached --quiet; then
|
||||
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||
echo " [commit] Committing new telemetry changes in ${r}..."
|
||||
fi
|
||||
run_checked "git commit (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" commit -m "chore(telemetry): automated VPS ${WINDOW_MODE} harvest (${STAMP_UTC})"
|
||||
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||
echo " [push] Pushing ${r} to git.libre.audio..."
|
||||
fi
|
||||
run_checked "git push (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" push origin main
|
||||
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||
echo " [ok] Repository ${r} successfully pushed to git.libre.audio ($(git -C "${REPOS_ROOT}/${r}" rev-parse --short HEAD))."
|
||||
fi
|
||||
else
|
||||
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||
echo " [clean] Repository ${r} working tree is clean (no new local telemetry changes to commit)."
|
||||
echo " [clean] Repository ${r} working tree is clean and in sync with origin/main ($(git -C "${REPOS_ROOT}/${r}" rev-parse --short HEAD))."
|
||||
fi
|
||||
fi
|
||||
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||
echo " [sync] Pulling and rebasing origin/main for ${r}..."
|
||||
fi
|
||||
run_checked "git pull --rebase --autostash (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" pull --rebase -X theirs --autostash origin main
|
||||
unmerged_paths="$(git -C "${REPOS_ROOT}/${r}" diff --name-only --diff-filter=U || true)"
|
||||
if [[ -n "${unmerged_paths}" ]]; then
|
||||
while IFS= read -r uf; do
|
||||
[[ -z "${uf}" ]] && continue
|
||||
git -C "${REPOS_ROOT}/${r}" checkout --theirs -- "${uf}"
|
||||
git -C "${REPOS_ROOT}/${r}" reset HEAD -- "${uf}"
|
||||
done <<< "${unmerged_paths}"
|
||||
git -C "${REPOS_ROOT}/${r}" stash drop -q || true
|
||||
fi
|
||||
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||
echo " [push] Pushing ${r} to git.libre.audio..."
|
||||
fi
|
||||
run_checked "git push (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" push origin main
|
||||
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||
echo " [ok] Repository ${r} successfully pushed to git.libre.audio ($(git -C "${REPOS_ROOT}/${r}" rev-parse --short HEAD))."
|
||||
fi
|
||||
fi
|
||||
done
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user