Skip to content

test: release.yml smoke-tests the packages it publishes, and a lane has the consumer on the newest EF Core - #274

Merged
CaffeinatedCoder merged 5 commits into
mainfrom
claude/objective-ptolemy-48851f
Nov 29, 2026
Merged

CaffeinatedCoder merged 5 commits into
mainfrom
claude/objective-ptolemy-48851f

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #230

Problem

The consumer smoke test ran in ci, on packages it packed itself. verify packed again into dist, only the pack checks read those files, and they are the ones publish pushes: a package that differed from CI's by how verify builds 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, although run.sh has a switch for it (SMOKE_EF_VERSION).

Change

release.yml, job verify. A step Smoke test of the packed folder hands test/ConsumerSmokeTest/run.sh the folder dist, on a PostgreSQL 18 service of the job's own. It stands after the pack checks and before Collect packages and the upload, so a failure stops the release before publish asks for its approval. One server and not two: ci ran the script on 16 and 18 on the same commit, and what is new in verify is the packages. No .NET 10 runtime is needed: every consumer of the script targets net11.0, and the 5.x fixture is compiled as checked in.

dist is uploaded as it was checked. I read run.sh for 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 on dist itself and not on a copy. Why after the pack checks: the script's second pack of the kernel builds over src/…/bin.

dotnet.yml, job smoke-newest-ef. The consumer on the newest EF Core the packages say they take. The step Newest EF Core the packages take reads the range the kernel references Microsoft.EntityFrameworkCore.Relational by ([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 is 11.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-ef means, 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 the CI gate, so it stops every pull request and, through release.yml's ci, a tag, until the packages work on that release or their range leaves it out. nightly.yml runs 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.Run also reads a step that has its command on the line of run: (Pack is one), and RunStep gives a step what its own env: 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.yml itself. A dry run of the workflow from this branch is the maintainer's to trigger, and it is the first run of the new verify step on a runner.

Tests

ReleaseWiringConventionTests and CiInputConventionTests run the steps (WorkflowFile.RunStep), with a script of the test's in run.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:

Broken What the tests said
verify: the smoke step removed The 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.sh called with no folder, so it packs for itself The step … handed the smoke test no folder, and dotnet pack … -o dist packs into dist/
verify: run.sh handed $RUNNER_TEMP/dist handed the smoke test …/runner-temp/dist, and dotnet pack … -o dist packs into dist/
verify: Pack writes to -o packed The step … fails on packed/, the folder dotnet pack … -o packed packs into
verify: run.sh "$dist" || true The smoke test failed, and the step … went on: exit 0
verify: the comparison of the folder removed five rows: The 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 hashes the two rows that change a file's content
verify: the connection string on port 5433 does not hand the smoke test the server verify starts as its service
verify: the service removed verify has no PostgreSQL service with a password and a port
verify: the step moved behind the upload The steps of verify run as: …, Upload packages, Smoke test of the packed folder
dotnet.yml: the lane removed three tests: dotnet.yml has no smoke-newest-ef job, so no lane has the consumer on a newer EF Core than the packages' floor
dotnet.yml: the lane left out of the gate smoke-newest-ef is not in the ci job's needs (the existing gate test)
lane: the version written under another name expected: "11.0.10" actual: null
lane: the newest by text (max) expected: "11.0.10" actual: "11.0.9"
lane: the range's upper end not held expected: "11.0.10" actual: "12.0.1"
lane: a prerelease taken expected: "11.0.10" actual: "11.0.11-preview.1.27001.1"
lane: the floor not held nuget.org listed no release in [11.0.0, 12.0.0), and the step … went on
lane: the smoke step without its check for a version The smoke test of smoke-newest-ef ran without a version: exit 0
lane: run.sh || true The smoke test failed, and the lane went on
lane: env -u SMOKE_EF_VERSION run.sh was not run once with SMOKE_EF_VERSION=11.0.10, the version the step before it found
lane: another package asked of nuget.org does not ask nuget.org for the versions of Microsoft.EntityFrameworkCore.Relational
harness: RunStep without the step's env: A step on one line is run, with what its env states as text, and the server assertion above

The 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

CaffeinatedCoder and others added 5 commits November 29, 2026 11:12
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>
@CaffeinatedCoder CaffeinatedCoder added this to the 11.0.0 milestone Nov 29, 2026
@CaffeinatedCoder CaffeinatedCoder added tests Adds or changes tests only (harnesses, parity suites); no library code area/release Versioning, changelogs, release wiring labels Nov 29, 2026
@CaffeinatedCoder

Copy link
Copy Markdown
Owner Author

Reviewed at db3feba by the coordinating session.

Not run by anything yet: the new step of verify on a runner. Its first run is a dry run of release.yml from a branch, or the tag, and both are the maintainer's.

Nothing to change.

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 tests Adds or changes tests only (harnesses, parity suites); no library code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

release.yml: smoke-test the packages that are published

1 participant