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.

fix(ci): restore Temporal search attribute registration for product tests (#65272)

mendral-app[bot]46ed99e5fa39
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index 33a20d901b18..c8a41733cb53 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -746,13 +746,16 @@ jobs:
mv schema.sql.gz .postgres-backups/schema-latest.sql.gz
./bin/hogli db:restore-test-db
- - name: Wait for Temporal
+ - name: Register Temporal search attributes
# Some product groups (data_warehouse, batch_exports) connect to a live Temporal
# via sync_connect() in their tests, so keep a readiness gate before tests run.
# By this point Temporal has warmed up in the background, so the wait is ~1-2s.
- # The expensive registration command this replaces is gone — no product test
- # needs the custom search attributes against the container.
- run: bin/wait-for-docker temporal
+ # data_warehouse tests use custom search attributes (PostHogTeamId, PostHogOrgId,
+ # PostHogDagId) when calling schedule_materialization() → sync_saved_query_workflow(),
+ # so they must be registered before tests run.
+ run: |
+ bin/wait-for-docker temporal
+ python manage.py register_temporal_search_attributes
- name: Restore test durations from cache
# pytest-split distributes this product's tests across shards using