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.

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.py
index 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 the
fixture 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 container
diff --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.py
index 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 | Non
await 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,