Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-warehouse): pin mark_primed streak-reset test to its run generation (#69839)

Eric Duong3083698285cb
diff --git a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/test_backfill.py b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/test_backfill.py
index d75068a8ccdf..4f4c58692634 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/test_backfill.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/test_backfill.py
@@ -333,10 +333,10 @@ class TestFailureStreak:
def test_mark_primed_resets_streak(self):
candidate = _sink_state(self._team(), _State.BACKFILLING)
DuckgresSinkSchemaState.objects.filter(id=candidate.id).update(
- consecutive_failures=5, first_failed_at=timezone.now(), last_error="boom"
+ consecutive_failures=5, first_failed_at=timezone.now(), last_error="boom", backfill_run_uuid="run-1"
)
- backfill_module.mark_primed(str(candidate.schema_id))
+ backfill_module.mark_primed(str(candidate.schema_id), run_uuid="run-1")
candidate.refresh_from_db()
assert candidate.state == _State.PRIMED