Skip to content

Add Release compile step to PR pipelines#3864

Merged
paulmedynski merged 1 commit intomainfrom
dev/paul/pr-release-compile
Jan 2, 2026
Merged

Add Release compile step to PR pipelines#3864
paulmedynski merged 1 commit intomainfrom
dev/paul/pr-release-compile

Conversation

@paulmedynski
Copy link
Copy Markdown
Contributor

Description

Testing

The updated PR pipelines will now compile in Release in addition to Debug mode.

- Added Release compilation to PR piplines to help avoid downstream pipeline errors.
Copilot AI review requested due to automatic review settings January 1, 2026 14:27
@paulmedynski paulmedynski requested a review from a team as a code owner January 1, 2026 14:27
@github-project-automation github-project-automation bot moved this to To triage in SqlClient Board Jan 1, 2026
@paulmedynski paulmedynski added the Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems. label Jan 1, 2026
@paulmedynski paulmedynski moved this from To triage to In review in SqlClient Board Jan 1, 2026
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 enhances the CI pipeline to compile code in both Debug and Release configurations during pull request validation, preventing downstream pipeline failures. It also fixes a compilation error in Release mode where a field was incorrectly wrapped in a DEBUG conditional.

  • Added Release mode compilation step to PR pipelines when building in Debug mode
  • Fixed Release mode compile error by removing DEBUG conditional from s_packetId field declaration

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ManagedSni/SniPhysicalHandle.netcore.cs Removed DEBUG conditional compilation directive from s_packetId field since it's used outside DEBUG blocks
eng/pipelines/common/templates/jobs/ci-build-nugets-job.yml Added conditional step to compile in Release mode when buildConfiguration is Debug

The changes look good overall. The code fix correctly addresses a compilation issue where s_packetId was used on line 33 outside of any #if DEBUG block but was declared within one. The pipeline change is well-commented and follows a logical approach to catch Release-mode compilation issues early in the PR process.

Copy link
Copy Markdown
Contributor

@benrr101 benrr101 left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me

@paulmedynski paulmedynski merged commit 523e2ef into main Jan 2, 2026
256 checks passed
@paulmedynski paulmedynski deleted the dev/paul/pr-release-compile branch January 2, 2026 18:12
@github-project-automation github-project-automation bot moved this from In review to Done in SqlClient Board Jan 2, 2026
@paulmedynski paulmedynski added this to the 7.0.0-preview4 milestone Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants