Add --push-only flag to run-vps-data-production.sh for manual ad-hoc telemetry pushes without harvesting or verification gates
This commit is contained in:
1 parent
8ae738e40f
commit
1d3c29a9a1
2 files changed
+23
-15
No files matched your search
@@ -4,7 +4,7 @@
|
||||
> **Gitea Commit & Release Telemetry (`v2.17.1` • 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 → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/)
|
||||
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 1 tracked module/artifact surface(s)
|
||||
> - **Touched Files / Surfaces:** `tests/test_core_suite.py`
|
||||
> - **Touched Files / Surfaces:** `deploy/run-vps-data-production.sh`
|
||||
> - **Live Verified Ecosystem Metrics (`v2.17.1`):** `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 -->
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ WINDOW_MODE="us-closing-bell"
|
||||
OFFLINE_MODE=0
|
||||
DO_PUSH=1
|
||||
SKIP_HYDRATE=0
|
||||
PUSH_ONLY=0
|
||||
|
||||
for arg in "$@"; do
|
||||
case "${arg}" in
|
||||
@@ -62,6 +63,9 @@ for arg in "$@"; do
|
||||
--skip-hydrate)
|
||||
SKIP_HYDRATE=1
|
||||
;;
|
||||
--push-only)
|
||||
PUSH_ONLY=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
@@ -76,15 +80,16 @@ fi
|
||||
|
||||
unset OPENROUTER_API_KEY OPENAI_API_KEY ANTHROPIC_API_KEY
|
||||
|
||||
echo "[1/5] Running Stage 1 & Stage 2 periodic data production (window=${WINDOW_MODE}, offline=${OFFLINE_MODE})..."
|
||||
if [[ "${OFFLINE_MODE}" -eq 1 ]]; then
|
||||
if [[ "${PUSH_ONLY}" -eq 0 ]]; then
|
||||
echo "[1/5] Running Stage 1 & Stage 2 periodic data production (window=${WINDOW_MODE}, offline=${OFFLINE_MODE})..."
|
||||
if [[ "${OFFLINE_MODE}" -eq 1 ]]; then
|
||||
run_checked "hs-quant-harvest (offline)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}"
|
||||
run_checked "hs-macro-harvest (offline)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.macro --offline
|
||||
else
|
||||
else
|
||||
run_checked "hs-quant-harvest (--append-history --live)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}" --append-history --live
|
||||
run_checked "hs-macro-harvest (live FRED CSV)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.macro
|
||||
fi
|
||||
if [[ "${WINDOW_MODE}" == "utc-rollover" ]] && [[ -f "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py" ]]; then
|
||||
fi
|
||||
if [[ "${WINDOW_MODE}" == "utc-rollover" ]] && [[ -f "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py" ]]; then
|
||||
CI_OUT_DIR="${REPOS_ROOT}/ingglish-hyperdope-ci"
|
||||
if [[ ! -d "${CI_OUT_DIR}" ]] && [[ -d "${REPOS_ROOT}/hyperdope-ci-build" ]]; then
|
||||
CI_OUT_DIR="${REPOS_ROOT}/hyperdope-ci-build"
|
||||
@@ -95,13 +100,13 @@ if [[ "${WINDOW_MODE}" == "utc-rollover" ]] && [[ -f "${REPOS_ROOT}/ingglish-hyp
|
||||
--out-dir "${CI_OUT_DIR}" \
|
||||
--tier 2
|
||||
fi
|
||||
fi
|
||||
run_checked "quant.timeseries" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.timeseries
|
||||
run_checked "hs-daily-brief" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.daily_brief
|
||||
run_checked "build_encyclopedia_knowledge_graph.py" "${PYTHON_BIN}" "${REPOS_ROOT}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only
|
||||
fi
|
||||
run_checked "quant.timeseries" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.timeseries
|
||||
run_checked "hs-daily-brief" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.daily_brief
|
||||
run_checked "build_encyclopedia_knowledge_graph.py" "${PYTHON_BIN}" "${REPOS_ROOT}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only
|
||||
|
||||
echo "[2/5] Running Stage 3 transactional verification gates (hs-doctor, ReadOnlyIsolationGuard, test_core_suite)..."
|
||||
if ! "${PYTHON_BIN}" -m hyperstitionstud_io.ci.doctor || ! "${PYTHON_BIN}" "${REPOS_ROOT}/hyperstitionstudio-core/tests/test_core_suite.py"; then
|
||||
echo "[2/5] Running Stage 3 transactional verification gates (hs-doctor, ReadOnlyIsolationGuard, test_core_suite)..."
|
||||
if ! "${PYTHON_BIN}" -m hyperstitionstud_io.ci.doctor || ! "${PYTHON_BIN}" "${REPOS_ROOT}/hyperstitionstudio-core/tests/test_core_suite.py"; then
|
||||
echo "[ROLLBACK] Verification gate failed! Rolling back uncommitted changes in ${REPOS_ROOT} without touching tmpfs..." >&2
|
||||
for r in hyperstitionstudio-core ingglish-hyperdope-gematria encyclopedia-knowledge-graph; do
|
||||
if [[ -d "${REPOS_ROOT}/${r}/.git" ]]; then
|
||||
@@ -109,13 +114,16 @@ if ! "${PYTHON_BIN}" -m hyperstitionstud_io.ci.doctor || ! "${PYTHON_BIN}" "${RE
|
||||
fi
|
||||
done
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "${SKIP_HYDRATE}" -eq 0 ]]; then
|
||||
if [[ "${SKIP_HYDRATE}" -eq 0 ]]; then
|
||||
echo "[3/5] Hydrating tmpfs RAM webroot (${LIVE_REPOS}) via sync-vps-repos.sh --no-pull --no-caddy..."
|
||||
run_checked "sync-vps-repos.sh --no-pull --no-caddy" "${SCRIPT_DIR}/sync-vps-repos.sh" --no-pull --no-caddy
|
||||
else
|
||||
else
|
||||
echo "[3/5] Skipping tmpfs hydration (--skip-hydrate)."
|
||||
fi
|
||||
else
|
||||
echo "[info] --push-only requested: skipping harvesting, compilers, verification gates, and RAM hydration."
|
||||
fi
|
||||
|
||||
if [[ "${DO_PUSH}" -eq 1 ]] && [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_libre_audio" ]]; then
|
||||
|
||||
Reference in new issue
Block a user