Skip to content

Conversation

paulmedynski
Copy link
Contributor

Description

- Backported part of #3494 and #3591:
  - Added configurable test jobs timeout, defaulting to 90 minutes.
  - Reduced generated database names to 96 chars to try to fix macOS test failures.
@paulmedynski paulmedynski added this to the 5.1.8 milestone Sep 3, 2025
@Copilot Copilot AI review requested due to automatic review settings September 3, 2025 18:29
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 backports fixes from newer versions to address macOS test failures and improve pipeline reliability. The main purpose is to reduce database name lengths and configure test timeouts to prevent test failures on macOS systems.

Key changes:

  • Reduced maximum generated database name length from 128 to 96 characters to address macOS naming limitations
  • Added configurable test job timeout parameter with a default of 90 minutes to prevent timeouts on slower systems

Reviewed Changes

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

File Description
src/Microsoft.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs Modified database name generation to enforce 96-character limit with proper bracket handling
eng/pipelines/dotnet-sqlclient-signing-pipeline.yml Added testsTimeout parameter with 90-minute default and passed it to test jobs
eng/pipelines/common/templates/jobs/run-tests-package-reference-job.yml Added timeout parameter and applied it to job configuration

Copy link

codecov bot commented Sep 3, 2025

Codecov Report

❌ Patch coverage is 28.57143% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.92%. Comparing base (6af24bc) to head (58eca55).
⚠️ Report is 2 commits behind head on release/5.1.

Files with missing lines Patch % Lines
...e/src/Microsoft/Data/SqlClient/SNI/SNITcpHandle.cs 16.66% 10 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (6af24bc) and HEAD (58eca55). Click for more details.

HEAD has 36 uploads less than BASE
Flag BASE (6af24bc) HEAD (58eca55)
netfx 15 3
netcore 15 3
addons 15 3
Additional details and impacted files
@@               Coverage Diff               @@
##           release/5.1    #3599      +/-   ##
===============================================
- Coverage        71.83%   64.92%   -6.91%     
===============================================
  Files              293      293              
  Lines            61647    61659      +12     
===============================================
- Hits             44283    40031    -4252     
- Misses           17364    21628    +4264     
Flag Coverage Δ
addons 0.00% <ø> (-92.39%) ⬇️
netcore 69.90% <28.57%> (-6.05%) ⬇️
netfx 62.76% <100.00%> (-6.81%) ⬇️

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 3, 2025
- 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.
- Removed DateOnly tests that aren't supported on 5.1.
…3542)

  - Adjusted CodeQL suppression to meet the strict requirements of where it may appear relative to the flagged code.
  - Adding catch for macOS socket error to log and ignore.
- Added console diagnostics to see when Enclave tables are dropped.
@paulmedynski
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@paulmedynski paulmedynski changed the title [5.1] Backport mac server name fix [5.1] Stabilize CI Pipelines Sep 17, 2025
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.

2 participants