: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(batch-exports): cap staging partition fan-out in temporal tests (#72894)
Raúl Negrón-Otero44a7f1022747
diff --git a/products/batch_exports/backend/tests/temporal/conftest.py b/products/batch_exports/backend/tests/temporal/conftest.pyindex c43f84fbd176..73c4bba19def 100644--- a/products/batch_exports/backend/tests/temporal/conftest.py+++ b/products/batch_exports/backend/tests/temporal/conftest.py@@ -6,6 +6,7 @@ import datetime as dtimport pytestfrom django.conf import settings+from django.test import override_settingsimport psycopgimport pytest_asyncio@@ -55,6 +56,19 @@ def clickhouse_create_db_and_tables():yield[email protected](autouse=True)+def reduced_staging_partitions():+ """Cap CH→S3 staging fan-out at 2 partition files instead of the production default of 10.++ Ten concurrent S3 writers per tiny staging insert, multiplied across xdist workers, contends on+ the shared CI objectstorage and produces 20s+ staging stalls that trip workflow execution+ timeouts. Two partitions keep the multi-file read path exercised; tests that assert partition+ behavior set their own override.+ """+ with override_settings(BATCH_EXPORT_CLICKHOUSE_S3_PARTITIONS=2):+ yield++@pytest.fixturedef organization():"""A test organization."""