Skip to content

[None][fix] Isolate fallback hwloc and add EFA functional CI coverage - #21516

Merged
chzblych merged 8 commits into
NVIDIA:mainfrom
chzblych:codex/pr19783-container-deps
Nov 6, 2026
Merged

chzblych merged 8 commits into
NVIDIA:mainfrom
chzblych:codex/pr19783-container-deps

Conversation

@chzblych

@chzblych chzblych commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Description

This PR follows up on the AWS EFA container support added in #19783. It focuses on cleaning up hwloc dependency handling and adding functional test coverage for KV cache V2 over the NIXL LIBFABRIC backend on EFA.

Problem

Rocky Linux 8's hwloc 2.2.0 is too old for the NIXL LIBFABRIC build. Installing the fallback under /usr/local and preferring it globally changes the hwloc selected by Open MPI and other consumers.

A successful container build also does not establish that KV cache V2 transfers work through the NIXL LIBFABRIC backend on EFA hardware.

Solution

  • Install fallback hwloc 2.12.2 under /opt/nvidia/nixl-deps/hwloc and select it for the NIXL build through PKG_CONFIG_PATH. Preserve suitable existing HPC-X or system hwloc installations and leave global runtime library search configuration unchanged. Runtime use of NIXL LIBFABRIC still requires a compatible hwloc library.
  • Add a two-node B300 functional CI case using the existing disaggregated launcher, byte-validating cache-transceiver precheck and standard Slurm segment handling. Pin its CI placement to the EFA-capable backend. One context worker and one generation worker use one GPU each, KV cache V2 and the NIXL LIBFABRIC backend.
  • Require eight long-prompt requests at concurrency four to match ordinary greedy inference. Check actual worker EFA activity and match nonzero send bytes to receiver completions by request ID. Missing EFA support fails the test; there is no throughput or latency threshold. Both the pytest and test-list timeouts are 30 minutes.
  • Register the test and its explicit dependencies for multi-GPU CI selection, retain CPU checks against false-positive transport evidence, update the hwloc documentation, and complete license notices in the touched installers and tests.
  • Update all five CI image references to the promoted 202611030656-21516 tags. Promotion copies the completed staging images without rebuilding them.

Test Coverage

Validation

Source checks and image builds used 37f7b76fbcb8dd8ec9fa1111751262b6bdecd72a, based on upstream main 4889d70f66cfd865862b32bf6ed7ec612912a152. The subsequent image-tag commit changes only CI image references.

  • Source checks at that revision: 14 new evidence-validator cases and 97 existing launcher cases passed, along with Groovy placement/dependency-trigger checks, stage mapping, shell syntax and applicable pre-commit checks.

  • Earlier isolated-hwloc validation: clean Rocky8 devel builds for Python 3.10 and 3.12, full SM90 wheel build/install/import, and MPI/NIXL UCX initialization checks passed. Process mappings retained the system hwloc. These builds were not rerun after this rebase.

  • Earlier B300 validation: the complete two-node case passed both without --segment and with --segment=2. Both runs completed eight matching inference results and eight nonzero EFA KV transfers; all harness roles and Slurm steps passed. Fourteen evidence-validator unit cases also passed inside the image. Both standalone GPU jobs completed in approximately 7–8 minutes with the image and runtime dependencies already prepared; queueing and cold container preparation are excluded.

  • Those B300 runs used test source c097a6f29ec28c9d516a27818599efe7b2b54796, CI wheel source b2ade286de557b8dec22d81d6f7bb1e244e2f255, and the formal NGC PyTorch 26.09 image at platform digest sha256:6435f9aaa7e0a6e0b37047d031b5300fb7e733759895541df99c93e09d18b6eb. They used NIXL 1.5.2 and AWS libfabric 2.7.0amzn2.0 without NIXL_DISABLE_CUDA_ADDR_WA, through the repository's Slurm launcher with task-local wheel/dependency setup.

  • All five CI image build-and-push branches passed: NGC PyTorch x86_64/SBSA, Rocky8 Python 3.10/3.12, and SBSA Ubuntu 24.04 Python 3.12. Each promoted image has the same index, platform manifest, configuration and layer digests as its staging source. The tag timestamp 202611030656 is the UTC creation minute of the last image in this batch, not the promotion time.

  • Fresh two-node B300 validation passed with the promoted 202611030656-21516 image (platform digest sha256:e663fbb74b4c62115ec81dfe4dc727c51071e6cb06168bcc6597774178a709b9). The byte-validating precheck passed; all eight inference results matched ordinary greedy inference, and eight nonzero KV transfers matched receiver completions. All four harness roles and 14 validator unit cases passed without skips. The run used test and runtime Python source from 85e9038e782efd7ddb6dd96fee4b7c545f54dca9, with CI native binaries from c67c0f4fbe97f959d6250d371fec30f53300e1ba, whose C++ source tree is identical. It used NIXL 1.5.2 and AWS libfabric 2.7.0amzn2.0 without NIXL_DISABLE_CUDA_ADDR_WA. This was a standalone Slurm run using the repository launcher and task-local runtime setup.

  • Recipe cleanup at fbdfb74cf1bf5652668862f7054515eeea8ccee6: removed the deprecated no-op agent_bounce_buffer_enable field while retaining kv_cache_bounce_size_mb: 0. All 260 existing recipe checks and applicable pre-commit checks passed. The promoted images remain unchanged.

The overall image pipeline was aborted after the five CI image branches succeeded; this does not establish completion of its remaining release images. Full Jenkins L0 validation remains pending. The prior L0 also reported H100 KV cache V2 teardown/context errors that were observed with the previous CI image; the rerun still needs to verify that stage.

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: api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities.

  • CODEOWNERS updated if ownership changes.

  • Documentation updated as needed.

  • Update the architecture diagram if there is a significant design change.

  • 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.

Dev Engineer Review

  • The hwloc fallback now installs under /opt/nvidia/nixl-deps/hwloc. install_nixl.sh exposes it to the NIXL build through PKG_CONFIG_PATH and no longer changes global loader configuration. NIXL LIBFABRIC runtime use still requires a compatible hwloc library.
  • The EFA functional test checks worker placement, EFA RDM provider availability, KV cache V2 transfer activity, and exact output parity with ordinary generation-worker inference. Its test-db selector targets two-GPU B300/GB110 Ubuntu pre-merge systems.
  • Five CI image references now use the promoted 202611030656-21516 tags. The other installer changes add license notices.
  • Full Jenkins L0 validation remains pending. The supplied CI comments report failures but do not include failure details. The reported image pipeline was aborted after five image branches passed; completion of the remaining release images is not established.

QA Engineer Review

  • Added tests/integration/defs/perf/test_efa_disaggregated.py, tests/test_common/efa_validation.py, and tests/unittest/scripts/test_efa_validation.py. Added the l0_dgx_b300_efa_multi_nodes test-db list and its B300 functional YAML configuration.
  • The integration test registers test_kv_cache_v2_efa[disagg-e2e-b300_qwen3_0.6b_efa_functional]. It exercises eight long-prompt requests at concurrency four, checks output parity, and validates EFA transfer logs. The unit tests cover accepted transfers and rejection of fallback providers, incomplete or mismatched transfers, and duplicate records.
  • The integration test is listed in tests/integration/test_lists/test-db/l0_dgx_b300_efa_multi_nodes.yml and wired to a Jenkins B300 two-node stage. No manual-QA list registration is established by the supplied evidence.
  • Coverage verdict: needs follow-up. The author reports successful focused checks and a fresh promoted-image run, but full L0 validation remains pending and the reported Jenkins failures lack details.

