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(ci): Add per-test timeout to prevent 30-min hangs (#65233)

mendral-app[bot]42a2a7f152f4
diff --git a/products/product_analytics/backend/hogql_queries/paths/test/test_paths_query_runner_ee.py b/products/product_analytics/backend/hogql_queries/paths/test/test_paths_query_runner_ee.py
index b1791bff292a..a500c7ec5f3b 100644
--- a/products/product_analytics/backend/hogql_queries/paths/test/test_paths_query_runner_ee.py
+++ b/products/product_analytics/backend/hogql_queries/paths/test/test_paths_query_runner_ee.py
@@ -3,6 +3,7 @@ from datetime import timedelta
from typing import Any
from uuid import UUID
+import pytest
from freezegun import freeze_time
from posthog.test.base import (
APIBaseTest,
@@ -3259,6 +3260,7 @@ class TestClickhousePaths(ClickhouseTestMixin, APIBaseTest):
self.assertEqual([p1.uuid], [row[0]["id"] for row in results])
self.assertEqual([[]], [list(row[3]) for row in results])
+ @pytest.mark.timeout(60)
@snapshot_clickhouse_queries
@freeze_time("2012-01-01T03:21:34.000Z")
def test_recording_with_start_and_end(self):
@@ -3363,6 +3365,7 @@ class TestClickhousePaths(ClickhouseTestMixin, APIBaseTest):
[list(row[3]) for row in results],
)
+ @pytest.mark.timeout(60)
@snapshot_clickhouse_queries
@freeze_time("2012-01-01T03:21:34.000Z")
def test_recording_for_dropoff(self):