Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

[FIX] Stop tox 4.64's .venv redirect from breaking every CI run (#2297)

ali05e00a5c7934
diff --git a/.github/workflows/ci-test.yaml b/.github/workflows/ci-test.yaml
index f515b14ca..c82f57291 100644
--- a/.github/workflows/ci-test.yaml
+++ b/.github/workflows/ci-test.yaml
@@ -94,7 +94,13 @@ jobs:
${{ runner.os }}-tox-uv-
- name: Install tox with UV
- run: uv tool install tox --with tox-uv
+ # Pinned: this resolves at job time, so a tox release lands in CI with no
+ # commit of ours. tox 4.64.0 shipped the PEP 832 `.venv` redirect and
+ # broke every branch at once; bump deliberately, not by drift.
+ # --no-build: wheels only, so no sdist setup script runs at install
+ # time. The whole tree (tox, tox-uv, uv, virtualenv, ...) ships wheels,
+ # so this constrains nothing and resolves identically.
+ run: uv tool install tox==4.64.1 --with tox-uv==1.36.0 --no-build
- name: Validate test manifests
# Cheap pre-flight: catches manifest schema errors before tier runs.
@@ -172,7 +178,13 @@ jobs:
${{ runner.os }}-tox-uv-
- name: Install tox with UV
- run: uv tool install tox --with tox-uv
+ # Pinned: this resolves at job time, so a tox release lands in CI with no
+ # commit of ours. tox 4.64.0 shipped the PEP 832 `.venv` redirect and
+ # broke every branch at once; bump deliberately, not by drift.
+ # --no-build: wheels only, so no sdist setup script runs at install
+ # time. The whole tree (tox, tox-uv, uv, virtualenv, ...) ships wheels,
+ # so this constrains nothing and resolves identically.
+ run: uv tool install tox==4.64.1 --with tox-uv==1.36.0 --no-build
- name: Validate test manifests
# Cheap pre-flight before the multi-minute image build.
@@ -267,7 +279,13 @@ jobs:
${{ runner.os }}-tox-uv-
- name: Install tox with UV
- run: uv tool install tox --with tox-uv
+ # Pinned: this resolves at job time, so a tox release lands in CI with no
+ # commit of ours. tox 4.64.0 shipped the PEP 832 `.venv` redirect and
+ # broke every branch at once; bump deliberately, not by drift.
+ # --no-build: wheels only, so no sdist setup script runs at install
+ # time. The whole tree (tox, tox-uv, uv, virtualenv, ...) ships wheels,
+ # so this constrains nothing and resolves identically.
+ run: uv tool install tox==4.64.1 --with tox-uv==1.36.0 --no-build
- name: Restore main-branch test baseline (for regression detection)
# One unified baseline across all tiers; this job is its sole
diff --git a/tox.ini b/tox.ini
index 798d4a96c..b1d66781a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -14,6 +14,16 @@
env_list = unit, integration, e2e
requires = tox-uv>=0.2.0
isolated_build = True
+# tox >=4.64 writes a PEP 832 `.venv` redirect file at the repo root pointing at
+# a tox env, so editors can find an interpreter. That root is also a uv
+# workspace, and the rig runs `uv run` there (unit-rig, e2e-smoke, and the
+# coverage combine). uv reads `.venv` as the project environment and rejects a
+# file, so every root-workdir invocation dies with "expected directory but found
+# a file". Following the redirect would be worse than rejecting it: it aims at
+# .tox/<env> (~97 packages: pytest, testcontainers, coverage), not the ~269
+# package workspace env those groups need. Nothing here wants the redirect --
+# a local checkout already has a real .venv directory, which tox leaves alone.
+venv_redirect = false
[testenv]
# Shared base: install the rig itself + its python deps. Each tier env reuses