[None][chore] Remove pre-installed opencv - #16206
Conversation
Signed-off-by: Tyler Burt <195370667+tburt-nv@users.noreply.github.com>
Signed-off-by: Tyler Burt <195370667+tburt-nv@users.noreply.github.com>
Signed-off-by: Tyler Burt <195370667+tburt-nv@users.noreply.github.com>
|
/bot run --stage-list "Build-Docker-Images" |
📝 WalkthroughWalkthroughOpenCV is removed from default Docker and requirements installation, added explicitly to selected Jenkins and Slurm environments, and documented as an optional dependency for video input. ChangesOptional OpenCV installation
Estimated code review effort: 2 (Simple) | ~15 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docker/Dockerfile.multi`:
- Around line 51-52: The Dockerfile.multi modification is missing the required
NVIDIA copyright header. Add the standard NVIDIA copyright notice at the top of
the file, using the year from the latest meaningful change, and ensure the
header is placed before the existing install command block in the
Dockerfile.multi content.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 4bc2f248-66be-4307-8793-5ecb59eade8d
📒 Files selected for processing (7)
docker/Dockerfile.multidocker/common/install.shdocs/source/features/multi-modality.mdjenkins/L0_Test.groovyjenkins/scripts/perf/local/slurm_install.shjenkins/scripts/slurm_install.shrequirements.txt
💤 Files with no reviewable changes (2)
- requirements.txt
- docker/common/install.sh
|
PR_Github #58513 [ run ] triggered by Bot. Commit: |
Signed-off-by: Tyler Burt <195370667+tburt-nv@users.noreply.github.com>
|
PR_Github #58513 [ run ] completed with state
|
Signed-off-by: Yanchao Lu <yanchaol@nvidia.com>
Signed-off-by: Yanchao Lu <yanchaol@nvidia.com>
|
/bot run --disable-fail-fast |
|
PR_Github #58616 [ run ] triggered by Bot. Commit: |
|
/bot run --disable-fail-fast --only-multi-gpu-test |
|
PR_Github #58684 [ run ] triggered by Bot. Commit: |
|
PR_Github #58616 [ run ] completed with state |
|
/bot skip --comment "all stages pass except DGX_B200-8_GPUs-PyTorch* which contains no relevant tests" |
|
PR_Github #58695 [ ] completed with state |
|
PR_Github #58684 [ run ] completed with state
|
…m images (OPS-7625) Upstream TRT-LLM made cv2 an optional video extra (NVIDIA/TensorRT-LLM#16206) and no longer preinstalls it on main; its imports were already function-local in 1.3.x, so nothing in the image needs it at import time. Align the trtllm runtime images with that: uninstall the package (via the system interpreter -- with VIRTUAL_ENV set, plain pip targets the venv and exits 0 without touching the system-site install) and mirror the removal in the pre_runtime whiteout, since the squash COPY cannot represent deletions. Build fails if cv2 survives either stage, and a dependencies test guards against a base-image bump reintroducing it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Dmitry Tokarev <dtokarev@nvidia.com>
Description
Removes pre-installed opencv from the container images, making it an optional dependency.
Test Coverage
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
If PR introduces API changes, an appropriate PR label is added - either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.Summary by CodeRabbit
Documentation
Chores