- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.8k
[TRTLLM-6893][infra] Disable the x86 / SBSA build stage when run BuildDockerImage #6729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TRTLLM-6893][infra] Disable the x86 / SBSA build stage when run BuildDockerImage #6729
Conversation
| Warning Rate limit exceeded@ZhanruiSunCh has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 4 minutes and 42 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the  We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (3)
 📝 WalkthroughWalkthroughAdded catchError wrappers around two stages in the Docker image build pipeline, fixed a polling bug in artifact-wait logic, gated sanity-check execution to post-merge jobs, removed specific stages for pre-merge Docker-image runs, and tightened test-job filtering to require a non-empty auto-trigger tag list. Changes
 Sequence Diagram(s)sequenceDiagram
    participant Pipeline as Jenkins Pipeline
    participant ArtifactHost as Remote Artifact Host
    participant SanityJob as BuildDockerImageSanityTest
    Pipeline->>ArtifactHost: Poll for build artifacts (loop)
    alt All artifacts found
        Pipeline->>Pipeline: Log success and continue
    else Missing artifacts / timeout
        Pipeline->>Pipeline: throw error (caught by catchError -> mark stage FAILED)
    end
    Pipeline->>SanityJob: Trigger downstream sanity job (with params)
    SanityJob-->>Pipeline: Return status
    alt Success
        Pipeline->>Pipeline: Continue
    else Failure/Error
        Pipeline->>Pipeline: catchError marks stage FAILED
    end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
 Suggested reviewers
 ✨ Finishing Touches🧪 Generate unit tests
 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit: 
 SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type  Other keywords and placeholders
 Status, Documentation and Community
 | 
| /bot run --stage-list "Build-Docker-Images" | 
| PR_Github #14553 [ run ] triggered by Bot | 
| PR_Github #14553 [ run ] completed with state  | 
555216f    to
    a9579e9      
    Compare
  
    | /bot run --stage-list "Build-Docker-Images" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
jenkins/BuildDockerImage.groovy (1)
556-605: Robust, readable artifact polling with clear failure semantics: LGTM with two small nitsThe catchError wrapper correctly marks the stage as failed without aborting the whole pipeline, and the missingFiles evaluation is now correct. Two optional refinements:
- Prefer the Jenkins-native sleep form for clarity.
- Consider using a timeout block to avoid manual elapsed-time arithmetic.
Apply either or both of these minimal tweaks:
- sleep(pollIntervalSeconds) + sleep time: pollIntervalSeconds, unit: 'SECONDS'Or wrap the polling with timeout:
- def startTime = System.currentTimeMillis() - def maxWaitMs = maxWaitMinutes * 60 * 1000 - while ((System.currentTimeMillis() - startTime) < maxWaitMs) { + timeout(time: maxWaitMinutes, unit: 'MINUTES') { + while (true) { def missingFiles = [] ... - if (missingFiles.isEmpty()) { - echo "All build artifacts are ready!" - return - } + if (missingFiles.isEmpty()) { + echo "All build artifacts are ready!" + return + } ... - sleep time: pollIntervalSeconds, unit: 'SECONDS' - } - def elapsedMinutes = (System.currentTimeMillis() - startTime) / (60 * 1000) - error "Timeout waiting for build artifacts (${elapsedMinutes.intValue()} minutes)" + sleep time: pollIntervalSeconds, unit: 'SECONDS' + } + }
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
- jenkins/BuildDockerImage.groovy(2 hunks)
- jenkins/L0_MergeRequest.groovy(2 hunks)
- jenkins/L0_Test.groovy(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- jenkins/L0_Test.groovy
⏰ 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/L0_MergeRequest.groovy (1)
1232-1233: Gate sanity-check to post-merge only: LGTMPassing runSanityCheck as true only for PostMerge jobs aligns with the goal to skip sanity in pre-merge runs.
jenkins/BuildDockerImage.groovy (1)
617-641: Sanity test stage now consistently marks failures: LGTMWrapping the downstream sanity job in catchError ensures stage-level failure is recorded while the pipeline proceeds to post steps. Parameter wiring (globalVars, enableFailFast=false) looks correct.
| PR_Github #14888 [ run ] triggered by Bot | 
| PR_Github #14888 [ run ] completed with state  | 
a9579e9    to
    2eb1c68      
    Compare
  
    | /bot run --stage-list "Build-Docker-Images" | 
| PR_Github #15112 [ run ] triggered by Bot | 
| PR_Github #15112 [ run ] completed with state  | 
| /bot run | 
2eb1c68    to
    96130c0      
    Compare
  
    | /bot run --stage-list "Build-Docker-Images" | 
| PR_Github #15282 [ run ] triggered by Bot | 
| PR_Github #15282 [ run ] completed with state  | 
96130c0    to
    92b87de      
    Compare
  
    | /bot run --stage-list "Build-Docker-Images" | 
| PR_Github #15411 [ run ] triggered by Bot | 
| PR_Github #15411 [ run ] completed with state  | 
92b87de    to
    517b549      
    Compare
  
    | /bot run --stage-list "Build-Docker-Images" | 
| PR_Github #15870 [ run ] triggered by Bot | 
| PR_Github #15870 [ run ] completed with state  | 
a2dde0d    to
    2124052      
    Compare
  
    …dDockerImage Signed-off-by: ZhanruiSunCh <184402041+ZhanruiSunCh@users.noreply.github.com>
Signed-off-by: ZhanruiSunCh <184402041+ZhanruiSunCh@users.noreply.github.com>
…TAG_LIST mode is true. Signed-off-by: ZhanruiSunCh <184402041+ZhanruiSunCh@users.noreply.github.com>
Co-authored-by: Yanchao Lu <yanchaol@nvidia.com> Signed-off-by: Zhanrui Sun <184402041+ZhanruiSunCh@users.noreply.github.com>
2124052    to
    1d205ef      
    Compare
  
    | /bot run --stage-list "Build-Docker-Images" | 
| PR_Github #17339 [ run ] triggered by Bot | 
| PR_Github #17339 [ run ] completed with state  | 
| /bot skip --comment "only nspect known issue" | 
| PR_Github #17668 [ skip ] triggered by Bot | 
| PR_Github #17668 [ skip ] completed with state  | 
…dDockerImage (NVIDIA#6729) Signed-off-by: ZhanruiSunCh <184402041+ZhanruiSunCh@users.noreply.github.com> Signed-off-by: Zhanrui Sun <184402041+ZhanruiSunCh@users.noreply.github.com> Co-authored-by: Yanchao Lu <yanchaol@nvidia.com>
…dDockerImage (NVIDIA#6729) Signed-off-by: ZhanruiSunCh <184402041+ZhanruiSunCh@users.noreply.github.com> Signed-off-by: Zhanrui Sun <184402041+ZhanruiSunCh@users.noreply.github.com> Co-authored-by: Yanchao Lu <yanchaol@nvidia.com>
Summary by CodeRabbit
Bug Fixes
Chores
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.
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 thestage-listparameter 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.mdand the
scripts/test_to_stage_mapping.pyhelper.kill
killKill all running builds associated with pull request.
skip
skip --comment COMMENTSkip 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-pipelineReuse 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.