Skip to content

Conversation

paulmedynski
Copy link
Contributor

Description

Port of #3597.

  • 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.

- 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.
@paulmedynski paulmedynski added this to the 6.1.2 milestone Sep 5, 2025
@Copilot Copilot AI review requested due to automatic review settings September 5, 2025 12:39
@paulmedynski paulmedynski requested a review from a team as a code owner September 5, 2025 12:39
Copy link
Contributor

@Copilot 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 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 with GetShortName() for objects requiring 30-character limits
  • Replace GetUniqueNameForSqlServer() calls with GetLongName() 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

- Added missing using for Common.
Copy link

codecov bot commented Sep 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.01%. Comparing base (7a7b54e) to head (0a5c5cd).
⚠️ Report is 11 commits behind head on release/6.1.

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     
Flag Coverage Δ
addons 90.82% <ø> (ø)
netcore 73.08% <ø> (+0.31%) ⬆️
netfx 69.74% <ø> (+0.50%) ⬆️

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.

benrr101
benrr101 previously approved these changes Sep 8, 2025
…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
Copy link
Contributor

@benrr101 benrr101 left a comment

Choose a reason for hiding this comment

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

🚀 🚀 🚢

@paulmedynski paulmedynski changed the title [6.1] Fix unique db object name issues [6.1] Stabilize CI Pipelines Sep 17, 2025
@paulmedynski paulmedynski merged commit 5aae5e1 into release/6.1 Sep 18, 2025
252 checks passed
@paulmedynski paulmedynski deleted the dev/paul/release/6.1/fix-macos branch September 18, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants