: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(stamphog): drop broad backfill/migrate deny patterns (#58041)
Raúl Negrón-Oteroc456bb59b672
diff --git a/tools/pr-approval-agent/gates.py b/tools/pr-approval-agent/gates.pyindex efed3dd39848..ee4be575ebd7 100644--- a/tools/pr-approval-agent/gates.py+++ b/tools/pr-approval-agent/gates.py@@ -69,10 +69,10 @@ _DENY_PATTERN_DEFS: dict[str, dict[str, list[str]]] = {],},"migrations": {+ # `migrations/` substring is load-bearing — also catches rust+ # *_migrations/ dirs applied by sqlx at deploy."paths": ["migrations/",- "migrate",- "backfill","schema_change",],},diff --git a/tools/pr-approval-agent/test_gates.py b/tools/pr-approval-agent/test_gates.pyindex e8cf794cb277..eace17803d5b 100644--- a/tools/pr-approval-agent/test_gates.py+++ b/tools/pr-approval-agent/test_gates.py@@ -44,6 +44,26 @@ from gates import detect_deny_categories"fix: routing logic for dashboard",id="routing-logic-not-infra",),+ pytest.param(+ ["products/signals/backend/temporal/backfill_error_tracking.py"],+ "chore(sig): scopes and tags for exception capture",+ id="temporal-backfill-workflow-not-migration",+ ),+ pytest.param(+ ["posthog/management/commands/backfill_distinct_id_overrides.py"],+ "feat: backfill distinct id overrides",+ id="backfill-management-command-not-migration",+ ),+ pytest.param(+ ["posthog/dags/backfill_materialized_column.py"],+ "fix: dagster backfill dag",+ id="dagster-backfill-dag-not-migration",+ ),+ pytest.param(+ ["posthog/management/commands/migrate_team.py"],+ "fix: team migration command",+ id="migrate-operator-command-not-migration",+ ),],)def test_no_false_positive(files: list[str], subject: str) -> None:@@ -110,6 +130,12 @@ def test_no_false_positive(files: list[str], subject: str) -> None:"migrations",id="migration-file",),+ pytest.param(+ ["rust/persons_migrations/20260206000001_add_last_seen_at.sql"],+ "feat: add last_seen_at to persons",+ "migrations",+ id="rust-sqlx-migration",+ ),pytest.param([".github/workflows/ci.yml"],"chore(ci): update workflow",