: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(ci): route schema-only PRs through schema-impact narrowing (#85139)
Thomas Obermüllerd5e1a54d7e1f
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.ymlindex 756b0a2132b6..4dee84300abf 100644--- a/.depot/workflows/ci-backend.yml+++ b/.depot/workflows/ci-backend.yml@@ -383,11 +383,27 @@ jobs:# so they shouldn't trigger the Django/turbo-discover path either.- '!**/*.md'- '!**/*.mdx'+ # Generated from frontend/src/queries/schema.json (see the `schema`+ # filter below). Excluding them here routes schema-only PRs into+ # turbo-discover's schema-impact narrowing instead of the+ # all-products legacy path. This cannot skip Django: the+ # schemaChanged branch hard-sets run_legacy=true. It also cannot+ # hide a hand-edit to the generated files — ci-python.yml+ # regenerates schema.py and fails on any diff, and both files stay+ # in the `schema` (and `backend`) filters so turbo-discover still+ # takes the schema path for them.+ - '!posthog/schema.py'+ - '!posthog/schema_enums.py'schema:# Tracked separately from `legacy` so turbo-discover can# diff schema.json and narrow the product matrix to# products that import the changed types.- frontend/src/queries/schema.json+ # The generated outputs are excluded from `legacy` above; listing+ # them here keeps run_legacy=true (full Django) for any schema+ # change, including a stray hand-edit to a generated file.+ - posthog/schema.py+ - posthog/schema_enums.pymigrations:- 'docker/clickhouse/**'- 'posthog/migrations/*.py'diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.ymlindex 330059f4c0bd..8c22979c1761 100644--- a/.github/workflows/ci-backend.yml+++ b/.github/workflows/ci-backend.yml@@ -267,11 +267,27 @@ jobs:# so they shouldn't trigger the Django/turbo-discover path either.- '!**/*.md'- '!**/*.mdx'+ # Generated from frontend/src/queries/schema.json (see the `schema`+ # filter below). Excluding them here routes schema-only PRs into+ # turbo-discover's schema-impact narrowing instead of the+ # all-products legacy path. This cannot skip Django: the+ # schemaChanged branch hard-sets run_legacy=true. It also cannot+ # hide a hand-edit to the generated files — ci-python.yml+ # regenerates schema.py and fails on any diff, and both files stay+ # in the `schema` (and `backend`) filters so turbo-discover still+ # takes the schema path for them.+ - '!posthog/schema.py'+ - '!posthog/schema_enums.py'schema:# Tracked separately from `legacy` so turbo-discover can# diff schema.json and narrow the product matrix to# products that import the changed types.- frontend/src/queries/schema.json+ # The generated outputs are excluded from `legacy` above; listing+ # them here keeps run_legacy=true (full Django) for any schema+ # change, including a stray hand-edit to a generated file.+ - posthog/schema.py+ - posthog/schema_enums.pymigrations:- 'docker/clickhouse/**'- 'posthog/migrations/*.py'