Skip to content

Fix stale TVP column boundary test baselines - #4967

Merged
priyankatiwari08 merged 1 commit into
mainfrom
dev/priyankatiwari08/fix-tvp-column-boundaries-baselines
Nov 4, 2026
Merged

priyankatiwari08 merged 1 commit into
mainfrom
dev/priyankatiwari08/fix-tvp-column-boundaries-baselines

Conversation

@priyankatiwari08

Copy link
Copy Markdown
Contributor

Description

TvpColumnBoundariesTests.TvpColumnBoundariesTest (quarantined as flaky) fails deterministically in recent public CI runs (e.g. builds 188399, 188430, 188472, 188487).

Root cause: #4595 changed TVP cleanup in TvpTest.DropServerObjects to DROP PROC IF EXISTS / DROP TYPE IF EXISTS, so error 3701 is no longer raised and SqlException dropping objects: 3701 is no longer printed. Both TvpColumnBoundaries.bsl and TvpColumnBoundaries_Azure.bsl still expected six of those lines, so the output is always six lines shorter than the baseline. For run 3652274 (build 188472), removing those lines accounts for all 283 reported diffs and the MISSING marker.

Changes (test-only):

  • Remove the six obsolete SqlException dropping objects: 3701 lines from both baselines.
  • Include the baseline diff in the assertion message, so CI shows the actual differences instead of a generic Assert.True() Failure.

The test keeps its flaky trait; unquarantining can follow once CI shows it stable.

Issues

No linked issue. Found while investigating recurring CI test failures.

Testing

Local SQL Server (non-Azure baseline), net10.0:

  • dotnet build build.proj -t:TestSqlClientManual -p:TestFramework=net10.0 -p:TestSet=3 "-p:TestFilters=FullyQualifiedName~TvpColumnBoundariesTests": passed (Failed 0, Passed 1, Skipped 0).
  • Same command with the old TvpColumnBoundaries.bsl restored: failed as expected, with the new message showing DIFF at line 98/99 and MISSING.

Azure baseline not run locally; its fix is based on the CI TRX analysis above and will be confirmed by this PR's CI flaky-test jobs.

PR #4595 changed TVP cleanup to DROP ... IF EXISTS, so error 3701 is no
longer emitted. Remove the six obsolete "SqlException dropping objects:
3701" lines from both baselines, which caused deterministic failures.

Also report the baseline diff in the assertion message instead of a
generic Assert.True failure.

Co-authored-by: Copilot App <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the test-only baseline and assertion-diagnostic updates.

No open issues 🎉

What changed in this PR

Updates the TVP column boundary tests to match the cleanup behavior introduced in #4595 and makes baseline failures easier to diagnose. No product code changes; the test remains quarantined as flaky.

Changes:

  • Remove six obsolete cleanup-error lines from each SQL Server and Azure baseline.
  • Include baseline differences and file paths in the assertion failure message.
  • Document the test’s purpose and mark its Act/Assert sections.
File Description
src/​Microsoft.Data.SqlClient/​tests/​ManualTests/​SQL/​ParameterTest/​TvpColumnBoundariesTests.cs Adds actionable assertion diagnostics and test documentation.
src/​Microsoft.Data.SqlClient/​tests/​ManualTests/​SQL/​ParameterTest/​TvpColumnBoundaries.bsl Removes obsolete error 3701 output from the SQL Server baseline.
src/​Microsoft.Data.SqlClient/​tests/​ManualTests/​SQL/​ParameterTest/​TvpColumnBoundaries_Azure.bsl Removes the same obsolete output from the Azure baseline.

Review effort: Balanced

@codecov

codecov Bot commented Nov 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.82%. Comparing base (ddef008) to head (5102c6b).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4967      +/-   ##
==========================================
+ Coverage   68.36%   72.82%   +4.45%     
==========================================
  Files         311      307       -4     
  Lines       45355    78356   +33001     
==========================================
+ Hits        31009    57063   +26054     
- Misses      14346    21293    +6947     
Flag Coverage Δ
CI-SqlClient ?
PR-SqlClient-Project 72.82% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

@priyankatiwari08
priyankatiwari08 merged commit 74a1cb7 into main Nov 4, 2026
139 of 145 checks passed
@priyankatiwari08
priyankatiwari08 deleted the dev/priyankatiwari08/fix-tvp-column-boundaries-baselines branch November 4, 2026 07:02
@github-project-automation github-project-automation Bot moved this from To triage to Done in SqlClient Board Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants