Skip to content

[release/11.0] Fix SQL Server JSON index test - #39176

Merged
wtgodbe merged 1 commit into
release/11.0from
fix-release-11-json-index-test
Oct 6, 2026
Merged

wtgodbe merged 1 commit into
release/11.0from
fix-release-11-json-index-test

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Description
The release/11.0 backport in #39089 added .IsUnique() to a JSON-index test after #39090 made that option invalid. main uses a non-unique index; this aligns the release test with main.

Customer impact
No runtime change. The invalid test blocks SQL Server 2025 CI on unrelated PRs; there is no workaround without changing or skipping the test.

How found
SQL Server 2025 CI failures on #39152–#39156.

Regression
Test-only release-branch mismatch introduced by #39089; main is unaffected.

Testing
One existing test modified. . ./restore.sh && . ./activate.sh && dotnet build test/EFCore.SqlServer.FunctionalTests/EFCore.SqlServer.FunctionalTests.csproj --no-restore --verbosity quiet — passed. . ./activate.sh && dotnet exec artifacts/bin/EFCore.SqlServer.FunctionalTests/Debug/net11.0/Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.dll --filter-method '*Create_json_index_over_complex_property_member' --ignore-exit-code 8 — discovered 1 test, skipped locally (SQL Server 2025 unavailable).

Risk
Extremely low: two test-only lines; no quirk applicable.

- Remove unsupported uniqueness from the JSON index test
- Match the existing test on main

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 21:13
@wtgodbe
wtgodbe requested a review from a team as a code owner October 5, 2026 21:13

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.

Copilot review overview

🟢 Approval recommended

The focused test-only change correctly removes an option rejected by SQL Server JSON-index validation.

Review effort: Balanced
Findings: None

What changed in this PR

Aligns the SQL Server JSON-index migration test with supported non-unique index behavior.

Changes:

  • Removes unsupported .IsUnique() configuration.
  • Renames the test accordingly.
File Description
test/​EFCore.SqlServer.FunctionalTests/​Migrations/​SqlServerMigrationsSqlGeneratorTest.cs Updates the JSON-index test to use supported SQL Server configuration.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@github-code-quality

github-code-quality Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Code Coverage Overview

Languages: C#

C# / code-coverage

The overall line coverage in commit 1b33891 in the fix-release-11-json-... branch is 67%. The line coverage in commit 7adff35 in the release/11.0 branch is 76%.

Show a line coverage summary of the most impacted files.
File release/11.0 7adff35 fix-release-11-json-... 1b33891 +/-
/Users/runner/w...nal/Snapshot.cs 0% 60% +60%
D:\a\efcore\efc...nal\Snapshot.cs 0% 64% +64%
/home/runner/wo...nal/Snapshot.cs 0% 66% +66%
/home/runner/wo...yTypeBuilder.cs 0% 88% +88%
D:\a\efcore\efc...yTypeBuilder.cs 0% 88% +88%
/Users/runner/w...ngs.Designer.cs 0% 92% +92%
/home/runner/wo...ctExpression.cs 0% 93% +93%
D:\a\efcore\efc...ctExpression.cs 0% 93% +93%
D:\a\efcore\efc...ngs.Designer.cs 0% 94% +94%
/home/runner/wo...ngs.Designer.cs 0% 95% +95%

Updated October 06, 2026 02:34 UTC

@wtgodbe
wtgodbe merged commit ceb8da9 into release/11.0 Oct 6, 2026
48 of 52 checks passed
@wtgodbe
wtgodbe deleted the fix-release-11-json-index-test branch October 6, 2026 16:58
wtgodbe added a commit that referenced this pull request Oct 7, 2026
* [release/10.0]: Bump Grpc.AspNetCore from 2.83.0 to 2.84.0 (#39141)

---
updated-dependencies:
- dependency-name: Grpc.AspNetCore
  dependency-version: 2.84.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [release/10.0]: Bump OpenTelemetry.Exporter.InMemory from 1.19.0 to 1.19.1 (#39143)

---
updated-dependencies:
- dependency-name: OpenTelemetry.Exporter.InMemory
  dependency-version: 1.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [release/10.0]: Bump Microsoft.Azure.Cosmos from 3.63.1 to 3.63.2 (#39142)

* [release/10.0] Fix Contains handling for read-only collections (#39114)

Fixes #38671

Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>

* [release/10.0] Update stale nested complex collection entries during Update on a shortened collection (#39092)

Fixes #39073

Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>

* [release/11.0] Update xUnit v3 to 4.0.1 (#39144)

Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>

* Fix SQL Server JSON index test on release/11.0 (#39176)

- Remove unsupported uniqueness from the JSON index test
- Match the existing test on main

Co-authored-by: Will Godbe <willgodbe@Wills-MacBook-Pro.local>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
Co-authored-by: Andriy Svyryd <Andriy.Svyryd@microsoft.com>
Co-authored-by: Andriy Svyryd <AndriySvyryd@users.noreply.github.com>
Co-authored-by: William Godbe <wigodbe@microsoft.com>
Co-authored-by: Will Godbe <willgodbe@Wills-MacBook-Pro.local>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants