: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(ci): pass --durations-path to product tests on PR runs for balanced sharding (#65877)
mendral-app[bot]313413179fa6
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.ymlindex c67dbfaa31d1..2798f340d36e 100644--- a/.github/workflows/ci-backend.yml+++ b/.github/workflows/ci-backend.yml@@ -769,11 +769,14 @@ jobs:env:# --reuse-db: keep the test database between sequential product runs to avoid# ClickHouse drop/create race conditions with ReplicatedMergeTree ZK metadata.+ # --durations-path: turbo runs products from products/<name>/, so pytest-split+ # needs an explicit path back to the repo-root durations file for balanced sharding.# On master, also collect timing data for pytest-split sharding.PYTEST_ADDOPTS: >---reuse-db+ --durations-path ../../.test_durations${{ needs.detect-snapshot-mode.outputs.mode == 'update' && '--snapshot-update --snapshot-warn-unused' || '' }}- ${{ github.ref == 'refs/heads/master' && '--store-durations --durations-path ../../.test_durations' || '' }}+ ${{ github.ref == 'refs/heads/master' && '--store-durations' || '' }}run: pnpm turbo run backend:test ${{ matrix.filters }} --concurrency=1 --output-logs=full --force --log-order=stream ${{ matrix.pytest_args }}- name: Upload timing data