Repository navigation
Fix Helix test failures - #39635
Merged
AndriySvyryd merged 1 commit intoNov 13, 2026
Merged
Fix Helix test failures#39635
Conversation
Contributor
There was a problem hiding this comment.
🟢 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
approved these changes
Nov 13, 2026
ajcvickers
left a comment
Contributor
There was a problem hiding this comment.
Not that my review really helps anymore!
wtgodbe
approved these changes
Nov 13, 2026
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.
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)