Skip to content

CI: run the lanes when an upstream input changes, not every night (.NET 11 roll-forward included) #137

Open

Description

@CaffeinatedCoder

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.json pins.
  • Floating images: the postgres:18, postgres:16 and mssql/server:2022-latest images.

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.json band, from Microsoft's releases-index.json and the channel's releases.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.yml on 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, as nightly.yml's report job 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/cache entry 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.
  • 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.yml keeps 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:

  1. actions/setup-dotnet with global-json-file: global.json, as CiInputConventionTests requires. A dotnet-version input fails that test, and dotnet-quality: preview also 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".
  2. Install the runtime beside the SDK with dotnet-install.sh --channel 11.0 --runtime dotnet --install-dir <dotnet root>. Add --quality preview until GA.
  3. Run dotnet restore and dotnet build -c Release --no-restore -p:RollForward=LatestMajor. On the newest-patch leg, also pass -p:EfFloat/-p:NpgsqlEfFloat and check deps.json with test/assert-dependency-versions.sh.
  4. Run dotnet test -c Release --no-build --diag diag/log.txt with CI=true, plus DOTNET_ROLL_FORWARD_TO_PRERELEASE=1 until GA. Then fail unless diag/*host* reads Runtime 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 CiInputConventionTests holds the new shape.

Activity

  1. added this to the 5.5.0 milestone on Oct 20, 2026
  2. added
    chore
    area/release
    on Oct 20, 2026
  3. modified the milestones: 5.5.0, 5.5.1 on Oct 20, 2026
  4. changed the title [-]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)[/+] on Oct 20, 2026
  5. modified the milestones: 5.5.1, 5.6.1 on Oct 23, 2026
  6. CaffeinatedCoder commented on Nov 11, 2026

    @CaffeinatedCoder
    OwnerAuthor

    New fact from #211 (PR #212): SchemaKit is hosted in its own repository, CaffeinatedCoder/CodoMetis.EFCore.SchemaKit, and main carries the 5.x line again. release/5.x is merged back into main.

    What that changes in this issue:

    The rest stands: the inputs to watch, the roll-forward recipe, where to keep the last-tested set, and the weekly-fallback question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/releasechore

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions