Skip to content

examples: the Docker paths of 07 to 12 run with uv run --with, no venv and no uv pip - #138

Merged
tae898 merged 2 commits into
mainfrom
chore/136-examples-uv-run
Oct 29, 2026
Merged

tae898 merged 2 commits into
mainfrom
chore/136-examples-uv-run

Conversation

@tae898

@tae898 tae898 commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

Closes #136

The --docker paths of examples 07 to 12 no longer build a venv and run uv pip install inside their containers. After the uv bootstrap, each path runs one uv run --no-project --with <packages> --with "<wheel>" python -u <example>.py ... with the same packages, extras and wheel as before. The Milvus runner image no longer runs uv pip install --system (its tag moves to py312-v2 so a stale local image is rebuilt), and python3-venv is no longer installed.

Two fixes came out of running every container path:

  • The pgvector path (Postgres image) and the Milvus custom-image path get python3 from apt. Without the old venv there is no python, so the uv bootstrap now calls python3 there.
  • Dropping python3-venv also dropped ca-certificates (Debian pulls it in through python3-pip-whl), so the uv download failed TLS verification. Those two paths now install ca-certificates explicitly.

Smoke runs (laptop, stackoverflow-tiny, the CI arguments, arcadedb_jvm 26.11.1.dev0 wheel, containers pinned to two cores): 21 container paths pass, 6 skipped.

example backend result
07 arcadedb_sql pass
07 duckdb pass
07 postgresql pass
08 arcadedb_sql pass
08 duckdb pass
08 postgresql pass
09 arcadedb_cypher pass
09 ladybug pass
09 duckdb pass
09 neo4j not run (starts sidecar server containers)
10 arcadedb_cypher pass
10 ladybug pass
10 duckdb pass
10 neo4j not run (starts sidecar server containers)
11 arcadedb_sql pass
11 faiss pass
11 lancedb pass
11 pgvector pass
11 qdrant not run (starts sidecar server containers)
11 milvus not run (starts sidecar server containers)
12 arcadedb_sql pass
12 faiss pass
12 lancedb pass
12 pgvector pass
12 bruteforce pass
12 qdrant not run (starts sidecar server containers)
12 milvus not run (starts sidecar server containers)

The skipped paths (neo4j for 09 and 10, qdrant and Milvus for 11 and 12) start sidecar server containers through the Docker socket. Their runner commands use the same uv run --with pattern as the passing paths, and every one of the 31 generated container commands passes sh -n with no venv or pip in it, but they were not run here. The examples CI does not take the --docker paths.

Static gate: compile() and pyflakes (the same 2 warnings as on main, in 09), black and isort. Follow-up: #137 pins the uv version that the bootstrap downloads.

🤖 Generated with Claude Code

tae898 and others added 2 commits October 29, 2026 12:12
…nv and no uv pip (#136)

Examples 07 to 12 built a venv inside each container (python -m venv, activate, uv pip install) before running the example. Each path now bootstraps uv as before and runs `uv run --no-project --with <pkg> ... --with "<wheel>" python -u <example>.py ...`. Same packages, extras, wheel and arguments. The python3-venv apt packages are no longer installed.

The Milvus runner image (examples 11 and 12) no longer installs numpy, pymilvus and psutil into the system Python with uv pip; the container runs them through uv run instead. Its tag moves from py312-v1 to py312-v2 so a stale local image is rebuilt.

Checked: all 31 container command lines parse with sh -n and contain no venv or pip; 07 arcadedb_sql ran end to end in its container on stackoverflow-tiny.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd install ca-certificates (#136)

The pgvector path (Postgres image) and the Milvus custom-image path get python3 from apt; without the old venv
there is no `python` on PATH ("python: not found"), and dropping python3-venv also dropped ca-certificates
(pulled in through python3-pip-whl), so the uv download failed TLS verification. Found by the smoke run of
every container path; 11 and 12 pgvector now pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tae898
tae898 merged commit 4d012f3 into main Oct 29, 2026
28 checks passed
@tae898
tae898 deleted the chore/136-examples-uv-run branch October 29, 2026 04:54
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.

Examples 07 to 12: the Docker paths still build a venv and use uv pip install

1 participant