: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(warehouse-sources): reduce mysql e2e runtime (#87056)
Paul D'Ambraf7f1b3ee442f
diff --git a/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/conftest.py b/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/conftest.pyindex 0858511e563b..4fb2b581edc5 100644--- a/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/conftest.py+++ b/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/conftest.py@@ -94,7 +94,7 @@ def mysql_container():local flox envs have Docker too. If Docker is unreachable thefixture errors loudly so the breakage isn't silently hidden."""- container = MySqlContainer("mysql:9.2")+ container = MySqlContainer("mysql:9.2").with_env("MYSQL_INITDB_SKIP_TZINFO", "1")container.start()try:yield containerdiff --git a/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/test_end_to_end.py b/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/test_end_to_end.pyindex 8f20d453d45f..7d182c920a7b 100644--- a/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/test_end_to_end.py+++ b/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/test_end_to_end.py@@ -4554,9 +4554,11 @@ async def _mysql_setup(mysql_connection, statements: list[tuple[str, tuple | Nonawait sync_to_async(_run)()+# test_mysql_source_full_refresh covers the non-DLT path against real MySQL.@pytest.mark.django_db(transaction=True)@pytest.mark.asyncio-async def test_mysql_full_refresh(team, mysql_config, mysql_connection):[email protected]("pipeline_mode", ["v3"], indirect=True)+async def test_mysql_full_refresh(team, mysql_config, mysql_connection, pipeline_mode):"""Full-refresh sync of a simple table with a mix of common MySQL types."""await _mysql_setup(mysql_connection,@@ -4597,9 +4599,11 @@ async def test_mysql_full_refresh(team, mysql_config, mysql_connection):assert row[2] == 30+# test_mysql_source_incremental covers the non-DLT path against real MySQL.@pytest.mark.django_db(transaction=True)@pytest.mark.asyncio-async def test_mysql_incremental_integer_cursor(team, mysql_config, mysql_connection):[email protected]("pipeline_mode", ["v3"], indirect=True)+async def test_mysql_incremental_integer_cursor(team, mysql_config, mysql_connection, pipeline_mode):"""Incremental sync with an INT cursor field — second run should pick up only new rows."""await _mysql_setup(mysql_connection,