Skip to content

op setup: openpilot's own venv in a uv workspace, find op.sh's checkout from outside - #39237

Merged
haraschax merged 3 commits into
masterfrom
op-uv-workspace
Nov 6, 2026
Merged

haraschax merged 3 commits into
masterfrom
op-uv-workspace

Conversation

@haraschax

@haraschax haraschax commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

…rom outside

In a uv workspace like xx, where openpilot is a member, uv sync uses the
workspace's venv: setup then failed at source .venv/bin/activate, after its
exact sync had already uninstalled every package openpilot doesn't need from
the workspace's venv. Sync without removing packages there, activate the venv
uv used, and have op check and activate that venv too.

The fallback for running op.sh from outside a checkout still looked two
levels up from tools/, a leftover from when op.sh was in openpilot/tools.
@commaci-public

commaci-public commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Model Replay: Big model (Chestnut)

ref for commit 9d257a2: https://raw.githubusercontent.com/commaai/ci-artifacts/refs/heads/model_replay_op-uv-workspace_chestnut/98395b7c5b27882e|0000002b--2686b5a2d0_model_chestnut_9d257a210982f04aacdbdeed12b4aec52273263a.zst
Model Replay Differences
All Model Replay Plots

@commaci-public

commaci-public commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Model Replay: Small model

ref for commit 9d257a2: https://raw.githubusercontent.com/commaai/ci-artifacts/refs/heads/model_replay_op-uv-workspace_tici/98395b7c5b27882e|0000002b--2686b5a2d0_model_tici_9d257a210982f04aacdbdeed12b4aec52273263a.zst
Model Replay Differences
All Model Replay Plots

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Process replay diff report

Replays driving segments through this PR and compares the behavior to master.
Please review any changes carefully to ensure they are expected.

✅ 0 changed, 66 passed, 0 errors

UV_PROJECT_ENVIRONMENT keeps setup on openpilot's .venv also as a member of a
uv workspace, so op's .venv assumptions hold and the workspace's venv is never
touched. For a standalone checkout that's uv's default.
@haraschax haraschax changed the title op: setup and venv as a member of a uv workspace, find its checkout from outside op setup: openpilot's own venv in a uv workspace, find op.sh's checkout from outside Nov 5, 2026
@haraschax
haraschax merged commit d5e08fc into master Nov 6, 2026
16 of 17 checks passed
@haraschax
haraschax deleted the op-uv-workspace branch November 6, 2026 17:37
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.

2 participants