Repository navigation
test: run the EF suites on the newest EF Core / Npgsql EF 10 patch as well as the floor - #311
Merged
Merged
Conversation
… well as the floor The EF test projects only ever ran on the floor the packages ship against (Npgsql EF 10.0.0, which resolves EF Core 10.0.0), while a consumer's application resolves the newest patch: Npgsql EF 10.0.1-10.0.3 require EF Core >= 10.0.4. #302 came in through that gap, green on every floor run and failing on the server on every patch from EF Core 10.0.2 on. test/Directory.Build.targets floats the EF test projects (every project whose name contains EFCore) when -p:EfFloat and -p:NpgsqlEfFloat are passed: it adds EF Core, Relational, Npgsql EF and Npgsql EF NodaTime at those versions and updates Design to match. Direct references win, so the test hosts load the newer assemblies while src/ still compiles against the floor, which is a consumer's situation. Without the properties nothing changes. There is no root Directory.Build.targets to shadow, the consumer smoke test builds outside the repository, and the conventions suite passes unchanged (403/403). dotnet.yml's integration-legs matrix gains an ef axis, floor and newest-patch, and the newest published versions (EF Core 10.0.13, Npgsql EF 10.0.3) sit in one matrix include, so a new patch is a one-line bump. The newest-patch legs run all four EF projects on PostgreSQL 16 and 18, reusing the legs' container setup, and first check that every EF test host's deps.json names the versions asked for, so a float that stops reaching the hosts fails instead of testing the floor twice. The test loop runs every project before failing, as the step's shell stops at the first failing command and the glob puts the translation projects after the integration ones; a first CI run with the fix reverted stopped after the integration project and never showed the four translation failures. The "Integration (live PostgreSQL)" gate needs every leg, so the new legs are required with no ruleset change, and the floor legs stay required as they were. No scheduled run against EF Core's servicing builds: the dnceng dotnet10 feed holds only 10.0.0 prereleases (newest 10.0.0-rtm.25513.102), and GitHub fires schedule only from the default branch. #297 records what was tried. Proof, locally on release/10.x with the #302 fix (EmptyCollectionRewriter.cs from PR #306) reverted to d883b12^: - float (10.0.13 / 10.0.3): translation 291/295 (the four empty-captured-list tests), integration 275/280 (#302's five, 42883: operator does not exist: text && text[]), NodaTime translation 91/91, InfinityDisabled 4/4 - floor: 295/295, 280/280, 91/91, 4/4 With the fix in place, the CI steps replayed under bash pass on the float: 295, 280, 91, 4. Issue #297, on release/10.x only; closed by hand after the merge, since a closing keyword acts only on main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
CaffeinatedCoder
force-pushed
the
test/297-ef-newest-patch-leg
branch
2 times, most recently
from
October 19, 2026 12:46
74820ee to
2fd2d32
Compare
Closed
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 #297
Closesacts only onmain, so #297 is closed by hand after this merges intorelease/10.x.Problem
The EF test projects only ever ran on the floor the packages ship against: Npgsql EF 10.0.0, which resolves EF Core 10.0.0. A consumer's application resolves the newest patch, and Npgsql EF 10.0.1–10.0.3 require EF Core 10.0.4 or newer. CI never saw what consumers run. #302 came in through that gap: green on every floor run, while every
Any/Countover an empty captured list failed on the server on EF Core 10.0.2 and later.Change
test/Directory.Build.targets(new; there is no rootDirectory.Build.targetsto shadow). When-p:EfFloat=… -p:NpgsqlEfFloat=…are passed, every test project whose name containsEFCoregetsMicrosoft.EntityFrameworkCore,.Relational,Npgsql.EntityFrameworkCore.PostgreSQLand.PostgreSQL.NodaTimeat those versions, andMicrosoft.EntityFrameworkCore.Designis updated to match. Direct references win, so the test hosts load the newer assemblies whilesrc/keeps compiling against the floor, which is a consumer's situation. Without the properties nothing changes..github/workflows/dotnet.yml:integration-legsgains anefaxis (floor,newest-patch). The newest published versions (EF Core 10.0.13, Npgsql EF 10.0.3) sit in one matrixinclude, with a comment on how to look them up, so a new patch is a one-line bump.deps.jsonnames the versions it asked for. A float that stopped reaching the hosts (a renamed property or project) would otherwise test the floor twice and pass.Integration (PostgreSQL 16, EF Core floor),Integration (PostgreSQL 16, EF Core 10.0.13), and the same for 18.Integration (live PostgreSQL)gate needs every leg, so the new legs are required without any ruleset change. The floor legs and theTest (ubuntu-latest)floor run stay required as before.CONTRIBUTING.md,AGENTS.md: how to run the float locally and where the versions live..github/dependabot.ymlis unchanged. The leg floats explicitly, and a Dependabot bump would raise the shipping floor.Not here: the scheduled run against EF Core's servicing builds. The dnceng
dotnet10feed answers, but holds only 10.0.0 prereleases (newest10.0.0-rtm.25513.102). Also, GitHub firesscheduleonly from the default branch, so a trigger onrelease/10.xwould never run. The servicing builds are on the per-builddarc-pub-dotnet-dotnet-<sha>feed that dotnet/efcorerelease/10.0'sNuGet.confignames. The four EF projects pass against the staged 10.0.14 there. #297 records what was tried; the scheduled run is #312.Tests
Proven by reverting the #302 fix:
EmptyCollectionRewriter.csfrom PR #306, back tod883b12^. All runs are local onrelease/10.x, with Docker and PostgreSQL 16 andDOTNET_CLI_UI_LANGUAGE=en.Newest patch (
-p:EfFloat=10.0.13 -p:NpgsqlEfFloat=10.0.3), fix reverted: red, exactly #302's nine.Floor, same checkout, fix still reverted: green.
Newest patch with the fix in place: the CI steps replayed under bash (solution restore and build with the properties, the
deps.jsoncheck,--no-buildtests). All four hosts resolve EF Core 10.0.13 and Npgsql EF 10.0.3, and the projects pass 295/295, 280/280, 91/91 and 4/4.The
deps.jsoncheck, seeded: run against floor-built test hosts, it fails with::error::…InfinityDisabled.IntegrationTests.deps.json does not resolve Microsoft.EntityFrameworkCore/10.0.13, so this leg would test the floor.Conventions: 403/403 with the change.
TheRequiredChecks_AreStillJobNamesandTheIntegrationGate_PassesOnlyWhenEveryLegPassedread this workflow.On CI, with a temporary commit on top that reverted the #302 rewriter. The commit was pushed, run, and dropped; it is not in the branch.
74820ee=2fd2d32+ revert: the newest-patch legs red, the floor green.deps.jsoncheck first and passed it: all four hosts resolve EF Core 10.0.13 and Npgsql EF 10.0.3. Then each failed the same nine:Test (ubuntu-latest)(the floor translation projects) andConsumer smoke testare green.Integration (live PostgreSQL)is red, so the newest-patch legs block a merge.-e, and the glob puts the translation projects last, so their four failures never showed. The loop now runs every project before failing.2fd2d32, the branch as it is, with no revert: every check green. Integration (PostgreSQL 16, EF Core 10.0.13) resolves EF Core 10.0.13 and Npgsql EF 10.0.3 in all four hosts and passes 4/4, 280/280, 91/91 and 295/295; PostgreSQL 18 passes the same. Both floor legs,Test (ubuntu-latest),Integration (live PostgreSQL),PackandConsumer smoke testpass.🤖 Generated with Claude Code