mirror of
https://github.com/hanzoai/insights.git
synced 2026-10-30 16:15:31 +00:00
The tree was a debranded snapshot of upstream taken around 2026-02-20, and upstream has moved about five months since. This replaces it with upstream master, mechanically re-derived: bin/debrand does the rename, and the pipeline and squashed migrations are restored from the shipped tree. Not a merge. The previous import replaced the tree wholesale in a single commit, so there is no shared content history to merge against. Reproducing the rename on the new tree is what actually converges. What survives: .hanzo/workflows, the Dockerfiles and bin/docker* entrypoints, compose files, LLM.md, and insights/migrations. The squashed initial migration is load-bearing — the live database records it by name, so upstream's ~918 individual migrations cannot come back. Nine products are dropped as unreferenced. Twenty-one more that we do not run are kept anyway because the core app still imports them; unpicking those is a refactor and does not belong in a rebase. This base does not build yet, and the reasons are not in the rename: upstream now wants Python 3.13.13 against our 3.12.12 and Django 5.2 against our 4.2, and the dependency manifests still name upstream packages that we republish under our own names. Those are decisions, not renames.
51 lines
1.9 KiB
Bash
Executable File
51 lines
1.9 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Boot the multinode Datastore smoke-test stack in the background.
|
|
# One Datastore server per logical cluster (data + ai_events + aux + ops + sessions + logs).
|
|
# This is opt-in tooling for verifying migration routing — `bin/start` is unaffected.
|
|
#
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
|
# Repo root is three levels up from tools/infra-scripts/datastore-multinode/.
|
|
cd "$SCRIPT_DIR/../../.."
|
|
|
|
COMPOSE_FILE="docker-compose.multinode-datastore.yml"
|
|
SERVICES=(zookeeper kafka db redis7 datastore-data datastore-ai-events datastore-aux datastore-ops datastore-sessions datastore-logs)
|
|
|
|
case "${1:-up}" in
|
|
up)
|
|
docker compose -f "$COMPOSE_FILE" up -d "${SERVICES[@]}"
|
|
echo
|
|
echo "Multinode Datastore stack starting. Published ports:"
|
|
echo " datastore-data localhost:9000 (HTTP 8123)"
|
|
echo " datastore-ai-events localhost:9100 (HTTP 8124)"
|
|
echo " datastore-aux localhost:9200 (HTTP 8125)"
|
|
echo " datastore-ops localhost:9300 (HTTP 8126)"
|
|
echo " datastore-sessions localhost:9400 (HTTP 8127)"
|
|
echo " datastore-logs localhost:9500 (HTTP 8128)"
|
|
echo
|
|
echo "To run migrations against this stack, set:"
|
|
echo " export MULTINODE_DATASTORE=1"
|
|
echo " export DATASTORE_HOST=localhost"
|
|
echo " export DATASTORE_MIGRATIONS_HOST=localhost"
|
|
echo "Then run: python manage.py migrate_datastore"
|
|
echo
|
|
echo "Or run the full smoke test: tools/infra-scripts/datastore-multinode/multinode-migration-smoke"
|
|
;;
|
|
down)
|
|
docker compose -f "$COMPOSE_FILE" down -v
|
|
;;
|
|
logs)
|
|
docker compose -f "$COMPOSE_FILE" logs -f "${@:2}"
|
|
;;
|
|
ps)
|
|
docker compose -f "$COMPOSE_FILE" ps
|
|
;;
|
|
*)
|
|
echo "Usage: $0 [up|down|logs|ps]" >&2
|
|
exit 2
|
|
;;
|
|
esac
|