: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
fix(featurebase): stop reporting exhausted transient retries as errors (#87523)
Tom Owersa12af768d1b3
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/source.pyindex 48ca54c3980d..525f08d7758b 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/source.py@@ -150,6 +150,16 @@ class FeaturebaseSource(),}+ def get_retryable_errors(self) -> set[str]:+ # `_fetch_page` (featurebase.py) already retries `FeaturebaseRetryableError` (429/5xx),+ # read timeouts, connection errors, and chunked-encoding errors with backoff; if that+ # budget still exhausts, Temporal retries the whole activity, so the failure is transient+ # and self-recovering rather than a bug to page on.+ return {+ "Featurebase API error (retryable)",+ "HTTPSConnectionPool(host='do.featurebase.app', port=443)",+ }+def get_schemas(self,config: FeaturebaseSourceConfig,diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/tests/test_featurebase_source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/tests/test_featurebase_source.pyindex 96015703e351..bbdb45dcdf64 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/tests/test_featurebase_source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/tests/test_featurebase_source.py@@ -124,6 +124,14 @@ class TestFeaturebaseSource:assert any(key.startswith("403 Client Error") for key in errors)assert any(key.startswith("401 Client Error") for key in errors)+ def test_retryable_errors_cover_exhausted_transient_failures(self) -> None:+ errors = self.source.get_retryable_errors()+ # The sentinel `_fetch_page` raises after exhausting its own 429/5xx retries.+ assert any("Featurebase API error (retryable)" in error for error in errors)+ # A read timeout or dropped connection surfaces as a raw requests exception whose+ # message includes the connection pool host, not the sentinel above.+ assert any("do.featurebase.app" in error for error in errors)+def test_resumable_source_manager_bound_to_resume_config(self) -> None:with patch.object(ResumableSourceManager, "__init__", return_value=None) as init:self.source.get_resumable_source_manager(_make_inputs())