Add integration test for get_duration_drift() window query against real TimescaleDB #70
Labels
No labels
bug
documentation
duplicate
enhancement
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gertjan/bodega#70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Follow-up to #68 (duration-drift detection).
TaskRunRepository.get_duration_drift()is only covered by unit tests that mockfetchrow— the actual SQL (percentile_contmedian,stddev_pop, theFILTER (WHERE rn > 1)baseline-excludes-latest logic, and theROW_NUMBER() ... LIMIT N+1window) is never executed against a real database.Action: add an integration test (
tests/integration/) that:task_runswith a known sequence ofsuccessruns + durations,latest,baseline_median,baseline_std,baseline_countcome back correct,None(too-little-history) gate at the SQL boundary.Reference:
src/database/repositories/task_runs.pyget_duration_drift().