Skip to content

PR Pipeline - Azure + AE#4338

Open
benrr101 wants to merge 12 commits into
mainfrom
dev/russellben/pr-azure
Open

PR Pipeline - Azure + AE#4338
benrr101 wants to merge 12 commits into
mainfrom
dev/russellben/pr-azure

Conversation

@benrr101
Copy link
Copy Markdown
Contributor

@benrr101 benrr101 commented Jun 3, 2026

Description

This PR adds to the PR pipeline in the previous PR #4308 and adds the following test jobs:

  • SqlClient Manual test sets 123 against Azure
  • SqlClient Manual test sets AE against localhost (in release mode)

Testing

@benrr101 benrr101 added this to the 7.1.0-preview2 milestone Jun 3, 2026
Copilot AI review requested due to automatic review settings June 3, 2026 21:06
@benrr101 benrr101 added the Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems. label Jun 3, 2026
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Jun 3, 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 extends the new PR validation pipeline to run additional SqlClient manual test coverage in CI-like PR validation scenarios, specifically adding Azure SQL manual test runs and an Always Encrypted (AE) manual test run in Release configuration.

Changes:

  • Adds SqlClient manual test set 123 execution against Azure SQL, alongside existing localhost manual coverage.
  • Adds a localhost Always Encrypted manual test run (TestSet=AE) forced to Release configuration.
  • Simplifies PR pipeline templates by removing PR-specific wrapper step templates and switching PR jobs/stages to directly use the shared eng/pipelines/common/steps/* templates.

Reviewed changes

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

Show a summary per file
File Description
src/Microsoft.Data.SqlClient/tests/ManualTests/BulkCopy/CopyAllFromReaderConnectionCloseOnEventAsync.cs Skips this BulkCopy manual test on Azure servers via an additional IsNotAzureServer condition.
eng/pipelines/pr/stages/test-stages.yml Adds Azure manual test execution for set 123, and adds localhost AE manual execution (AE) in Release mode.
eng/pipelines/pr/jobs/test-sqlclientmanual-job.yml Parameterizes manual test jobs by config/test set; adds conditional local server setup and passes TestSet to build.proj.
eng/pipelines/pr/jobs/test-buildproj-job.yml Updates job bootstrap to use shared install/restore steps and inlines the build.proj test invocation.
eng/pipelines/pr/stages/pack-stage.yml Replaces PR-specific dotnet install wrapper with shared common install + tool restore steps.
eng/pipelines/pr/steps/pack-buildproj-step.yml Renames the task display name to clarify it performs packing.
eng/pipelines/pr/steps/test-buildproj-step.yml Deleted (previously a PR-specific wrapper step for running build.proj test targets).
eng/pipelines/pr/steps/install-dotnet.yml Deleted (previously a PR-specific wrapper around the common install-dotnet and tool restore steps).
eng/pipelines/pr/steps/build-buildproj-step.yml Deleted (previously a PR-specific wrapper step for running build.proj build targets).

Comment on lines +87 to +91
- task: DotNetCoreCLI@2
displayName: 'Test: ${{ parameters.packageShortName }}${{ parameters.testProject }}'
inputs:
command: build
projects: build.proj
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines +172 to +176
- task: DotNetCoreCLI@2
displayName: 'Test: SqlClientManual ${{ parameters.testSet }}'
inputs:
command: build
projects: build.proj
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copilot AI review requested due to automatic review settings June 4, 2026 22:42
@benrr101 benrr101 marked this pull request as ready for review June 4, 2026 22:43
@benrr101 benrr101 requested a review from a team as a code owner June 4, 2026 22:43
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

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Comment on lines +261 to 263
[Trait("Category", "flaky")] // Doesn't work well on Azure.
[ConditionalTheory(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringsSetup), nameof(DataTestUtility.IsNotAzureSynapse))]
[MemberData(nameof(SqlTypeTestData), DisableDiscoveryEnumeration = true)]
Comment on lines +308 to 310
[Trait("Category", "flaky")] // Doesn't work well on Azure.
[ConditionalTheory(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringsSetup), nameof(DataTestUtility.IsNotAzureSynapse))]
[MemberData(nameof(SqlTypeTestData), DisableDiscoveryEnumeration = true)]
Comment on lines +86 to +98
# Execute the test target
- task: DotNetCoreCLI@2
displayName: 'Test: ${{ parameters.packageShortName }}${{ parameters.testProject }}'
inputs:
command: build
projects: build.proj
verbosity: detailed
arguments: >-
-t:Test${{ parameters.packageShortName }}${{ parameters.testProject }}
-p:Configuration=${{ parameters.buildConfiguration }}
-p:BuildNumber='$(Build.BuildNumber)'
-p:BuildSuffix='${{ parameters.buildSuffix }}'
-p:TestFramework=${{ parameters.platformDotnet }}
@paulmedynski paulmedynski moved this from To triage to In review in SqlClient Board Jun 5, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.88%. Comparing base (bfbdd30) to head (a4060e8).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4338      +/-   ##
==========================================
- Coverage   66.69%   63.88%   -2.81%     
==========================================
  Files         284      279       -5     
  Lines       43238    66069   +22831     
==========================================
+ Hits        28836    42210   +13374     
- Misses      14402    23859    +9457     
Flag Coverage Δ
CI-SqlClient ?
PR-SqlClient-Project 63.88% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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: In review

Development

Successfully merging this pull request may close these issues.

4 participants