Skip to content

[None][fix] Localize build arguments and sanity pod configurations - #22102

Merged
chzblych merged 4 commits into
NVIDIA:mainfrom
chzblych:fix/slurm-agent-runner-isolation
Nov 11, 2026
Merged

chzblych merged 4 commits into
NVIDIA:mainfrom
chzblych:fix/slurm-agent-runner-isolation

Conversation

@chzblych

@chzblych chzblych commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Problem

When NGC devel sanity runs both architectures in parallel, runLLMBuild stores buildArgs in the script binding and reads it after entering withEnv. One branch can therefore use the other branch's CUDA target list.

Package and image sanity pod specifications are also stored in the script binding even though each is only needed by its own branch.

Solution

Declare buildArgs, pipInstallSanitySpec, and both imageSanitySpec assignments as local variables. The pod-spec changes prevent unnecessary shared state; the demonstrated interleaving bug is in buildArgs.

Existing withEnv and test-execution timeout semantics are preserved. Related: #22101.

Test Coverage

Validation

  • Jenkins CPS A/B test using extracted production build-command code: forced interleaving at withEnv reproduces the original CUDA-target mix-up; the fix preserves the amd64 and arm64 command arguments.
  • Six parallel pod-configuration cases preserve their own image, architecture, and pod type. The local declarations leave existing script-binding values untouched.
  • Build execution and pod launches are mocked; no container or GPU workload is run.
  • Repository pre-commit and DCO checks pass.

PR Checklist

  • Reviewed the contribution checklist: scope, coding guidelines, focused validation, and existing ownership. No public API, dependency, or architecture changes.

Dev Engineer Review

jenkins/L0_Test.groovy now declares buildArgs, pipInstallSanitySpec, and imageSanitySpec as local variables. This prevents shared Jenkins script-binding state across parallel architecture and image-sanity runs. Existing build arguments, withEnv usage, and timeout behavior remain unchanged.

QA Engineer Review

No test changes.

Per-File QA Perspective

  • jenkins/L0_Test.groovy: Verify parallel amd64 and arm64 runs use the correct build arguments and pod specifications. Verify existing build, LLMAPI, and image-sanity flows remain unchanged.

@chzblych chzblych changed the title [#19173][fix] Isolate Slurm runners and bound agent waits [#19173][fix] Isolate Slurm runners across parallel test branches Nov 11, 2026
@chzblych chzblych closed this Nov 11, 2026
@chzblych chzblych changed the title [#19173][fix] Isolate Slurm runners across parallel test branches [#19173][fix] Localize build arguments and sanity pod configurations Nov 11, 2026
@chzblych chzblych reopened this Nov 11, 2026
@chzblych
chzblych marked this pull request as ready for review November 11, 2026 14:07
@chzblych
chzblych requested a review from a team as a code owner November 11, 2026 14:07
@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 Jenkins test pipeline now declares buildArgs, pipInstallSanitySpec, and imageSanitySpec locally before use. Their initial values and subsequent modifications remain unchanged.

Changes

Jenkins variable scope

Layer / File(s) Summary
Local build and sanity-test variables
jenkins/L0_Test.groovy
buildArgs and the LLMAPI and image-sanity pod specifications are declared locally. Their existing values and use are unchanged.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Merge Risk: Minimal · up to 588e3

This change makes Jenkins build and sanity variables local, so parallel runs no longer share state. It does not change values or behavior otherwise. No merge-blocking risk remains.

Architecture risk: Low · up to 588e3

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: buildArgs is now locally declared in runLLMBuild; its initial value and later modifications are unchanged.
  • observed — Modified behavior in jenkins/L0_Test.groovy: pipInstallSanitySpec is now locally declared in the LLMAPI test stage before being passed to the retrying pod launcher.
  • observed — Modified behavior in jenkins/L0_Test.groovy: imageSanitySpec is now locally declared in the installed-wheel image-sanity branch before use.
  • observed — Modified behavior in jenkins/L0_Test.groovy: imageSanitySpec is now locally declared in the image-build sanity branch before being passed to the pod launcher.
Pre-merge checks: Passed 4

Check name Status Explanation
Description check Passed The description explains the concurrency problem, the local-variable solution, preserved behavior, validation performed, and checklist status. It follows the required sections and is sufficiently comp…
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.
Title check Passed The title clearly and concisely describes the main change: localizing build arguments and sanity pod configurations.
Full details: Description check

Explanation

The description explains the concurrency problem, the local-variable solution, preserved behavior, validation performed, and checklist status. It follows the required sections and is sufficiently complete.

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 fec3d91 and 588e3e3.

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.

@chzblych chzblych changed the title [#19173][fix] Localize build arguments and sanity pod configurations [None][fix] Localize build arguments and sanity pod configurations Nov 11, 2026
@chzblych
chzblych merged commit 3fc0343 into NVIDIA:main Nov 11, 2026
@chzblych
chzblych deleted the fix/slurm-agent-runner-isolation branch November 11, 2026 14:19
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.

1 participant