-
Notifications
You must be signed in to change notification settings - Fork 314
[6.1] Stabilize CI Pipelines #3601
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
Conversation
- Fixed the unique name generators to: - Keep max lengths to 30 and 96 characters respectively. - Ensure uniqueness at the start of the names. - Added link to database identifier syntax.
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 PR fixes issues with unique database object name generation in SQL Server tests by replacing inconsistent naming methods with standardized ones. The changes ensure proper name length limits and improve uniqueness generation for test database objects.
- Replace
GetUniqueName()
calls withGetShortName()
for objects requiring 30-character limits - Replace
GetUniqueNameForSqlServer()
calls withGetLongName()
for objects supporting 96-character limits - Update
DataTestUtility
with improved name generation algorithms using GUID parts for better uniqueness
Reviewed Changes
Copilot reviewed 33 out of 33 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
DataTestUtility.cs | Implements new GetShortName() and GetLongName() methods with proper length constraints and GUID-based uniqueness |
Various test files | Update method calls from old naming functions to new standardized ones based on required name length limits |
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ParameterTest/ParametersTest.cs
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ParameterTest/ParametersTest.cs
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ParameterTest/ParametersTest.cs
Show resolved
Hide resolved
- Added missing using for Common.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/6.1 #3601 +/- ##
===============================================
+ Coverage 69.69% 70.01% +0.31%
===============================================
Files 281 279 -2
Lines 62413 61748 -665
===============================================
- Hits 43500 43232 -268
+ Misses 18913 18516 -397
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:
|
…ssary test failures when the host VM is just slow.
* Account for MAX_DISPATCH_LATENCY in XEvents tests XEvents are asynchronous, and are written to the target within MAX_DISPATCH_LATENCY seconds. We therefore need to wait that long before querying the target. * Filter XEvent session by client_connection_id
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.
🚀 🚀 🚢
Description
Port of #3597.