Repository navigation
net11 measurements: EF Core 11 under the 5.x differ (record for SchemaKit, not merged) - #47
Draft
CaffeinatedCoder wants to merge 3 commits into
Draft
CaffeinatedCoder wants to merge 3 commits into
CaffeinatedCoder wants to merge 3 commits into
Conversation
…ests The changelog, packaging and security-policy convention tests parsed every version with System.Version, which rejects a prerelease suffix, so the first preview of a new line crashed all five with a FormatException instead of a finding. A SemanticVersion record in the harness parses "11.0.0-preview.1", orders as SemVer 2.0 §11 (and NuGet) does, and recognises the changelog heading with an optional suffix — still the literal "## <version>" release.yml extracts the notes with. SECURITY.md describes released lines. While a prerelease is being built, the supported-versions row is checked against the newest version the changelog documents without a suffix, and the support-horizon sentence may still name the EF Core major before the one the preview targets, since that is the line receiving fixes. A released version is checked as before. Co-Authored-By: Claude Fable 5.1 <[email protected]>
The 11 line, as decided on 2026-10-18: one line per EF Core major, this branch carrying only the retarget and merging main forward. net11.0 in the three shipping projects and the tests; Microsoft.EntityFrameworkCore.* 11.0.0-rc.1.26425.128 with the floor [11.0.0-rc.1.26425.128, 12.0.0); Npgsql.EntityFrameworkCore.PostgreSQL [11.0.0-rc.1.1, 12.0.0). Not rc.2: Npgsql's prerelease pins Microsoft.EntityFrameworkCore to exactly rc.1, so EF rc.2 fails to restore next to it (NU1107) in the PostgreSQL satellite, the tests and any consumer. global.json pins the 11.0.100-rc.2 SDK (latestFeature, allowPrerelease), so an SDK 10 refuses the branch instead of building it wrong. No source change was needed: the differs compile and all 339 tests pass unchanged, the integration suite on PostgreSQL 18 included. Package validation: the 5.4.1 baseline ships net10.0 and this ships net11.0 only, so the baseline validator reports PKV006 and pairs no frameworks. Suppressed per package through the documented CompatibilitySuppressions.xml route; the surface was compared with the standalone apicompat tool instead (no change in any of the three assemblies). Issue #46 tracks restoring the guard. The baseline moves to 5.4.1, the release before this one. The consumer smoke test pins the consumer's Design package and the dotnet-ef tool to the EF version the packages build against, read from the core csproj, because a consumer one RC ahead of the provider hits the same NU1107. CI installs the .NET 11 preview SDK in every job. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Brings in #45 (tracking culture, two supported lines), #48 (Latest handling) and #53 (Dependabot build-only pins). Conflicts: ChangelogConsistencyTests, PackagingConventionTests and SecurityPolicyConsistencyTests, all resolved to main. 2085324 added a SemanticVersion harness type here so the convention tests could read 11.0.0-preview.1; #45 solved the same problem on main with ReleaseVersion (prerelease parsing, SemVer precedence, the "## <version>" heading with a suffix) and made the security-policy checks aware of two lines. SemanticVersion is unused after the merge and is removed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 11, 2026
This branch has not been deployed
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 CaffeinatedCoder/CodoMetis.EFCore.SchemaKit#2
Problem
EF Core 11 targets
net11.0only, and this package's differs subclass EF internals behind EF1001, so EF Core 11 is where it breaks first. Issue CaffeinatedCoder/CodoMetis.EFCore.SchemaKit#2 asks for the retarget on its own branch, measured before anything is changed, with the public surface identical to the last 10-line release.Change
net11.0in the three shipping projects and the test project;Version11.0.0-preview.1;PackageValidationBaselineVersion5.4.1 (the release before this one, asPackagingConventionTestsrequires).Microsoft.EntityFrameworkCore.Abstractionsand.SqlServer[11.0.0-rc.1.26425.128, 12.0.0),Npgsql.EntityFrameworkCore.PostgreSQL[11.0.0-rc.1.1, 12.0.0),Microsoft.EntityFrameworkCore.Designrc.1 (build-only, unchangedPrivateAssets=all). Not rc.2, and not[11.0.0, 12.0.0)— see decisions 1 and 2.global.jsonpins11.0.100-rc.2.26504.105withrollForward: latestFeatureandallowPrerelease; Homebrew's dotnet 10 now refuses the branch (Install the [11.0.100-rc.2.26504.105] .NET SDK or update global.json) instead of building it wrong..github/workflows/dotnet.yml:dotnet-version: 11.0.x+dotnet-quality: previewin all four jobs. Nothing else in the workflow moves (#43). The SBOM tool (cyclonedx6.2.0, net10.0) hasrollForward: Majorin its runtimeconfig, so it runs on the 11 runtime.test/consumer-smoke-test.sh: consumer onnet11.0; the consumer'sMicrosoft.EntityFrameworkCore.Designand thedotnet-eftool pinned to the EF version read from the core csproj (decision 1 is a consumer's problem too:--prereleasepicked Design rc.2 and failed with NU1107).CompatibilitySuppressions.xmlper package suppressingPKV006fornet10.0— the documented route inDirectory.Build.propsfor a deliberate break (decision 3).ChangelogConsistencyTestsrequires for the shipped version.SemanticVersionin the harness) —System.VersionthrewFormatExceptionon11.0.0-preview.1. Separate commit.src/beyond the csproj files and the core packageDescription. No doc underdocs/or README names EF Core 10, so none changed.Tests
Measured before changing (EF Core 11 rc.1, .NET 11 RC2 SDK)
NU1107: EFCore.ComplexIndexes.PostgreSQL -> Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0-rc.1.1 -> Microsoft.EntityFrameworkCore (= 11.0.0-rc.1.26425.128)againstDesign rc.2 -> Relational rc.2 -> EF (>= rc.2). Same in the test project via the SqlServer provider.0 Error(s). The differ constructor keeps five parameters onrelease/11.0(ROADMAP.md, corrected 2026-09-22);IEntityType.FindIndexwidening is source-compatible. No#ifneeded.System.FormatException: The input string '11.0.0-preview.1' was not in a correct format, plus the security-policy horizon assertion (SECURITY.md says the current line targets EF Core 10, but the core project's EF Core floor is 11). No behaviour test failed.CI=trueso an unreachable container would have failed rather than skipped.DesignTimeServiceRegistrationTests6/6,RuntimeRegistrationTests7/7.EnsureCreated,GenerateCreateScript, pending-changes checkPendingModelChangesTests5/5,RuntimeRegistrationTests(EnsureCreated / create script) pass.SnapshotRoundTripTests8/8 — a real generated snapshot compiled with Roslyn under EF 11's refactoredCSharpSnapshotGenerator, diffed back with no churn.mainNpgsql*SqlTests,NpgsqlJsonMemberRenderingTests15/15 against EF's ownToQueryString(),SqlServerDifferTests, exclusion/temporal) is unchanged on this branch and passes.PostgresIntegrationTests9/9 on a PostgreSQL 18 container.postgres:18, hard-coded); a 16 leg is CaffeinatedCoder/CodoMetis.EFCore.SchemaKit#5's matrix work.consumerjob's mode) and pre-built feed (thepackjob's mode): every assertionokfor both satellites, including the exclusion constraint that pins the Npgsql differ, the clustered-index rejection that pins the SQL Server differ, and no churn on a secondmigrations add.Public surface
Standalone
apicompat(Microsoft.DotNet.ApiCompat.Tool),--leftthe 5.4.1lib/net10.0assembly from the restored baseline package,--rightthenet11.0Release build:EF 11 forced no signature change.
Verify-the-guard
dotnet packwith the PKV006 suppression in place, after makingCustomMigrationsModelDiffer.RuntimeWiringSentinelinternal: packed successfully. Package validation is blind across the framework drop (it only pairs frameworks the new package still serves).apicompaton the same build:CP0002: EFCore.ComplexIndexes.CustomMigrationsModelDiffer.RuntimeWiringSentinel exists on the left but not on the right. The check is possible, just not throughdotnet pack— hence Package validation on the SchemaKit line: no baseline until 11.0.0 CodoMetis.EFCore.SchemaKit#6.main.Decisions for the maintainer
Microsoft.EntityFrameworkCoreexactly, so the whole solution and every consumer sit on the RC Npgsql was built against. Bumping to rc.2 is a one-line change in each csproj the dayNpgsql.EntityFrameworkCore.PostgreSQL11.0.0-rc.2 is on NuGet. The SDK is RC2 regardless.[11.0.0-rc.1.26425.128, 12.0.0), not[11.0.0, 12.0.0). NuGet orders prerelease below release, so[11.0.0, …)excludes every RC and cannot restore today. The floor moves to11.0.0at EF Core 11 GA.Directory.Build.propscomment says so.SecurityPolicyConsistencyTestson a prerelease. SECURITY.md is Adopt the ValueRanges tracking culture: issue forms, PR template, hygiene workflow, CONTRIBUTING labels and branches, SECURITY rows #40's (not touched here). On a prerelease the test now checks the table against the newest released version in the changelog (5.4) and lets the horizon sentence name the EF major before the targeted one, since that is the line receiving fixes. Once Adopt the ValueRanges tracking culture: issue forms, PR template, hygiene workflow, CONTRIBUTING labels and branches, SECURITY rows #40 lands with two supported rows and merges forward, its version of the test wins; expect a small conflict in that file.release.ymlstill installs SDK 10.0.x. Left alone on purpose (this PR touchesdotnet.ymlonly; the publish path is CI lanes: PostgreSQL 16 and 18, SQL Server 2022, and a prerelease path in the release workflow CodoMetis.EFCore.SchemaKit#5's). A tag on this branch would fail at restore, loudly, not publish something wrong.Follow-ups
release.ymlSDK.🤖 Generated with Claude Code