Repository navigation
Fix stale TVP column boundary test baselines - #4967
Merged
priyankatiwari08 merged 1 commit intoNov 4, 2026
Merged
priyankatiwari08 merged 1 commit into
priyankatiwari08 merged 1 commit into
Conversation
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]>
Contributor
There was a problem hiding this comment.
🟢 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
3 of 4 tasks
paulmedynski
approved these changes
Nov 3, 2026
cheenamalhotra
approved these changes
Nov 3, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
priyankatiwari08
deleted the
dev/priyankatiwari08/fix-tvp-column-boundaries-baselines
branch
November 4, 2026 07:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
TvpColumnBoundariesTests.TvpColumnBoundariesTest(quarantined asflaky) fails deterministically in recent public CI runs (e.g. builds 188399, 188430, 188472, 188487).Root cause: #4595 changed TVP cleanup in
TvpTest.DropServerObjectstoDROP PROC IF EXISTS/DROP TYPE IF EXISTS, so error 3701 is no longer raised andSqlException dropping objects: 3701is no longer printed. BothTvpColumnBoundaries.bslandTvpColumnBoundaries_Azure.bslstill 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 theMISSINGmarker.Changes (test-only):
SqlException dropping objects: 3701lines from both baselines.Assert.True() Failure.The test keeps its
flakytrait; 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).TvpColumnBoundaries.bslrestored: failed as expected, with the new message showingDIFF at line 98/99andMISSING.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.