fix(test): retry SQL Server deadlock victims

Merged
RE
2mo ago
+21-2

Problem

SQL Server can choose the test database reset command as a deadlock victim while stale test sessions are being rolled back. The existing bounded retry only handles error 3702, so transient error 1205 fails fixture initialization even though the next reset succeeds.

Solution

Classify SQL Server errors 1205 and 3702 as retryable database-reset failures. Each retry keeps the existing pool clearing behavior, while unrelated errors and the final failed attempt continue to surface.

Rationale

SQL Server explicitly guarantees that a deadlock victim's transaction is rolled back and can be rerun. Reusing the established three-attempt reset boundary handles that transient outcome without masking persistent setup failures.

Fixes #10900

Microsoft Reviewers: Open in CodeFlow