Skip to content

fix(pytest-matrix): seed pip into the uv venv#11

Merged
ywatanabe1989 merged 1 commit into
mainfrom
fix/seed-pip-in-pytest-matrix-venv
Jul 22, 2026
Merged

fix(pytest-matrix): seed pip into the uv venv#11
ywatanabe1989 merged 1 commit into
mainfrom
fix/seed-pip-in-pytest-matrix-venv

Conversation

@ywatanabe1989

Copy link
Copy Markdown
Contributor

uv venv installs no pip/setuptools/wheel, so any test that shells out to sys.executable -m pip dies with "No module named pip".

The per-repo workflows this reusable replaced all built their env with actions/setup-python + pip install, so pip was always present. Losing it is an unintended regression of the CI unification, not a test bug.

Evidence

Caught by scitex-ai/scitex-hub#433. Its pip-install e2e gate proves the production pip_install_user_app --no-deps --target argv shape. It passes on develop (retired setup-python workflow) and fails on all three legs under this reusable, on two different runners:

AssertionError: pip reported rc=0 but the package dir did not land at .../site-packages/scitex_live_paper_hub_app.
  --pip stderr--
  /tmp/scitex-ci-runner-work/spartan-pooled-cpu-01/scitex-hub/scitex-hub/.venv/bin/python: No module named pip

The job log's Installed 330 packages list contains no pip, hatchling, setuptools or wheel.

Fix

uv venv --seed. It only adds pip/setuptools/wheel — the set every non-uv venv already ships — so it cannot break existing callers.

`uv venv` installs no pip/setuptools/wheel, so any test that shells out
to `sys.executable -m pip` fails with "No module named pip". The
per-repo workflows this reusable replaced all built their env with
actions/setup-python + `pip install`, so pip was always present — this
is an unintended regression of the CI unification, not a test bug.

Caught by scitex-ai/scitex-hub#433: its pip-install e2e gate (proving the
production `pip_install_user_app` --no-deps --target argv shape) went red
on all three legs while passing on develop's retired workflow. Runner
evidence: `.venv/bin/python: No module named pip`.
@ywatanabe1989
ywatanabe1989 merged commit 1716a16 into main Jul 22, 2026
1 check passed
@ywatanabe1989
ywatanabe1989 deleted the fix/seed-pip-in-pytest-matrix-venv branch July 22, 2026 09:04
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