Skip to content

No offline test holds RequireKernel as the first call of each registration #170

Open

Description

@CaffeinatedCoder

Found by the pre-tag review of 948496a..0ee827d (the review for v11.0.0-preview.1).

SchemaKitPackages.RequireKernel (#113) is called first in both of the PostgreSQL package's registrations (SchemaKitNpgsqlExtensions.cs:33 and :64). Each call was taken out on its own:

The NoInlining split that makes the check run before anything binds is also held only by Mixed/.

Suggested test

An offline test that reads the IL of each public registration method of every package under src/ (MethodBody.GetILAsByteArray and the tokens it calls). It asserts that the method's only call into the kernel is SchemaKitPackages.RequireKernel, and that the rest of the registration sits in a NoInlining method.

Does it block preview.1?

No. Both calls are there and right in 0ee827d; what is missing is the test that keeps them there. The release runs the smoke test by hand, and that covers the documented path.

Activity

  1. added this to the 11.0.0 milestone on Nov 17, 2026
  2. added
    tests
    severity/low
    on Nov 17, 2026
  3. added
    package/postgresql
    area/release
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/releasepackage/postgresqlseverity/lowtests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions