Skip to content

Conversation

@ZhanruiSunCh
Copy link
Collaborator

@ZhanruiSunCh ZhanruiSunCh commented Jul 17, 2025

…d multi GPU(For SBSA)

Summary by CodeRabbit

  • New Features

    • Added a dedicated single-GPU test stage for SBSA with clear stage naming and error handling.
    • Multi-GPU test stages for both x86_64 and SBSA now run only if explicitly required in the build description.
  • Improvements

    • Build descriptions now specify architecture when requesting multi-GPU testing, improving clarity in job requirements.
    • Enhanced error handling and control flow for SBSA test stages, ensuring accurate test execution and reporting.

Description

Test Coverage

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 [--disable-fail-fast --skip-test --stage-list "A10-1, xxx" --gpu-type "A30, H100_PCIe" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-[Post-Merge]-1, xxx"]

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

--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-1, xxx" (OPTIONAL) : Only run the specified test stages. Examples: "A10-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.

--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. Will also run 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-[Post-Merge]-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-[Post-Merge]-1, xxx".

For guidance on mapping tests to stage names, see docs/source/reference/ci-overview.md.

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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 17, 2025

Walkthrough

The changes update Jenkins pipeline scripts to distinguish between x86_64 and SBSA architectures when handling multi-GPU test requirements. The build description markers and conditional logic for launching single- and multi-GPU test stages are now architecture-specific, with explicit gating and error handling for SBSA multi-GPU tests based on test outcomes and job type.

Changes

File(s) Change Summary
jenkins/L0_MergeRequest.groovy Refactored test stage logic: introduced explicit SBSA single-GPU stage, renamed SBSA multi-GPU stage, added architecture-specific multi-GPU gating, and improved error handling.
jenkins/L0_Test.groovy Made multi-GPU marker in parent job description architecture-specific using dynamic string interpolation.

Sequence Diagram(s)

sequenceDiagram
    participant Jenkins
    participant L0_MergeRequest
    participant L0_Test

    Jenkins->>L0_MergeRequest: Start pipeline
    L0_MergeRequest->>L0_Test: Launch single-GPU test (x86_64 or SBSA)
    L0_Test->>L0_MergeRequest: Report result, update parent job description with arch-specific marker if needed
    alt Multi-GPU required (x86_64 or SBSA)
        L0_MergeRequest->>L0_Test: Launch multi-GPU test (only if single-GPU passes or post-merge)
        L0_Test->>L0_MergeRequest: Report multi-GPU test result
    end
Loading

Suggested reviewers

  • chzblych

Poem

A bunny hopped through Jenkins' code,
Sorting tests for each new load.
x86 and SBSA, now set apart,
Multi-GPU markers, a work of art!
With careful checks and logic flow,
Our pipeline’s smarter—onward we go!
🐇✨


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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: 0

🧹 Nitpick comments (2)
jenkins/L0_Test.groovy (2)

7-11: Duplicate KubernetesManager import – remove one occurrence

com.nvidia.bloom.KubernetesManager is imported twice (lines 7 and 10). Duplicate imports add noise and may confuse static-analysis tools.

-import com.nvidia.bloom.KubernetesManager

2308-2311: Guard against unknown architectures & keep marker values explicit

archStr currently defaults to "SBSA" for every non-x86_64 value.
If env.targetArch is unset or a future arch constant is introduced, the marker string will silently mis-classify the build. Consider explicit branching with a safe fallback.

-        def archStr = env.targetArch == X86_64_TRIPLE ? "x86_64" : "SBSA"
+        def archStr
+        switch (env.targetArch) {
+            case X86_64_TRIPLE:
+                archStr = "x86_64"
+                break
+            case AARCH64_TRIPLE:
+                archStr = "SBSA"
+                break
+            default:
+                archStr = "unknown"
+        }

This makes later consumers aware of unsupported targets instead of treating everything as SBSA.

Would you like a follow-up grep script to ensure every pipeline that parses the build description recognises the new "unknown" marker?

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e821c68 and 67040a2.

📒 Files selected for processing (2)
  • jenkins/L0_MergeRequest.groovy (4 hunks)
  • jenkins/L0_Test.groovy (1 hunks)
🔇 Additional comments (4)
jenkins/L0_MergeRequest.groovy (4)

975-975: Architecture-specific multi-GPU testing marker looks good.

The change from generic "Require Multi-GPU Testing" to "Require x86_64 Multi-GPU Testing" properly distinguishes between architectures, aligning with the PR's objective to split test pipelines.


1033-1078: SBSA single-GPU test stage implementation is well-structured.

The new stage follows the established pattern from x86_64 testing with proper:

  • Error handling that respects SBSA_TEST_CHOICE configuration
  • Failure tracking via singleGpuTestFailed for multi-GPU gating
  • Clear stage naming and job invocation

1080-1099: Multi-GPU gating logic properly handles test dependencies.

The implementation correctly:

  • Checks for SBSA-specific multi-GPU testing marker
  • Blocks multi-GPU tests in pre-merge when single-GPU fails (preventing resource waste)
  • Allows multi-GPU tests to proceed in post-merge for comprehensive validation
  • Mirrors the x86_64 pattern for consistency

1101-1114: Clear naming for SBSA multi-GPU stage and job.

The changes improve clarity by:

  • Explicitly naming the stage as "[Test-SBSA-Multi-GPU]"
  • Using the descriptive job name "L0_Test-SBSA-Multi-GPU"

This aligns perfectly with the PR's goal of splitting single and multi-GPU test pipelines.

@ZhanruiSunCh ZhanruiSunCh changed the title infra: [TRTLLM-6499] Split L0_Test into two pipeline by single GPU an… infra: [TRTLLM-6499] Split L0_Test into two pipeline by single GPU and multi GPU(For SBSA) Jul 17, 2025
@ZhanruiSunCh
Copy link
Collaborator Author

/bot run --skip-test --add-multi-gpu-test

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12173 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12173 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #9041 (Partly Tested) completed with status: 'SUCCESS'

@ZhanruiSunCh ZhanruiSunCh force-pushed the user/zhanruis/0717_split_l0_for_sbsa branch from 67040a2 to 48b068d Compare July 24, 2025 09:06
@ZhanruiSunCh
Copy link
Collaborator Author

/bot run --skip-test --add-multi-gpu-test

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12833 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12833 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #9566 (Partly Tested) completed with status: 'SUCCESS'

@ZhanruiSunCh
Copy link
Collaborator Author

@coderabbitai review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 25, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ZhanruiSunCh
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12975 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12975 [ run ] completed with state FAILURE
/LLM/main/L0_MergeRequest_PR pipeline #9680 completed with status: 'FAILURE'

@ZhanruiSunCh
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13111 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13111 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #9808 completed with status: 'SUCCESS'

@ZhanruiSunCh ZhanruiSunCh force-pushed the user/zhanruis/0717_split_l0_for_sbsa branch from 48b068d to c1048e9 Compare July 28, 2025 10:03
@ZhanruiSunCh
Copy link
Collaborator Author

/bot reuse-pipeline

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13188 [ reuse-pipeline ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13188 [ reuse-pipeline ] completed with state FAILURE
Can't reuse PR_Github #0 with status: UNKNOWN

@ZhanruiSunCh
Copy link
Collaborator Author

/bot reuse-pipeline

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13190 [ reuse-pipeline ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13190 [ reuse-pipeline ] completed with state SUCCESS
Reusing PR_Github #13111 for commit c1048e9

Signed-off-by: ZhanruiSunCh <[email protected]>
Signed-off-by: ZhanruiSunCh <[email protected]>
@ZhanruiSunCh ZhanruiSunCh force-pushed the user/zhanruis/0717_split_l0_for_sbsa branch from c1048e9 to f707744 Compare July 28, 2025 15:47
@ZhanruiSunCh
Copy link
Collaborator Author

/bot reuse-pipeline

@ZhanruiSunCh ZhanruiSunCh enabled auto-merge (squash) July 28, 2025 15:48
@tensorrt-cicd
Copy link
Collaborator

PR_Github #13216 [ reuse-pipeline ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13216 [ reuse-pipeline ] completed with state FAILURE
Can't reuse PR_Github #0 with status: UNKNOWN

@ZhanruiSunCh
Copy link
Collaborator Author

/bot reuse-pipeline 9808

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13265 Bot args parsing error: usage: /bot [-h]
{run,kill,skip,submit,reviewers,reuse-pipeline,reuse-review} ...
/bot: error: unrecognized arguments: 9808

@ZhanruiSunCh
Copy link
Collaborator Author

/bot skip --comment "/LLM/main/L0_MergeRequest_PR pipeline #9808 completed with status: 'SUCCESS'"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13275 [ skip ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13275 [ skip ] completed with state SUCCESS
Skipping testing for commit f707744

@ZhanruiSunCh ZhanruiSunCh merged commit 64ba483 into NVIDIA:main Jul 29, 2025
3 checks passed
lancelly pushed a commit to lancelly/TensorRT-LLM that referenced this pull request Aug 6, 2025
…d multi GPU(For SBSA) (NVIDIA#6132)

Signed-off-by: ZhanruiSunCh <[email protected]>
Signed-off-by: Lanyu Liao <[email protected]>
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.

4 participants