feat(namespace): implement Plan #71 CI repo standardization, schema_version parity & path normalization
This commit is contained in:
1 parent
1e2968f84e
commit
3945e3648a
14 files changed
+69
-50
No files matched your search
@@ -85,12 +85,16 @@ python3 "${WORKSPACE_DIR}/hyperstitionstudio-core/tests/test_core_suite.py"
|
||||
run_checked "build_encyclopedia_knowledge_graph.py --verify-only" python3 "${WORKSPACE_DIR}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only
|
||||
|
||||
echo "[2/3] Verifying git.libre.audio remote URLs across all repositories..."
|
||||
CI_REPO_DIR="hyperdope-ci-build"
|
||||
if [[ ! -d "${WORKSPACE_DIR}/${CI_REPO_DIR}" ]] && [[ -d "${WORKSPACE_DIR}/ingglish-hyperdope-ci" ]]; then
|
||||
CI_REPO_DIR="ingglish-hyperdope-ci"
|
||||
fi
|
||||
for pair in \
|
||||
"hyperstitionstudio-core:hyperstitionstudio-core.git" \
|
||||
"ingglish-hyperdope-gematria:ingglish-hyperdope-gematria.git" \
|
||||
"technocapital-singularity-zoology:technocapital-singularity-zoology.git" \
|
||||
"encyclopedia-knowledge-graph:encyclopedia-knowledge-graph.git" \
|
||||
"hyperdope-ci-build:ingglish-hyperdope-ci.git"; do
|
||||
"${CI_REPO_DIR}:ingglish-hyperdope-ci.git"; do
|
||||
rdir="${WORKSPACE_DIR}/${pair%%:*}"
|
||||
rslug="${pair##*:}"
|
||||
ensure_remote_url "${rdir}" origin "${FORGE_SSH}/${rslug}"
|
||||
@@ -127,10 +131,10 @@ git -C "${WORKSPACE_DIR}/encyclopedia-knowledge-graph" pull --rebase --autostash
|
||||
git -C "${WORKSPACE_DIR}/encyclopedia-knowledge-graph" push -u origin main
|
||||
push_head_tag "${WORKSPACE_DIR}/encyclopedia-knowledge-graph" origin
|
||||
|
||||
echo " -> (5/6) hyperdope-ci-build (feat/ingglish-aq-corpus + HEAD tag)"
|
||||
git -C "${WORKSPACE_DIR}/hyperdope-ci-build" pull --rebase --autostash origin feat/ingglish-aq-corpus || true
|
||||
git -C "${WORKSPACE_DIR}/hyperdope-ci-build" push -u origin feat/ingglish-aq-corpus
|
||||
push_head_tag "${WORKSPACE_DIR}/hyperdope-ci-build" origin
|
||||
echo " -> (5/6) hyperdope-ci-build (${CI_REPO_DIR}, feat/ingglish-aq-corpus + HEAD tag)"
|
||||
git -C "${WORKSPACE_DIR}/${CI_REPO_DIR}" pull --rebase --autostash origin feat/ingglish-aq-corpus || true
|
||||
git -C "${WORKSPACE_DIR}/${CI_REPO_DIR}" push -u origin feat/ingglish-aq-corpus
|
||||
push_head_tag "${WORKSPACE_DIR}/${CI_REPO_DIR}" origin
|
||||
|
||||
if [[ -d "${WORKSPACE_DIR}/haiperdohp-jemaytreeah/.git" ]]; then
|
||||
echo " -> (6/6) haiperdohp-jemaytreeah (downstream main, feat/ingglish-aq-corpus, feat/ingglish-priority-toggle + HEAD tag)"
|
||||
|
||||
@@ -90,9 +90,9 @@ if [[ "${PUSH_ONLY}" -eq 0 ]]; then
|
||||
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
|
||||
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"
|
||||
CI_OUT_DIR="${REPOS_ROOT}/hyperdope-ci-build"
|
||||
if [[ ! -d "${CI_OUT_DIR}" ]] && [[ -d "${REPOS_ROOT}/ingglish-hyperdope-ci" ]]; then
|
||||
CI_OUT_DIR="${REPOS_ROOT}/ingglish-hyperdope-ci"
|
||||
fi
|
||||
if [[ -d "${CI_OUT_DIR}" ]]; then
|
||||
run_checked "ci_provision_ingglish.py (--tier 2)" "${PYTHON_BIN}" "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py" \
|
||||
|
||||
@@ -95,10 +95,10 @@ if [[ -f "${REPOS_ROOT}/workspace.toml" ]]; then
|
||||
export HYPERSTITIONSTUDIO_CONFIG="${REPOS_ROOT}/workspace.toml"
|
||||
fi
|
||||
|
||||
# Detect whether the CI artifact repository is cloned as ingglish-hyperdope-ci or hyperdope-ci-build
|
||||
CI_REPO_DIR="ingglish-hyperdope-ci"
|
||||
if [[ ! -d "${REPOS_ROOT}/${CI_REPO_DIR}" ]] && [[ -d "${REPOS_ROOT}/hyperdope-ci-build" ]]; then
|
||||
CI_REPO_DIR="hyperdope-ci-build"
|
||||
# Detect whether the CI artifact repository is cloned as hyperdope-ci-build (canonical) or ingglish-hyperdope-ci
|
||||
CI_REPO_DIR="hyperdope-ci-build"
|
||||
if [[ ! -d "${REPOS_ROOT}/${CI_REPO_DIR}" ]] && [[ -d "${REPOS_ROOT}/ingglish-hyperdope-ci" ]]; then
|
||||
CI_REPO_DIR="ingglish-hyperdope-ci"
|
||||
fi
|
||||
|
||||
REPOS=(
|
||||
@@ -248,8 +248,10 @@ for entry in "${REPOS[@]}"; do
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ "${CI_REPO_DIR}" == "hyperdope-ci-build" ]] && [[ -d "${LIVE_REPOS}/hyperdope-ci-build" ]] && [[ ! -e "${LIVE_REPOS}/ingglish-hyperdope-ci" ]]; then
|
||||
if [[ "${CI_REPO_DIR}" == "hyperdope-ci-build" ]] && [[ -d "${LIVE_REPOS}/hyperdope-ci-build" ]]; then
|
||||
${LIVE_SUDO} ln -sfn "hyperdope-ci-build" "${LIVE_REPOS}/ingglish-hyperdope-ci"
|
||||
elif [[ "${CI_REPO_DIR}" == "ingglish-hyperdope-ci" ]] && [[ -d "${LIVE_REPOS}/ingglish-hyperdope-ci" ]]; then
|
||||
${LIVE_SUDO} ln -sfn "ingglish-hyperdope-ci" "${LIVE_REPOS}/hyperdope-ci-build"
|
||||
fi
|
||||
|
||||
# Create relative route symlinks inside LIVE_REPOS so both Caddy and standalone HTTP servers resolve all active routes
|
||||
@@ -287,7 +289,7 @@ ${LIVE_SUDO} ln -sfn "technocapital-singularity-zoology/encyclopedia" "${LIVE_RE
|
||||
${LIVE_SUDO} ln -sfn "technocapital-singularity-zoology" "${LIVE_REPOS}/zoology"
|
||||
${LIVE_SUDO} ln -sfn "ingglish-hyperdope-gematria/ingglish-aq-archive" "${LIVE_REPOS}/archive"
|
||||
${LIVE_SUDO} ln -sfn "haiperdohp-jemaytreeah" "${LIVE_REPOS}/calc"
|
||||
${LIVE_SUDO} ln -sfn "ingglish-hyperdope-ci" "${LIVE_REPOS}/ci"
|
||||
${LIVE_SUDO} ln -sfn "${CI_REPO_DIR}" "${LIVE_REPOS}/ci"
|
||||
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/schemas" "${LIVE_REPOS}/schemas"
|
||||
|
||||
echo "[4/5] Pre-compressing static HTML, JS, JSON, XML, Canvas, MD & CSS assets (< 5 MB) (.br / .gz) incrementally in parallel & enforcing single-layer (1x) compression..."
|
||||
|
||||
Reference in new issue
Block a user