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): give each core test mode its own trunk variant (#108471)

Raúl Negrón-Oteroc2aedbd3145e
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.yml
index 9ce80c0ef8c1..3097cea1e0af 100644
--- a/.depot/workflows/ci-backend.yml
+++ b/.depot/workflows/ci-backend.yml
@@ -3912,9 +3912,9 @@ jobs:
with:
junit-paths: junit-core.xml,junit-core-retry-failures.xml
org-slug: posthog-inc
- # A native-JSON row uploads under its own variant, so a failure in that mode
- # does not read as a flake of the legacy test with the same id.
- variant: ${{ matrix.new-events-schema && 'events-json' || '' }}
+ # Non-default rows upload under their own variant, so a failure only that mode
+ # hits does not quarantine the default test with the same id.
+ variant: ${{ matrix.compat && format('compat-{0}', matrix.clickhouse-server-image) || matrix.person-on-events && (matrix.new-events-schema && 'poe-off-events-json' || 'poe-off') || matrix.new-events-schema && 'events-json' || '' }}
cli-version: '0.15.4'
quarantine: true
previous-step-outcome: ${{ steps.run-core-tests.outcome }}
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index 5d627e22cb69..c3c210d76149 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -3995,9 +3995,9 @@ jobs:
with:
junit-paths: junit-core.xml,junit-core-retry-failures.xml
org-slug: posthog-inc
- # A native-JSON row uploads under its own variant, so a failure in that mode
- # does not read as a flake of the legacy test with the same id.
- variant: ${{ matrix.new-events-schema && 'events-json' || '' }}
+ # Non-default rows upload under their own variant, so a failure only that mode
+ # hits does not quarantine the default test with the same id.
+ variant: ${{ matrix.compat && format('compat-{0}', matrix.clickhouse-server-image) || matrix.person-on-events && (matrix.new-events-schema && 'poe-off-events-json' || 'poe-off') || matrix.new-events-schema && 'events-json' || '' }}
cli-version: '0.15.4'
quarantine: true
previous-step-outcome: ${{ steps.run-core-tests.outcome }}