Skip to content

Fix Helix test failures - #39635

Merged
AndriySvyryd merged 1 commit into
dotnet:mainfrom
AndriySvyryd:andriysvyryd-fix-helix-test-failures
Nov 13, 2026
Merged

AndriySvyryd merged 1 commit into
dotnet:mainfrom
AndriySvyryd:andriysvyryd-fix-helix-test-failures

Conversation

@AndriySvyryd

Copy link
Copy Markdown
Member

Summary

Helix exposed three environment-sensitive test failures. This change makes DbFunction ordering culture-independent and selects TVF mappings by signature rather than enumeration position, normalizes both sides of the scaffolded view-comment comparison, and allows timer granularity in the SQLite command-timeout assertion.

Testing

  • dotnet test .\test\EFCore.Relational.Tests\EFCore.Relational.Tests.csproj — passed (1,662 passed, 1 skipped)
  • dotnet test .\test\Microsoft.Data.Sqlite.Tests\Microsoft.Data.Sqlite.sqlite3mc.Tests.csproj — passed (830 passed, 1 skipped)
  • dotnet test .\test\EFCore.Design.Tests\EFCore.Design.Tests.csproj — passed (1,387 passed)

@AndriySvyryd
AndriySvyryd requested a review from a team as a code owner November 13, 2026 16:04
Copilot AI balanced review requested due to automatic review settings November 13, 2026 16:04

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 block approval of the changes addressing environment-sensitive behavior.

No open issues 🎉

What changed in this PR

Addresses three environment-sensitive failures exposed by Helix, making EF Core function metadata ordering deterministic and test assertions less dependent on platform behavior.

Changes:

  • Uses ordinal DbFunction ordering and selects table-valued function mappings by signature rather than enumeration position.
  • Normalizes line endings on both sides of the scaffolded view-comment assertion.
  • Allows 100 ms of timing tolerance in the SQLite command-timeout assertion.
File Description
test/​Microsoft.Data.Sqlite.Tests/​SqliteCommandTest.cs Lowers the timeout assertion threshold to 900 ms.
test/​EFCore.Relational.Tests/​Metadata/​RelationalModelTest.cs Checks ordinal ordering and locates function mappings by signature.
test/​EFCore.Design.Tests/​Scaffolding/​Internal/​CSharpDbContextGeneratorTest.cs Normalizes expected view-comment line endings.
src/​EFCore.Relational/​Metadata/​Internal/​DbFunction.cs Makes function enumeration ordering culture-independent.

Review effort: Balanced

@ajcvickers ajcvickers 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.

Not that my review really helps anymore!

@AndriySvyryd
AndriySvyryd merged commit 3e1520c into dotnet:main Nov 13, 2026
19 of 20 checks passed
@AndriySvyryd
AndriySvyryd deleted the andriysvyryd-fix-helix-test-failures branch November 13, 2026 17:05
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 14, 2026
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.

4 participants