Skip to content

Conversation

@v-shobhit
Copy link
Contributor

@v-shobhit v-shobhit commented Jan 8, 2026

Summary by CodeRabbit

  • Chores
    • Simplified Docker build process with streamlined installation workflow
    • Added modular installation options with new command-line flags for component selection
    • Improved intermediate file cleanup during the build process

✏️ Tip: You can customize this high-level summary in your review settings.

Description

Following up from !7383, urefactoring the dependancy installation into the single bash script so that the same may be used to build devel images in enroot sqsh files directly.

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)

  • 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

/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...

Provide a user friendly way for developers to interact with a Jenkins server.

Run /bot [-h|--help] to print this help message.

See details below for each supported subcommand.

Details

run [--reuse-test (optional)pipeline-id --disable-fail-fast --skip-test --stage-list "A10-PyTorch-1, xxx" --gpu-type "A30, H100_PCIe" --test-backend "pytorch, cpp" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" --detailed-log --debug(experimental)]

Launch build/test pipelines. All previously running jobs will be killed.

--reuse-test (optional)pipeline-id (OPTIONAL) : Allow the new pipeline to reuse build artifacts and skip successful test stages from a specified pipeline or the last pipeline if no pipeline-id is indicated. If the Git commit ID has changed, this option will be always ignored. The DEFAULT behavior of the bot is to reuse build artifacts and successful test results from the last pipeline.

--disable-reuse-test (OPTIONAL) : Explicitly prevent the pipeline from reusing build artifacts and skipping successful test stages from a previous pipeline. Ensure that all builds and tests are run regardless of previous successes.

--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.

--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.

--stage-list "A10-PyTorch-1, xxx" (OPTIONAL) : Only run the specified test stages. Examples: "A10-PyTorch-1, xxx". Note: Does NOT update GitHub check status.

--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.

--test-backend "pytorch, cpp" (OPTIONAL) : Skip test stages which don't match the specified backends. Only support [pytorch, cpp, tensorrt, triton]. Examples: "pytorch, cpp" (does not run test stages with tensorrt or triton backend). Note: Does NOT update GitHub pipeline status.

--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.

--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.

--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests in addition to running L0 pre-merge pipeline.

--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.

--extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx".

--detailed-log (OPTIONAL) : Enable flushing out all logs to the Jenkins console. This will significantly increase the log volume and may slow down the job.

--debug (OPTIONAL) : Experimental feature. Enable access to the CI container for debugging purpose. Note: Specify exactly one stage in the stage-list parameter to access the appropriate container environment. Note: Does NOT update GitHub check status.

For guidance on mapping tests to stage names, see docs/source/reference/ci-overview.md
and the scripts/test_to_stage_mapping.py helper.

kill

kill

Kill all running builds associated with pull request.

skip

skip --comment COMMENT

Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

reuse-pipeline

reuse-pipeline

Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

@v-shobhit v-shobhit requested review from a team as code owners January 8, 2026 05:28
@v-shobhit v-shobhit changed the title [None][fix] mv ucx, nixl, etcd installation to install.sh [None] @coderrabbitai title Jan 8, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 8, 2026

📝 Walkthrough

Walkthrough

The changes introduce four modular feature flags (constraints, ucx, nixl, etcd) to the install script with corresponding command-line options, while refactoring the Dockerfile to use a consolidated installation approach via the --all flag and a CONSTRAINTS_FILE build argument.

Changes

Cohort / File(s) Summary
Build Configuration
docker/Dockerfile.multi
Introduces CONSTRAINTS_FILE as a build ARG, streamlines installation to use --all flag, removes intermediate constraint processing steps and cleans up related files in final image
Installation Script
docker/common/install.sh
Adds four new feature flags (constraints, ucx, nixl, etcd) with long-form command-line options, extends --all to enable all flags, implements conditional installation blocks for each feature

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning PR description is incomplete. Missing detailed explanation of changes, test coverage, and most checklist items are not marked. Complete the 'Description' section with clear explanation of what is being changed and why. Add specific test coverage details. Mark applicable checklist items with [x].
✅ Passed checks (2 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly and specifically describes the main change: refactoring UCX, NIXL, and ETCD installations into install.sh, which matches the changeset's primary objective.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@v-shobhit v-shobhit changed the title [None] @coderrabbitai title [None][fix] Refactor UCX, NIXL, ETCD installations into install.sh Jan 8, 2026
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In @docker/common/install.sh:
- Around line 157-160: The script uses the CONSTRAINTS_FILE variable in the
install block (the if [ $constraints -eq 1 ] branch) without validating it or
confirming the file exists; update that branch to first check that
CONSTRAINTS_FILE is set and non-empty and that the referenced file exists and is
readable before calling pip3 install --no-cache-dir -r $CONSTRAINTS_FILE, and if
the checks fail emit a clear error via echo and exit non-zero (preserve the
existing behavior when valid).

In @docker/Dockerfile.multi:
- Line 47: The Dockerfile.multi COPY instruction references a non-existent
constraints file (the COPY entry that includes the constraints file), which
breaks builds; fix it by removing that constraints entry from the COPY list in
Dockerfile.multi (or alternatively create the missing
docker/common/constraints.txt), but since there is already a root-level
constraints.txt copied later, prefer deleting the extra constraints entry from
the COPY command to avoid the missing-file build failure.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 30f8455 and 84b2452.

📒 Files selected for processing (2)
  • docker/Dockerfile.multi
  • docker/common/install.sh
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-08-20T15:04:42.885Z
Learnt from: dbari
Repo: NVIDIA/TensorRT-LLM PR: 7095
File: docker/Dockerfile.multi:168-168
Timestamp: 2025-08-20T15:04:42.885Z
Learning: In docker/Dockerfile.multi, wildcard COPY for benchmarks (${CPP_BUILD_DIR}/benchmarks/*Benchmark) is intentionally used instead of directory copy because the benchmarks directory contains various other build artifacts during C++ builds, and only specific benchmark executables should be copied to the final image.

Applied to files:

  • docker/Dockerfile.multi
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Pre-commit Check
🔇 Additional comments (6)
docker/common/install.sh (4)

19-22: LGTM: Clean flag declarations.

The new feature flags follow the established pattern and are initialized correctly.


62-77: LGTM: Consistent option parsing.

The new command-line options are correctly implemented following the existing pattern.


88-91: LGTM: Proper --all flag extension.

The --all option correctly includes the new installation flags.


172-175: No action needed. install_etcd.sh downloads from Google Cloud Storage (https://storage.googleapis.com/etcd), not GitHub, so it does not require the GITHUB_MIRROR environment variable. The inconsistency flagged is not applicable here.

Likely an incorrect or invalid review comment.

docker/Dockerfile.multi (2)

56-56: LGTM: Clean consolidation with CONSTRAINTS_FILE support.

The addition of CONSTRAINTS_FILE ARG with a sensible default and the switch to --all flag simplifies the installation process while maintaining flexibility through build arguments.

Also applies to: 65-66


77-79: LGTM: Complete cleanup of installation artifacts.

The cleanup properly removes all new installation scripts and the constraints file, maintaining a lean final image.

Signed-off-by: Shobhit Verma <[email protected]>
@v-shobhit
Copy link
Contributor Author

/bot run --stage-list "Build-Docker-Images"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #31009 [ run ] triggered by Bot. Commit: c1ba59a

@tensorrt-cicd
Copy link
Collaborator

PR_Github #31009 [ run ] completed with state FAILURE. Commit: c1ba59a
/LLM/main/L0_MergeRequest_PR pipeline #23959 (Partly Tested) completed with status: 'FAILURE'

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

Signed-off-by: Shobhit Verma <[email protected]>
@v-shobhit v-shobhit force-pushed the dev/shobhitv/enroot_build_fix branch from c1ba59a to c20cc56 Compare January 8, 2026 22:13
@v-shobhit
Copy link
Contributor Author

/bot run --stage-list "Build-Docker-Images"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #31124 [ run ] triggered by Bot. Commit: c20cc56

@nvzhihanj
Copy link
Collaborator

Copy link
Collaborator

@nv-guomingz nv-guomingz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

echo "Error: Constraints file not found: $CONSTRAINTS_FILE" >&2
exit 1
fi
pip3 install --no-cache-dir -r $CONSTRAINTS_FILE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A constraints.txt is not meant to be passed to the -r option with pip. It does not express what needs to be installed. The intention is to specify version constraints only if a certain package needs to be installed. It should be passed with the -c option to pip when the corresponding requirements.txt, which is passed to -r, is installed.

Do we even still need this constraints.txt file? Please check whether the vulnerability that it addresses has been resolved in the latest DLFW images. If it is still necessary, we should combine it with the pip install -r requirements.txt command instead of handling it separately.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - it seems like we are currently installing this as per here - in that case, we should perhaps move urllib3>=2.6.0 from the constraints into the requirements file

Also CC: @ZhanruiSunCh since this was added as part of their commit here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will not install requirement.txt in the devel image of CI/NGC. However, constraints.txt is added to fix nspect's check of image, so it needs to be installed separately in image in addition to requirement.txt .

ARG NCCL_VER
ARG CUBLAS_VER
ARG TORCH_INSTALL_TYPE="skip"
ARG CONSTRAINTS_FILE="constraints.txt"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whey do we introduce this argument? we have hardcoded constraints.txt in the COPY and the rm commands below and above, respectively. So, what is the purpose of this?

./

# Name install.sh conflicts with UCX installation
COPY docker/common/install.sh ./install_master.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of renaming the script within the Dockerfile, why not just rename the source file in the repository to install_master.sh. This would simplify the Dockerfile.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, done

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whenever we change Dockerfile.multi, we should rebuild and update the Docker images for Jenkins in the same PR.

@tensorrt-cicd
Copy link
Collaborator

PR_Github #31124 [ run ] completed with state FAILURE. Commit: c20cc56
/LLM/main/L0_MergeRequest_PR pipeline #24041 (Partly Tested) completed with status: 'FAILURE'

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

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.

6 participants