Files
insights/bin/mprocs-e2e.yaml
zeekay 1b367e2b62 chore: rebase the tree onto upstream master
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.
2026-08-01 15:44:40 -07:00

86 lines
4.0 KiB
YAML

procs:
# E2E test runner with Playwright UI
playwright:
shell: 'pnpm --filter=@hanzo/frontend build:products && pnpm --filter=@hanzo/playwright exec playwright test --ui'
env:
BASE_URL: 'http://localhost:8010'
EMAIL_HOST: 'email.test.insights.net'
backend:
shell: 'uv sync --active && bin/wait-for-docker && ./bin/start-backend'
ready_pattern: 'Listening at'
env:
DATABASE_URL: 'postgres://insights:insights@localhost:5432/insights_e2e_test'
DATASTORE_DATABASE: 'insights_test'
CLOUD_DEPLOYMENT: 'E2E'
SECRET_KEY: 'e2e_test'
SECURE_COOKIES: '0'
SKIP_SERVICE_VERSION_REQUIREMENTS: '1'
DEBUG: '1'
E2E_TESTING: '1'
PERSON_ON_EVENTS_OVERRIDE: '1'
PERSONFN_ADDR: 'localhost:50052'
celery-worker:
shell: 'uv sync --active && bin/wait-for-docker && ./bin/start-celery worker'
ready_pattern: 'celery@'
env:
DATABASE_URL: 'postgres://insights:insights@localhost:5432/insights_e2e_test'
DATASTORE_DATABASE: 'insights_test'
CLOUD_DEPLOYMENT: 'E2E'
SECRET_KEY: 'e2e_test'
SECURE_COOKIES: '0'
SKIP_SERVICE_VERSION_REQUIREMENTS: '1'
DEBUG: '1'
E2E_TESTING: '1'
PERSONFN_ADDR: 'localhost:50052'
frontend:
shell: './bin/start-frontend'
ready_pattern: 'VITE.*ready in'
env:
E2E_TESTING: '1'
docker-compose:
shell: 'docker compose -p insights -f docker-compose.dev.yml -f docker-compose.profiles.yml up --pull always -d && docker compose -p insights -f docker-compose.dev.yml -f docker-compose.profiles.yml --profile ingestion up -d personinsights-replica personinsights-router && echo "docker-compose ready" && docker compose -p insights -f docker-compose.dev.yml -f docker-compose.profiles.yml logs --tail=100 -f'
ready_pattern: 'docker-compose ready'
reset-db:
shell: |-
echo "=== Terminating existing connections ===" && \
psql -d postgres -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'insights_e2e_test' AND pid <> pg_backend_pid();" || true && \
echo "=== Dropping and recreating databases ===" && \
dropdb --if-exists insights_e2e_test && \
createdb insights_e2e_test && \
echo "DROP DATABASE IF EXISTS insights_test SYNC" | curl 'http://localhost:8123/' --data-binary @- && \
echo "CREATE DATABASE insights_test" | curl 'http://localhost:8123/' --data-binary @- && \
echo "=== Detaching conflicting Kafka-engine tables from insights DB (shared consumer group 'group1') ===" && \
for tbl in $(echo "SELECT name FROM system.tables WHERE database='insights' AND engine='Kafka' FORMAT TabSeparated" | curl -s 'http://localhost:8123/' --data-binary @-); do \
echo " detaching insights.$tbl"; \
echo "DETACH TABLE IF EXISTS insights.\`$tbl\` PERMANENTLY" | curl -s 'http://localhost:8123/' --data-binary @- || true; \
done && \
echo "=== Running migrations ===" && \
bin/wait-for-docker && \
python manage.py migrate && \
python manage.py migrate_datastore && \
echo "=== Setting up demo data ===" && \
python manage.py setup_dev && \
echo "=== Done ==="
autostart: false
ready_pattern: '=== Done ==='
env:
PGHOST: 'localhost'
PGPORT: '5432'
PGUSER: 'insights'
PGPASSWORD: 'insights'
DATABASE_URL: 'postgres://insights:insights@localhost:5432/insights_e2e_test'
DATASTORE_DATABASE: 'insights_test'
CLOUD_DEPLOYMENT: 'E2E'
SECRET_KEY: 'e2e_test'
DEBUG: '1'
E2E_TESTING: '1'
PERSONFN_ADDR: 'localhost:50052'
mouse_scroll_speed: 1
scrollback: 10000