Skip to content

Conversation

@dbari
Copy link
Collaborator

@dbari dbari commented Aug 20, 2025

Summary by CodeRabbit

  • New Features

    • Added Triton release builds for both SBSA (ARM64) and x86_64, providing new downloadable artifacts across architectures.
  • Bug Fixes

    • Improved reliability of wheel builds for Triton releases by extending out-of-memory mitigation, reducing build failures.

Description

This PR adds build configurations for building and uploading the tritonrelease image for x86_64 and SBSA in post-merge.

Attention: Building tritonrelease is currently broken, will be fixed after a343e85 is merged from release/1.0 to main during mass integration.

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.

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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 20, 2025

📝 Walkthrough

Walkthrough

Adds two tritonrelease build matrix entries (x86_64 and SBSA) to the Jenkins pipeline and extends the wheel-build OOM mitigation and node selection logic that previously applied to "trtllm" to also apply to "tritonrelease".

Changes

Cohort / File(s) Summary
Jenkins pipeline: tritonrelease build matrix and OOM logic
jenkins/BuildDockerImage.groovy
Added two tritonrelease matrix entries (SBSA and x86_64) with dockerfileStage: "tritonrelease", build_wheel: true, and custom tag suffixes; extended the conditional that applied OOM mitigation and build-node selection from trtllm to also include tritonrelease.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Dev as Developer
  participant J as Jenkins Pipeline
  participant BM as Build Matrix
  participant Node as Build Node (x86_64 / SBSA)
  participant D as Docker Builder
  participant W as Wheel Builder

  Dev->>J: Trigger pipeline
  J->>BM: Expand matrix
  note over BM: matrix includes trtllm and tritonrelease (x86_64, SBSA)
  BM-->>J: Selected job (target, arch, tags, stage)
  J->>J: Evaluate OOM mitigation (applies to trtllm and tritonrelease)
  J->>Node: Select node by arch
  Node->>D: Build Docker image (stage = tritonrelease | trtllm)
  alt build_wheel == true
    D->>W: Build wheel inside image
    W-->>J: Return artifacts/status
  end
  J-->>Dev: Pipeline result
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • chzblych
  • rakib-hasan
  • Shixiaowei02
  • mikeiovine

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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
🪧 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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

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

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 or @coderabbitai title anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@dbari dbari force-pushed the feature/add-tritonrelease-builds branch from 3cc5182 to c3c0a43 Compare August 20, 2025 15:14
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 (1)
jenkins/BuildDockerImage.groovy (1)

318-324: OOM-mitigation now applies to tritonrelease; consider guarding by build_wheel and verify job-count values

Good call extending this to tritonrelease. Two minor follow-ups:

  • Gate this branch on config.build_wheel to avoid unintentionally overriding parallelism for non-wheel builds.
  • BUILD_JOBS_RELEASE_X86_64 and BUILD_JOBS_RELEASE_SBSA are both set to "32", same as BUILD_JOBS. As written, this branch is currently a no-op. Confirm if reduced job counts were intended.

Apply this small guard to keep the behavior tightly scoped:

-        if (target == "trtllm" || target == "tritonrelease") {
+        if (config.build_wheel && (target == "trtllm" || target == "tritonrelease")) {
             if (arch == "x86_64") {
                 build_jobs = BUILD_JOBS_RELEASE_X86_64
             } else {
                 build_jobs = BUILD_JOBS_RELEASE_SBSA
             }
         }

If the intent was to actually lower concurrency for release wheel builds, adjust BUILD_JOBS_RELEASE_* accordingly (e.g., "8" or "16").

📜 Review details

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

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 92daec1 and 3cc5182.

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

403-417: Makefile pattern rules and Dockerfile stage for tritonrelease are present; no changes needed

  • docker/Makefile defines a tritonrelease_% pattern (lines 172–174) and generic %_build/%_push rules that cover tritonrelease_build and tritonrelease_push.
  • docker/Dockerfile.multi includes FROM release AS tritonrelease (line 183).

The new Jenkins entries will schedule the correct build/push targets and reuse the tritonrelease stage as expected.

@tensorrt-cicd
Copy link
Collaborator

PR_Github #15929 [ run ] triggered by Bot

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/BuildDockerImage.groovy (2)

318-324: Future-proof the OOM-mitigation by gating on intent (build_wheel) instead of enumerating targets.

This keeps the logic correct for tritonrelease today and avoids having to touch this block when future wheel-building targets are added.

Apply this diff:

-        if (target == "trtllm" || target == "tritonrelease") {
+        if (config.build_wheel) {
             if (arch == "x86_64") {
                 build_jobs = BUILD_JOBS_RELEASE_X86_64
             } else {
                 build_jobs = BUILD_JOBS_RELEASE_SBSA
             }
         }

403-417: Confirm intent: wheel reuse from build stage is disabled for tritonrelease.

prepareWheelFromBuildStage only acts for dockerfileStage == "release", so the new tritonrelease configs won’t reuse wheels from a prior build-stage even if useWheelFromBuildStage=true. If you meant to enable reuse for tritonrelease as well, extend the allowlist.

Proposed adjustment in prepareWheelFromBuildStage (outside this hunk):

// Treat tritonrelease as release-like for wheel reuse
def releaseStages = ["release", "tritonrelease"]
if (!releaseStages.contains(dockerfileStage)) {
    echo "prepareWheelFromBuildStage: ${dockerfileStage} is not release-like"
    return ""
}
📜 Review details

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

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 3cc5182 and c3c0a43.

📒 Files selected for processing (1)
  • jenkins/BuildDockerImage.groovy (2 hunks)
⏰ 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 (2)
jenkins/BuildDockerImage.groovy (2)

403-417: LGTM: New tritonrelease build configurations are consistent with existing patterns.

  • Correctly mirrors the trtllm release entries for x86_64 and SBSA.
  • build_wheel: true ensures the arm64 node-affinity workaround kicks in for SBSA.

403-417: tritonrelease targets present in Makefile and Dockerfile.multi

  • docker/Makefile includes a tritonrelease_% pattern rule (lines 172–174)
  • Dockerfile.multi defines a FROM release AS tritonrelease stage (line 183)
  • Note: BUILD_WHEEL_OPTS isn’t referenced in the tritonrelease targets; confirm whether that’s intentional or if support needs to be added.

@tensorrt-cicd
Copy link
Collaborator

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

@dbari dbari force-pushed the feature/add-tritonrelease-builds branch from c3c0a43 to c96ca99 Compare September 2, 2025 07:53
@dbari
Copy link
Collaborator Author

dbari commented Sep 2, 2025

/bot run --skip-test --extra-stage "Build-Docker-Images"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #17327 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@dbari
Copy link
Collaborator Author

dbari commented Sep 5, 2025

/bot run --skip-test --extra-stage "Build-Docker-Images"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #17757 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #17757 [ run ] completed with state DISABLED
L0 testing is limited to prioritized users. User dbari is not in the prioritized list. L0 testing cannot be triggered.

Signed-off-by: Dimitrios Bariamis <[email protected]>
@dbari dbari force-pushed the feature/add-tritonrelease-builds branch from c96ca99 to 3f807fe Compare September 5, 2025 12:32
@dbari dbari marked this pull request as ready for review September 5, 2025 12:32
@dbari dbari requested review from a team as code owners September 5, 2025 12:32
@dbari
Copy link
Collaborator Author

dbari commented Sep 5, 2025

@ZhanruiSunCh this PR is as we had talked about a few weeks ago. I can't start a run now, but it should work as shown by the last run (failed only due to unrelated issue). I'll start a run as soon as the CI is available.

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.

2 participants