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
+31
-14
@@ -144,25 +144,42 @@ if [[ "${DO_PULL}" -eq 1 ]]; then
|
||||
git -C "${REPOS_ROOT}/${repo}" remote set-url "${remote_name}" "https://git.libre.audio/seasharp/${slug}.git" || true
|
||||
fi
|
||||
fi
|
||||
echo "[1/5] Updating ${REPOS_ROOT}/${repo} (${remote_name}/${branch}) with clean remote reset..."
|
||||
run_checked "git fetch ${repo}" git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" fetch --force "${remote_name}" "${branch}" --tags
|
||||
run_checked "git reset --hard ${remote_name}/${branch}" git -C "${REPOS_ROOT}/${repo}" reset --hard "${remote_name}/${branch}"
|
||||
run_checked "git clean -fd" git -C "${REPOS_ROOT}/${repo}" clean -fd
|
||||
unmerged_paths="$(git -C "${REPOS_ROOT}/${repo}" 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}/${repo}" checkout --theirs -- "${uf}"
|
||||
git -C "${REPOS_ROOT}/${repo}" reset HEAD -- "${uf}"
|
||||
done <<< "${unmerged_paths}"
|
||||
git -C "${REPOS_ROOT}/${repo}" stash drop -q || true
|
||||
echo "[1/5] Updating ${REPOS_ROOT}/${repo} (${remote_name}/${branch}) with lossless telemetry snapshot & clean remote sync..."
|
||||
TELEMETRY_SNAP_DIR="/tmp/hyperstition-vps-telemetry-snap"
|
||||
if [[ "${repo}" == "hyperstitionstudio-core" && ! -d "${TELEMETRY_SNAP_DIR}" ]]; then
|
||||
"${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --snapshot-telemetry "${TELEMETRY_SNAP_DIR}" || true
|
||||
fi
|
||||
prev_head="$(git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" rev-parse HEAD)"
|
||||
if [[ "${#GIT_PULL_PREFIX[@]}" -gt 0 ]]; then
|
||||
run_checked "git fetch ${repo}" "${GIT_PULL_PREFIX[@]}" git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -c "safe.directory=${REPOS_ROOT}/${repo}" -C "${REPOS_ROOT}/${repo}" fetch --force "${remote_name}" "${branch}" --tags
|
||||
else
|
||||
run_checked "git fetch ${repo}" git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" fetch --force "${remote_name}" "${branch}" --tags
|
||||
fi
|
||||
git -C "${REPOS_ROOT}/${repo}" rebase --abort 2>&1 | grep -v "No rebase in progress" || true
|
||||
git -C "${REPOS_ROOT}/${repo}" merge --abort 2>&1 | grep -v "There is no merge to abort" || true
|
||||
run_checked "git reset --hard ${remote_name}/${branch} (${repo})" git -C "${REPOS_ROOT}/${repo}" reset --hard "${remote_name}/${branch}"
|
||||
git -C "${REPOS_ROOT}/${repo}" stash clear || true
|
||||
new_head="$(git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" rev-parse HEAD)"
|
||||
if [[ "${repo}" == "hyperstitionstudio-core" && "${prev_head}" != "${new_head}" && -z "${HYPERSTITION_SYNC_REEXEC:-}" ]]; then
|
||||
echo "[1/5] hyperstitionstudio-core updated (${prev_head:0:7} -> ${new_head:0:7}); re-executing updated sync-vps-repos.sh..."
|
||||
export HYPERSTITION_SYNC_REEXEC=1
|
||||
exec "${REPOS_ROOT}/hyperstitionstudio-core/deploy/sync-vps-repos.sh" "$@"
|
||||
fi
|
||||
if [[ "${repo}" == "hyperstitionstudio-core" && -d "${TELEMETRY_SNAP_DIR}" ]]; then
|
||||
run_checked "reconcile VPS telemetry snapshot" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --reconcile-telemetry "${TELEMETRY_SNAP_DIR}"
|
||||
rm -rf "${TELEMETRY_SNAP_DIR}"
|
||||
if [[ -n "$(git -C "${REPOS_ROOT}/hyperstitionstudio-core" status --porcelain || true)" ]] && [[ -f "${DEPLOY_KEY}" ]]; then
|
||||
echo "[1/5] Committing and pushing reconciled VPS harvest telemetry to ${remote_name}/${branch}..."
|
||||
run_checked "hs-readme-sync --hooks-only" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --hooks-only
|
||||
if [[ -z "$(git -C "${REPOS_ROOT}/hyperstitionstudio-core" config user.name || true)" ]]; then
|
||||
git -C "${REPOS_ROOT}/hyperstitionstudio-core" config user.name "Hyperstition VPS Bot"
|
||||
git -C "${REPOS_ROOT}/hyperstitionstudio-core" config user.email "vps-bot@hyperstitionstud.io"
|
||||
fi
|
||||
git -C "${REPOS_ROOT}/hyperstitionstudio-core" add -A
|
||||
run_checked "git commit reconciled telemetry" git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/hyperstitionstudio-core" commit -m "chore(telemetry): reconcile VPS harvest telemetry with origin/main"
|
||||
run_checked "git push reconciled telemetry" git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/hyperstitionstudio-core" push "${remote_name}" "${branch}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
@@ -196,9 +213,9 @@ if p.is_file():
|
||||
p.write_text(u, encoding="utf-8")
|
||||
'
|
||||
fi
|
||||
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
|
||||
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" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.closeups_sync
|
||||
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 "hs-db-build (--build)" "${PYTHON_BIN}" -m hyperstitionstud_io.db.sqlite_meta --build
|
||||
run_checked "hs-doctor" "${PYTHON_BIN}" -m hyperstitionstud_io.ci.doctor
|
||||
|
||||
Reference in new issue
Block a user