Skip to content

Migrate CSharpDB to .NET 11 - #79

Merged
MaxAkbar merged 8 commits into
mainfrom
max/dotnet11
Nov 18, 2026
Merged

MaxAkbar merged 8 commits into
mainfrom
max/dotnet11

Conversation

@MaxAkbar

@MaxAkbar MaxAkbar commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

Migrate CSharpDB's runtime projects, applications, tests, samples, and release tooling to .NET 11, with SDK 11.0.100 pinned in global.json. New binaries and packages require .NET 11.

  • Update ASP.NET Core/OpenAPI dependencies, deployment and native paths, worker packaging, and CI configuration.
  • Preserve existing Unix NativeAOT library filenames for CI, release assets, and FFI consumers using the supported SDK setting.
  • Prevent lost commit-state notifications when concurrent transactions wait on pending write conflicts.
  • Preserve duration/sample notifications in sequential and concurrent SQLite benchmark controllers, avoiding measurement hangs.
  • Preserve floating-point-to-DECIMAL precision, overflow boundaries, and formula behavior across the runtime change, with regression coverage.
  • Build historical baselines with the candidate benchmark harness SDK and record the effective SDK inputs.
  • Use BenchmarkDotNet 0.16.0-preview.2 in benchmark/sample projects to recognize .NET 11, with a runtime-recognition regression test.
  • Add the migration and performance plan and exploratory benchmark results with raw evidence.

Type of Change

  • Bug fix
  • Breaking change
  • Documentation update
  • Refactor / maintenance

Related Issues

None linked.

Testing

Historical local validation on 2026-11-14:

  • Clean Windows Release build and all 27 workflow suites: 9,020 passed, 4 skipped.
  • Linux WSL Release build and seven selected suites: 5,598 passed, 2 skipped.
  • Qualified the 19-package release graph and package consumers; checked worker isolation and EF tooling.
  • Passed Windows NativeAOT/native archive, observability AOT, and published API/daemon checks.
  • Passed the final historical-baseline compatibility build and affected CI/benchmark tests.
  • Executed 46/46 PR benchmark cases; validated all nine CSV exports, snapshot hashes, and comparison-parser compatibility.

The full clean Windows and selected Linux runs tested migration commit 50cc9027; affected infrastructure tests and final compatibility checks covered the follow-up fixes through fb5a35e8. These original migration checks were recorded on November 14. Solution builds reported 39 analyzer warnings and zero errors.

Follow-up local validation on 2026-11-17:

  • Windows: 3,548 core tests and 595 Data tests passed.
  • Linux: 30 targeted core tests and 595 Data tests passed.
  • 48 targeted network-transaction executions on each platform passed, including five repetitions restricted to two CPUs.
  • Deterministic regression cases cover publication and rollback completing between conflict detection and awaiting the notification.
  • Reproduced the original Linux native filename mismatch; the corrected strict NativeAOT publish and published archive SQL smoke passed, with all 45 exports verified.
  • SDK evaluation confirms the expected Windows, Linux, and macOS library names. Documentation validation passed.
  • Clean committed benchmark suite: 157/157 passed, including a full run pinned to two Windows CPUs.
  • The original delayed-scheduling benchmark test and two deterministic regressions passed 60 focused case executions across 20 fresh processes. Both new regressions fail against the old controller and pass with the correction; measurement floors and timeouts are unchanged.

Hosted verification at f701d3c1: all 14 standard CI jobs passed, including the Windows/Linux/macOS test matrix, all three NativeAOT targets, published hosts, historical-baseline compatibility, and qualification of all 19 NuGet packages. The separate paired performance job is still running.

Decimal overflow review fix at 906944fd: 31 core decimal tests and 71 data-reader/parameter-binding tests passed. Six boundary regression cases fail before the guard is applied. The latest commit has triggered a fresh hosted CI run.

Checklist

  • Added or updated regression tests for changed behavior.
  • Updated documentation for the runtime requirement and migration.
  • Retained benchmark source, raw results, and correctness evidence.
  • Complete hosted build/test, NativeAOT, and package qualification on the latest commit.
  • Complete the paired PR performance check.
  • Complete formal release qualification.

Notes for Reviewers

The source generator remains netstandard2.0 for compiler-host loading, and qualified EF Core remains 10.0.14. The BenchmarkDotNet preview dependency is limited to benchmark/sample projects. Package version remains 4.7.1.

The 46-case smoke used shortened measurements and a batched filter to validate execution and exports. Exploratory performance results are scoped to the measured workloads. The hosted build/test, NativeAOT, and package qualification matrix passed at f701d3c1. The latest decimal-overflow fix at 906944fd is awaiting its hosted CI rerun. The paired PR performance check is running; formal release qualification remains pending. The original hosted Linux timeout did not recur in unpatched local baseline runs; the new regression coverage targets the confirmed notification race.

Pin SDK 11.0.100, retarget runtime projects and samples, and align package,
worker, installer, and CI settings. Preserve decimal conversions and
Access-style rounding across the runtime upgrade. Retain the compiler
source generator target and qualified EF Core 10 provider.

Capture the controlled core-engine comparison, raw measurements, and a
focused durable-write recheck with their repeatability limits.

Validation: 9,035 solution tests and 179 WAL prototype tests passed;
4 opt-in fixture tests skipped. All 42 performance guardrail contracts,
19-package graph checks, package smoke tests, trimmed execution, and
NativeAOT archive smoke checks passed.
Select the candidate harness SDK explicitly for historical baseline builds, retain original SDK manifests, and bind effective inputs after the overlay. Forward the option through the local release wrapper and cover mismatched SDKs in script tests. Keep the authenticated health test initialization pending independently of timeout/retry tests.
Use BenchmarkDotNet 0.16 preview to recognize the .NET 11 runtime, adapt the no-emit toolchain API, and guard host runtime recognition with a regression test.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T17:03:47.158250Z fb5a35e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fb5a35e8f8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Disable the new Unix lib prefix to keep existing CI, release assets, and FFI consumers compatible. Align native examples with those filenames and SDK 11.
Capture the commit-state notification before inspecting pending conflicts, so publication or rollback between the check and await cannot strand a waiter. Add deterministic regression coverage for both completion paths.
Snapshot threshold notifications before reading measurement progress, so duration or sample signals arriving during that read remain awaitable. Add deterministic sequential and concurrent regression tests while preserving measurement floors and cancellation limits.
Check the original double and float inputs against the exclusive floating-point decimal bounds before G15/G7 formatting. Preserve legacy overflow exceptions and cover signed boundaries, adjacent values, non-finite inputs, and the public DataReader conversion path.
@MaxAkbar
MaxAkbar merged commit 1833989 into main Nov 18, 2026
15 checks passed
@MaxAkbar
MaxAkbar deleted the max/dotnet11 branch December 5, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants