Repository navigation
Description
Rescoped on 2026-10-20 by the maintainer's decision. This was a nightly .NET 11 roll-forward run in 5.5.0. It is now a check that runs CI when something upstream changes, and it moved to 5.5.1, after the cut.
Problem
Two of CI's inputs move without a commit in this repository. These upstream releases are what should start a run:
- New releases: an EF Core 10.x or Npgsql EF 10.x patch on nuget.org, a .NET 11 runtime release (the 5.x line does not block that runtime, and EF Core 10 supports it), and an SDK patch in the band
global.jsonpins. - Floating images: the
postgres:18,postgres:16andmssql/server:2022-latestimages.
Today nightly.yml (#111) re-runs every lane every night, whether or not anything upstream moved. Nothing runs the suites on the .NET 11 runtime at all. #133 did it by hand: on 11.0.0-rc.2.26504.105 all 571 tests passed, on the floor and on the newest patch. The Newest EF Core patch lane (#135) already catches a new EF Core or Npgsql patch on every PR. But release/5.x takes fixes only and sees few PRs, so a new patch or runtime can go weeks without a run.
nuget.org and Microsoft publish no event a workflow can subscribe to. So "run when a patch ships" needs a small scheduled job that compares, and does nothing when nothing changed.
Change
-
A watcher job on a schedule, which replaces the nightly full run. In seconds, it reads:
- the newest EF Core 10.x and Npgsql EF 10.x versions from nuget.org's flat container
- the newest .NET 11 runtime, and the newest SDK patch of the
global.jsonband, from Microsoft'sreleases-index.jsonand the channel'sreleases.json - the image digests from the registries
It compares them with the set CI last tested green on each release line.
-
On a change, it dispatches
dotnet.ymlon that line, plus the .NET 11 roll-forward run (below), and records the new set once the run is green. A failure opens or updates the issue, asnightly.yml'sreportjob does today. -
No change: it ends there. No lane runs.
-
Where the last-tested set lives: decide this and say why in the PR. Options:
- An
actions/cacheentry keyed by a hash of the set. This needs no token, but GitHub evicts an entry nobody used for 7 days, which means one re-run a week at most. - A file on a dedicated branch, written by the workflow (needs
contents: write). - An issue comment.
- An
-
Weekly fallback: keep a weekly full run anyway, or don't. Decide that too, and say why.
-
Schedules expire: GitHub turns schedules off in a public repository after 60 days without activity. That holds for the watcher too.
release.ymlkeeps running the full CI itself before it publishes (Release: run the full CI before publishing, and a nightly full run #111), so nothing depends on the watcher.
The roll-forward recipe proved on CI in #133:
actions/setup-dotnetwithglobal-json-file: global.json, asCiInputConventionTestsrequires. Adotnet-versioninput fails that test, anddotnet-quality: previewalso applies to the global.json channel, so setup fails with "Failed to locate the latest version in the channel '10.0.4xx' with 'preview' quality".- Install the runtime beside the SDK with
dotnet-install.sh --channel 11.0 --runtime dotnet --install-dir <dotnet root>. Add--quality previewuntil GA. - Run
dotnet restoreanddotnet build -c Release --no-restore -p:RollForward=LatestMajor. On the newest-patch leg, also pass-p:EfFloat/-p:NpgsqlEfFloatand check deps.json withtest/assert-dependency-versions.sh. - Run
dotnet test -c Release --no-build --diag diag/log.txtwithCI=true, plusDOTNET_ROLL_FORWARD_TO_PRERELEASE=1until GA. Then fail unlessdiag/*host*readsRuntime location: …/Microsoft.NETCore.App/11.. Setting DOTNET_ROOT alone does not move the VSTest host, so the runtime has to be proved and not assumed.
The roll-forward run checks out release/5.x: after the v5.5.0 cut, main is the .NET 11 SchemaKit line.
Done when
- Each input: an upstream change of each kind (simulated by editing the recorded set) starts the right runs on
release/5.x, the .NET 11 roll-forward included, which proves the runtime from the diag log. - No change: a run with nothing changed starts no lane.
- Failure: a seeded failure opens or updates the failure issue.
- The nightly: the daily full run is gone, and
CiInputConventionTestsholds the new shape.
Activity
[-]CI: run the 5.x suites nightly on the .NET 11 runtime (roll-forward)[/-][+]CI: run the lanes when an upstream input changes, not every night (.NET 11 roll-forward included)[/+]CaffeinatedCoder commentedon Nov 11, 2026
New fact from #211 (PR #212): SchemaKit is hosted in its own repository,
CaffeinatedCoder/CodoMetis.EFCore.SchemaKit, andmaincarries the 5.x line again.release/5.xis merged back intomain.What that changes in this issue:
main, and the watcher has no second branch to dispatchdotnet.ymlon.release/5.x" and "starts the right runs onrelease/5.x" both readmain. The sentence "after the v5.5.0 cut,mainis the .NET 11 SchemaKit line" no longer holds.release-linesdispatch job fromnightly.yml. The nightly is nowdefault-branch(callsdotnet.yml) plusreport. A watcher that dispatches needsactions: writeback, which that job held.CiInputConventionTestsis unchanged by chore: main carries the 5.x line again; one line here, SchemaKit in its own repository #212: it still requires a scheduled job that callsdotnet.ymland areportjob that needs every other job.The rest stands: the inputs to watch, the roll-forward recipe, where to keep the last-tested set, and the weekly-fallback question.