From 6b8250474ef0209ac26a8e74d965792e21081440 Mon Sep 17 00:00:00 2001 From: JSONbored <49853598+JSONbored@users.noreply.github.com> Date: Fri, 17 Jul 2026 03:08:43 -0700 Subject: [PATCH] fix(scripts): update remaining gittensory references, fix stale Sentry release default deploy-selfhost-prebuilt.sh carried the same live bug just fixed in release-selfhost.yml (#6876): SENTRY_RELEASE defaulted to "gittensory-selfhost@" when unset, so a manual/prebuilt deploy would tag Sentry with the pre-rename project's release format on every run. Fixed the default, its log-file path, and the usage-example comment. check-changelog.mjs's temp-dir prefix, export-ams-reporting-db.sh's "AMS (gittensory-miner)" comment, and export-miner-prometheus-textfile.sh's default output filename were cosmetic-only -- updated for consistency with the already-renamed LOOPOVER_MINER_* env vars around them. Deliberately left untouched (verified each is either external or a separate, real, current convention, not gittensory-rebrand drift): export-d1-core.mjs's [[gittensory-selfhost-migration-plan]] wiki-link (can't verify the target doc's real name from here); export-d1-data.mjs's `--db gittensory` usage example (confirmed against the live Cloudflare account: the production D1 database is genuinely still named "gittensory", by explicit decision -- no rename planned, D1/R2 have no in-place rename support and the cost of a live-data migration isn't worth it for a cosmetic label); export-grafana-reporting-db.sh's 'gittensory-native' source-column literal (a stored, historical DB discriminant value, must stay stable for existing rows); gittensor-impact-card.mjs (calls the unrelated external gittensor.io service); github-type-label.d.mts and the config it mirrors (gittensor:bug/feature/priority are real, current GitHub label names on this repo, a deliberate naming choice separate from the old gittensory product name); and selfhost-post-update-check.sh's historical comment about the rename incident itself. --- scripts/check-changelog.mjs | 2 +- scripts/deploy-selfhost-prebuilt.sh | 6 +++--- scripts/export-ams-reporting-db.sh | 2 +- scripts/export-miner-prometheus-textfile.sh | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/check-changelog.mjs b/scripts/check-changelog.mjs index c92f10f69b..2bb504fb37 100644 --- a/scripts/check-changelog.mjs +++ b/scripts/check-changelog.mjs @@ -13,7 +13,7 @@ if (invalidArgs.length > 0) { process.exit(1); } -const tempDir = mkdtempSync(join(tmpdir(), "gittensory-changelog-")); +const tempDir = mkdtempSync(join(tmpdir(), "loopover-changelog-")); try { const checks = [ diff --git a/scripts/deploy-selfhost-prebuilt.sh b/scripts/deploy-selfhost-prebuilt.sh index 92c42c1e2a..7dab684d26 100755 --- a/scripts/deploy-selfhost-prebuilt.sh +++ b/scripts/deploy-selfhost-prebuilt.sh @@ -7,7 +7,7 @@ # ./scripts/deploy-selfhost-prebuilt.sh # # Optional knobs: -# SENTRY_RELEASE=gittensory-selfhost@edge-abc123 ./scripts/deploy-selfhost-prebuilt.sh +# SENTRY_RELEASE=loopover-selfhost@edge-abc123 ./scripts/deploy-selfhost-prebuilt.sh # SELFHOST_COMPOSE_FILES="docker-compose.yml docker-compose.override.yml" ./scripts/deploy-selfhost-prebuilt.sh # SELFHOST_SKIP_SENTRY_UPLOAD=1 ./scripts/deploy-selfhost-prebuilt.sh # SELFHOST_USE_INFISICAL=1 ./scripts/deploy-selfhost-prebuilt.sh # opt-in Infisical secrets (#5120), see docs @@ -74,7 +74,7 @@ run_sentry_upload() { -v "$PWD:/work" \ -w /work \ "$NODE_IMAGE" \ - sh -lc 'apt-get update >/dev/null && apt-get install -y --no-install-recommends ca-certificates git >/dev/null && git config --global --add safe.directory /work && (npx -y "$SENTRY_CLI_PACKAGE" releases new "$SENTRY_RELEASE" >/tmp/gittensory-sentry-release-new.log 2>&1 || true) && npx -y "$SENTRY_CLI_PACKAGE" releases set-commits "$SENTRY_RELEASE" --auto && npx -y "$SENTRY_CLI_PACKAGE" sourcemaps inject dist && node scripts/validate-selfhost-sourcemap.mjs && npx -y "$SENTRY_CLI_PACKAGE" sourcemaps upload --release="$SENTRY_RELEASE" dist && npx -y "$SENTRY_CLI_PACKAGE" releases finalize "$SENTRY_RELEASE" && chown -R "$HOST_UID:$HOST_GID" dist node_modules package-lock.json' + sh -lc 'apt-get update >/dev/null && apt-get install -y --no-install-recommends ca-certificates git >/dev/null && git config --global --add safe.directory /work && (npx -y "$SENTRY_CLI_PACKAGE" releases new "$SENTRY_RELEASE" >/tmp/loopover-sentry-release-new.log 2>&1 || true) && npx -y "$SENTRY_CLI_PACKAGE" releases set-commits "$SENTRY_RELEASE" --auto && npx -y "$SENTRY_CLI_PACKAGE" sourcemaps inject dist && node scripts/validate-selfhost-sourcemap.mjs && npx -y "$SENTRY_CLI_PACKAGE" sourcemaps upload --release="$SENTRY_RELEASE" dist && npx -y "$SENTRY_CLI_PACKAGE" releases finalize "$SENTRY_RELEASE" && chown -R "$HOST_UID:$HOST_GID" dist node_modules package-lock.json' } run_init_secrets() { @@ -125,7 +125,7 @@ fi # Default to the current checkout on every deploy. Do not reuse a persisted .env value here: # that value is written by the previous deploy and would make future updates report stale # release/version metadata unless the operator remembered to override it manually. -SENTRY_RELEASE="${SENTRY_RELEASE:-gittensory-selfhost@$(git rev-parse --short=8 HEAD)}" +SENTRY_RELEASE="${SENTRY_RELEASE:-loopover-selfhost@$(git rev-parse --short=8 HEAD)}" export SENTRY_RELEASE env_put SENTRY_RELEASE "$SENTRY_RELEASE" diff --git a/scripts/export-ams-reporting-db.sh b/scripts/export-ams-reporting-db.sh index 765fc91306..44037d8da3 100644 --- a/scripts/export-ams-reporting-db.sh +++ b/scripts/export-ams-reporting-db.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -# AMS (gittensory-miner) redacted reporting export (#5184 follow-up; closes the gap PR #5471 flagged: Grafana must +# AMS (loopover-miner) redacted reporting export (#5184 follow-up; closes the gap PR #5471 flagged: Grafana must # never mount the miner's live LOOPOVER_MINER_CONFIG_DIR ledgers directly -- attempt_log_events.reason and # .payload_json are free-form and can carry arbitrary internal detail). Mirrors export-grafana-reporting-db.sh's # shape (incremental fingerprint fast-path, atomic tmp-then-move, fail-open on a missing/unreadable source) but is diff --git a/scripts/export-miner-prometheus-textfile.sh b/scripts/export-miner-prometheus-textfile.sh index e42c8434d1..393a9f0dce 100644 --- a/scripts/export-miner-prometheus-textfile.sh +++ b/scripts/export-miner-prometheus-textfile.sh @@ -20,7 +20,7 @@ set -eu # export is strictly better than a stale-forever or entirely-missing one. MINER_BIN="${LOOPOVER_MINER_BIN:-loopover-miner}" -OUT_FILE="${LOOPOVER_MINER_PROMETHEUS_TEXTFILE:-/var/lib/node_exporter/textfile_collector/gittensory_miner.prom}" +OUT_FILE="${LOOPOVER_MINER_PROMETHEUS_TEXTFILE:-/var/lib/node_exporter/textfile_collector/loopover_miner.prom}" TMP_FILE="${OUT_FILE}.tmp" mkdir -p "$(dirname "$OUT_FILE")"