fix: split incidents tables to dedicated turnstone-incidents.db (#60) #61
No reviewers
Labels
No labels
compliance
demo
deployment
docs
enhancement
parser
patterns
performance
security
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/turnstone#61
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/60-incidents-db"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
incidents,received_bundles,sent_bundlesout ofturnstone.dbinto a dedicatedturnstone-incidents.dbfileturnstone-context.dbsplit patternChanges
glean/pipeline.py— add_INCIDENTS_SCHEMA,ensure_incidents_schema(),migrate_incidents_to_dedicated_db(); stub out moved tables in_SCHEMAfor backward compatrest.py— addINCIDENTS_DB_PATH/TURNSTONE_INCIDENTS_DBenv var; run migration on startup; passINCIDENTS_DB_PATHto all incident/bundle endpointsdiagnose/__init__.py+diagnose/pipeline.py+diagnose/suppressor.py— threadincidents_db_paththrough the suppressor call chaintests/test_blocklist_endpoints.py— patchCONTEXT_DB_PATHandINCIDENTS_DB_PATHin fixtures (worktree has nodata/dir)Test plan
data/turnstone-incidents.dbcreated on first startPull request closed