Repository navigation
chore: what publishing preview.1 needs: exact kernel pin, README and symbols, pack checks, release.yml, the PostgreSQL 16 lane - #129
Merged
Conversation
…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]>
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]>
Owner
Author
|
The release workflow's
The two commits on top squash away on merge; the maintainer may prefer a squash merge for that reason. |
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 #124
Part of #35 (the slice
11.0.0-preview.1cannot 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):
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 withMissingMethodException, since the package calls a contract that is experimental untilrc.1.release.yml, so nothing could be published.Change
src/CodoMetis.EFCore.SchemaKit.PostgreSQL/…csproj: the targetExactKernelVersionfrom Port the convention tests, MigrationHarness, release workflow and skills #35, as given. The packed dependency lines, fromdotnet pack -c Releaseat this commit:Both project files:
PackageReadmeFile, and aREADME.mdbeside 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, andContinuousIntegrationBuildwhenCIis set, as in EFCore.ComplexIndexes.test/…/Conventions/PackagingConventionTests.cs: six tests that pack every project undersrc/into a temporary folder (--artifacts-path, so with its ownbinandobj; under the version11.0.0-preview.1.packcheck; nothing goes to the checkout or the global packages folder) and open the.nupkgand.snupkg. WithSCHEMAKIT_PACKAGESset they read that folder instead..github/workflows/release.yml: ported from EFCore.ComplexIndexes.cicallsdotnet.ymlwhole;verifychecks the tag againstDirectory.Build.props, takes the release notes from the changelog, builds, packs, runs the pack checks ondist/and uploads;publish(the only job withid-token: write, in thenugetenvironment) pushes through trusted publishing, the kernel first;release(the only job withcontents: 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'sserver_versionto the summary and fails when the server is not the major the leg is for.CLAUDE.mdandCONTRIBUTING.mdsay what is now held.What differs from the 5.x workflow, and why:
publishrunsif: push || !inputs.dry_run!inputs.dry_runis true, so an event added toon:later would publishChangelogConsistencyTests; the notes are extracted inrelease, after the pushverifyextracts the notes and fails a tag without a section before anything is published. A dry run without one warns and goes onverifyruns the whole suite againcihas run it on the same commit;verifyruns the pack checks on the files it uploadsnuspecrelease notesTests
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):
ExactKernelVersionhooks a target name NuGet does not haveA package depends on another SchemaKit package at exactly its own version: expected[11.0.0-preview.1.packcheck]PackageReadmeFileremoved from the PostgreSQL packageEach package carries the README its nuspec names: the nuspec names no readmeREADME.mdPackageLicenseExpressionremovedEach nuspec states the license, the repository and the commit…: the license is not an expressionRepositoryUrlset to another repositoryEnableSourceControlManagerQueries=falselib/net10.0/in the kernel (NU5128 silenced)Each package targets net11.0 and nothing else:lib/ holds net10.0, net11.0IncludeSymbolsremovedEach package has a symbols package…: no.snupkgEnableSourceLink=falseContinuousIntegrationBuildremoved,CI=trueCI=trueWithout 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.
actionlintis not installed here. Therunsteps were taken out of the YAML and run locally with bash:v11.0.0-preview.2against11.0.0-preview.1fails,v11.0.0-preview.1passes;blob/main/links rewritten toblob/v11.0.0-preview.1/, a heading with-for—fails;dist/, the pack checks withSCHEMAKIT_PACKAGES=dist(6 pass), collect; with one.snupkgmoved away, collect fails and so does the symbols test;dotnetonPATH: the kernel is pushed first.On GitHub,
ciandverifyran once through a temporarypull_requesttrigger, green, withpublishandreleaseskipped: 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.snupkgupload) andrelease(gh release create, the prerelease flags). Aworkflow_dispatchdry run is possible only once the file is onmain.Before the first tag
CHANGELOG.mdneeds## [11.0.0-preview.1] — yyyy-mm-ddwith text under it. It says "Nothing is released yet" today, so a tag now stops inverify.gh workflow run release.ymlonmain), after this is merged. The trusted-publishing policy on nuget.org cannot be read from here.SECURITY.mdshould be read against what a release ships: no SBOM is attached yet.Decisions in this PR that are not confirmed
InternalsVisibleTostays 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.PublishRepositoryUrlis not set, unlike 5.x. With it the nuspec's repository is the clone'sorigin, so the statedRepositoryUrlhad 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.CIgate reads one result for both servers; the check names areIntegration (PostgreSQL 16)andIntegration (PostgreSQL 18).# <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.verifydoes not run the whole suite again, and the release carries no SBOM and no consumer smoke test.dry_runoff on a tag publishes, as in 5.x; the environment refuses any other ref.🤖 Generated with Claude Code