Skip to content

chore: what publishing preview.1 needs: exact kernel pin, README and symbols, pack checks, release.yml, the PostgreSQL 16 lane - #129

Merged
CaffeinatedCoder merged 3 commits into
mainfrom
chore/release-preview1
Nov 14, 2026
Merged

CaffeinatedCoder merged 3 commits into
mainfrom
chore/release-preview1

Conversation

@CaffeinatedCoder

@CaffeinatedCoder CaffeinatedCoder commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Closes #124

Part of #35 (the slice 11.0.0-preview.1 cannot ship without) and #5 (the PostgreSQL 16 lane). Nothing is tagged or published by this PR, and no publish job has run.

Problem

Measured by the delivery sweep (#35, comment of 2026-11-14):

  • The PostgreSQL package's nuspec named the kernel as version="11.0.0-preview.1", a lower bound. A consumer with a newer kernel restores and builds without a warning and fails at the first context with MissingMethodException, since the package calls a contract that is experimental until rc.1.
  • Neither package carried a README, and neither had symbols.
  • There was no release.yml, so nothing could be published.
  • The live tests ran on PostgreSQL 18 only; 16 is the floor.

Change

  • src/CodoMetis.EFCore.SchemaKit.PostgreSQL/…csproj: the target ExactKernelVersion from Port the convention tests, MigrationHarness, release workflow and skills #35, as given. The packed dependency lines, from dotnet pack -c Release at this commit:

    <!-- CodoMetis.EFCore.SchemaKit -->
    <dependency id="Microsoft.EntityFrameworkCore.Relational" version="11.0.0-rc.3.26522.148" exclude="Build,Analyzers" />
    <!-- CodoMetis.EFCore.SchemaKit.PostgreSQL -->
    <dependency id="CodoMetis.EFCore.SchemaKit" version="[11.0.0-preview.1]" exclude="Build,Analyzers" />
    <dependency id="Npgsql.EntityFrameworkCore.PostgreSQL" version="11.0.0-rc.3" exclude="Build,Analyzers" />
  • Both project files: PackageReadmeFile, and a README.md beside each. They are short placeholders with absolute links; their content is README: the sample does not compile against preview.1, and neither package carries a README #106's.

  • Directory.Build.props: IncludeSymbols, snupkg, EmbedUntrackedSources, and ContinuousIntegrationBuild when CI is set, as in EFCore.ComplexIndexes.

  • test/…/Conventions/PackagingConventionTests.cs: six tests that pack every project under src/ into a temporary folder (--artifacts-path, so with its own bin and obj; under the version 11.0.0-preview.1.packcheck; nothing goes to the checkout or the global packages folder) and open the .nupkg and .snupkg. With SCHEMAKIT_PACKAGES set they read that folder instead.

  • .github/workflows/release.yml: ported from EFCore.ComplexIndexes. ci calls dotnet.yml whole; verify checks the tag against Directory.Build.props, takes the release notes from the changelog, builds, packs, runs the pack checks on dist/ and uploads; publish (the only job with id-token: write, in the nuget environment) pushes through trusted publishing, the kernel first; release (the only job with contents: write) creates the GitHub release, a prerelease and not Latest for a version with a suffix.

  • .github/workflows/dotnet.yml: workflow_call, and the integration lane as a matrix over PostgreSQL 16 and 18. Each leg writes the image digest and the server's server_version to the summary and fails when the server is not the major the leg is for.

  • CLAUDE.md and CONTRIBUTING.md say what is now held.

What differs from the 5.x workflow, and why:

5.x Here
publish runs if: push || !inputs.dry_run Names the events it runs for. On any event without the input !inputs.dry_run is true, so an event added to on: later would publish
The changelog section is held by ChangelogConsistencyTests; the notes are extracted in release, after the push That test is not ported, so verify extracts the notes and fails a tag without a section before anything is published. A dry run without one warns and goes on
verify runs the whole suite again ci has run it on the same commit; verify runs the pack checks on the files it uploads
Consumer smoke test, SBOMs, nuspec release notes Not here: #34, and the rest of #35

Tests

Locally at this commit: the solution builds in Release with 0 warnings; 519 kernel tests, 133 of the PostgreSQL package (without the live ones) and 125 probes pass.

Each pack check, with its subject broken (one edit, the six tests run, the edit reverted):

Broken Fails
ExactKernelVersion hooks a target name NuGet does not have A package depends on another SchemaKit package at exactly its own version: expected [11.0.0-preview.1.packcheck]
PackageReadmeFile removed from the PostgreSQL package Each package carries the README its nuspec names: the nuspec names no readme
The PostgreSQL package packs the kernel's README.md same test: the README is not its own
PackageLicenseExpression removed Each nuspec states the license, the repository and the commit…: the license is not an expression
RepositoryUrl set to another repository same test: the repository's URL
EnableSourceControlManagerQueries=false same test: the commit is not the packed commit; and the symbols test: no Source Link
A file packed to lib/net10.0/ in the kernel (NU5128 silenced) Each package targets net11.0 and nothing else: lib/ holds net10.0, net11.0
IncludeSymbols removed Each package has a symbols package…: no .snupkg
EnableSourceLink=false same test: the PDB has no Source Link
ContinuousIntegrationBuild removed, CI=true same test: sources keep the build machine's path
nothing, with and without CI=true 6 pass

Without NU5128 silenced the framework break fails the pack itself (warnings are errors), and all six tests with it.

The release workflow, as far as it goes without a tag. actionlint is not installed here. The run steps were taken out of the YAML and run locally with bash:

  • the tag check: v11.0.0-preview.2 against 11.0.0-preview.1 fails, v11.0.0-preview.1 passes;
  • the notes: no section on a branch warns and goes on, no section on a tag fails, a seeded section passes with its blob/main/ links rewritten to blob/v11.0.0-preview.1/, a heading with - for — fails;
  • build, pack to dist/, the pack checks with SCHEMAKIT_PACKAGES=dist (6 pass), collect; with one .snupkg moved away, collect fails and so does the symbols test;
  • the push loop against a stub dotnet on PATH: the kernel is pushed first.

On GitHub, ci and verify ran once through a temporary pull_request trigger, green, with publish and release skipped: run 43581798302. The trigger is taken out again; the two commits for it squash away.

Not exercised by any run: publish (the environment's approval, the OIDC exchange with nuget.org, the trusted-publishing policy, the push, the .snupkg upload) and release (gh release create, the prerelease flags). A workflow_dispatch dry run is possible only once the file is on main.

Before the first tag

  • CHANGELOG.md needs ## [11.0.0-preview.1] — yyyy-mm-dd with text under it. It says "Nothing is released yet" today, so a tag now stops in verify.
  • Gate 0: protect main, require the CI gate, set up trusted publishing for the new ids #14: its last item, a dry run of the release workflow (gh workflow run release.yml on main), after this is merged. The trusted-publishing policy on nuget.org cannot be read from here.
  • SECURITY.md should be read against what a release ships: no SBOM is attached yet.

Decisions in this PR that are not confirmed

  • InternalsVisibleTo stays in the Release build. CI builds and tests Release, and that build is packed. A condition on the configuration would stop the Release tests from compiling or ship a binary no test ran against. The assemblies are unsigned, so the grant keeps nobody out, and reflection reads the same internals.
  • PublishRepositoryUrl is not set, unlike 5.x. With it the nuspec's repository is the clone's origin, so the stated RepositoryUrl had no effect (the URL break above passed with it) and a fork would pack its own URL. The commit is in the nuspec either way.
  • The integration lane is one job with a matrix, not a second job. The CI gate reads one result for both servers; the check names are Integration (PostgreSQL 16) and Integration (PostgreSQL 18).
  • The README check asks that a README opens with # <package id>, which is what tells a package's own README from the other's. README: the sample does not compile against preview.1, and neither package carries a README #106 has to keep that heading.
  • verify does not run the whole suite again, and the release carries no SBOM and no consumer smoke test.
  • A manual run with dry_run off on a tag publishes, as in 5.x; the environment refuses any other ref.

🤖 Generated with Claude Code

…and symbols, pack checks, release.yml, the PostgreSQL 16 lane

The PostgreSQL package depended on the kernel as a lower bound, so a newer kernel restored
and built and failed at run time on a contract that is experimental until rc.1. It is packed
as [version] now. Each package carries a README of its own and a .snupkg with Source Link.

PackagingConventionTests packs both projects into a temporary folder and opens the .nupkg.
release.yml is ported from EFCore.ComplexIndexes: a tag v*, every lane of CI, pack, the pack
checks on the packed files, trusted publishing behind the nuget environment's approval, and
a GitHub release that is a prerelease for a version with a suffix.

The integration lane runs on PostgreSQL 16 and 18.

Closes #124

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 11.0.0 milestone Nov 14, 2026
@CaffeinatedCoder CaffeinatedCoder added chore Build, CI, packaging, refactoring with no behaviour change package/core Affects CodoMetis.EFCore.SchemaKit (the kernel) package/postgresql Affects CodoMetis.EFCore.SchemaKit.PostgreSQL area/release Versioning, changelogs, release wiring labels Nov 14, 2026
It ran ci and verify once on the pull request (run 43581798302); publish and release were skipped.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@CaffeinatedCoder

Copy link
Copy Markdown
Owner Author

The release workflow's ci and verify jobs have run once on GitHub, through a temporary pull_request trigger (commit 9a856ed, taken out again by d8196f5; the branch's tree is that of 6f55fc2): run 43581798302.

  • CI: every lane of dotnet.yml as a called workflow, green, with Integration (PostgreSQL 16) (4 + 59 live tests) and Integration (PostgreSQL 18).
  • Verify and pack: version 11.0.0-preview.1; the changelog step warned that a tag would stop there, as it should today; build, pack, the six pack checks on dist/ with CI=true (so the /_/ paths of the PDB are checked too), collect, upload.
  • Publish and GitHub release: skipped, as their conditions say for any event that is no tag push. Nothing in them has run anywhere.

The two commits on top squash away on merge; the maintainer may prefer a squash merge for that reason.

@CaffeinatedCoder
CaffeinatedCoder merged commit ac350cd into main Nov 14, 2026
8 checks passed
@CaffeinatedCoder
CaffeinatedCoder deleted the chore/release-preview1 branch November 14, 2026 09:55
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 chore Build, CI, packaging, refactoring with no behaviour change package/core Affects CodoMetis.EFCore.SchemaKit (the kernel) package/postgresql Affects CodoMetis.EFCore.SchemaKit.PostgreSQL

Projects

None yet

1 participant