Skip to content

[None][fix] Keep Slurm runners local to each parallel branch - #22101

Merged
ZhanruiSunCh merged 1 commit into
NVIDIA:mainfrom
ZhanruiSunCh:user/zhanruis/1111_local_slurm_runner
Nov 11, 2026
Merged

ZhanruiSunCh merged 1 commit into
NVIDIA:mainfrom
ZhanruiSunCh:user/zhanruis/1111_local_slurm_runner

Conversation

@ZhanruiSunCh

@ZhanruiSunCh ZhanruiSunCh commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Description

slurmRunner was assigned without def in runLLMTestlistWithAgent, making it a shared script Binding property across parallel stages. The withEnv body added in #19174 delays reading that property, allowing another branch to overwrite it before it is passed to executeLLMTestOnSlurm. A branch can then use another stage's node/runner and wait for its executor outside the runner's timeout.

Declare the variable locally so each stage invocation keeps its own runner. This is a one-line fix; existing runtime-image propagation, timeout values and retry behavior are retained.

Observed executor waiting in Single-GPU build #10120; the cross-branch overwrite mechanism was independently reproduced in the sandbox below.

Test Coverage

Controller-only Jenkins sandbox reproduction compared eight parallel branches:

  • Shared variable before withEnv: 0/8 incorrect runner selections.
  • Shared variable with withEnv: 7/8 branches selected another branch's runner.
  • Local variable with withEnv: 0/8 incorrect runner selections.

The reproduction uses withEnv directly without adding sleeps to force interleaving. It allocates no GPU or Slurm resources. Pre-commit and DCO checks passed. Full production Slurm CI has not yet been rerun with this fix.

PR Checklist

  • Reviewed the one-line scope change and completed the sandbox comparison and repository checks.

Dev Engineer Review

slurmRunner is now a local variable initialized inside runLLMTestlistWithAgent. This prevents parallel branches from overwriting each other’s runner before executeLLMTestOnSlurm uses it. No other behavior changes are shown.

QA Engineer Review

No test changes.

Per-File QA Perspective

  • jenkins/L0_Test.groovy: Verify that parallel Slurm branches use their own runner. Confirm timeout, retry, and container-runtime behavior remains unchanged.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The slurmRunner local in runLLMTestlistWithAgent is initialized to null at its declaration. No other behavioral change is shown.

Changes

Local Initialization

Layer / File(s) Summary
Initialize slurmRunner at declaration
jenkins/L0_Test.groovy
The declaration now initializes slurmRunner to null. The separate assignment is removed.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Merge Risk: Minimal · up to d6db0

This change keeps each parallel Slurm test branch using its own runner. No concrete merge-blocking risk was found. Full production Slurm CI has not yet been rerun, which is normal validation uncertainty.

Architecture risk: Low · up to d6db0

The change affects 1 system.

Changed systems: jenkins

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — jenkins (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in jenkins/L0_Test.groovy: slurmRunner is initialized to null at its declaration instead of being assigned null in a separate statement.
Pre-merge checks: Passed 5

Check name Status Explanation
Description check Passed The description clearly explains the shared-binding issue, the local-variable fix, observed impact, and test coverage. It includes the required Description, Test Coverage, and PR Checklist sections. I…
Title check Passed The title clearly and concisely describes the main change: keeping Slurm runners local to each parallel branch. It uses the required ticket and type format.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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: Description check

Explanation

The description clearly explains the shared-binding issue, the local-variable fix, observed impact, and test coverage. It includes the required Description, Test Coverage, and PR Checklist sections. It also states that full production Slurm CI has not been rerun, which provides important test-status context.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. 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 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e8e9444 and d6db025.

Files selected for processing: 1

  • jenkins/L0_Test.groovy

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

@github-actions

Copy link
Copy Markdown

Automatically added "ci: full pre-merge approved" because this PR has satisfied the required GitHub review approvals. Unresolved review conversations and other required checks remain independent merge requirements.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Add Carrot credits or activate Agent usage billing to use Autofix

@ZhanruiSunCh

Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "Quick fix"

@ZhanruiSunCh
ZhanruiSunCh enabled auto-merge (squash) November 11, 2026 08:59
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84092 [ skip ] triggered by Bot. Commit: d6db025 Link to invocation

@ZhanruiSunCh
ZhanruiSunCh merged commit 6edbe38 into NVIDIA:main Nov 11, 2026
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84092 [ skip ] completed with state SUCCESS. Commit: d6db025
Skipping testing for commit d6db025

Link to invocation

chenfeiz0326 added a commit to chenfeiz0326/TensorRT-LLM that referenced this pull request Nov 11, 2026
Picks up NVIDIA#22101, the CI fix that pre-merge pipelines load from the branch.

Signed-off-by: chenfeiz0326 <[email protected]>
This was referenced Nov 12, 2026
Epsilon006 added a commit to Epsilon006/TensorRT-LLM that referenced this pull request Nov 12, 2026
…amps

Rebase the existing PR changes onto upstream main c868288, including the CI hang fix from NVIDIA#22101. Retain the upstream prefix-tokenization cache integration and the existing sampling provenance, source timestamps, explicit rescale controls and regression coverage.

Signed-off-by: Alpinist <[email protected]>
ConstBob added a commit to ConstBob/TensorRT-LLM that referenced this pull request Nov 12, 2026
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.

5 participants