Skip to content

[DRK-2616] Release: DKNet test code moves to xunit.v3 - #549

Merged
baoduy merged 25 commits into
mainfrom
dev
Nov 26, 2026
Merged

baoduy merged 25 commits into
mainfrom
dev

Conversation

@baoduy

@baoduy baoduy commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Release dev to main: DKNet test projects move from xunit 2 to xunit.v3 (feature PR #548), plus docs updates already on dev.

  • Normal patch release; no (MINOR) commits, no release-review PR pending.
  • Republishes @drunkcoding/dknet-skills with the updated dknet-testing skill. No NuGet package API change.

🤖 Generated with Claude Code

baoduy and others added 25 commits November 20, 2026 11:42
Move the "Which package do I need?" table and the per-area package list
from docs/README.md (served raw by GitHub Pages) to docs/index.md, delete
docs/README.md and repoint every link to it. Add an "All packages" link to
each package index.md and the template skeleton, and turn links that leave
docs/ into github.com links.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
[DRK-2553] Put the DKNet package list on the docs home page
…GHSA-f7vh-h5g3-7jrh)

Aspire 13.6.5 brings Microsoft.Extensions.* and System.Security.Cryptography.Pkcs
at 10.0.14, so the direct references in Aspire.Hosting.ServiceBus became NU1605
downgrades against the central pins. Drop them and let Aspire supply them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
…3-6-5

[DRK-2554] fix(deps): bump Aspire.Hosting to 13.6.5 (GHSA-f7vh-h5g3-7jrh)
Adds behaviour-pinning tests for the two CA1860 sites:
- BlobService.ValidateNameAndExtension: empty IncludedExtensions accepts a name with no extension.
- EventException: a status with no errors falls back to the default message.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
SDK 10.0.404 raises CA1860 on two list empty-checks, which TreatWarningsAsErrors
turns into build errors. Use Count == 0 / Count > 0; behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
[DRK-2557] Use Count checks instead of Any() for CA1860
Start_WithLimitBelow1_StopsWithKeyLimitMustBeAtLeast1 went through
WebApplicationFactory, which runs Program on a background thread. On a
ValidateOnStart failure, RunAsync disposes the host there while
CreateClient reads its services, so under load the test saw
ObjectDisposedException instead of OptionsValidationException.

Build and start the host on the test thread and assert the exact
validation failure on StartAsync. Both rows (0, -1) and the assertion
are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
…test-race

[DRK-2561] Make limit-below-1 startup test deterministic
…ive control (DRK-2564)

Callers released together, all but the first held 200 ms before the check.
Red on the fixed 10 ms sleep window: exactly 1 winner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
…of scheduler skew (DRK-2564)

The stand-in held its write for a fixed 10 ms sleep, so callers scheduled more
than 10 ms apart gave exactly one winner. It now holds the write until a second
caller has also passed the "not reserved" check, bounded at 2 s. A sequential
guard proves serialized callers still give exactly one winner within the bound.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
…tive-control-deterministic

[DRK-2564] test(idempotency): make non-atomic negative control independent of scheduler timing
…ture page [DRK-2575]

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
…eature page [DRK-2575]

Adds extension-point pages for IEfCoreExceptionHandler, IHookDisablingContext,
EndpointRegistrationOptions, IContextualValueResolver and IRateLimitOptionsProvider.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
…mple [DRK-2575]

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
[DRK-2575] Per-feature usage, customisation and where-used docs for all 29 DKNet packages
Re-export 190 archify SVGs with Export > SVG (light) from their unchanged JSON
sources; pin the three whose re-render drifts (dknet-domain-event-path,
efcore-encryption-column-path, encrypt-columns) with data-theme="light".
Record the light-theme export rule in docs/diagrams/README.md and
docs/Package-Doc-Template.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
[DRK-2597] Pin every /docs diagram SVG to the light theme
Pins the four automatable DRK-2622 scenarios: 27 test projects and the
src package pin on xunit.v3 only, the snippet lab on xunit.v3 only, the
dknet-testing skill install row, and its ValueTask lifetime shape with
all 17 csharp examples kept. Red on purpose until the stage 2 Builds land.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
…RK-2626]

- Lab pins xunit.v3.extensibility.core 4.0.2 in place of xunit 2.9.3 (Library stays a Library).
- dknet-testing install row names xunit.v3.
- IAsyncLifetime examples use the v3 ValueTask InitializeAsync/DisposeAsync shape.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
The local Aspire.Hosting.ServiceBus.dll is built against Aspire.Hosting 13.6.5 since e65142c;
the lab's 13.5.3 pin made dknet-slimbus-cqrs fail with CS1705.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
- Pin xunit.v3.mtp-off 4.0.2 in place of xunit 2.9.3; runner stays 4.0.0.
- IAsyncLifetime InitializeAsync/DisposeAsync return ValueTask; drop
  Xunit.Abstractions usings (ITestOutputHelper lives in Xunit in v3).
- WebApplicationFactory fixtures override DisposeAsync instead of hiding it.
- Assembly-level serial runs use Parallelization(Mode = ParallelMode.None):
  CollectionBehavior.DisableTestParallelization is an obsolete error in v3.
- Suppress xUnit1051 in the two SlimBus.Generators test projects.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
…s [DRK-2625]

These tests opened the per-class fixture database without creating it and
passed only because xunit 2 happened to run a creating test first. xunit.v3
orders test cases differently, and Remote Unit Tests run 45756321744 failed
GetDbConnection_WithClosedConnection_ShouldOpenConnection with 3D000
"database does not exist". Each test now calls EnsureCreatedAsync in its
Arrange, so it passes alone and in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: multica-agent <[email protected]>
[DRK-2616] Move DKNet test code from xunit 2 to xunit.v3
@baoduy
baoduy merged commit 9af4089 into main Nov 26, 2026
10 of 11 checks passed

This branch was successfully deployed

1 active deployment
github-pages — b4ce9d68 Deployed Nov 26, 2026 by baoduy via deploy #599
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.

1 participant