Skip to content

Tests | Widen SqlVector test criteria, roundtrip additional values in tests#3794

Merged
apoorvdeshmukh merged 3 commits intodotnet:mainfrom
edwardneal:tests/issue-3789-roundtrip-vector-values
Dec 23, 2025
Merged

Tests | Widen SqlVector test criteria, roundtrip additional values in tests#3794
apoorvdeshmukh merged 3 commits intodotnet:mainfrom
edwardneal:tests/issue-3789-roundtrip-vector-values

Conversation

@edwardneal
Copy link
Copy Markdown
Contributor

Description

This PR does two things:

  1. Enables all SqlVector tests to be run against a database server which supports the vector type (not just Azure SQL instances.)
  2. Adds three unusual values (float.MinValue, a value which can't be represented cleanly as a float, and negative zero) to demonstrate that they roundtrip, as per my comments on the original PR.

Issues

Fixes #3789. Builds on my comments on the original PR #3433.

Testing

SqlVector tests continue to pass against a local SQL 2025 instance and a SQL Azure instance.

@apoorvdeshmukh
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs Outdated
Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs Outdated
These are IsDataClassificationSupported and IsVectorSupported.
In the process, removed the attempted caching for IsTDS8Supported. This caching didn't work properly, and never should have - the ctor for CertificateTest changed the certificate for the SQL Server instance, so the cached data could have been out of date.
@paulmedynski
Copy link
Copy Markdown
Contributor

/azp run

@paulmedynski paulmedynski moved this from To triage to In review in SqlClient Board Nov 21, 2025
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

Copy link
Copy Markdown
Contributor

@paulmedynski paulmedynski left a comment

Choose a reason for hiding this comment

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

Can we avoid querying the server more than once per DataTestUtility property that you have touched?

@github-project-automation github-project-automation Bot moved this from In review to In progress in SqlClient Board Nov 21, 2025
@paulmedynski paulmedynski self-assigned this Nov 21, 2025
@paulmedynski paulmedynski moved this from In progress to In review in SqlClient Board Nov 27, 2025
paulmedynski
paulmedynski previously approved these changes Dec 5, 2025
@paulmedynski
Copy link
Copy Markdown
Contributor

@edwardneal - Looks like some conflicts need to be resolved here.

@edwardneal
Copy link
Copy Markdown
Contributor Author

Thanks @paulmedynski, I've just merged.

@apoorvdeshmukh
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 11, 2025

Codecov Report

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

❗ There is a different number of reports uploaded between BASE (2b4ab13) and HEAD (d636611). Click for more details.

HEAD has 3 uploads less than BASE
Flag BASE (2b4ab13) HEAD (d636611)
netfx 2 1
netcore 2 1
addons 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3794      +/-   ##
==========================================
- Coverage   76.68%   69.04%   -7.65%     
==========================================
  Files         274      261      -13     
  Lines       43299    67696   +24397     
==========================================
+ Hits        33204    46738   +13534     
- Misses      10095    20958   +10863     
Flag Coverage Δ
addons ?
netcore 69.04% <ø> (-7.69%) ⬇️
netfx 68.33% <ø> (-7.96%) ⬇️

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.

@cheenamalhotra cheenamalhotra added the Area\Tests Issues that are targeted to tests or test projects label Dec 16, 2025
@cheenamalhotra cheenamalhotra added this to the 7.0.0-preview4 milestone Dec 16, 2025
@apoorvdeshmukh apoorvdeshmukh merged commit 6d92a25 into dotnet:main Dec 23, 2025
250 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in SqlClient Board Dec 23, 2025
@edwardneal edwardneal deleted the tests/issue-3789-roundtrip-vector-values branch December 23, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Tests Issues that are targeted to tests or test projects

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Extend tests for float.MinValue, 1.01f, float.NegativeZero

4 participants