Repository navigation
test: release.yml smoke-tests the packages it publishes, and a lane has the consumer on the newest EF Core - #274
Merged
Conversation
verify runs the consumer smoke test on dist/, the folder it uploads and publish pushes, on a PostgreSQL 18 of its own, after the pack checks. The folder's files and their hashes are compared around the run, so a script that writes there stops the release. WorkflowFile runs a step that has its command on the line of run:, and gives a step what its own env: states as text. Part of #230. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ackages take smoke-newest-ef in dotnet.yml asks nuget.org for the newest release within the range the kernel references EF Core by and hands it to the smoke test as SMOKE_EF_VERSION. It is in the gate, so it runs for a pull request, every night and on a tagged commit. Part of #230. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Part of #230. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Part of #230. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
And the message of the test when Pack writes elsewhere than the smoke test reads. Part of #230. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Owner
Author
|
Reviewed at db3feba by the coordinating session.
Not run by anything yet: the new step of Nothing to change. |
This was referenced Nov 29, 2026
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 #230
Problem
The consumer smoke test ran in
ci, on packages it packed itself.verifypacked again intodist, only the pack checks read those files, and they are the onespublishpushes: a package that differed from CI's by howverifybuilds or packs was restored by no consumer before it was on nuget.org. And no lane had the consumer on a newer EF Core than the packages' floor, althoughrun.shhas a switch for it (SMOKE_EF_VERSION).Change
release.yml, jobverify. A stepSmoke test of the packed folderhandstest/ConsumerSmokeTest/run.shthe folderdist, on a PostgreSQL 18 service of the job's own. It stands after the pack checks and beforeCollect packagesand the upload, so a failure stops the release beforepublishasks for its approval. One server and not two:ciran the script on 16 and 18 on the same commit, and what is new inverifyis the packages. No .NET 10 runtime is needed: every consumer of the script targetsnet11.0, and the 5.x fixture is compiled as checked in.distis uploaded as it was checked. I readrun.shfor writes into a folder it is handed and found none (its second pack of the kernel goes into its work folder), and measured it: the script run on a folder packed beforehand, up to its first word with a server, left the folder's names and SHA-256 hashes as they were. The step does not rest on that: it lists the folder's files and their hashes before and after the run and fails when they differ. So the script works ondistitself and not on a copy. Why after the pack checks: the script's second pack of the kernel builds oversrc/…/bin.dotnet.yml, jobsmoke-newest-ef. The consumer on the newest EF Core the packages say they take. The stepNewest EF Core the packages takereads the range the kernel referencesMicrosoft.EntityFrameworkCore.Relationalby ([11.0.0, 12.0.0), as MSBuild evaluates the project), asks nuget.org's flat container for the versions, and takes the newest release in the range, compared number by number. No version stands in a file. The next step refuses to run without one. Today the answer is11.0.0, the floor, and the summary says so; the lane measures something new from the first 11.0.x patch on.What a red
smoke-newest-efmeans, and what it gates. On a commit that changed nothing: a release of EF Core is out that a consumer of these packages can be on, since the packages' own range takes it, and a path of theirs does not behave on it. The lane is in theCIgate, so it stops every pull request and, throughrelease.yml'sci, a tag, until the packages work on that release or their range leaves it out.nightly.ymlruns it every night, so it is reported the night it appears. That it gates was the maintainer's decision, asked in the session (2026-11-29); the alternatives were a lane for releases and the nightly alone, or the nightly alone.The harness.
WorkflowFile.Runalso reads a step that has its command on the line ofrun:(Packis one), andRunStepgives a step what its ownenv:states as text, as a runner does; a value that is an expression stays the test's to give. No existing test changed its answer.Docs. CLAUDE.md, "Packaging and the release", and one sentence in CONTRIBUTING.md. No changelog entry: a consumer sees no difference.
Not changed:
test/ConsumerSmokeTest/run.sh. Not covered, since the script has no switch for it: Npgsql EF stays at the version the PostgreSQL package references, also in the new lane.Not run: the smoke test against a live server, here, and
release.ymlitself. A dry run of the workflow from this branch is the maintainer's to trigger, and it is the first run of the newverifystep on a runner.Tests
ReleaseWiringConventionTestsandCiInputConventionTestsrun the steps (WorkflowFile.RunStep), with a script of the test's inrun.sh's place and, for the lane, a list of the test's in nuget.org's place that is made from the kernel's own range.Each was shown to fail in a copy of the commit outside the checkout (
git archive), one break at a time, 61 tests of the five workflow classes green before each:verify: the smoke step removedThe steps of verify run as: …, Pack checks, Collect packages, Upload packages. The smoke test runs on what was packed…; the six other tests:has no step named 'Smoke test of the packed folder'verify:run.shcalled with no folder, so it packs for itselfThe step … handed the smoke test no folder, and dotnet pack … -o dist packs into dist/verify:run.shhanded$RUNNER_TEMP/disthanded the smoke test …/runner-temp/dist, and dotnet pack … -o dist packs into dist/verify:Packwrites to-o packedThe step … fails on packed/, the folder dotnet pack … -o packed packs intoverify:run.sh "$dist" || trueThe smoke test failed, and the step … went on: exit 0verify: the comparison of the folder removedThe smoke test ran echo more > "${1:?}/Another.1.0.0.nupkg" in the folder that is published, and the step … passed(a file added, a folder added, a file removed, appended to, replaced at the same length)verify: the listing without the hashesverify: the connection string on port 5433does not hand the smoke test the server verify starts as its serviceverify: the service removedverify has no PostgreSQL service with a password and a portverify: the step moved behind the uploadThe steps of verify run as: …, Upload packages, Smoke test of the packed folderdotnet.yml: the lane removeddotnet.yml has no smoke-newest-ef job, so no lane has the consumer on a newer EF Core than the packages' floordotnet.yml: the lane left out of the gatesmoke-newest-ef is not in the ci job's needs(the existing gate test)expected: "11.0.10" actual: nullmax)expected: "11.0.10" actual: "11.0.9"expected: "11.0.10" actual: "12.0.1"expected: "11.0.10" actual: "11.0.11-preview.1.27001.1"nuget.org listed no release in [11.0.0, 12.0.0), and the step … went onThe smoke test of smoke-newest-ef ran without a version: exit 0run.sh || trueThe smoke test failed, and the lane went onenv -u SMOKE_EF_VERSION run.shwas not run once with SMOKE_EF_VERSION=11.0.10, the version the step before it founddoes not ask nuget.org for the versions of Microsoft.EntityFrameworkCore.RelationalRunStepwithout the step'senv:A step on one line is run, with what its env states as text, and the server assertion aboveThe step that finds the version was also run once as it is, against nuget.org:
SMOKE_EF_VERSION=11.0.0.dotnet test test/CodoMetis.EFCore.SchemaKit.Tests/CodoMetis.EFCore.SchemaKit.Tests.csproj --filter "TestCategory!=Integration": 908 passed, none failed or skipped. The documentation tests of the PostgreSQL project, which hold what CLAUDE.md cites: 33 passed.🤖 Generated with Claude Code