Repository navigation
Tests: run every suite on the newest EF Core 10 patch, and prove the floor - #135
Merged
Merged
Conversation
…floor (#133) The test project pinned Sqlite at 10.0.11 and its other EF Core references at 10.0.0, so every lane ran EF Core 10.0.11 beside Npgsql EF 10.0.0: neither the floor the packages declare nor a patch a consumer is on. The pins are now all at the floor, and the unit job reads the test host's deps.json to show it. test/Directory.Build.targets floats the test projects to another patch (EfFloat, NpgsqlEfFloat); src/ still compiles against its floor. A new lane, `Newest EF Core patch`, looks the newest 10.x patches up on nuget.org, restores and builds with them, checks deps.json, and runs the unit, PostgreSQL, SQL Server and consumer smoke suites in one step that reports every failing suite. The CI gate needs it, and nightly.yml reaches it through dotnet.yml. The smoke test takes SMOKE_EF_VERSION and SMOKE_NPGSQL_EF_VERSION to pin its consumers the same way. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # test/consumer-smoke-test.sh
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.
Closes #133
Problem
Every lane tested one dependency set, and that set was neither the floor nor the newest patch. The test project pinned Sqlite at 10.0.11 (a Dependabot bump, 6a304ae) and SqlServer, Npgsql EF and Design at 10.0.0. The test host therefore ran EF Core, Relational, Abstractions and Sqlite 10.0.11 beside SqlServer, Design and Npgsql EF 10.0.0, a mix no consumer has.
Nothing tested a newer patch either. The packages declare
[10.0.0, 11.0.0)and use EF's internal API in ten files, and EF internals carry no promise across patches. After the v5.5.0 cut,release/5.xtakes fixes only, so a patch that breaks it would surface in the middle of an unrelated fix.Change
test/EFCore.ComplexIndexes.Tests/EFCore.ComplexIndexes.Tests.csproj: Sqlite goes from 10.0.11 to 10.0.0, so every EF Core reference is at the floor. Nothing needed 10.0.11: the floor run below passes, and NU1903 stays the warning it already was.test/Directory.Build.targets(new):-p:EfFloat=… -p:NpgsqlEfFloat=…floats the test projects' EF Core, Sqlite, SqlServer, Design and Npgsql EF references.src/still compiles against its floor.test/assert-dependency-versions.sh(new): reads a deps.json and fails unless everyMicrosoft.EntityFrameworkCore*entry, and Npgsql EF when given, is at the expected version..github/workflows/dotnet.yml:Newest EF Core patch, looks up the newest 10.x patches on nuget.org when it runs. It restores and builds with them, checks deps.json, then runs the unit, PostgreSQL, SQL Server and consumer smoke suites in one step. That step records each failure and fails after the last suite, since Actions' bash runs-e.CIgate needs the new lane.nightly.yml(Release: run the full CI before publishing, and a nightly full run #111) callsdotnet.yml, so a new patch is tested the night it ships, with no PR needed to bump a pin.test/consumer-smoke-test.sh:SMOKE_EF_VERSIONandSMOKE_NPGSQL_EF_VERSIONpin the consumers' provider and Design to one patch, and the script reads each consumer's deps.json back. Unset, it behaves as before.CLAUDE.md: the floor, the lane and the float command.The .NET 11 roll-forward leg is not in this PR: #111 is closed, so it is #137.
Tests
The three legs from #133 were run locally (macOS arm64, Docker on OrbStack) and on CI. The counts and proof are in #133.
RollForward=LatestMajor,DOTNET_ROLL_FORWARD_TO_PRERELEASE=1; the--diaglog readsRuntime location: ~/.dotnet/shared/Microsoft.NETCore.App/11.0.0-rc.2.26504.105): 558/558 on the floor and on the newest patch locally, and 571/571 each on CI (SQL Server included) in run 39399546860.-p:EfFlaot=10.0.13builds green. The test host then resolves EF Core 10.0.4 beside Sqlite, SqlServer and Design 10.0.0, and the check fails on all seven entries. The same seed in this workflow, on a throwaway branch, failed the lane at the deps.json step (run 39399235386).WorkflowGateConventionTestsandClaudeMdConsistencyTestspass with the new lane and the CLAUDE.md text (533/533 unit tests).🤖 Generated with Claude Code