Per-File QA Perspective

  • docker/common/install_base.sh — License notice only; no behavior change to verify.
  • docker/common/install_efa_installer.sh — License notice only; no behavior change to verify.
  • docker/common/install_gdrcopy.sh — License notice only; no behavior change to verify.
  • docker/common/install_nixl.sh — Verify the fallback path, pkg-config selection, and NIXL build behavior. Confirm runtime LIBFABRIC environments provide compatible hwloc.
  • examples/disaggregated/README.md — Documentation now describes the isolated fallback and runtime requirement; verify it matches supported deployment behavior.
  • jenkins/L0_MergeRequest.groovy — The EFA test-related paths now trigger multi-GPU CI selection; verify the intended files select the new stage.
  • jenkins/L0_Test.groovy — Adds the two-node B300 functional stage; verify its hardware label, test list, node/GPU counts, and sbatch setup.
  • tests/integration/defs/perf/test_efa_disaggregated.py — Covers EFA worker checks, distinct-node placement, eight-request output parity, and transfer-log validation. Listed in the new test-db entry.
  • tests/integration/test_lists/test-db/l0_dgx_b300_efa_multi_nodes.yml — Adds a pre-merge selector for two-GPU B300/GB110 Ubuntu x86_64 systems with a 30-minute timeout.
  • tests/scripts/perf-sanity/disaggregated/b300_qwen3_0.6b_efa_functional.yaml — Adds the BF16 B300 functional configuration with KV cache manager V2 and the NIXL LIBFABRIC/EFA backend; verify both workers use the intended settings.
  • tests/test_common/efa_validation.py — Adds log checks for backend startup, KV cache V2, EFA activity, and distinct matching send/receive request IDs.
  • tests/unittest/scripts/test_efa_validation.py — Adds CPU-only tests for valid transfers and key failure cases; this helper test is not an integration test requiring a test-db entry.
  • jenkins/current_image_tags.properties — Updates five image tags; verify the promoted tags remain available and correspond to the intended image variants.

Comment thread jenkins/L0_Test.groovy Resolved
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes add a B300 EFA disaggregated integration test and CI configuration, update NIXL’s hwloc fallback behavior, add Apache License 2.0 notices to installer scripts, and update five Docker image tags.

Changes

EFA disaggregated functional validation

Layer / File(s) Summary
Configure and schedule the B300 test
tests/integration/test_lists/test-db/l0_dgx_b300_efa_multi_nodes.yml, tests/scripts/perf-sanity/disaggregated/b300_qwen3_0.6b_efa_functional.yaml, jenkins/L0_MergeRequest.groovy, jenkins/L0_Test.groovy
The test list selects the EFA functional test for matching two-GPU B300 or GB110 systems. The benchmark configuration defines the Qwen3-0.6B workers and EFA runtime settings. Jenkins adds a two-node functional-only stage and includes the test paths in multi-GPU change detection.
Validate EFA worker logs
tests/test_common/efa_validation.py, tests/unittest/scripts/test_efa_validation.py
The validator checks LIBFABRIC and KV cache V2 startup, EFA provider records, and matching positive-size send and receive request IDs. CPU-only unit tests cover valid and invalid log records.
Run EFA parity checks
tests/integration/defs/perf/test_efa_disaggregated.py
The test probes EFA on both workers, compares routed completions with direct generation-worker responses, and validates collected worker logs.

NIXL hwloc isolation

Layer / File(s) Summary
Select and install hwloc
docker/common/install_nixl.sh, examples/disaggregated/README.md
The installer checks the bundled NGC PyTorch hwloc files and installs fallback hwloc under /opt/nvidia/nixl-deps/hwloc without changing global loader configuration. The README describes the paths and runtime requirement.

Installer license notices

Layer / File(s) Summary
Add installer license notices
docker/common/install_base.sh, docker/common/install_efa_installer.sh, docker/common/install_gdrcopy.sh
Apache License 2.0 notices are added to the three installer scripts.

Docker image tags

Layer / File(s) Summary
Update Docker image tags
jenkins/current_image_tags.properties
Five image tags change from build 202611020300-19783 to 202611030656-21516; their image variants and other tag components remain unchanged.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant IntegrationTest
  participant CTX_0
  participant GEN_0
  participant GenerationServer
  participant LogValidator
  IntegrationTest->>CTX_0: Probe EFA provider and record hostname
  IntegrationTest->>GEN_0: Probe EFA provider and record hostname
  IntegrationTest->>GenerationServer: Request reference completions
  IntegrationTest->>GenerationServer: Send routed completion requests
  IntegrationTest->>LogValidator: Validate collected worker logs
Loading

Suggested reviewers: brnguyen2, emmaqiaoch

Merge Risk: Minimal · up to fbdfb

