Skip to content

[Build] Fix nuget pipelines to pass IsReleaseBuild to validate-package#27387

Merged
tianleiwu merged 1 commit intomainfrom
tlwu/20260218/is_release_build_in_nuget_pipelines
Feb 24, 2026
Merged

[Build] Fix nuget pipelines to pass IsReleaseBuild to validate-package#27387
tianleiwu merged 1 commit intomainfrom
tlwu/20260218/is_release_build_in_nuget_pipelines

Conversation

@tianleiwu
Copy link
Copy Markdown
Contributor

@tianleiwu tianleiwu commented Feb 19, 2026

Summary

This PR fixes an issue where the is_release_build parameter was not being correctly passed to the validate_package.py script across various Azure Pipelines.

Changes

  • Updated the combined CUDA packaging stage and its sub-stages to pass the IsReleaseBuild parameter through the template chain.
  • Added missing IsReleaseBuild parameter definitions to following templates:
    tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml
    tools/ci_build/github/azure-pipelines/stages/nuget-win-cuda-packaging-stage.yml
  • Ensured all calls to validate-package.yml (including the main CUDA NuGet stage) now explicitly pass the IsReleaseBuild flag.

Context

It is based on #27382.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where the IsReleaseBuild parameter was not being correctly passed to the validate_package.py script in various Azure Pipeline stages for CUDA NuGet packaging. The parameter is required by the validation script to properly verify packages based on whether they are release builds or not.

Changes:

  • Added IsReleaseBuild parameter definitions to nuget-win-cuda-packaging-stage.yml and nuget-linux-cuda-packaging-stage.yml templates with default value of false
  • Updated nuget-combine-cuda-stage.yml to pass the IsReleaseBuild parameter to Linux and Windows CUDA packaging sub-stages
  • Added IsReleaseBuild parameter to all three validate-package.yml template calls in nuget-cuda-packaging-stage.yml for validating the combined Gpu, Gpu.Windows, and Gpu.Linux packages

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
tools/ci_build/github/azure-pipelines/stages/nuget-win-cuda-packaging-stage.yml Added IsReleaseBuild parameter definition (lines 58-60) and passed it to validate-package.yml call for Windows GPU package validation (line 185)
tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml Added IsReleaseBuild parameter definition (lines 9-11) and passed it to validate-package.yml call for Linux GPU package validation (line 208)
tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml Passed IsReleaseBuild to three validate-package.yml calls for combined Gpu package, Windows-specific package, and Linux-specific package (lines 189, 198, 207)
tools/ci_build/github/azure-pipelines/stages/nuget-combine-cuda-stage.yml Passed IsReleaseBuild parameter through to both Linux and Windows CUDA packaging stages (lines 60, 75)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

tianleiwu added a commit that referenced this pull request Feb 19, 2026
@tianleiwu tianleiwu merged commit f1ab2e8 into main Feb 24, 2026
96 checks passed
@tianleiwu tianleiwu deleted the tlwu/20260218/is_release_build_in_nuget_pipelines branch February 24, 2026 18: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.

3 participants