Skip to content

Tests: run every suite on the newest EF Core 10 patch, and prove the floor - #135

Merged
CaffeinatedCoder merged 2 commits into
mainfrom
tests/133-ef-patch-matrix
Oct 20, 2026
Merged

CaffeinatedCoder merged 2 commits into
mainfrom
tests/133-ef-patch-matrix

Conversation

@CaffeinatedCoder

@CaffeinatedCoder CaffeinatedCoder commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

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.x takes 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 every Microsoft.EntityFrameworkCore* entry, and Npgsql EF when given, is at the expected version.
  • .github/workflows/dotnet.yml:
    • The unit job checks that the default build is the floor.
    • A new lane, 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.
    • The CI gate needs the new lane. nightly.yml (Release: run the full CI before publishing, and a nightly full run #111) calls dotnet.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_VERSION and SMOKE_NPGSQL_EF_VERSION pin 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.

  • Floor (all at 10.0.0, deps.json checked): 558/558 excluding the SQL Server lane. The SQL Server 2022 image needs Rosetta on Apple Silicon, so that lane runs on CI only.
  • Newest patch (EF Core 10.0.13, Npgsql EF 10.0.3, deps.json checked): 558/558, and the smoke test passes with both consumers pinned.
  • .NET 11 roll-forward (RollForward=LatestMajor, DOTNET_ROLL_FORWARD_TO_PRERELEASE=1; the --diag log reads Runtime 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.
  • Seeded float that does not take: restoring with a misspelled -p:EfFlaot=10.0.13 builds 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).
  • WorkflowGateConventionTests and ClaudeMdConsistencyTests pass with the new lane and the CLAUDE.md text (533/533 unit tests).

🤖 Generated with Claude Code

…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]>
@CaffeinatedCoder CaffeinatedCoder added this to the 5.5.0 milestone Oct 20, 2026
@CaffeinatedCoder CaffeinatedCoder added tests Adds or changes tests only (harnesses, parity suites); no library code package/core Affects EFCore.ComplexIndexes package/postgresql Affects EFCore.ComplexIndexes.PostgreSQL package/sqlserver Affects EFCore.ComplexIndexes.SqlServer area/release Versioning, changelogs, release wiring labels Oct 20, 2026
# Conflicts:
#	test/consumer-smoke-test.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, release wiring package/core Affects EFCore.ComplexIndexes package/postgresql Affects EFCore.ComplexIndexes.PostgreSQL package/sqlserver Affects EFCore.ComplexIndexes.SqlServer tests Adds or changes tests only (harnesses, parity suites); no library code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests: run the suites on the EF Core 10 floor, the newest patch and the .NET 11 runtime

1 participant