-
Notifications
You must be signed in to change notification settings - Fork 319
[6.1] Disable incompatible tests for managed instance #3881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[6.1] Disable incompatible tests for managed instance #3881
Conversation
There was a problem hiding this 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 pull request disables tests that are incompatible with SQL Managed Instance by adding the IsNotManagedInstance condition to test attributes. The changes align with the requirements mentioned in issue #3678.
Changes:
- Vector tests (VectorTypeBackwardCompatibilityTests and NativeVectorFloat32Tests) exclude Managed Instance as it doesn't support the Vector type
- JSON tests (JsonStreamTest and JsonBulkCopyTest) exclude Managed Instance as it doesn't support the JSON type
- MARS tests (MARSSessionPoolingTest) exclude Managed Instance as MARS is not supported
- DistributedTransactionTest excludes Managed Instance with documented error behavior
- ConnectionResiliencySPIDTest excludes Managed Instance
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| VectorTypeBackwardCompatibilityTests.cs | Added IsNotManagedInstance condition to 9 vector backward compatibility tests |
| NativeVectorFloat32Tests.cs | Added IsNotManagedInstance condition to 7 native vector tests |
| DistributedTransactionTest.Windows.cs | Added IsNotManagedInstance() call to test condition with explanatory comment |
| MARSSessionPoolingTest.cs | Added IsNotManagedInstance condition to 6 MARS-related tests |
| JsonStreamTest.cs | Added IsNotManagedInstance and AreConnStringsSetup conditions to 2 JSON streaming tests |
| JsonBulkCopyTest.cs | Added IsNotManagedInstance and AreConnStringsSetup conditions to 2 JSON bulk copy tests |
| ConnectivityTest.cs | Added IsNotManagedInstance condition to ConnectionResiliencySPIDTest |
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonBulkCopyTest.cs
Outdated
Show resolved
Hide resolved
...t.Data.SqlClient/tests/ManualTests/SQL/TransactionTest/DistributedTransactionTest.Windows.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonStreamTest.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonStreamTest.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonBulkCopyTest.cs
Outdated
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/6.1 #3881 +/- ##
===============================================
+ Coverage 65.42% 67.50% +2.08%
===============================================
Files 279 279
Lines 53302 53302
===============================================
+ Hits 34875 35984 +1109
+ Misses 18427 17318 -1109
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Disable incompatible tests for managed instance.
This is same as mentioned in #3678
Issues
AB#41617
Testing
Tests will be enabled again once the required permissions are granted on the test user through #3880.
Guidelines
Please review the contribution guidelines before submitting a pull request: