Skip to content

fix(ci): install python3-venv before creating community GPU staging venv - #1404

Merged
zhenshanx-nv merged 1 commit into
NVIDIA:ci/developerfrom
zhenshanx-nv:fix-community-gpu-venv-apt
Sep 21, 2026
Merged

zhenshanx-nv merged 1 commit into
NVIDIA:ci/developerfrom
zhenshanx-nv:fix-community-gpu-venv-apt

Conversation

@zhenshanx-nv

@zhenshanx-nv zhenshanx-nv commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Community GPU CI runs python3 -m venv directly on the bare Brev host (not inside the Docker build) to stage the huggingface-hub download step. The host image does not ship ensurepip, so venv creation fails on every run with:

The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
    apt install python3.12-venv

Seen on PR #1386, run https://github.com/NVIDIA/TensorRT-Model-Connect/actions/runs/35642651683/job/106501782895.

Fix

Install python3-venv via apt on the host before creating the staging venv.

The Community GPU provision-and-test job runs python3 -m venv directly on the bare Brev host to build a staging venv for the huggingface-hub download step. The host image does not ship ensurepip, so venv creation failed with exit code 1 on every GPU run (see PR NVIDIA#1386 CI run 35642651683). Install python3-venv via apt before creating the venv.

Signed-off-by: Zhenshan Xie <zhenshanx@nvidia.com>
@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: NVIDIA/TensorRT-Model-Connect/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: f000628d-ece3-4fdf-97d5-684051598915

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@zhenshanx-nv
zhenshanx-nv merged commit 3ec8b5a into NVIDIA:ci/developer Sep 21, 2026
2 checks passed
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