: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): end stalled uv sync before depot retry (#124082)
Raúl Negrón-Otero1f67bfcabb64
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.ymlindex 748d1ec8b3b8..0cfe6ef8741b 100644--- a/.depot/workflows/ci-backend.yml+++ b/.depot/workflows/ci-backend.yml@@ -123,6 +123,10 @@ env:# (key is posthog-hypothesis-constants-<version>-<epoch>-<isoyear>-<isoweek>); used by# the Django test shards below.HYPOTHESIS_CONSTANTS_EPOCH: v1+ # A Depot step timeout leaves the step's processes running. A stalled uv sync then+ # keeps the env lock, and the step's retry blocks on it. Ending uv before the step+ # timeout frees the lock. Keep this under the 5-minute timeout-minutes of every step that uses it.+ PY_DEPS_SYNC_TIMEOUT: 270sSECRET_KEY: '6b01eee4f945ca25045b5aab440b953461faf08693a9abbf1166dc7c6b9772da' # unsafe - for testing onlyCOMPOSE_PROJECT_NAME: posthogWAIT_FOR_DOCKER_REGISTRY_MIRROR: ${{ vars.DEPOT_PULL_THROUGH_REGISTRY }} mirror.gcr.io@@ -991,7 +995,7 @@ jobs:if: steps.schema-cache.outputs.cache-matched-key == ''timeout-minutes: 5retry: 1- run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev+ run: UV_PROJECT_ENVIRONMENT=$pythonLocation timeout --kill-after=10s "$PY_DEPS_SYNC_TIMEOUT" uv sync --frozen --dev- name: Wait for database servicesif: steps.schema-cache.outputs.cache-matched-key == ''env:@@ -1138,7 +1142,7 @@ jobs:- name: Install Python dependenciestimeout-minutes: 5retry: 1- run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev+ run: UV_PROJECT_ENVIRONMENT=$pythonLocation timeout --kill-after=10s "$PY_DEPS_SYNC_TIMEOUT" uv sync --frozen --dev- name: Add service hostnames to /etc/hostsrun: echo "127.0.0.1 db redis7 kafka clickhouse clickhouse-coordinator objectstorage temporal" | sudo tee -a /etc/hosts- name: Set up needed files@@ -1534,7 +1538,7 @@ jobs:- name: Install Python dependenciestimeout-minutes: 5retry: 1- run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev+ run: UV_PROJECT_ENVIRONMENT=$pythonLocation timeout --kill-after=10s "$PY_DEPS_SYNC_TIMEOUT" uv sync --frozen --dev# Block deleting historical migration files (see safe-django-migrations.md).# Two steps, so a failed PR-files read fails the job instead of handing the# check an empty list. The read uses the ambient token, which only reads here.@@ -1784,7 +1788,7 @@ jobs:timeout-minutes: 5retry: 1run: |- UV_PROJECT_ENVIRONMENT=.venv-master uv sync --frozen --dev --no-install-package pytest-split+ UV_PROJECT_ENVIRONMENT=.venv-master timeout --kill-after=10s "$PY_DEPS_SYNC_TIMEOUT" uv sync --frozen --dev --no-install-package pytest-split- name: Compute master schema cache key# Must match the migration-set computation in turbo-discover and the# push-side save below (inputs, hash, and key prefix). Keyed off the@@ -1876,7 +1880,7 @@ jobs:timeout-minutes: 5retry: 1run: |- UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev+ UV_PROJECT_ENVIRONMENT=$pythonLocation timeout --kill-after=10s "$PY_DEPS_SYNC_TIMEOUT" uv sync --frozen --dev- name: Get app token for CI report# Depot's ambient token must not write, so the CI report sections post with a# posthog-tests token that can write pull requests and nothing else. When the@@ -2490,7 +2494,7 @@ jobs:- name: Install python dependenciestimeout-minutes: 5retry: 1- run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev+ run: UV_PROJECT_ENVIRONMENT=$pythonLocation timeout --kill-after=10s "$PY_DEPS_SYNC_TIMEOUT" uv sync --frozen --dev- name: Install pnpm dependenciesuses: ./.depot/actions/pnpm-installwith:@@ -3209,7 +3213,7 @@ jobs:timeout-minutes: 5retry: 1run: |- UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev+ UV_PROJECT_ENVIRONMENT=$pythonLocation timeout --kill-after=10s "$PY_DEPS_SYNC_TIMEOUT" uv sync --frozen --dev- name: Set up Node.js for canvas builderif: ${{ needs.changes.outputs.backend == 'true' && matrix.segment == 'Core' && hashFiles('products/canvas/packages/canvas_builder/package.json') != '' }}uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0