test: production ingest E2E test suite with enhanced logging (#55)
CI / CI (push) Successful in 25m7s
Deploy / Tag & Push Latest (push) Successful in 3m49s

## Summary
Production testing of ingest + embedding pipeline with api-gw integration.

## Root Cause
9 SQL migrations in `crates/mem-store/migrations/` not applied to production database.

Missing tables:
- `memory_entity`
- `memory_edge`
- `memory_edge_temporal`
- Vector embeddings tables
- And 15+ more schema objects

Evidence from logs:
```
WARN: Failed to save entity Docker:
      error returned from database: relation "memory_entity" does not exist
```

## Deliverables
- `test_prod_ingest_real.sh` - Full E2E test against K8s + api-gw
- `apply_migrations.sh` - Manual schema migration (backup)
- `collect_prod_logs.sh` - Pod log collection before/after
- `run_production_test.sh` - Test orchestrator
- `tests/integration_ingest_with_gw.rs` - Integration test
- `tests/unit_ingest_logging.rs` - Unit tests for extraction
- Enhanced logging in `ingest_worker.rs` - Per-record event tracking

## Next Steps
1. Trigger "DB Migration" workflow in Forgejo Actions
2. This applies all 9 migrations from `crates/mem-store/migrations/`
3. Pod restart (automatic)
4. Re-run E2E test - should pass completely

**ETA:** ~15 minutes (3-5 min migrations + 2 min restart + verification)

## How to Test Locally
```bash
./test_prod_ingest_real.sh --verbose
```

Requires:
- kubectl access to poimen namespace
- Port-forwarding to memory-service

---------

Co-authored-by: rock <[email protected]>
Reviewed-on: #55
Co-authored-by: poimen <[email protected]>
This commit was merged in pull request #55.
This commit is contained in:
2026-09-16 00:10:58 +00:00
committed by rock
co-authored by rock
parent 4169effd8a
commit a88ea918bf
137 changed files with 4628 additions and 7227 deletions
@@ -4,7 +4,7 @@
/// node positions in 2D space suitable for React Flow visualization.
use serde::{Deserialize, Serialize};
use super::bfs_graph_traversal::{GraphData, TraversalNode, TraversalEdge};
use super::bfs_graph_traversal::{GraphData, TraversalNode};
/// 2D position (X, Y coordinates)
#[derive(Debug, Clone, Copy, Default, Serialize, Deserialize)]
@@ -184,8 +184,8 @@ impl ForceDirectedLayout {
let dist = dist_sq.sqrt();
let force = charge / dist_sq;
let fx = (force * dx / dist);
let fy = (force * dy / dist);
let fx = force * dx / dist;
let fy = force * dy / dist;
(-fx, -fy) // Negative = repulsive
}
@@ -199,8 +199,8 @@ impl ForceDirectedLayout {
let displacement = dist - link_distance;
let force = 0.1 * displacement; // Spring constant
let fx = (force * dx / dist);
let fy = (force * dy / dist);
let fx = force * dx / dist;
let fy = force * dy / dist;
(fx, fy) // Positive = attractive
}