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(exports): pass relevant_events in the plan-freeze test (#71971)

Julian Bez863680811dd0
diff --git a/products/exports/backend/temporal/subscriptions/ai_subscription/test/test_report_pipeline.py b/products/exports/backend/temporal/subscriptions/ai_subscription/test/test_report_pipeline.py
index b20aca182a7a..09215a02bde7 100644
--- a/products/exports/backend/temporal/subscriptions/ai_subscription/test/test_report_pipeline.py
+++ b/products/exports/backend/temporal/subscriptions/ai_subscription/test/test_report_pipeline.py
@@ -489,10 +489,15 @@ def test_plan_to_freeze_requires_no_failures(total_steps: int, failed_count: int
freshly_planned=True,
failed_count=failed_count,
total_steps=total_steps,
+ relevant_events=["export created"],
trace_correlation_id=None,
)
if should_freeze:
- assert result == {"version": AI_QUERY_PLAN_VERSION, "plan": plan.model_dump()}
+ assert result == {
+ "version": AI_QUERY_PLAN_VERSION,
+ "plan": plan.model_dump(),
+ "relevant_events": ["export created"],
+ }
else:
assert result is None