Skip to content

Fix SupportsIntegratedSecurity Test Configuration#3887

Merged
mdaigle merged 11 commits intomainfrom
dev/paul/integrated-security-tests
Feb 11, 2026
Merged

Fix SupportsIntegratedSecurity Test Configuration#3887
mdaigle merged 11 commits intomainfrom
dev/paul/integrated-security-tests

Conversation

@paulmedynski
Copy link
Copy Markdown
Contributor

@paulmedynski paulmedynski commented Jan 13, 2026

Description

We have been skipping any tests that require Integrated Security. Our PR/CI pipelines appear to intend to use an Azure DevOps Library variable $(SupportsIntegratedSecurity), which is always true, but the tests still aren't running. This is because we use template expressions to convert the string library value to a YAML boolean parameter. But this doesn't work because the library variable $(SupportsIntegratedSecurity) isn't expanded at template expression evaluation time - it literally remains the string "$(SupportsIntegratedSecurity)".

I found all of the config properties that we're using as template expansion boolean values, and this was the only one using a runtime variable, so I just hardcoded them to true/false appropriately. I left a note in the YAML to help avoid this blunder in the future.

Testing

Normal PR and CI runs will show that the associated tests are no longer being skipped. One example is ADIntegratedUsingSSPI in the Manual Tests suite.

Copilot AI review requested due to automatic review settings January 13, 2026 19:58
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Jan 13, 2026
@paulmedynski paulmedynski added Area\Tests Issues that are targeted to tests or test projects Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems. labels Jan 13, 2026
@paulmedynski paulmedynski moved this from To triage to Investigating in SqlClient Board Jan 13, 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 draft PR investigates why Integrated Security tests are being skipped in the CI/CD pipeline. The author suspects that the Azure DevOps Library variable $(SupportsIntegratedSecurity) isn't being properly resolved, even though it should always be true. The PR hardcodes this value to true in the pipeline configuration to test whether this resolves the issue.

Changes:

  • Hardcoded SupportsIntegratedSecurity: true in 6 test configurations that use local SQL Server instances (SQL 2019 x64, SQL 2019 x86, SQL 2022 x64, SQL 2022 x86, SQL 2022 named instance, and Always Encrypted tests)

Comment thread eng/pipelines/dotnet-sqlclient-ci-core.yml
Comment thread eng/pipelines/dotnet-sqlclient-ci-core.yml Outdated
@paulmedynski paulmedynski changed the title [DRAFT] Integrated Seciruty Tests [DRAFT] Integrated Security Tests Jan 13, 2026
Copilot AI review requested due to automatic review settings January 14, 2026 14:48
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 3 out of 3 changed files in this pull request and generated 3 comments.

Comment thread eng/pipelines/dotnet-sqlclient-ci-core.yml Outdated
Comment thread eng/pipelines/common/templates/jobs/ci-run-tests-job.yml Outdated
Comment thread eng/pipelines/common/templates/steps/if-expression-test.yml Outdated
Copilot AI review requested due to automatic review settings January 14, 2026 15:28
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 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread eng/pipelines/common/templates/jobs/ci-run-tests-job.yml Outdated
Comment thread eng/pipelines/common/templates/steps/if-expression-test.yml Outdated
@paulmedynski paulmedynski moved this from Investigating to In review in SqlClient Board Jan 14, 2026
@paulmedynski paulmedynski changed the title [DRAFT] Integrated Security Tests Fix SupportsIntegratedSecurity Test Configuration Jan 14, 2026
@paulmedynski paulmedynski marked this pull request as ready for review January 14, 2026 16:18
@paulmedynski paulmedynski requested a review from a team as a code owner January 14, 2026 16:18
Copilot AI review requested due to automatic review settings January 14, 2026 16:18
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 2 out of 2 changed files in this pull request and generated no new comments.

@paulmedynski
Copy link
Copy Markdown
Contributor Author

Details of the failing tests:

  • Failed Microsoft.Data.SqlClient.ManualTesting.Tests.LocalDBTest.LocalDbNamedPipeEncryptionNotSupportedTest [1 s]
  • Failed Microsoft.Data.SqlClient.ManualTesting.Tests.LocalDBTest.SqlLocalDbNamedPipeConnectionTest [1 s]
  • Failed Microsoft.Data.SqlClient.ManualTesting.Tests.LocalDBTest.LocalDbNamedPipeMarsTest [1 s]

All failures are the same:

Microsoft.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. )

Conditions:

  • Test Set 3
  • .NET 8 and 9
  • Windows
  • Managed SNI
  • Local SQL Server instance

Converting this back to a draft while I figure this out.

@paulmedynski paulmedynski marked this pull request as draft January 15, 2026 12:34
@paulmedynski paulmedynski marked this pull request as ready for review January 16, 2026 19:59
Copilot AI review requested due to automatic review settings January 16, 2026 19:59
@paulmedynski paulmedynski moved this from Investigating to In review in SqlClient Board Jan 16, 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

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.96%. Comparing base (3ffbba7) to head (c03a44e).
⚠️ Report is 4 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (3ffbba7) and HEAD (c03a44e). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (3ffbba7) HEAD (c03a44e)
addons 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3887      +/-   ##
==========================================
- Coverage   74.53%   67.96%   -6.57%     
==========================================
  Files         266      260       -6     
  Lines       42915    65704   +22789     
==========================================
+ Hits        31987    44659   +12672     
- Misses      10928    21045   +10117     
Flag Coverage Δ
addons ?
netcore 68.14% <ø> (-6.64%) ⬇️
netfx 66.66% <ø> (-7.05%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 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.

mdaigle
mdaigle previously approved these changes Feb 3, 2026
mdaigle
mdaigle previously approved these changes Feb 9, 2026
@paulmedynski paulmedynski added this to the 7.0.0-preview4 milestone Feb 10, 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

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

Comment thread eng/pipelines/common/templates/steps/configure-sql-server-win-step.yml Outdated
Comment thread eng/pipelines/common/templates/jobs/ci-run-tests-job.yml
mdaigle
mdaigle previously approved these changes Feb 10, 2026
Copilot AI review requested due to automatic review settings February 11, 2026 15:59
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 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread eng/pipelines/dotnet-sqlclient-ci-core.yml
@mdaigle mdaigle merged commit 75de390 into main Feb 11, 2026
298 of 299 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in SqlClient Board Feb 11, 2026
@mdaigle mdaigle deleted the dev/paul/integrated-security-tests branch February 11, 2026 19:33
paulmedynski added a commit that referenced this pull request Apr 13, 2026
Port formatting, parameter, and indentation changes from PRs #3928, #3887,
and #3950 to this single file so that cherry-picking #4172 applies cleanly.
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. Area\Tests Issues that are targeted to tests or test projects

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants