infra: add QA Docker Compose stack with Postgres + Ollama#229
Conversation
Self-contained QA testing environment: Postgres (pgvector), Ollama (nomic-embed-text), and mcp-awareness built from local source. Runs on port 8421 alongside production on 8420. Usage: docker compose -f docker-compose.qa.yaml up -d --build Teardown: docker compose -f docker-compose.qa.yaml down -v Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Dev Review — PR #229
Clean, self-contained QA stack. No blockers. A few observations for QA to consider:
Observations
1. [Minor] Hardcoded credentials in repo
awareness-qa password is in the compose file. Fine for a local ephemeral stack — just noting it's committed to the repo. No action needed.
2. [Minor] Ollama version pinned to 0.19.0
Good for reproducibility, will go stale over time. Could add a comment noting when to bump, or use a floating tag. Low priority.
3. [Informational] No AWARENESS_DEFAULT_OWNER set
Will default to getpass.getuser() inside the container (likely root). Not a problem, but entries will have owner_id=root rather than a named user. Could set to qa for clarity.
4. [Informational] Auth disabled
AWARENESS_AUTH_REQUIRED not set, so auth is off. Correct for QA ease of use. Just means auth-path testing still needs the production instance or a separate config.
5. [Low risk] Ollama cold-start timing
Healthcheck gives ~360s total (start_period: 60s + 10 retries × 30s). Should cover most cases, but a first-ever pull of nomic-embed-text on a slow connection could exceed this. The cached volume solves repeat starts.
Verdict
Ship it. Nice addition to the QA workflow.
Dev review feedback — avoids owner_id=root inside container. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Thanks for the review. Addressed observation #3 — added |
Summary
Self-contained QA testing environment with full embedding support:
awareness_qadatabase, UTF-8, named volumeOne command up, one command teardown. No more ad-hoc
docker runcommands for QA.Usage
QA
Verified
remembercreates entriessemantic_searchreturns results with similarity scores (Ollama embeddings working)down -vtears down cleanly (containers, volumes, network)🤖 Generated with Claude Code