Skip to content

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
release/2.4.0from
build/metalama-2027-preview
Draft

CaffeinatedCoder wants to merge 14 commits into
release/2.4.0from
build/metalama-2027-preview

Conversation

@CaffeinatedCoder

@CaffeinatedCoder CaffeinatedCoder commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Closes #173

Draft. It is not for merging as it is: it holds several issues' work and will be split. #173 itself stays
open until Metalama 2027.0 is stable; the closing reference is the one issue whose labels and branch type this
draft carries. The question it first asked of CI is answered: the repository builds and passes with no Metalama
licence
on 2027.0.9-preview, on Linux and Windows, on SDK 11.0.100 (recorded on #284).

Problem

.NET 11 has been generally available since 2026-11-10, and the published 2.3.1 packages fail on the 11 line:

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

Tests

Measured locally on macOS arm64, where the machine holds a Metalama licence, so the licence-free build is not shown:

  • Metalama 2027.0.9-preview on SDK 11.0.100, before the net11.0 targets: the solution builds from scratch with no
    warning; 36227 passed of 37480, 1252 skipped, 1 failed (the facts' SDK pins, since moved).
  • Key generation, both targets: 1226 passed. Shown by removal: with the hints compiled out and no factory, 18 key
    tests fail on net11.0; with the factory they pass. Run across KeyShapes on three providers; a sibling found
    there, a TPC key over ulong.
  • Conventions 2112, oracles 51, samples 151, docs-query check clean.

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.0 failures this draft first listed, each read against a host or a query without TypeKit:

Cases What it was Answer Issue
84 A nullable value object's schema said null twice on ASP.NET Core 11 Fixed in the transformer #214
10 ASP.NET Core 11's own: status order (3), a refused body in a minimal API (5), decimal under a resolver's converter (2) Test per target, KB-061 to KB-063 #214
72 SQL Server's own, reached now that EF Core 11 translates Greatest, Least and MinBy Known in the query catalogue, KB-064 and KB-065 #215
1 EF Core 11 drops a cast that changed nothing SQL text per target, a sentence in the README #215

Not 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.0 only), a seeded defect for the changed convention test, a
net11.0 target for the other packages (#208), the SDK-11-only lane (#281) and the prerelease path of the release
workflow (#247).

🤖 Generated with Claude Code

CaffeinatedCoder and others added 8 commits October 31, 2026 22:02
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>
…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>
@CaffeinatedCoder CaffeinatedCoder added this to the 2.4.0 milestone Nov 28, 2026
@CaffeinatedCoder CaffeinatedCoder added chore Build, CI, tooling, packaging, refactoring with no behaviour change package/generators Affects CodoMetis.TypeKit.Generators area/release Versioning, changelogs, packaging and release wiring labels Nov 28, 2026
CaffeinatedCoder and others added 2 commits November 28, 2026 17:39
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>
CaffeinatedCoder and others added 4 commits November 28, 2026 17:56
…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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, packaging and release wiring chore Build, CI, tooling, packaging, refactoring with no behaviour change package/generators Affects CodoMetis.TypeKit.Generators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant