Skip to content

Server: rebase prepared lifecycle batches onto disjoint publications (N12) - #5206

Merged
marcschier merged 5 commits into
masterfrom
romanett/concurrent-prepare-n12
Nov 28, 2026
Merged

marcschier merged 5 commits into
masterfrom
romanett/concurrent-prepare-n12

Conversation

@romanett

Copy link
Copy Markdown
Contributor

Summary

Fixes N12 from the NodeManager lifetime report (#4931 follow-ups): concurrent lifecycle preparations on disjoint node managers no longer fail, and a real conflict is now a public, documented retryable result.

On master, 4 workers reloading disjoint managers (lifecycle-reload, F3 line of perf/results/lifecycle-baseline-2026-11-24.md) failed 63 % of their commits. Any commit invalidated every other prepared batch, even batches on other managers. Removing the global routing check exposed three more global checks with the same effect, so the fix covers all four:

Global check on master Why it rejected disjoint batches Now
RoutingRevision identity (commit start, after transition/reference preparation, handoff) every commit swaps the routing snapshot the batch is rebased onto the current view when its own registrations are unchanged
TypeTable revision (PrepareAdditiveMerge, BeginPublication) every reload re-registers its types, and every publication bumps the revision only the types the candidate registered are merged; a conflict if another publication changed or removed one of them, or removed a supertype
EncodeableFactory revision same only the candidate's added or replaced registrations are merged; a conflict on an overlapping key
Namespace / server-URI StringTable revision an unrelated append fails every batch a conflict only if an index the batch assigned now maps to a different URI

"A reference owner retired during discovery" (the other ~5 % on master) is the reference-owner discovery racing a commit. Reference discovery and the diagnostics conformance image are now computed in a bounded loop (8 attempts) against the rebased view; the result is the same as running the batches one after another. Only conflicts raised by the host's own discovery are retried (StaleDiscovery flag); a conflict a nested batch raises inside an owner callback still propagates unchanged.

The single-writer LifecycleWriter model is unchanged: rebasing happens under the writer, and the final check before publication is still under writer + commit admission.

Kept strict

  • ILifecycleCapture / ILifecycleWriter (exact-revision captures), initial publication and shutdown publication never rebase.
  • A batch whose registrations changed (same slot reloaded, removed or replaced meanwhile) is rejected.

Retryable result

New public NodeManagerLifecycleConflictException : InvalidOperationException:

  • the internal NodeManagerRoutingConflictException now derives from it;
  • an OptimisticPublicationConflictException (type, factory, namespace or reference image) raised before the durable decision is wrapped in it, with the original as InnerException;
  • stale ILifecycleCapture evidence (LifecycleWriter.ValidateRevision) throws it. A failed publication, which requires a restart, stays a plain InvalidOperationException.

It is documented on CommitAsync/ApplyAsync and in docs/NodeManagers.md. To retry, prepare again; committing the rejected preparation again does not retry it.

Measurements

Command (README F3 line), Release net10.0, Server GC, --duration 15 --warmup 8, bin copies at C:\un12m\net10.0 (master 826dadcaa) and C:\un12b\net10.0 (branch). 5 alternating master/branch rounds per line, atomic bench.lock, foreign-CPU monitor (no run discarded; foreign load 0–0.04 cores).

run --scenario lifecycle-reload --load 0 --readers 0 --lc-monitor 0 --lc-managers 16 --lc-interval 50 --lc-workers N --lc-abort-every 3 --lc-remove-every 0

Line Side Successful reloads / 15 s Failures Server alloc per successful op Server CPU per successful op Apply p50 / p99 ms
4 workers master 202–301 502–602 (routing conflict + "reference owner retired") 8.2–11.8 MB 28–42 ms 9.7–10.1 / 17–33
4 workers branch 804–806 0 in all 5 rounds 4.26–4.46 MB 12.8–14.1 ms 14.6–16.3 / 54.5
1 worker master 200–201 0 4.0 MB 13.9–15.2 ms 3.7–3.8 / 16–18
1 worker branch 200–201 0 4.0 MB 11.4–17.2 ms 3.5–3.8 / 17–18
  • With 4 workers the branch now serves the offered load (4 × 20 ops/s × ⅔ non-abort ≈ 53 reloads/s ≈ 800 per 15 s). Master serves ~25–38 % of it.
  • Allocation and CPU per successful op halve because no work is thrown away.
  • Apply latency per op rises at 4 workers (p50 ≈ 15 ms). All commits now succeed and queue behind each other on the single writer; on master only the uncontended survivors were measured. At 1 worker it is unchanged.
  • Lock contention is unchanged (271–332 vs 339–403 events / 15 s).
  • In an earlier instrumented 10 s run, each commit averaged 2.06 reference-discovery passes, i.e. about one rebase per commit under 4-way contention.

An earlier 3-round run (before ConformanceUnitsManager reported its stale view as a rebase trigger) still had 0–2 failures per round ("A conformance contributor retired before its generation could be admitted"). That is fixed in this PR, and the numbers above are after the fix.

Tests

  • New NodeManagerLifecycleTests.ConcurrentPreparation.cs: a prepared reload, and a prepared add of a new namespace, commit after a disjoint publication; 2×8 concurrent disjoint reloads all commit; the same slot reloaded meanwhile and different namespaces appended at the same index are retryable conflicts that publish nothing, and re-preparing succeeds.
  • PreparedBatchRejectsChangedTypeInputsBeforeDecisionAsync now registers the same type the candidate registers (a conflict). New PreparedBatchRebasesOntoUnrelatedTypeChangeAsync and PreparedBatchRebasesOntoUnrelatedFactoryChangeAsync.
  • Types level: rebase tests for TypeTable (disjoint merge, removed types are not restored, re-registered version kept, overlapping new/re-registered/removed type and removed supertype rejected), EncodeableFactory (disjoint merge plus reservation of the merged revision, overlapping key rejected) and StringTable (appends kept, matching index accepted, different URI at a prepared index rejected).
  • Existing tests that pinned "any concurrent publication makes the batch stale" were updated. Where the old scenario was disjoint (unrelated serving type, encodeable alias, namespace routing of another manager, handoff after an unrelated add, owner that never held the source), they now assert the rebased commit. Where it was a real overlap, they assert the conflict, by its public type where the internal type changed. The routing variants in NodeManagerConflictExceptionTests now use an ILifecycleCapture, which keeps exact-view semantics.
  • WotCon's retry matches on the conflict message, which is preserved; one assertion of the exact type name was updated.

Local runs:

  • Opc.Ua.Server.Tests filter Lifecycle|Conflict|TypeTable|EncodeableFactory|Conformance: net10.0 1588/1588, net48 1588/1588
  • Opc.Ua.Types.Tests filter TypeTable|EncodeableFactory|StringTable: net10.0 355/355, net48 355/355
  • Opc.Ua.WotCon.Tests filter WotAtomicPublication|Lifecycle: net10.0 355/355

Not covered / follow-ups

  • WotCon (WotMaterializationCoordinator) still recognises retryable conflicts by message text. It could catch NodeManagerLifecycleConflictException instead.
  • Reference sources are not prepare-time inputs: they are resolved at commit against the current view. A source whose owner disappears behaves as it would if the batches ran one after another (a staged required source still fails with BadNodeIdUnknown). Overlapping contributions to the same source while a contributor retires are still rejected by the existing reference-reservation check, now as the public conflict type.
  • The full Opc.Ua.Server.Tests and WotCon suites were not run locally; CI covers them.

🤖 Generated with Claude Code

romanett and others added 2 commits November 28, 2026 13:22
…(N12)

Concurrent lifecycle commits on disjoint NodeManagers no longer reject each
other. A prepared batch is rebased onto the current routing view when its own
registrations are unchanged; type, encodeable and namespace/server-URI images
merge only the batch's own registrations and reject only overlapping changes.
Reference discovery and the conformance read image are recomputed in a bounded
loop when a concurrent commit supersedes their view.

Genuine conflicts surface as the new public, retryable
NodeManagerLifecycleConflictException. Exact-revision captures, initial and
shutdown publications keep their strict semantics.

lifecycle-reload F3 (4 workers, disjoint managers): master 202-301 reloads and
502-602 failures per 15 s; branch 804-806 reloads, 0 failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dation

The retained-inspection validation test asserted the internal
OptimisticPublicationConflictException; pre-decision metadata conflicts are
now wrapped in NodeManagerLifecycleConflictException.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Code coverage

✅ Coverage gate passed.

Check Result Threshold
✅ Project line rate 89.50% (514924/575305 lines) >= 70.00%
✅ Project branch rate 80.14% >= 60.00%
✅ Patch coverage 87.35% (221/253 changed lines) >= 75.00% (> 100 changed lines)
ℹ️ Baseline delta (advisory) +15.90 pp 73.60% recorded
Uncovered changed lines
  • src/Opc.Ua.Types/Encoders/EncodeableFactory.Snapshots.cs: 132, 133
  • src/Opc.Ua.Server/NodeManager/Lifecycle/NodeManagerLifecycleConflictException.cs: 37, 39
  • src/Opc.Ua.Types/Nodes/TypeTable.Snapshots.cs: 203, 204, 321, 322, 323, 324
  • src/Opc.Ua.Server/NodeManager/Lifecycle/NodeManagerLifecycle.cs: 2280, 2281, 2285, 2286, 2287, 2288, 2289, 2290, 2291, 2292, 2293, 2295, 2296, 2297, 2502, 2503, 2561, 2562
  • src/Opc.Ua.Server/Server/ConformanceUnitsManager.cs: 427, 428, 429
  • src/Opc.Ua.Server/NodeManager/Lifecycle/LifecycleWriter.cs: 602

Coverage is above the recorded baseline - consider ratcheting coverage-thresholds.json.

Thresholds live in coverage-thresholds.json. Whole report before exclusions: line 89.05%, branch 79.65%.

@romanett
romanett marked this pull request as ready for review November 28, 2026 14:38
Copilot AI balanced review requested due to automatic review settings November 28, 2026 14:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@codecov

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.81818% with 46 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.85%. Comparing base (826dadc) to head (7695578).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...rver/NodeManager/Lifecycle/NodeManagerLifecycle.cs 78.07% 16 Missing and 9 partials ⚠️
src/Opc.Ua.Types/Nodes/TypeTable.Snapshots.cs 81.25% 6 Missing and 3 partials ⚠️
...c.Ua.Types/Encoders/EncodeableFactory.Snapshots.cs 90.90% 2 Missing and 2 partials ⚠️
...rc/Opc.Ua.Server/Server/ConformanceUnitsManager.cs 0.00% 3 Missing ⚠️
...Ua.Server/NodeManager/Lifecycle/LifecycleWriter.cs 50.00% 1 Missing and 1 partial ⚠️
...Lifecycle/NodeManagerLifecycleConflictException.cs 66.66% 2 Missing ⚠️
...eManager/Lifecycle/NodeManagerLifecycle.Handoff.cs 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5206      +/-   ##
==========================================
- Coverage   83.87%   83.85%   -0.02%     
==========================================
  Files        3875     3876       +1     
  Lines      575085   575305     +220     
  Branches    99135    99188      +53     
==========================================
+ Hits       482355   482442      +87     
- Misses      60072    60159      +87     
- Partials    32658    32704      +46     
Flag Coverage Δ
actions 83.85% <81.81%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...eManager/Lifecycle/IDynamicNodeManagerBatchHost.cs 92.00% <100.00%> (+0.08%) ⬆️
...a.Server/NodeManager/Lifecycle/IPreparedChanges.cs 84.78% <ø> (ø)
...Ua.Server/NodeManager/Lifecycle/LifecycleChange.cs 88.09% <ø> (ø)
...r/Lifecycle/NodeManagerRoutingConflictException.cs 64.28% <ø> (ø)
...c.Ua.Server/NodeManager/MasterNodeManager.Batch.cs 88.30% <100.00%> (+0.62%) ⬆️
src/Opc.Ua.Types/Nodes/TypeTable.cs 96.71% <100.00%> (+0.03%) ⬆️
src/Opc.Ua.Types/Utils/NamespaceTable.cs 92.67% <100.00%> (+0.23%) ⬆️
...eManager/Lifecycle/NodeManagerLifecycle.Handoff.cs 81.81% <0.00%> (ø)
...Ua.Server/NodeManager/Lifecycle/LifecycleWriter.cs 87.19% <50.00%> (-0.81%) ⬇️
...Lifecycle/NodeManagerLifecycleConflictException.cs 66.66% <66.66%> (ø)
... and 4 more

... and 63 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved critical conflict-handling defects can overwrite newer owner metadata, allow rebases with missing required supertypes, and incorrectly mark decision-callback exceptions as retryable, risking repeated application-side work.

3 open issues

Review effort: Balanced

- Reject a rebase when a live NodeManager whose read image the batch replaces
  changed generation or serving image after preparation.
- Report an OptimisticPublicationConflictException as the retryable lifecycle
  conflict only when the host found it before invoking the durable decision;
  exceptions from the decision callback pass through unchanged.
- A rebased type registration whose supertype was removed meanwhile is a
  conflict even when the surviving type keeps its deleted ancestor pointer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Rebase conflict checks can allow encoding-ID and XML-name lookups to resolve to incompatible types, while lost capture-time versions can incorrectly reject valid removal/re-addition batches.

1 open issue
1 previously missed issue

In code that hasn't changed since last review

Medium severity Preserve captured version when a type is removed and re-added

src/​Opc.Ua.Types/​Nodes/​TypeTable.Snapshots.cs:469

If a candidate removes a captured type and then re-adds it with the same definition, this records zero because the type has already been deleted from the private graph. An unrelated serving publication then makes the rebase compare zero with the unchanged serving registration version and reject an otherwise valid batch. Preserve the capture-time version across private removal/re-addition and cover that sequence followed by a disjoint publication.

3 resolved since last review

Review effort: Balanced

- A rebased encodeable merge also checks the XML names used by every added or
  replaced registration, so an alias for an existing type is rejected when
  another publication remapped that type's XML name.
- A type the candidate removes and re-adds keeps its captured serving version,
  so an unrelated publication does not make the batch stale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Concurrent encoding-ID ownership conflicts can escape as plain InvalidOperationException errors, bypassing the lifecycle conflict wrapper and callers’ NodeManagerLifecycleConflictException handling.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Detect encoding ownership conflicts during rebase

src/​Opc.Ua.Types/​Nodes/​TypeTable.Snapshots.cs:213

If a candidate and an intervening publication assign the same previously unused encoding ID to different types, this type-version check passes, but the encoding merge later throws a plain InvalidOperationException. That bypasses the lifecycle conflict wrapper, so callers catching NodeManagerLifecycleConflictException miss this concurrent-input conflict. Capture and compare ownership of the candidate's encoding keys during rebase, raising OptimisticPublicationConflictException for ownership changes while retaining plain errors for incompatibilities already present at capture.

1 resolved since last review

Review effort: Balanced

In a rebased type merge, an encoding that another publication assigned to a
different type, or whose data type disappeared, is now an
OptimisticPublicationConflictException (surfaced as the retryable lifecycle
conflict) instead of a plain InvalidOperationException.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@marcschier
marcschier merged commit 2c98180 into master Nov 28, 2026
143 checks passed
@marcschier
marcschier deleted the romanett/concurrent-prepare-n12 branch November 28, 2026 19:26
marcschier pushed a commit that referenced this pull request Dec 1, 2026
…undNodeManagerFactory (#5212)

Part of the NodeManager lifetime redesign (#4931): this PR handles N11,
the small loose ends.

## 1. Host casts (RC6)
No server code finds `IDynamicNodeManagerHost` by type-testing
`IServerInternal.NodeManager` any more. `git grep "is
IDynamicNodeManagerHost" -- src` is empty.

**StandardServer and the lifecycle**
- `StandardServer` gets the host from the master once, at the
composition root (`StandardServer.Lifecycle.cs`, StartAsync).
- It passes that host to the lifecycle through the internal
`INodeManagerLifecycleHost.CurrentNodeManagerHost`.
- `NodeManagerLifecycle.GetBoundHost` uses the host only when
`ReferenceEquals(server.NodeManager, host)`. A binding left over from an
earlier start is never used.
- All lifecycle lookups now use it: running-server resolution, initial
publication, shutdown publication, `Revision` and the callback permit.
This also covers the `is not`, `as` and `IDynamicNodeManagerBatchHost`
variants.
- `GetGenerationReconciler(server)` is removed. Commit uses
`batch.Host.GenerationReconciler`.

**Hosted NodeManagers and GDS**
- `MasterNodeManager` binds itself to every `NodeManagerSlot` it
registers at construction or prepares in `PrepareAsync`. The binding is
internal and weak.
- `AsyncCustomNodeManager`, `CustomNodeManager` and the GDS
`ProvisionableDeviceNodeManagerFactory` handoff (`IsServing`) get the
host from their own slot through
`NodeManagerGenerationRegistry.GetHost`.

**The one remaining conversion**
`masterNodeManager as IDynamicNodeManagerHost` stays at the composition
root, on purpose. `CreateMasterNodeManager` is a protected virtual
extensibility point that returns the public `IMasterNodeManager`. The
host capability is internal, so this is the only place it can be
resolved without a public API change. Everything after that point
receives the host explicitly.

## 2. `IRegistrationBoundNodeManagerFactory` (D10): one new public
interface
The interface is now **public** and extends `IAsyncNodeManagerFactory`.
It is documented in its XML docs and in docs/NodeManagers.md, under
"Lifecycle change sets".

Why a public type and not a `LifecycleChange` overload: WotCon's public
`WotProjectionViewBuilder.CreateCanonicalNodeManagerFactory(state,
previous)` hands the bound factory to callers. Those callers build the
`LifecycleChange` themselves, so the binding has to live on the factory.
This is the single type added. Public-surface size is tracked separately
as N9.

WotCon's `InternalsVisibleTo` on Opc.Ua.Server **stays**. WotCon no
longer needs internals for this interface, but it still uses other
internals: `OperationContext.Readiness`,
`NodeManagerReadinessContext.Scope/CaptureChanges`,
`IMasterNodeManager.ResolveManagerHandleAsync`,
`TryValidatePermissionsAsync` and more.

## 3. Lifecycle conflict detection
#5206 is merged. WotCon's prepared-publication retry now catches
`NodeManagerLifecycleConflictException` before the decision, instead of
matching message text. A plain `InvalidOperationException` with the old
text is no longer retried, and a test pins that.

## Tests
- New: `NodeManagerLifecycleTests.HostBinding.cs` checks that system and
prepared slots are bound to the master, and that an unbound manager has
no host.
- Changed:
  - The mocked-master tests bind the slot explicitly.
- The reflection-wired `StandardServer` harnesses in WotCon and History
set the host field.
  - The Strict lifecycle-host mocks set up `CurrentNodeManagerHost`.
  - The WotCon tests inject the typed conflict.

| Suite | net10.0 | net48 |
|---|---|---|
| Server.Tests (NodeManager, RuntimeNodeSet, MonitoredNode2,
SubscriptionTests) | 2893 + 89, 2 failures* | 2984, 1 failure* |
| WotCon.Tests (full) | 3335: 7 failures in the first run, all fixed and
rerun green | 3213 / 3213 |
| Gds.Tests Onboarding | 1622 / 1622 | 1476 / 1476 |
| History HistorianBugRegressionTests | 19 / 19 | 19 / 19 |

\* Timing failures under load. Each passed 3 runs out of 3 on its own:
- `PreparedBatchImmediateCutoffPreservesCapturedNativeReadAsync`:
already known as flaky under load.
- `WorkerCancellationFailureStillJoinsRetainedDrainAsync(True)`.

## Out of scope, follow-ups
- About 15 `Server.NodeManager is MasterNodeManager` casts remain.
`MasterNodeManager` is a public type, so this is a separate question.
- `IDynamicNodeManagerBatchHost` casts remain in `MonitoredNode.cs` and
`ConformanceUnitsManager.cs`.
- `callerContext` in WotCon's registry and projection APIs is unchanged,
as decided in #5129.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
marcschier pushed a commit that referenced this pull request Dec 1, 2026
…NodeManager lifecycle qualification (#5214)

**This PR clears every `dotnet format` finding in Opc.Ua.Types,
Opc.Ua.Server, Opc.Ua.WotCon.Server, Opc.Ua.Server.Tests and
Opc.Ua.WotCon.Tests.** After it, `dotnet format <project>
--verify-no-changes` and `dotnet format analyzers <project>
--verify-no-changes` exit 0 for all five projects. It also records the
release qualification gates for the NodeManager lifecycle redesign
(tracking issue #4931).

### dotnet format cleanup

- **121 findings fixed in 49 files.**
  - Whitespace: 78.
  - Import order: 11.
  - RCS0009 blank lines before doc comments: 28.
  - RCS1139/RCS1142 doc tags: 3.
  - Final newline: 1.
- **Formatting only, no code change.** The changes are whitespace,
`using` order, blank lines and doc comments. Where the fixer generated
empty `<summary>` or `<typeparam>` tags, I filled them in by hand.
- **Builds stay clean.** Release builds of Opc.Ua.Server.Tests and
Opc.Ua.WotCon.Tests (net10.0, including src) show 0 warnings and 0
errors.
- **Overlap with #5212:** one file,
`WotAtomicPublicationNativeTests.RetainedInputs.cs`, is also changed
there. The two PRs change different lines (373–383 here, 191 there), so
they merge cleanly.
- **The first run also reported 42 CA1001, CA1859 and CA2012 findings,
but they weren't real.** They came from a restore that the net48 test
builds had left behind:
  - The messages name `ILogger` without its namespace.
- They ask for concrete return types on interface implementations such
as `ILogger.CreateLogger` and
`IXRegistryProjectionStrategy.CreateResourceFile`.

After a clean `dotnet restore UA.slnx`, the analyzer pass reports none,
so no source changed for them.
- **Why they had built up:** no CI job runs `dotnet format`, so findings
accumulate unnoticed. Adding a `--verify-no-changes` step to CI would
keep these projects clean.

### Release qualification (NodeManager lifecycle redesign)

The gates cover #4982, #5011 (`d8e5e29cd`) and the follow-ups #5168,
#5169, #5182, #5183 and #5206, tested on master `567363fad`. **Every
gate passed. The runs found no product failure and no regression.** Full
results, commands and per-file tables:
[`perf/results/qualification-2026-11-30.md`](https://github.com/OPCFoundation/UA-.NETStandard/blob/romanett/qualification-gates-n2/perf/results/qualification-2026-11-30.md).

| Gate | Result |
|---|---|
| Stress Contract + Integration (net10.0) | 45/45 passed (39 Contract +
6 Integration, the #5011 selection) |
| Stress ChaosTCP, seed 5011 | 6/6 passed |
| Stress subscription conformance, without LongRunning (extra) | 154/154
passed |
| Release analyzer builds: Types, Server, WotCon.Server (all TFMs);
Server.Tests and WotCon.Tests (net10.0, net48) | 0 warnings, 0 errors |
| `dotnet format` on the same 5 projects | All findings fixed (see
above). 0 were in `NodeManager/Lifecycle/` or
`NodeManagerGeneration.cs`, and 4 came from #4982/#5011. |
| Scoped lifecycle coverage (not the overall matched comparison),
`233b3930e` → master (Server.Tests NodeManager namespace, net10.0) |
Lines 87.18 % → 89.67 %, branches 78.86 % → 81.92 %. Tests 2,041 →
2,670, all passing. |

- **No net48 stress run:** the stress project has no net48 target. With
`CustomTestTarget=net48` it becomes a placeholder with no tests.
- **Lifecycle not stressed:** the stress categories don't add, reload or
remove a NodeManager under traffic. The 2,670 NodeManager-namespace
tests from the coverage gate cover the lifecycle itself.
- **One untested path:** no test reaches `LifecycleWriter`'s "failed
after a durable decision" refusal (lines 598–602). It is the only
behaviour path among the coverage drops.

### Proposed text for #4931 ("Qualification and performance")

Sub-items for the open item "Freeze and qualify the follow-up source".
The item itself stays unchecked: it asks for an overall matched CI
coverage comparison, and this PR only has the scoped lifecycle
comparison. I haven't edited the issue.

```markdown
- [ ] Freeze and qualify the follow-up source on master `567363fad`, which includes #5168, #5169, #5182, #5183 and #5206 ([results](https://github.com/OPCFoundation/UA-.NETStandard/blob/master/perf/results/qualification-2026-11-30.md), PR #5214). Still open: the overall matched CI coverage comparison, and the final net48/net10 managed and non-Windows NativeAOT verdicts on the final revision.
  - Stress, net10.0. Contract + Integration: 45/45 (39 Contract + 6 Integration, the #5011 selection). ChaosTCP seed 5011: 6/6. Subscription conformance stress without LongRunning: 154/154. The stress project has no net48 target.
  - Analyzers: Release builds of Opc.Ua.Types, Opc.Ua.Server and Opc.Ua.WotCon.Server (all TFMs) and Server.Tests/WotCon.Tests (net10.0, net48): 0 warnings.
  - `dotnet format`: all 121 style findings in those five projects are fixed. 0 were in `NodeManager/Lifecycle/` or `NodeManagerGeneration.cs`, and 4 came from #4982/#5011. `dotnet format --verify-no-changes` and `dotnet format analyzers --verify-no-changes` now pass on all five. The first run also showed 42 CA1001/CA1859/CA2012 findings, but they came from a stale net48 restore and are gone after a clean restore.
  - Scoped lifecycle coverage only (not the overall matched comparison), `233b3930e` → master (Opc.Ua.Server.Tests NodeManager namespace, net10.0): lines 87.18 % → 89.67 %, branches 78.86 % → 81.92 %. Lifecycle tests 2,041 → 2,670, all passing. Per-file drops are in guard, compatibility and exception boilerplate. The largest are `IDynamicNodeManagerBatchHost` (branches −14.7) and `INodeManagerReadinessNotification` (branches −16.7).
  - Not run: overall matched CI coverage, Soak, LongRunning stress, net11.0 stress.
```

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

3 participants