Repository navigation
build: Metalama 2027.0.9-preview, SDK 11 and net11.0 assets for the EF Core and ASP.NET Core packages - #287
Draft
CaffeinatedCoder wants to merge 14 commits into
Draft
CaffeinatedCoder wants to merge 14 commits into
CaffeinatedCoder wants to merge 14 commits into
Conversation
2.4.0 must build for every .NET 11 consumer, also one with only SDK 11 installed. On Metalama 2026.1 a web project fails there with LAMA0625, on net10.0 as on net11.0 (KB-060, #275), so the Generators package moves to Metalama 2027.0 in 2.4.0 for both targets, and 2.4.0 is tagged only on a stable 2027.0. A CI lane with only SDK 11 installed joins decision 120's conditions (#281); 2.3.x is the line below the ceiling. #173, #272 and #223 move to the 2.4.0 epic. Replaces decision 120's Metalama timing. Closes #280 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…preview.1 Metalama.Framework moves from 2026.1.30 to 2027.0.9-preview, and the version to 2.4.0-preview.1, since a stable package cannot depend on a prerelease (NU5104). 2.4.0 stays a preview until Metalama 2027.0 is stable (#173, #284). What the 2027 compiler asked for: - LAMA0891: two static tables of the aspects were arrays, which are mutable. They are ImmutableArray now. - The value placeholder does not need [Durable] on this preview: the build passes under warnings as errors without it, so the note that expected it goes. Measured on SDK 10.0.404, macOS arm64: the solution builds, and the suite is 36119 passed of 37480 with 1252 skipped; its 109 failures were all the pack of the Generators package under version 2.4.0 (NU5104), which the version fixes (Conventions: 2089 passed). Refs #173 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…o build/metalama-2027-preview
…alama 2027 preview Every 2.4.0 version builds on the current Metalama 2027 preview and is a preview itself until Metalama 2027.0 is stable; v2.4.0 is still tagged only on a stable 2027.0 (decision 129, which this amends). A new Metalama preview is taken by a change of its own, and each preview has its changelog section. The aspects note, the packages note, the verdict tool's LAMA remedy and the Generators README no longer name Metalama 2026.1 as the stack. Refs #284, #173 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
SDK 11.0.100 with latestPatch, after the Generators package moved to Metalama 2027: on Metalama 2026.1.30 the repository fails on SDK 11.0.100 with CS8034 in the Generators project. Measured on macOS arm64 with Metalama 2027.0.9-preview: the solution builds from scratch with no warning, and the suite is 36227 passed of 37480 with 1252 skipped. Its one failure was docs-query check on the 19 facts pinned to sdk 10.0.4xx. Their tests are in the 36227, so their pins move to sdk 11.0.1xx with today's date. Not measured: Linux and Windows, the packed net10.0 assets compared with SDK 10's, and an installation with SDK 11 alone (#281). Refs #170, #208 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…lt against it The 2.3.1 package, built against EF Core 10, threw MissingMethodException on EF Core 11 for the first value object EF mapped: EF Core 11 removed the value generator factory of ConverterMappingHints, which carried a value object's temporary number (decision 114). Restore and build were clean, since the package has no ceiling on EF Core. - The package and its tests target net10.0 and net11.0. The net11.0 group requires Microsoft.EntityFrameworkCore.Relational 11.0.0 (decision 120, rule 1), and its tests run on EF Core 11.0.0, Npgsql 11.0.0 and SQL Server's provider 11.0.0. - On net11.0 a value object over ulong or char that EF generates on add gets WrappedTypeValueGeneratorFactory on the property (decision 132). SQL Server's HiLo then is not chosen for a ulong key until the application clears the factory, which the README says and KeyGenerationTests pins; a Native AOT compiled model and a converter named by hand get the temporary value they lacked. net10.0 is unchanged. - PackageDependencyTests holds the base-package dependency in every target group of a nuspec. - The changelog also names the Metalama 2027 floor of the Generators package. Shown by removal: with the hints compiled out and no factory, 18 key tests fail on net11.0 (KeyGenerationTests 4, KeyGenerationVariantTests 3, SqlServerKeyVariantTests 11); with the factory they pass, on both targets. Input class: the key kinds and shapes of KeyShapes on three providers (KeyGenerationVariantTests, SqlServerKeyVariantTests), run on net11.0. Sibling found there: a TPC key over ulong, whose sequence default left it without the factory. Still failing on net11.0, 73 of 25667, none in this change's code: 72 cases of SqlServerQueryVariantTests where SQL Server answers a Greatest, Least or MinBy over a nullable value as it does for the wrapped type and not as memory does (EF Core 11 translates them at its default compatibility level), and the SQL text SqlTranslationTests expects for a primitive collection's element on Npgsql 11. They are #215's, and this branch is not ready to merge before them. Not done: the weaving review, and the ASP.NET Core package (#286). Refs #285, #208, #215 Defect-Class: EFT Found-By: RS Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…oft.AspNetCore.OpenApi 11 With the 2.3.1 package, built against the 10 line, GET /openapi/v1.json answered 500 on ASP.NET Core 11: MissingMethodException on OpenApiResponse.set_Content, whose type Microsoft.OpenApi 3 changed to a dictionary of IOpenApiMediaType. The endpoints themselves kept working, and restore and build were clean. - The package and its tests target net10.0 and net11.0. The net11.0 group requires Microsoft.AspNetCore.OpenApi 11.0.0 (decision 120, rule 1), and its tests run on it with Microsoft.AspNetCore.TestHost 11.0.0. - Two lines of FaultResponsesOperationTransformer were all that did not compile against Microsoft.OpenApi 3: the response's content is typed per target. Measured on net11.0, macOS arm64: the woven probe host builds on Metalama 2027.0.9-preview beside the OpenAPI 11 source generator, the document is written, and 1994 of 2088 tests pass. Still failing on net11.0, 94 tests, which are #214's and keep this branch from merging: NullablePositionTests (84, a nullable value object's schema differs from the wrapped type's in the same position), HostConfigurationTests (4, a refused body is no bare 400), ComposedFaultResponseTests (3, the order of statuses), DescribedSchemaTests (2) and FaultSetValueBindingTests (1). Not triaged: which are ASP.NET Core 11's own answers for the plain type. Not done: the weaving review. Refs #286, #208, #214 Defect-Class: FCI Found-By: RS Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Refs #286 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A publish names one target, so the two packages that now have a net11.0 asset failed the site's build with NETSDK1129 (pull request 287). net10.0 is the surface every target has (decision 120, rule 2). Run locally: the five packages of site/docfx.json publish. Refs #208 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…or an error The query catalogue needs more than the twenty internal service providers EF warns about, and only SQL Server's contexts ignored the warning. It falls on whichever configuration is first built after the twentieth: on Linux, with the tests of two targets running side by side, that was PostgreSQL's in the net10.0 run, and all its 6505 cases failed (pull request 287). The ignore moves to the one place every provider's context is made. Locally the EF tests are unchanged by it: 48775 passed, and the 73 known failures on net11.0 (#215). Refs #285 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ll where the wrapped type's does ASP.NET Core 11 builds the schema of a Nullable<T> it is asked for from T, with no null in it, and puts a null-or around a nullable body or response itself (OpenApiSchemaService.CreateSchema, read at v11.0.0). The transformer still added the null as ASP.NET Core 10's exporter did, so on net11.0 a nullable value object said null twice, in its type and among an enum's values, where the wrapped type in the same position says it once. Validation was the same; the schema was not the wrapped type's. On net11.0: - an inlined nullable value object ASP.NET asks for gets no null of its own; a nullable property still does; - the element of a container gets its null in a copy of what ASP.NET returned, and none where the wrapped type is a reference type; - the element of a parameter outside the body, over a wrapped type that is a component, is that component's schema: ASP.NET Core 11 puts the element's null around it itself, after the transformers ran (MakeArrayItemsNullable). net10.0 is unchanged. Input class: NullablePositionTests, every position (body, response, route, query, header, form, their elements, a container's elements and values) by OpenAPI version, reference mode, enums by name and host. 84 of its cases failed on net11.0 and none does now; the other ASP.NET Core tests are as before, 10 failing on net11.0, which are next. Refs #286, #214 Defect-Class: FCI Found-By: VA Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…, with a fact for each The ten tests that still failed on net11.0 measure the framework, not TypeKit, each checked against a host without TypeKit on both versions: - KB-061: ASP.NET Core 11 writes an operation's statuses ascending, so an operation TypeKit leaves alone is ascending too (ComposedFaultResponseTests, whose comparison with the plain host holds on both). - KB-062: with AddProblemDetails(), ASP.NET Core 11 answers a body a minimal API could not read with a validation problem carrying the converter's message, where ASP.NET Core 10 answers an empty 400 (HostConfigurationTests, FaultSetValueBindingTests). The message names the value object and the rule, never the input, as MVC's already did. The README's Binding section and the walkthrough say so. - KB-063: in a host with AddOpenApi(), ASP.NET Core 11 writes a decimal with the options' converter where a resolver put first would write it; the value object is written as the plain decimal is, on both (DescribedSchemaTests). The ASP.NET Core tests pass on both targets: 4176. Refs #214, #286 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… fact for each The 73 tests that still failed on net11.0 measure EF Core 11 and SQL Server, not TypeKit; in each the value object answers as the wrapped type does. - KB-064, with a test against the server: SQL Server's GREATEST and LEAST leave a NULL argument out. EF Core 11 translates Greatest and Least at its default compatibility level, where EF Core 10 refused them (KB-053), so their answers over a nullable value meet memory's for the first time (68 cases). - KB-065, with a test against the server: SQL Server orders NULL first. EF Core 11 translates MinBy, which then answers the row without a value; SQLite seconds that for every kind but ulong and DateTimeOffset, which it does not order (4 cases). - SqlServerQueryVariantTests knows both, each only for the answer it explains: fewer nulls than memory for the first, a MinBy of those two kinds for the second. Its guard holds that a value SQL Server lost is no NULL left out. The decimal comparison no longer throws on a row without a value. - EF Core 11 leaves out a cast that changes nothing: the SQL of a primitive collection's element is `t.value = 'x'` there (1 case). The EF Core tests pass on both targets, 48848, and the whole suite does: 62772 passed, 2495 skipped. Refs #215, #285 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The comments beside the queries are EF Core 10's SQL, which the samples hold. EF Core 11 leaves out a cast that changes nothing, so the query over a primitive collection's element ends in t.value = 'x' there (issue 215, check 2). Refs #215 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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 #173
Problem
.NET 11 has been generally available since 2026-11-10, and the published 2.3.1 packages fail on the 11 line:
MissingMethodExceptionfor the first value object EF Core 11 maps (The EF Core package throws MissingMethodException on EF Core 11: ConverterMappingHints lost its value-generator parameter #285);Microsoft.AspNetCore.OpenApi11 (The ASP.NET Core package answers 500 for the OpenAPI document on Microsoft.AspNetCore.OpenApi 11: OpenApiResponse.Content changed its type #286);Microsoft.AspNetCore.OpenApi11 fails with LAMA0625 even with SDK 10 installed (A web project with the Generators package fails with LAMA0625 when SDK 11 is the only SDK #275).The maintainer decided on 2026-11-28 that every 2.4.0 version builds on the current Metalama 2027 preview and stays
a preview until Metalama 2027.0 is stable (decision 130, here).
Change
2.4.0-preview.1(Move the Generators package to Metalama 2027.0 in 2.4.0 (decisions 120 and 129) #173, Decision record: 2.4.0 ships as 2.4.0-preview.N on a Metalama 2027 preview until 2027.0 is stable (amends decision 129) #284). The 2027 compiler asked for one thing:LAMA0891 on two static lookup tables of the aspects, now
ImmutableArray.[Durable]on the value placeholderis not asked for by this preview. Decision 130, with decision 129 (from docs: decision 129, Metalama 2027.0 moves into 2.4.0 #282, merged in here) marked as amended.
global.jsonpins SDK 11.0.100 (decision 131). The 19 facts pinned tosdk 10.0.4xxpassed on it and moved.net10.0andnet11.0(The EF Core package throws MissingMethodException on EF Core 11: ConverterMappingHints lost its value-generator parameter #285). Thenet11.0group requires EF Core 11.0.0. EF Core 11removed the factory a type mapping took from its converter's hints (decision 114), so on
net11.0a value objectover
ulongorchargenerated on add getsWrappedTypeValueGeneratorFactoryon the property (decision 132).SQL Server's HiLo then is not chosen for a
ulongkey until the application clears the factory; a Native AOTcompiled model and a converter named by hand get the temporary value they lacked.
net10.0is unchanged.net10.0andnet11.0(The ASP.NET Core package answers 500 for the OpenAPI document on Microsoft.AspNetCore.OpenApi 11: OpenApiResponse.Content changed its type #286). Thenet11.0group requiresMicrosoft.AspNetCore.OpenApi11.0.0. Two lines ofFaultResponsesOperationTransformertype a response'scontent per target.
ASP.NET Core 11 builds a
Nullable<T>schema fromTand wraps it, where 10 wrotenullinto the type. Theschema transformer added it the ASP.NET Core 10 way on both, so on
net11.0the null was there twice.net10.0is unchanged.
minimal API answers a refused body with a validation problem), KB-063 (
OpenApiJsonSchemaContextanswers fordecimalahead of a resolver), KB-064 (GREATEST/LEASTleaveNULLout) and KB-065 (NULLordered first),the last two with a test against SQL Server. The tests that met them say so per target.
PackageDependencyTestsholds the base-package dependency in every target group of a nuspec.(
E04-ulong-key-hilo-ef-core-11).Tests
Measured locally on macOS arm64, where the machine holds a Metalama licence, so the licence-free build is not shown:
net11.0targets: the solution builds from scratch with nowarning; 36227 passed of 37480, 1252 skipped, 1 failed (the facts' SDK pins, since moved).
tests fail on
net11.0; with the factory they pass. Run acrossKeyShapeson three providers; a sibling foundthere, a TPC key over
ulong.docs-query checkclean.The whole suite, both targets, locally: 62772 passed, 2495 skipped, none failed. ASP.NET Core tests 4176, EF
Core tests 48848, conventions 2119, samples 151, oracles 51.
The 167
net11.0failures this draft first listed, each read against a host or a query without TypeKit:nulltwice on ASP.NET Core 11decimalunder a resolver's converter (2)Greatest,LeastandMinByKnownin the query catalogue, KB-064 and KB-065Not done: the weaving review of both satellite changes and of the schema fix, an executable test for KB-061 to
KB-063 (the facts project runs on
net10.0only), a seeded defect for the changed convention test, anet11.0target for the other packages (#208), the SDK-11-only lane (#281) and the prerelease path of the releaseworkflow (#247).
🤖 Generated with Claude Code