Skip to content

Conversation

chzblych
Copy link
Collaborator

@chzblych chzblych commented Jul 17, 2025

Summary by CodeRabbit

  • New Features
    • Added support for handling a "waives.txt" file during multi-node SLURM test execution, enabling remote test environments to access waiver lists.
  • Chores
    • Introduced a configuration file for automated review settings and language preferences.
  • Documentation
    • Improved the pull request template with clearer instructions and formatting guidance for PR titles and descriptions.

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

@chzblych chzblych requested a review from a team as a code owner July 17, 2025 16:27
Copy link
Contributor

coderabbitai bot commented Jul 17, 2025

Walkthrough

A new .coderabbit.yaml configuration file was added, and the pull request template was updated for clearer instructions. The SLURM multi-node test execution pipeline was modified to support a "waives.txt" file, propagating its path via environment variables and passing it as a command-line argument to pytest in the SLURM run script.

Changes

File(s) Change Summary
.coderabbit.yaml Added configuration file with license header, schema, language, and review settings.
.github/pull_request_template.md Updated template with improved, commented-out instructions and title/description formatting guidance.
jenkins/L0_Test.groovy Added logic to upload and export path for "waives.txt" in multi-node SLURM test execution.
jenkins/scripts/slurm_run.sh Added --waives-file argument to pytest invocation using the exported environment variable.

Sequence Diagram(s)

sequenceDiagram
    participant Jenkins as Jenkins Pipeline
    participant Node as Remote Node
    participant Pytest as Pytest

    Jenkins->>Node: Upload test list and waives.txt via scp
    Jenkins->>Node: Generate job launch script exporting waivesListPathNode
    Node->>Pytest: Invoke pytest with --waives-file=$waivesListPathNode
    Pytest-->>Node: Access waives.txt during test execution
Loading

Possibly related PRs

Suggested reviewers

  • litaotju
  • ZhanruiSunCh

Poem

In the warren of code, a file hops anew,
Waives.txt joins the journey, in pipelines it grew.
Jenkins and SLURM now pass it along,
With templates improved, our process is strong.
🐇✨
Reviewers assemble, let’s hop right through!

✨ Finishing Touches
  • 📝 Generate Docstrings

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

@coderabbitai coderabbitai bot changed the title @coderabbitai Add .coderabbit.yaml, update PR template, and enhance SLURM pipeline for waives.txt Jul 17, 2025
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: 1

🔭 Outside diff range comments (1)
jenkins/scripts/slurm_run.sh (1)

49-56: Quote-splitting bug across several array items

Array elements that embed spaces ("--rootdir $llmSrcNode/tests/integration/defs", "--splits $splits", "--group $splitId") will be re-split when ${testCmdLines[*]} is eval-ed, turning each into two separate arguments and breaking PyTest parsing.

Safer pattern:

testCmdLines+=(
  "--rootdir" "$llmSrcNode/tests/integration/defs"
  "--splits"  "$splits"
  "--group"   "$splitId"
)

Refactoring now will avoid hard-to-diagnose CI failures.

🧹 Nitpick comments (3)
.coderabbit.yaml (1)

16-23: Validate YAML keys & consider conditional commit_status usage

The structure is schema-compliant, but two quick checks are worthwhile:

  1. commit_status: false suppresses PR-check updates from CodeRabbit. If your workflow (e.g. Gerrit/Jenkins gating) relies on commit status, this will silently disable it.
  2. base_branches: ["main", "release/.+"] is accepted, yet a more explicit pattern such as release/.* is often clearer for readers.

No action required if this is intentional, otherwise adjust:

-    base_branches: ["main", "release/.+"]
+    base_branches: ["main", "release/.*"]
-  commit_status: false
+#  commit_status: true        # enable if downstream jobs depend on it
.github/pull_request_template.md (1)

12-15: Minor Markdown formatting issue in the link example

[https://nvbugs/1234567][fix] renders the raw URL as the link text. If the intent is a clickable link with descriptive text, use standard Markdown:

[fix] [NVBug 1234567](https://nvbugs/1234567)
jenkins/L0_Test.groovy (1)

329-332: Consider adding error handling for missing waives.txt file

The scp command will fail if the waives.txt file doesn't exist at the expected local path. Consider adding a file existence check or error handling to gracefully handle cases where the waives file might be missing.

                // Upload waives.txt to Frontend node
                def waivesListLocalPath = "${llmSrcLocal}/tests/integration/test_lists/waives.txt"
+               // Check if waives.txt exists before attempting to copy
+               if (sh(script: "test -f ${waivesListLocalPath}", returnStatus: true) == 0) {
                    Utils.exec(pipeline, script: "sshpass -p '${remote.passwd}' scp -r -p -oStrictHostKeyChecking=no ${waivesListLocalPath} ${remote.user}@${remote.host}:${waivesListPathNode}",)
+               } else {
+                   echo "Warning: waives.txt not found at ${waivesListLocalPath}, skipping upload"
+               }
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 4d0bcbc and 10bdb3c.

📒 Files selected for processing (4)
  • .coderabbit.yaml (1 hunks)
  • .github/pull_request_template.md (1 hunks)
  • jenkins/L0_Test.groovy (3 hunks)
  • jenkins/scripts/slurm_run.sh (1 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/L0_Test.groovy (2)

312-312: LGTM - Consistent variable declaration

The waivesListPathNode variable follows the same naming convention and path construction pattern as other similar variables in the function.


370-370: LGTM - Proper environment variable export

The environment variable export follows the correct syntax and naming convention, making the waives file path available to the remote execution environment.

@chzblych
Copy link
Collaborator Author

/bot run --stage-list "GB200-8_GPUs-2_Nodes-PyTorch-[Post-Merge]-1, GB200-8_GPUs-2_Nodes-PyTorch-[Post-Merge]-2, GB200-8_GPUs-2_Nodes-PyTorch-[Post-Merge]-3, GB200-8_GPUs-2_Nodes-PyTorch-[Post-Merge]-4"

@chzblych chzblych changed the title Add .coderabbit.yaml, update PR template, and enhance SLURM pipeline for waives.txt [None][infra] Cherry-pick #6128 and #6130 from main branch Jul 17, 2025
@tensorrt-cicd
Copy link
Collaborator

PR_Github #12219 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12219 [ run ] completed with state SUCCESS
/LLM/release-0.21/L0_MergeRequest_PR pipeline #256 (Partly Tested) completed with status: 'SUCCESS'

@chzblych
Copy link
Collaborator Author

/bot skip --comment "Related test stages passed"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12260 [ skip ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12260 [ skip ] completed with state SUCCESS
Skipping testing for commit 10bdb3c

@chzblych chzblych enabled auto-merge (squash) July 18, 2025 03:02
@chzblych chzblych disabled auto-merge July 18, 2025 03:02
@chzblych chzblych merged commit eeca3ad into NVIDIA:release/0.21 Jul 18, 2025
4 checks passed
@chzblych chzblych deleted the yanchaol-release-cp branch July 18, 2025 03:02
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.

3 participants