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): bound and retry uv sync on depot (#121192)

Raúl Negrón-Otero242c3af20e7a
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.yml
index bef755fd5021..8b035741fdda 100644
--- a/.depot/workflows/ci-backend.yml
+++ b/.depot/workflows/ci-backend.yml
@@ -1040,6 +1040,8 @@ jobs:
retry: 2
- name: Install Python dependencies
if: steps.schema-cache.outputs.cache-matched-key == ''
+ timeout-minutes: 5
+ retry: 1
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
- name: Wait for database services
if: steps.schema-cache.outputs.cache-matched-key == ''
@@ -1189,6 +1191,8 @@ jobs:
- name: Install sqlx-cli
uses: ./.depot/actions/setup-sqlx-cli
- name: Install Python dependencies
+ timeout-minutes: 5
+ retry: 1
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
- name: Add service hostnames to /etc/hosts
run: echo "127.0.0.1 db redis7 kafka clickhouse clickhouse-coordinator objectstorage temporal" | sudo tee -a /etc/hosts
@@ -1583,6 +1587,8 @@ jobs:
with:
enable-cache: false
- name: Install Python dependencies
+ timeout-minutes: 5
+ retry: 1
run: UV_PROJECT_ENVIRONMENT=$pythonLocation 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
@@ -1830,6 +1836,8 @@ jobs:
path: upstream-master
- name: Install python dependencies for master
working-directory: upstream-master
+ timeout-minutes: 5
+ retry: 1
run: |
UV_PROJECT_ENVIRONMENT=.venv-master uv sync --frozen --dev --no-install-package pytest-split
- name: Compute master schema cache key
@@ -1920,6 +1928,8 @@ jobs:
ref: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'PostHog/posthog') && github.event.pull_request.head.sha || github.event_name == 'push' && github.sha || github.ref }}
clean: false
- name: Install python dependencies for this PR
+ timeout-minutes: 5
+ retry: 1
run: |
UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
- name: Get app token for CI report
@@ -2533,6 +2543,8 @@ jobs:
sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl
retry: 2
- name: Install python dependencies
+ timeout-minutes: 5
+ retry: 1
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
- name: Install pnpm dependencies
uses: ./.depot/actions/pnpm-install
@@ -3255,6 +3267,8 @@ jobs:
version: 1.0
- name: Install Python dependencies
shell: bash
+ timeout-minutes: 5
+ retry: 1
run: |
UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
- name: Set up Node.js for canvas builder