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.

chore: upgrade uv to 0.11.14 (#58976)

Julian Bez077cdd880d0a
diff --git a/.claude/hooks/install-tool-versions.sh b/.claude/hooks/install-tool-versions.sh
index b7590a5e3020..e9f8381bcc2c 100755
--- a/.claude/hooks/install-tool-versions.sh
+++ b/.claude/hooks/install-tool-versions.sh
@@ -55,7 +55,7 @@ print(uv_ver, python_ver, pnpm_ver)
CURRENT_UV=$(uv --version 2>/dev/null | grep -oP '[0-9]+\.[0-9]+\.[0-9]+' || echo "0.0.0")
if [ -n "$REQUIRED_UV" ]; then
- # ~= means compatible release: ~=0.10.2 allows >=0.10.2, <0.11.0
+ # ~= means compatible release: ~=0.11.11 allows >=0.11.11, <0.12.0
REQ_MAJOR_MINOR=$(echo "$REQUIRED_UV" | cut -d. -f1,2)
CUR_MAJOR_MINOR=$(echo "$CURRENT_UV" | cut -d. -f1,2)
if [ "$CUR_MAJOR_MINOR" != "$REQ_MAJOR_MINOR" ] || [ "$(printf '%s\n' "$REQUIRED_UV" "$CURRENT_UV" | sort -V | head -1)" != "$REQUIRED_UV" ]; then
diff --git a/.flox/env/manifest.toml b/.flox/env/manifest.toml
index b4f3a6779c11..eb923ab8b7d6 100644
--- a/.flox/env/manifest.toml
+++ b/.flox/env/manifest.toml
@@ -10,7 +10,7 @@ schema-version = "1.10.0"
# the `[install]` section.
[install]
# Python - Python itself is installed on activation via `uv sync`
-uv = { pkg-path = "uv", pkg-group = "uv", version = "^0.10.2" }
+uv = { pkg-path = "uv", pkg-group = "uv", version = "^0.11.14" }
xmlsec = { pkg-path = "xmlsec", version = "1.3.7" }
freetds = { pkg-path = "freetds" } # For pymssql
# Node
diff --git a/.github/workflows/build-hogql-parser-npm.yml b/.github/workflows/build-hogql-parser-npm.yml
index 8feb2e271a53..c2a0348e2d4a 100644
--- a/.github/workflows/build-hogql-parser-npm.yml
+++ b/.github/workflows/build-hogql-parser-npm.yml
@@ -143,9 +143,9 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- name: Update @posthog/hogql-parser in frontend
shell: bash
diff --git a/.github/workflows/build-hogql-parser-rs.yml b/.github/workflows/build-hogql-parser-rs.yml
index 1bcfb02e50f3..272d16e65472 100644
--- a/.github/workflows/build-hogql-parser-rs.yml
+++ b/.github/workflows/build-hogql-parser-rs.yml
@@ -198,7 +198,7 @@ jobs:
id: setup-uv
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
with:
- version: '0.10.2'
+ version: '0.11.14'
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/build-hogql-parser.yml b/.github/workflows/build-hogql-parser.yml
index bd93c29a2ca4..a410f2588f01 100644
--- a/.github/workflows/build-hogql-parser.yml
+++ b/.github/workflows/build-hogql-parser.yml
@@ -180,9 +180,9 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/cd-sandbox-base-image.yml b/.github/workflows/cd-sandbox-base-image.yml
index fde20b46a214..6093781002ff 100644
--- a/.github/workflows/cd-sandbox-base-image.yml
+++ b/.github/workflows/cd-sandbox-base-image.yml
@@ -66,9 +66,9 @@ jobs:
python-version-file: 'pyproject.toml'
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2'
+ version: '0.11.14'
enable-cache: true
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-agent-skills.yml b/.github/workflows/ci-agent-skills.yml
index 4cf0bddd2400..60178f777f48 100644
--- a/.github/workflows/ci-agent-skills.yml
+++ b/.github/workflows/ci-agent-skills.yml
@@ -69,9 +69,9 @@ jobs:
python-version-file: 'pyproject.toml'
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
@@ -155,9 +155,9 @@ jobs:
python-version-file: 'pyproject.toml'
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: false
diff --git a/.github/workflows/ci-ai.yml b/.github/workflows/ci-ai.yml
index 1b0e424c894f..9cbd57928f5b 100644
--- a/.github/workflows/ci-ai.yml
+++ b/.github/workflows/ci-ai.yml
@@ -87,9 +87,9 @@ jobs:
python-version-file: 'pyproject.toml'
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-backend-update-test-timing.yml b/.github/workflows/ci-backend-update-test-timing.yml
index 2da2ce124d95..3bfe98e7d09a 100644
--- a/.github/workflows/ci-backend-update-test-timing.yml
+++ b/.github/workflows/ci-backend-update-test-timing.yml
@@ -44,9 +44,9 @@ jobs:
token: ${{ steps.app-token.outputs.token }}
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- name: Find Backend CI run to use
id: find-backend-run
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index e7ecc5ca6c22..a0960e8745fd 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -402,9 +402,9 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
@@ -540,9 +540,9 @@ jobs:
python-version: 3.12.12
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- name: Install Python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
@@ -609,7 +609,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
with:
- version: '0.10.2'
+ version: '0.11.14'
- name: Install Python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
@@ -670,9 +670,9 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
@@ -1226,7 +1226,7 @@ jobs:
id: setup-uv
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
@@ -1529,9 +1529,9 @@ jobs:
- name: Install uv
id: setup-uv-tests
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
@@ -2083,9 +2083,9 @@ jobs:
filter: blob:none
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2'
+ version: '0.11.14'
- name: Download JUnit artifacts
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
@@ -2173,9 +2173,9 @@ jobs:
- name: Install uv
id: setup-uv-async
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
@@ -2311,10 +2311,10 @@ jobs:
echo "available=false" >> "$GITHUB_OUTPUT"
echo "Trusted timing reporter is not available on the checked-out ref; skipping emit."
fi
- - uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
if: github.run_attempt == '1' && steps.timing-reporter.outputs.available == 'true'
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- name: Download junit artifacts
if: github.run_attempt == '1' && steps.timing-reporter.outputs.available == 'true'
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v6.0.0
diff --git a/.github/workflows/ci-clickhouse-multinode-migrations.yml b/.github/workflows/ci-clickhouse-multinode-migrations.yml
index 6aa847803023..715f452a8e0d 100644
--- a/.github/workflows/ci-clickhouse-multinode-migrations.yml
+++ b/.github/workflows/ci-clickhouse-multinode-migrations.yml
@@ -80,9 +80,9 @@ jobs:
python-version: 3.12.12
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2'
+ version: '0.11.14'
enable-cache: true
cache-dependency-glob: uv.lock
diff --git a/.github/workflows/ci-dagster.yml b/.github/workflows/ci-dagster.yml
index aa0488f2e4c6..5bb5b88c1ce7 100644
--- a/.github/workflows/ci-dagster.yml
+++ b/.github/workflows/ci-dagster.yml
@@ -47,9 +47,9 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
clean: false
- - uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2'
+ version: '0.11.14'
- run: uv run .github/scripts/check-dagster-paths.py
# Job to decide if we should run dagster ci
@@ -258,9 +258,9 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-e2e-playwright.yml b/.github/workflows/ci-e2e-playwright.yml
index 4e53f4326998..d953fa03ba66 100644
--- a/.github/workflows/ci-e2e-playwright.yml
+++ b/.github/workflows/ci-e2e-playwright.yml
@@ -318,9 +318,9 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-hobby.yml b/.github/workflows/ci-hobby.yml
index b23a49b27a51..df043f4013f1 100644
--- a/.github/workflows/ci-hobby.yml
+++ b/.github/workflows/ci-hobby.yml
@@ -341,9 +341,9 @@ jobs:
[ -d "data" ] && docker run --rm -v "$(pwd)/data:/data" alpine sh -c "rm -rf /data/seaweedfs /data/minio" || true
continue-on-error: true
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- name: Set environment variables from previous job
run: |
echo "PREVIEW_MODE=${{ github.event_name == 'pull_request' && needs.wait-for-docker-image.outputs.preview-mode || 'false' }}" >> $GITHUB_ENV
diff --git a/.github/workflows/ci-hog.yml b/.github/workflows/ci-hog.yml
index fb4d0383fd19..d70f8a36a234 100644
--- a/.github/workflows/ci-hog.yml
+++ b/.github/workflows/ci-hog.yml
@@ -80,9 +80,9 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
@@ -186,9 +186,9 @@ jobs:
python-version-file: 'pyproject.toml'
- name: Install uv
id: setup-uv-hogql-python
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-lint-workflows.yml b/.github/workflows/ci-lint-workflows.yml
index 9ba2291590aa..77348ae823b4 100644
--- a/.github/workflows/ci-lint-workflows.yml
+++ b/.github/workflows/ci-lint-workflows.yml
@@ -28,9 +28,9 @@ jobs:
python-version-file: 'pyproject.toml'
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-llm-gateway.yml b/.github/workflows/ci-llm-gateway.yml
index b6640d34107d..8a8d8e0e6cf0 100644
--- a/.github/workflows/ci-llm-gateway.yml
+++ b/.github/workflows/ci-llm-gateway.yml
@@ -68,9 +68,9 @@ jobs:
python-version: '3.12'
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- name: Install dependencies
run: uv sync --frozen --dev
diff --git a/.github/workflows/ci-mcp-ui-apps.yml b/.github/workflows/ci-mcp-ui-apps.yml
index 6ca2e506d4d3..1b189feff605 100644
--- a/.github/workflows/ci-mcp-ui-apps.yml
+++ b/.github/workflows/ci-mcp-ui-apps.yml
@@ -58,9 +58,9 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install uv # Needed for formatting generated code and running scripts
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.yml
index 95e6253bff5f..5d479da64cca 100644
--- a/.github/workflows/ci-mcp.yml
+++ b/.github/workflows/ci-mcp.yml
@@ -96,9 +96,9 @@ jobs:
python-version: 3.12.12
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
@@ -321,9 +321,9 @@ jobs:
python-version: 3.12.12
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-nodejs.yml b/.github/workflows/ci-nodejs.yml
index cad7988d05c6..5ffa362e7294 100644
--- a/.github/workflows/ci-nodejs.yml
+++ b/.github/workflows/ci-nodejs.yml
@@ -204,9 +204,9 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml
index c33838a545d8..bbfa22527280 100644
--- a/.github/workflows/ci-python.yml
+++ b/.github/workflows/ci-python.yml
@@ -90,9 +90,9 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-rust-flags-integration.yml b/.github/workflows/ci-rust-flags-integration.yml
index 12c5303d0e0c..fb731f608dcb 100644
--- a/.github/workflows/ci-rust-flags-integration.yml
+++ b/.github/workflows/ci-rust-flags-integration.yml
@@ -78,9 +78,9 @@ jobs:
python-version: '3.12.12'
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2'
+ version: '0.11.14'
enable-cache: true
- name: Install system dependencies
diff --git a/.github/workflows/ci-rust.yml b/.github/workflows/ci-rust.yml
index 5b4451bdfb21..f390f1c4aae2 100644
--- a/.github/workflows/ci-rust.yml
+++ b/.github/workflows/ci-rust.yml
@@ -264,9 +264,9 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/container-images-cd.yml b/.github/workflows/container-images-cd.yml
index aa3ba364fd66..c52cd038c967 100644
--- a/.github/workflows/container-images-cd.yml
+++ b/.github/workflows/container-images-cd.yml
@@ -337,9 +337,9 @@ jobs:
fi
- name: Install uv for dependency analysis
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- name: Check for Python dependency changes that affect analytics platform temporal worker
id: check_python_changes_analytics_platform_temporal_worker
diff --git a/.github/workflows/pr-approval-agent.yml b/.github/workflows/pr-approval-agent.yml
index 3f0e6590b0ab..4908e0d5d5db 100644
--- a/.github/workflows/pr-approval-agent.yml
+++ b/.github/workflows/pr-approval-agent.yml
@@ -54,9 +54,9 @@ jobs:
run: git fetch --filter=blob:none origin pull/${{ github.event.pull_request.number }}/head
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: false
- name: Run review
@@ -169,9 +169,9 @@ jobs:
run: git fetch --filter=blob:none origin pull/${{ github.event.pull_request.number }}/head
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
enable-cache: false
- name: Decide retain vs dismiss
diff --git a/.github/workflows/pr-cleanup.yml b/.github/workflows/pr-cleanup.yml
index ccb29aa62a83..8fd7019ff54b 100644
--- a/.github/workflows/pr-cleanup.yml
+++ b/.github/workflows/pr-cleanup.yml
@@ -37,9 +37,9 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78
with:
- version: '0.10.2' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.14' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- name: Cleanup specific PR droplet
if: inputs.pr_number != ''
diff --git a/.github/workflows/publish-hogli.yml b/.github/workflows/publish-hogli.yml
index 462428f83391..d53c73e34ae9 100644
--- a/.github/workflows/publish-hogli.yml
+++ b/.github/workflows/publish-hogli.yml
@@ -35,9 +35,9 @@ jobs:
with:
python-version: '3.12'
- - uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.10.2'
+ version: '0.11.14'
- name: Verify tag matches package version
shell: bash
diff --git a/Dockerfile b/Dockerfile
index c521a69dfd44..820169eeb903 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -104,7 +104,7 @@ RUN --mount=type=cache,id=pnpm,target=/tmp/pnpm-store-v24 \
#
# ---------------------------------------------------------
#
-FROM ghcr.io/astral-sh/uv:0.10.2 AS uv
+FROM ghcr.io/astral-sh/uv:0.11.14 AS uv
# Same as pyproject.toml so that uv can pick it up and doesn't need to download a different Python version.
FROM python:3.12.12-slim-bookworm@sha256:78e702aee4d693e769430f0d7b4f4858d8ea3f1118dc3f57fee3f757d0ca64b1 AS posthog-build
diff --git a/Dockerfile.llm-analytics b/Dockerfile.llm-analytics
index 9304a33b38ac..f54b690cce0e 100644
--- a/Dockerfile.llm-analytics
+++ b/Dockerfile.llm-analytics
@@ -8,7 +8,7 @@
#
# Same as pyproject.toml so that uv can pick it up and doesn't need to download a different Python version.
-FROM ghcr.io/astral-sh/uv:0.10.2 AS uv
+FROM ghcr.io/astral-sh/uv:0.11.14 AS uv
FROM python:3.12.12-slim-bookworm@sha256:78e702aee4d693e769430f0d7b4f4858d8ea3f1118dc3f57fee3f757d0ca64b1
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
diff --git a/Dockerfile.sandbox b/Dockerfile.sandbox
index f5ba4d8f91a5..34f78cd3d731 100644
--- a/Dockerfile.sandbox
+++ b/Dockerfile.sandbox
@@ -69,7 +69,7 @@ RUN ARCH=$(dpkg --print-architecture) && \
RUN corepack enable
# --- Rarely changes: prebuilt binaries ---
-COPY --from=ghcr.io/astral-sh/uv:0.10.2 /uv /uvx /usr/local/bin/
+COPY --from=ghcr.io/astral-sh/uv:0.11.14 /uv /uvx /usr/local/bin/
COPY --from=clickhouse/clickhouse-server:26.3.10.60 /usr/bin/clickhouse /usr/local/bin/clickhouse
RUN ln -s clickhouse /usr/local/bin/clickhouse-client
diff --git a/bin/check_uv_python_compatibility.py b/bin/check_uv_python_compatibility.py
index bf674e0d246d..747c6a9f44c2 100755
--- a/bin/check_uv_python_compatibility.py
+++ b/bin/check_uv_python_compatibility.py
@@ -3,20 +3,34 @@
"""
Validate uv configuration for local development and CI.
-Performs three checks:
-1. Verify the uv version from pyproject.toml can download the required Python
- (critical for local development and CI)
-2. Verify all CI workflow version pins match pyproject.toml
- Pins are required: without them, setup-uv queries the GitHub API on every
- job to resolve the required-version range, exhausting the installation
- token rate limit under concurrent load.
-3. Verify flox manifest uv version is compatible with pyproject.toml
+The shape we enforce:
+
+- pyproject.toml [tool.uv].required-version is a FLOOR (e.g. ">=0.10.2"). It is
+ the lowest uv version that can read this repo's config and lockfile. Bumping
+ CI to a newer uv does NOT raise this floor — that keeps stale branches from
+ breaking the moment master ships a new pin. Raise the floor only when the
+ code on master genuinely requires a newer uv feature.
+
+- .github/workflows/*.yml use setup-uv with an explicit exact version literal
+ (e.g. `version: '0.11.14'`). Every workflow pins the SAME exact version so
+ CI is deterministic across jobs. The pin must satisfy the pyproject floor.
+ An exact literal also avoids the historical GH API rate-limit issue caused
+ by range resolution (astral-sh/setup-uv#325).
+
+- .flox/env/manifest.toml mirrors the CI pin for parity between local dev and
+ CI. Comparison is on major.minor to allow patch drift.
+
+Performs four checks:
+1. Workflow pins are present, exact literals, and identical across all files.
+2. Workflow pin satisfies pyproject's required-version floor.
+3. Workflow pin can download the required Python version.
+4. Flox manifest uv version matches the workflow pin on major.minor.
Run in CI via .github/workflows/ci-python.yml to catch issues early.
Exit codes:
0: All checks passed
- 1: uv cannot download required Python, config error, or workflow pins missing/mismatched
+ 1: any check failed
"""
import re
@@ -30,6 +44,17 @@ except ImportError:
import tomli as tomllib # type: ignore
+Version = tuple[int, int, int]
+
+
+def parse_version(s: str) -> Version:
+ """Parse 'X.Y.Z' into a tuple. Extra suffixes are ignored."""
+ match = re.match(r"^(\d+)\.(\d+)\.(\d+)", s)
+ if not match:
+ raise ValueError(f"Cannot parse version: {s}")
+ return (int(match.group(1)), int(match.group(2)), int(match.group(3)))
+
+
def get_python_version_from_pyproject() -> str:
"""Extract the required Python version from pyproject.toml."""
pyproject_path = Path(__file__).parent.parent / "pyproject.toml"
@@ -38,7 +63,6 @@ def get_python_version_from_pyproject() -> str:
data = tomllib.load(f)
requires_python = data.get("project", {}).get("requires-python", "")
- # Extract version from format like "==3.12.11" or ">=3.12.11"
match = re.search(r"(\d+\.\d+\.\d+)", requires_python)
if not match:
raise ValueError(f"Could not parse Python version from: {requires_python}")
@@ -46,10 +70,10 @@ def get_python_version_from_pyproject() -> str:
return match.group(1)
-def get_uv_version_from_pyproject() -> str | None:
- """Extract the base uv version from pyproject.toml required-version.
+def get_uv_floor_from_pyproject() -> str | None:
+ """Extract the uv floor version from pyproject.toml [tool.uv].required-version.
- Strips PEP 440 operators (~=, ==, >=, ^, etc.) to get the base version.
+ Expects a `>=X.Y.Z` form. Returns the X.Y.Z literal, or None if absent.
"""
pyproject_path = Path(__file__).parent.parent / "pyproject.toml"
@@ -65,10 +89,7 @@ def get_uv_version_from_pyproject() -> str | None:
def get_uv_version_from_flox() -> str | None:
- """Extract the base uv version from flox manifest.
-
- Strips semver operators (^, >=, etc.) to get the base version.
- """
+ """Extract the uv version literal from the flox manifest."""
flox_manifest = Path(__file__).parent.parent / ".flox" / "env" / "manifest.toml"
if not flox_manifest.exists():
@@ -89,10 +110,9 @@ def get_uv_versions_from_workflows() -> dict[str, list[str | None]]:
"""Find all setup-uv usages in CI workflows and their version pins.
Returns a dict mapping workflow filename to list of version strings (or None
- if a usage has no pin). Every usage must be pinned to the pyproject.toml
- version — without a pin, setup-uv queries the GitHub API on every job to
- resolve the required-version range, exhausting the installation token rate
- limit under concurrent load.
+ if a usage has no pin). Every usage must be pinned with an exact literal —
+ unpinned setup-uv would resolve via GitHub API on every job and hit rate
+ limits under concurrent load (see astral-sh/setup-uv#325).
"""
workflows_dir = Path(__file__).parent.parent / ".github" / "workflows"
uv_usages: dict[str, list[str | None]] = {}
@@ -103,10 +123,9 @@ def get_uv_versions_from_workflows() -> dict[str, list[str | None]]:
if "setup-uv@" not in line:
continue
version: str | None = None
- # Check the next few lines for a version: key within the same with: block
for lookahead in lines[i + 1 : i + 6]:
if re.match(r"^\s+-\s+name:", lookahead):
- break # next step, stop looking
+ break
m = re.match(r"^\s+version:\s*['\"]?([0-9.]+)['\"]?", lookahead)
if m:
version = m.group(1)
@@ -117,17 +136,8 @@ def get_uv_versions_from_workflows() -> dict[str, list[str | None]]:
def check_uv_python_compatibility(uv_version: str, python_version: str) -> tuple[bool, str]:
- """
- Check if a given uv version can download the specified Python version.
-
- Uses `uvx --from uv@{version} uv python list --only-downloads` to test
- the specific uv version's ability to download the Python version.
-
- Returns:
- tuple: (is_compatible, message)
- """
+ """Check if the given uv version can download the specified Python version."""
try:
- # Use uvx to run the specific uv version
result = subprocess.run(
[
"uvx",
@@ -143,12 +153,9 @@ def check_uv_python_compatibility(uv_version: str, python_version: str) -> tuple
text=True,
timeout=30,
)
-
if result.returncode == 0 and result.stdout.strip():
return True, "verified via uv python list"
- else:
- return False, f"Python {python_version} not available for uv {uv_version}"
-
+ return False, f"Python {python_version} not available for uv {uv_version}"
except subprocess.TimeoutExpired:
return True, "uv command timed out, assuming compatible"
except FileNotFoundError:
@@ -162,7 +169,6 @@ def main() -> int:
print("Validating uv configuration...")
print()
- # Get Python version from pyproject.toml
try:
python_version = get_python_version_from_pyproject()
print(f"Python version required: {python_version}")
@@ -170,123 +176,146 @@ def main() -> int:
print(f"✗ Error reading Python version: {e}")
return 1
- # Get uv version from pyproject.toml (single source of truth)
- uv_version = None
- try:
- uv_version = get_uv_version_from_pyproject()
- if uv_version:
- print(f"uv version (pyproject.toml): {uv_version}")
- except Exception as e:
- print(f"⚠ Warning: Could not read pyproject.toml: {e}")
+ floor = get_uv_floor_from_pyproject()
+ print(f"uv floor (pyproject.toml): >={floor}" if floor else "uv floor: not set")
print()
print("=" * 60)
print()
- # Check 1: Can uv download the required Python version?
- print("Check 1: uv Python compatibility")
- print("-" * 60)
-
- if not uv_version:
- print("⚠ Skipped: No uv version found in pyproject.toml")
- uv_compatible = True
- else:
- compatible, message = check_uv_python_compatibility(uv_version, python_version)
- if compatible:
- print(f"✓ uv {uv_version} can download Python {python_version}")
- print(f" {message}")
- uv_compatible = True
- else:
- print(f"✗ uv {uv_version} cannot download Python {python_version}")
- print(f" {message}")
- print()
- print(" To fix: Update required-version in pyproject.toml [tool.uv]")
- print(" See: https://github.com/astral-sh/uv/releases")
- uv_compatible = False
-
- print()
- print("=" * 60)
- print()
-
- # Check 2: All workflow pins present and match pyproject.toml
- print("Check 2: CI workflow uv version pins")
+ # Check 1: workflow pins present, exact, and identical
+ print("Check 1: CI workflow uv version pins")
print("-" * 60)
workflow_usages = get_uv_versions_from_workflows()
missing_pins: list[str] = []
- wrong_pins: list[str] = []
+ distinct_pins: set[str] = set()
+ pin_locations: dict[str, list[str]] = {}
for workflow_name, versions in sorted(workflow_usages.items()):
for i, version in enumerate(versions):
usage = f"{workflow_name} (usage {i + 1})" if len(versions) > 1 else workflow_name
if version is None:
missing_pins.append(usage)
- elif uv_version and version != uv_version:
- wrong_pins.append(f"{usage}: {version} (expected {uv_version})")
+ else:
+ distinct_pins.add(version)
+ pin_locations.setdefault(version, []).append(usage)
+
+ workflow_pin: str | None = None
+ pins_ok = True
+
+ if missing_pins:
+ print("✗ setup-uv usages missing version pin (add `version: 'x.y.z'`):")
+ for name in missing_pins:
+ print(f" - {name}")
+ print()
+ print(" Without an exact pin, setup-uv may resolve via GitHub API and")
+ print(" hit rate limits under concurrent load (astral-sh/setup-uv#325).")
+ pins_ok = False
+
+ if len(distinct_pins) > 1:
+ print("✗ setup-uv usages pinned to different versions (must all match):")
+ for pin in sorted(distinct_pins):
+ print(f" {pin}:")
+ for loc in pin_locations[pin]:
+ print(f" - {loc}")
+ pins_ok = False
+ elif len(distinct_pins) == 1:
+ workflow_pin = next(iter(distinct_pins))
+ if not missing_pins:
+ print(f"✓ All {sum(len(v) for v in workflow_usages.values())} setup-uv usages pinned to {workflow_pin}")
+ elif not missing_pins:
+ print("⚠ No setup-uv usages found in workflows")
- if not missing_pins and not wrong_pins:
- print(f"✓ All setup-uv usages pinned to {uv_version}")
- pins_ok = True
+ print()
+ print("=" * 60)
+ print()
+
+ # Check 2: workflow pin satisfies pyproject floor
+ print("Check 2: Workflow pin satisfies pyproject floor")
+ print("-" * 60)
+
+ floor_ok = True
+ if floor and workflow_pin:
+ try:
+ if parse_version(workflow_pin) >= parse_version(floor):
+ print(f"✓ Workflow pin {workflow_pin} >= pyproject floor {floor}")
+ else:
+ print(f"✗ Workflow pin {workflow_pin} is below pyproject floor {floor}")
+ print(" Either raise the workflow pin or lower the floor.")
+ floor_ok = False
+ except ValueError as e:
+ print(f"⚠ Skipped: {e}")
else:
- if missing_pins:
- print("✗ setup-uv usages missing version pin (add version: 'x.y.z'):")
- for name in missing_pins:
- print(f" - {name}")
+ print("⚠ Skipped: missing workflow pin or pyproject floor")
+
+ print()
+ print("=" * 60)
+ print()
+
+ # Check 3: workflow pin can download required Python
+ print("Check 3: uv Python compatibility")
+ print("-" * 60)
+
+ python_ok = True
+ if workflow_pin:
+ compatible, message = check_uv_python_compatibility(workflow_pin, python_version)
+ if compatible:
+ print(f"✓ uv {workflow_pin} can download Python {python_version}")
+ print(f" {message}")
+ else:
+ print(f"✗ uv {workflow_pin} cannot download Python {python_version}")
+ print(f" {message}")
print()
- print(" Without a pin, setup-uv queries the GitHub API on every job")
- print(" to resolve the required-version range, which exhausts the")
- print(" installation token rate limit under concurrent load.")
- if wrong_pins:
- print(f"✗ setup-uv usages with wrong version (expected {uv_version}):")
- for name in wrong_pins:
- print(f" - {name}")
- pins_ok = False
+ print(" To fix: pick a uv version whose `uv python list X.Y.Z --only-downloads` succeeds.")
+ print(" See: https://github.com/astral-sh/uv/releases")
+ python_ok = False
+ else:
+ print("⚠ Skipped: no workflow pin to test")
print()
print("=" * 60)
print()
- # Check 3: Flox manifest compatible with pyproject.toml
- print("Check 3: Flox manifest uv version alignment")
+ # Check 4: flox matches workflow pin on major.minor
+ print("Check 4: Flox manifest uv version alignment")
print("-" * 60)
flox_uv = get_uv_version_from_flox()
+ flox_ok = True
if not flox_uv:
print("⚠ Skipped: No flox manifest or uv version found")
- flox_aligned = True
- elif not uv_version:
- print("⚠ Skipped: No pyproject.toml uv version to compare against")
- flox_aligned = True
+ elif not workflow_pin:
+ print("⚠ Skipped: No workflow pin to compare against")
else:
- # Compare major.minor — flox uses a compat range so patch can differ
- pyproject_minor = ".".join(uv_version.split(".")[:2])
- flox_minor = ".".join(flox_uv.split(".")[:2])
- if pyproject_minor == flox_minor:
- print(f"✓ Flox uv {flox_uv} is compatible with pyproject.toml {uv_version}")
- flox_aligned = True
+ flox_mm = ".".join(flox_uv.split(".")[:2])
+ pin_mm = ".".join(workflow_pin.split(".")[:2])
+ if flox_mm == pin_mm:
+ print(f"✓ Flox uv {flox_uv} matches workflow pin {workflow_pin} on major.minor")
else:
- print(f"✗ Flox uv base version {flox_uv} diverges from pyproject.toml {uv_version}")
- print(" Update .flox/env/manifest.toml to match")
- flox_aligned = False
+ print(f"✗ Flox uv {flox_uv} diverges from workflow pin {workflow_pin}")
+ print(" Update .flox/env/manifest.toml to match the workflow pin.")
+ flox_ok = False
print()
print("=" * 60)
print()
- # Summary
- if uv_compatible and pins_ok and flox_aligned:
+ if pins_ok and floor_ok and python_ok and flox_ok:
print("✓ All checks passed")
return 0
- else:
- failures = []
- if not uv_compatible:
- failures.append("uv cannot download required Python version")
- if not pins_ok:
- failures.append("workflow uv version pins missing or mismatched")
- if not flox_aligned:
- failures.append("flox uv version diverges from pyproject.toml")
- print(f"✗ Failed: {'; '.join(failures)}")
- return 1
+
+ failures = []
+ if not pins_ok:
+ failures.append("workflow uv pins missing, mismatched, or not exact")
+ if not floor_ok:
+ failures.append("workflow pin below pyproject floor")
+ if not python_ok:
+ failures.append("workflow uv cannot download required Python")
+ if not flox_ok:
+ failures.append("flox uv diverges from workflow pin")
+ print(f"✗ Failed: {'; '.join(failures)}")
+ return 1
if __name__ == "__main__":
diff --git a/pyproject.toml b/pyproject.toml
index 48db53342aef..06c7f19251db 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -278,7 +278,7 @@ sentiment = [
]
[tool.uv]
-required-version = "~=0.10.2"
+required-version = ">=0.10.2"
add-bounds = "major"
exclude-newer = "7 days"
exclude-newer-package = { hogql-parser = false, hogql-parser-rs = false, posthoganalytics = false, pixelhog = false, django = false }
diff --git a/services/llm-gateway/Dockerfile b/services/llm-gateway/Dockerfile
index 1ee0467c8c25..054b2e862de6 100644
--- a/services/llm-gateway/Dockerfile
+++ b/services/llm-gateway/Dockerfile
@@ -1,4 +1,4 @@
-FROM ghcr.io/astral-sh/uv:0.10.2 AS uv
+FROM ghcr.io/astral-sh/uv:0.11.11 AS uv
FROM python:3.12-slim-bookworm AS builder