How datakitchen/dataops-testgen works
TestGen is a data-quality and observability application. Its documented workflow covers profiling and screening datasets, reviewing hygiene issues, generating and executing validation tests, and continuously monitoring production data for anomalies. The repository provides UI, API, and MCP surfaces, alongside command and scheduler subsystems; database models and flavor-aware query services support work against TestGen metadata and connected data sources. The README describes the product stages, while source evidence is uneven: edges without a shown caller are omitted or marked unverified.
Main entry points: database_service.py Database access · ui Web UI · models Metadata store · profiling_query.py Data profiling
Components 20
Product interfaces
- Web UI
testgen/ui - HTTP API
testgen/api - MCP server
testgen/mcp
Quality workflows
- Data profiling
testgen/commands/queries/profiling_query.py - Hygiene review
testgen/api - Test generation
testgen/commands - Test execution
testgen/commands/queries/execute_tests_query.py - Anomaly monitoring
testgen/common/monitor_service.py - Quality scores
testgen/commands/queries/rollup_scores_query.py
Execution platform
- Job orchestration
testgen/commands - Scheduler
testgen/scheduler - Plugin hooks
testgen/utils/plugins.py - Notifications
testgen/common/notifications
Data access and state
- Connected data source
- Database access
testgen/common/database/database_service.py - SQL flavors
testgen/common/database/flavor/flavor_service.py - Metadata store
testgen/common/models - Connection records
testgen/common/models/connection.py - Table groups
testgen/common/models/table_group.py
Other components
- Data practitioner
Connections 12
- Data practitioner → Web UI: manages quality
README.md - Data profiling → Database access: queries data
testgen/commands/queries/profiling_query.py - Data profiling → Metadata store: reads models
testgen/commands/queries/profiling_query.py - Test execution → Database access: executes queries
testgen/commands/queries/execute_tests_query.py - Test execution → Metadata store: reads models
testgen/commands/queries/execute_tests_query.py - Database access → SQL flavors: uses flavor
testgen/common/database/database_service.py - Database access → Connected data source: connects to
- Web UI → Connected data source: previews data
testgen/ui/services/database_service.py - Web UI → Database access: uses access layer
testgen/ui/services/database_service.py - Connection records → SQL flavors: references flavors
testgen/common/models/connection.py - Table groups → Metadata store: queries session
testgen/common/models/table_group.py - MCP server → Plugin hooks: loads extensions
testgen/mcp/server.py