No actionable merge-blocking defect is established. Check the reported CI failures through normal validation before merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title names two changes: isolating the fallback hwloc install and adding EFA functional CI coverage. The changeset matches both. The hwloc change is in install_nixl.sh and the README. The EFA CI c…
Description check Passed The description follows the repository template. It has Description, Test Coverage, and PR Checklist sections, and the checklist is marked. The Description section states the problem and the solution …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names two changes: isolating the fallback hwloc install and adding EFA functional CI coverage. The changeset matches both. The hwloc change is in install_nixl.sh and the README. The EFA CI coverage is in the new test, test list, perf-sanity YAML, efa_validation helper, Jenkins stage, and multi-GPU file selection. The title does not mention the five image-tag updates or the license-header additions, but it does not need to cover every detail. The title follows the required [None][fix] format.

Full details: Description check

Explanation

The description follows the repository template. It has Description, Test Coverage, and PR Checklist sections, and the checklist is marked. The Description section states the problem and the solution clearly. It covers the hwloc isolation, the two-node B300 EFA test, the validation approach, and the image-tag update. The Test Coverage section is detailed and lists the commands, commits, and results. Two gaps remain. The description does not name a specific ticket or NVBugs ID in the title, and the Test Coverage section reports on earlier runs without a complete passing result for the current head. The author also notes that full Jenkins L0 validation is still pending and that the prior L0 reported H100 KV cache V2 errors. These are open items, not missing sections.

Full details: Docstring Coverage

Explanation

Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 5 functions across 7 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 85e9038 and fbdfb74.

Files selected for processing: 1
  • tests/scripts/perf-sanity/disaggregated/b300_qwen3_0.6b_efa_functional.yaml
Files with no reviewable changes: 1
  • tests/scripts/perf-sanity/disaggregated/b300_qwen3_0.6b_efa_functional.yaml

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

@chzblych
chzblych force-pushed the codex/pr19783-container-deps branch from cd59d75 to 37f7b76 Compare November 3, 2026 05:40

chzblych commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --stage-list "Build-Docker-Images" --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #82213 [ run ] triggered by Bot. Commit: 37f7b76 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #82213 [ run ] completed with state FAILURE. Commit: 37f7b76
/LLM/main/L0_MergeRequest_PR pipeline #67842 (Partly Tested) completed with status: 'FAILURE'

CI Report

⚠️ 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

CI Agent Failure Analysis

Link to invocation

@chzblych

chzblych commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #82305 [ run ] triggered by Bot. Commit: 85e9038 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #82305 [ run ] completed with state FAILURE. Commit: 85e9038
/LLM/main/L0_MergeRequest_PR pipeline #67926 completed with status: 'FAILURE'

CI Report

⚠️ 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

CI Agent Failure Analysis

Link to invocation

@ruodil ruodil left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review summary - Approve

Reviewed the full diff; no blocking or major issues found.

Automated review by NVCortex Lite, run by @ruodil.

chzblych commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #82414 [ run ] triggered by Bot. Commit: fbdfb74 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #82414 [ run ] completed with state SUCCESS. Commit: fbdfb74
/LLM/main/L0_MergeRequest_PR pipeline #68029 completed with status: 'FAILURE'

CI Report

⚠️ 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

CI Agent Failure Analysis

Link to invocation

chzblych commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #82779 [ run ] triggered by Bot. Commit: fbdfb74 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #82779 [ run ] completed with state SUCCESS. Commit: fbdfb74
/LLM/main/L0_MergeRequest_PR pipeline #68348 completed with status: 'FAILURE'

CI Report

⚠️ 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

CI Agent Failure Analysis

Link to invocation

chzblych commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #82810 [ run ] triggered by Bot. Commit: fbdfb74 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #82810 [ run ] completed with state SUCCESS. Commit: fbdfb74
/LLM/main/L0_MergeRequest_PR pipeline #68377 completed with status: 'SUCCESS'

CI Report

Link to invocation

@chzblych
chzblych merged commit 3016ade into NVIDIA:main Nov 6, 2026
@chzblych
chzblych deleted the codex/pr19783-container-deps branch November 6, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants