Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/caching-hack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
shared-key: "build-gateway-cache"
- name: Install uv
if: runner.os == 'windows'
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"
- name: Install Python 3.10
if: runner.os == 'windows'
run: |
Expand Down
47 changes: 18 additions & 29 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ jobs:
shell: bash

- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"

- name: Generate Python schemas
run: pnpm generate-python-schemas
Expand Down Expand Up @@ -272,9 +272,9 @@ jobs:
cache-provider: "buildjet"
save-if: ${{ github.event_name == 'merge_group' }}
- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"
- name: Install Python 3.10
run: uv python install 3.10
- name: Set PYO3_PYTHON
Expand Down Expand Up @@ -348,19 +348,9 @@ jobs:
run: rustc --version

- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"

- name: uv-lock
run: |
git ls-files "**/pyproject.toml" | xargs -P4 -I{} bash -c 'cd "$(dirname "{}")" && uv lock --project="pyproject.toml"'

- name: uv-export
run: |
git ls-files "**/pyproject.toml" | xargs -P4 -I{} bash -c 'cd "$(dirname "{}")" && uv export --project="pyproject.toml" --output-file=requirements.txt --quiet'
- name: verify uv generated files
run: git diff --exit-code
version: "0.9.27"

- name: Install Python for python async client tests
run: uv python install 3.9
Expand All @@ -372,9 +362,7 @@ jobs:

- name: "Python: Pyo3 Client: Build and install dependencies"
working-directory: clients/python
run: |
uv venv
uv pip sync requirements.txt
run: uv sync

- name: "Python: PyO3 Client: pyright"
working-directory: clients/python
Expand Down Expand Up @@ -587,9 +575,9 @@ jobs:
shell: bash

- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"

- name: Install JS dependencies
run: pnpm install --frozen-lockfile
Expand Down Expand Up @@ -773,9 +761,9 @@ jobs:
./ui/fixtures/large-fixtures/

- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"

- name: Download container images
run: |
Expand Down Expand Up @@ -1046,9 +1034,9 @@ jobs:
continue-on-error: ${{ github.event.pull_request.head.repo.full_name != github.repository || github.actor == 'dependabot[bot]' }}

- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"

- name: Download ClickHouse fixtures
run: |
Expand Down Expand Up @@ -1155,9 +1143,9 @@ jobs:
tool: cargo-nextest

- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"
# Without this, the post-install hook tries to prune and save the cache, but ./ci/free-disk-space.sh already nukes /opt/hostedtoolcache/*, so it fails.
enable-cache: "false"

Expand Down Expand Up @@ -1419,7 +1407,8 @@ jobs:
check-all-general-jobs-passed:
permissions: {}
if: always() && github.repository == 'tensorzero/tensorzero'
needs: [
needs:
[
check-version-consistency,
check-production-deployment-docker-compose,
check-if-edited-then-edit,
Expand All @@ -1428,7 +1417,7 @@ jobs:
check-python-client-build,
check-node-bindings,
check-python-schemas,
# TODO (#5873): Add build-windows back when re-enabled
build-windows,
build-ui-container,
build-gateway-container,
build-gateway-e2e-container,
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/merge-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ jobs:
strategy:
matrix:
batch_writes: [true, false]
# Don't fail-fast for manual/cron runs, so that we get the full picture of what broke
fail-fast: ${{ github.event_name == 'merge_group' }}

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
Expand Down Expand Up @@ -308,9 +310,9 @@ jobs:
run: rustc --version

- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"

- name: Install pnpm
run: |
Expand Down
29 changes: 13 additions & 16 deletions .github/workflows/python-client-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
python-version: "3.10"

- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"

- name: Install Rust toolchain
run: |
Expand Down Expand Up @@ -98,9 +98,9 @@ jobs:
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"
- name: Build wheels
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380
with:
Expand All @@ -120,8 +120,7 @@ jobs:

windows:
runs-on: ${{ matrix.platform.runner }}
# TODO (#5873): Temporarily disabled - re-enable when ready
if: false && github.repository == 'tensorzero/tensorzero'
if: github.repository == 'tensorzero/tensorzero'
strategy:
matrix:
platform:
Expand Down Expand Up @@ -150,9 +149,9 @@ jobs:
python-version: "3.10"
architecture: ${{ matrix.platform.target }}
- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"
- name: Build wheels
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380
with:
Expand Down Expand Up @@ -205,9 +204,9 @@ jobs:
python-version: "3.10"

- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"

- name: Build wheels
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380
Expand Down Expand Up @@ -243,9 +242,9 @@ jobs:
name: wheels-sdist
path: ./clients/python/dist
- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"
- name: Check local sdist
run: |
./ci/check-local-wheel.sh ./clients/python/dist/tensorzero-*.tar.gz
Expand All @@ -255,8 +254,7 @@ jobs:
uv run twine check ./clients/python/dist/tensorzero-*.tar.gz

check-artifacts:
# TODO (#5873): Add windows back when re-enabled
needs: [linux, musllinux, macos, sdist]
needs: [linux, musllinux, windows, macos, sdist]
runs-on: ubuntu-latest
if: github.repository == 'tensorzero/tensorzero'
steps:
Expand All @@ -268,5 +266,4 @@ jobs:
ls -lh ./wheels-*/*
# Count the number of files named 'tensorzero-*.whl', and verify that it equals 5
# If we add new platforms / python versions, update this number
# TODO (#5873): Update to 6 when windows is re-enabled
ls -lh ./wheels-*/* | grep -c 'tensorzero-.*\.whl' | grep -q 5
ls -lh ./wheels-*/* | grep -c 'tensorzero-.*\.whl' | grep -q 6
4 changes: 2 additions & 2 deletions .github/workflows/tensorzero-ci-bot-failure-diagnosis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ jobs:
uses: pnpm/action-setup@v4

- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"

- name: Install mini-swe-agent
run: 'uv tool install mini-swe-agent --from "git+https://github.com/virajmehta/mini-swe-agent.git@main"'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ui-tests-e2e-model-inference-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ jobs:
sed -i '2a\\n[gateway.auth]\nenabled = true' fixtures/config/tensorzero.toml

- name: Setup uv
uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"

- name: Download JSONL fixtures
env:
Expand Down
16 changes: 2 additions & 14 deletions .github/workflows/upgrade-tensorzero-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
with:
version: "0.6.17"
version: "0.9.27"

- name: Install jq
run: sudo apt-get update && sudo apt-get install -y jq
Expand Down Expand Up @@ -101,17 +101,6 @@ jobs:
}
done

- name: Update requirements.txt files
run: |
echo "Updating requirements.txt files (following general.yml pattern)..."
git ls-files "**/pyproject.toml" | while read f; do
dir=$(dirname "$f")
echo "Running uv export in: $dir"
(cd "$dir" && uv export --project="pyproject.toml" --output-file=requirements.txt --quiet) || {
echo "Warning: uv export failed in $dir"
}
done

- name: Check for changes
id: check_changes
run: |
Expand Down Expand Up @@ -168,7 +157,6 @@ jobs:
## Changes
- Upgraded tensorzero dependency in ${{ steps.discover_projects.outputs.project_count }} projects
- Regenerated uv.lock files using \`uv lock\`
- Updated requirements.txt files using \`uv export\`

## Projects Updated
\`\`\`
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading