Skip to content

build(deps): EF Core 11 GA, Npgsql 11 and one Roslyn for every project - #488

Merged
notonlywhite merged 3 commits into
mainfrom
agent/487
Nov 28, 2026
Merged

notonlywhite merged 3 commits into
mainfrom
agent/487

Conversation

@notonlywhite

Copy link
Copy Markdown
Contributor

Closes #487

This unblocks Dependabot's #474 (the NuGet minor-and-patch group) and #476 (Npgsql 11). Once main is on their versions, Dependabot closes both.

What changed and why

#474 could not land on its own: its restore failed, so backend, e2e and failing-tests-quoted were red.

  • Versions:
    • Directory.Packages.props and .config/dotnet-tools.json take the group's versions: Wolverine 6.65.1, Marten 9.63.0, Microsoft.Extensions 11.0.1, RabbitMQ.Client 7.3.0, Azure.Storage.Blobs 12.30.2 and aieval 11.0.1.
    • EF Core is fully on 11.0.0 GA, Microsoft.EntityFrameworkCore itself included; the group had left it at 11.0.0-rc.3, which gave NU1109.
    • Npgsql is on 11.0.0, which Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0 requires (chore(deps): Bump Npgsql from 10.0.3 to 11.0.0 #476).
  • One Roslyn.
    • Why there were two: EF Core 11's Design package, through the MigrationRunner, needs Roslyn 5.9.0, while Wolverine's runtime compilation brought 5.0.0 into every service host. That gave NU1608.
    • The fix: the Roslyn family (Microsoft.CodeAnalysis, .CSharp, .CSharp.Scripting and .Scripting) is pinned to 5.9.0, with CentralPackageTransitivePinningEnabled.
    • The result: all 51 projects now resolve every Microsoft.CodeAnalysis.* package at 5.9.0, a forced restore reports no NU warning, and nothing is suppressed.
  • Npgsql 11 needed no code change: the build is clean and every integration test passes against the AppHost's PostgreSQL.
  • WolverineVersionTests failed as designed: it pins the Wolverine version ModuleUnitOfWork.TryCommitAsync was checked against.
    • I compared DbContextOutbox.SaveChangesAndFlushMessagesAsync and EfCoreOutboxFlushing between Wolverine's tags V6.64.0 and V6.65.1 (raw sources from JasperFx/wolverine). They are byte-identical: scrapers, save, commit, then flush.
    • So TryCommitAsync needs no change, and the checked version and the comments naming it move to 6.65.1. The test's sample "other" versions move along, and its assertion is unchanged.

How it was verified

The same checks ran before and after the change, in Release, with the integration tests running the whole application through Aspire (PostgreSQL with Npgsql 11, RabbitMQ with Wolverine 6.65.1 and its runtime compilation on Roslyn 5.9.0, and Keycloak).

After the change:

dotnet build build.proj -c Release
    0 Warning(s)
    0 Error(s)
bash .github/scripts/test.sh <every *.Tests.csproj but Integration.Tests>   # exit 0, coverage gate passed
  SmartSolutionsLab.PharmaTraining.Kernel: 98.7 % line coverage, Kernel threshold 90 %.
  SmartSolutionsLab.PharmaTraining.Modules.Organisation.Domain: 98.3 % line coverage, Domain threshold 90 %.
  (every module's Domain and Application above its threshold, the same as before)
dotnet test --project tests/Integration.Tests/Integration.Tests.csproj -c Release
  total: 1282
  failed: 0
  succeeded: 1282

bash .github/scripts/format.sh --verify-no-changes is clean.

Not covered:

  • aieval 11.0.1, the evals tool, which costs money and runs only in evals.yml;
  • a deployed environment.

Spec and plan

Issue #487, whose diagnosis I reproduced: NU1608 from two Roslyn versions, and NU1109 from EF Core rc.3 together with Npgsql 10 under EFCore.PG 11. The tasks, in commit order:

  1. The versions and the Roslyn pin.
  2. The Wolverine recheck.

Tests observed passing before the change

This is a dependency refactor. The same suites ran on agent/487 before any package change (main at d05e4cd), in Release:

bash .github/scripts/test.sh <every *.Tests.csproj but Integration.Tests>   # exit 0, coverage gate passed
  SmartSolutionsLab.PharmaTraining.Kernel: 98.7 % line coverage, Kernel threshold 90 %.
  SmartSolutionsLab.PharmaTraining.Modules.Assessment.Application: 95.1 % line coverage, Application threshold 80 %.
  SmartSolutionsLab.PharmaTraining.Modules.Organisation.Domain: 98.3 % line coverage, Domain threshold 90 %.
dotnet test --project tests/Integration.Tests/Integration.Tests.csproj -c Release
  total: 1282
  failed: 0
  succeeded: 1282

They pass unmodified after it, with one deliberate exception: WolverineVersionTests. Its job is to fail when Wolverine moves, until TryCommitAsync has been rechecked against the new version; the recheck is described above.


Generated by Claude Code

Agent-Executor: claude-cloud/lane-backend-platform
Board-Nonce: 32bdb9b92e209c954055c7000871f4a6
Takes Dependabot's minor-and-patch group (#474) and Npgsql 11 (#476), with Microsoft.EntityFrameworkCore itself on 11.0.0 instead of rc.3 (NU1109). EF Core's Design package needs Roslyn 5.9.0 while Wolverine's runtime compilation brought 5.0.0; the Roslyn family is pinned to 5.9.0 with transitive pinning, so no project mixes the two (NU1608). No code change was needed (#487).

Agent-Executor: claude-cloud/lane-backend-platform
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013k23nKqmXhDZAPNNsRkdND
WolverineVersionTests pinned 6.64.0 and failed once the group moved WolverineFx.EntityFrameworkCore to 6.65.1, as it is meant to. DbContextOutbox.SaveChangesAndFlushMessagesAsync and EfCoreOutboxFlushing are identical in the V6.64.0 and V6.65.1 sources (scrapers, save, commit, then flush), so TryCommitAsync needs no change; the checked version and the comments that name it move to 6.65.1 (#487).

Agent-Executor: claude-cloud/lane-backend-platform
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013k23nKqmXhDZAPNNsRkdND

@notonlywhite notonlywhite left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude review (same family, interim until 2026-12-01) of head b8834d474ed8df3ced983a57a4913239a01a7ede.

Same-family review: Claude reviewing what Claude wrote catches less than a cross-model review (ADR-0004); it stands in until Copilot's review is back.

0 blocking, 0 optional.

Checked and sound:

  • Versions. EF Core is fully on 11.0.0 GA, Microsoft.EntityFrameworkCore itself included, which removes the NU1109 mix with rc.3. Npgsql 11.0.0 is what Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0 needs. The rest is #474's group: Wolverine 6.65.1, Marten 9.63.0, Microsoft.Extensions 11.0.1, RabbitMQ.Client 7.3.0, Azure.Storage.Blobs 12.30.2 and aieval 11.0.1. All versions stay central in Directory.Packages.props.
  • One Roslyn. CentralPackageTransitivePinningEnabled with the four Microsoft.CodeAnalysis* packages at 5.9.0 resolves Wolverine's runtime compilation and EF Core's Design package to one version, so the NU1608 is fixed at its cause, with no NoWarn. Transitive pinning also pins any other listed package to its central version, which here only makes the 11.0.1 extensions consistent.
  • Wolverine pin. WolverineVersionTests moves to 6.65.1 because SaveChangesAndFlushMessagesAsync and EfCoreOutboxFlushing are unchanged between the two tags (save, commit, then flush), so TryCommitAsync needs no change. The test's assertion is unchanged; only its sample other versions move along, and the comments naming the version follow.
  • Verification. It is a Release build with 0 warnings, the coverage gate, and the full integration suite (1282) against PostgreSQL on Npgsql 11 and RabbitMQ on Wolverine 6.65.1. The suite passed before the change too, as a dependency update should show.

backend, frontend and e2e are green at this head.


Generated by Claude Code

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bring NuGet packages to EF Core 11 GA and Npgsql 11, with one Roslyn version (unblocks #474, #476)

2 participants