Skip to content

fix(cd): uv sync must include serve extra (torch/faiss)#15

Merged
andylizf merged 1 commit into
mainfrom
fix/cd-uv-sync-extras
Jun 2, 2026
Merged

fix(cd): uv sync must include serve extra (torch/faiss)#15
andylizf merged 1 commit into
mainfrom
fix/cd-uv-sync-extras

Conversation

@andylizf
Copy link
Copy Markdown
Contributor

@andylizf andylizf commented Jun 2, 2026

The CD's bare uv sync installs only the light core and uninstalls torch/transformers/faiss-cpu (they're in the serve/embed extras). On the last uv.lock change the CD stripped them; the running serves survived on in-memory copies but crashed on restart with No module named 'torch'. Fixed to uv sync --extra all (embed+serve+index; no gpu extra since there's no CUDA here).

Caught while doing the blue-green rollout of the articles_only filter — green crashed on restart, production stayed safe on blue.

… core

The deploy script ran a bare `uv sync`, which installs only the light core and
UNINSTALLS torch/transformers/faiss-cpu (they live in the serve/embed extras).
That silently stripped them from the venv on the last lock change; the running
serves survived on in-memory copies but crashed on restart with
'No module named torch'. Use `uv sync --extra all` so the box's Python stack
(embed+serve+index) is preserved.
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web Ready Ready Preview, Comment Jun 2, 2026 4:48pm

@andylizf andylizf merged commit 647ea62 into main Jun 2, 2026
6 checks passed
@andylizf andylizf deleted the fix/cd-uv-sync-extras branch June 2, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant