Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
77b9711
Server: admit source emissions and node-manager operations without a …
romanett Oct 21, 2026
e5eab1d
Server: reuse a good exact-source read verdict per monitored item
romanett Oct 21, 2026
f5d65d8
Server: close lock-free admission gaps found in review
romanett Oct 21, 2026
b64af8c
Server: version the emission cutoff gate and keep callback-backed nam…
romanett Oct 21, 2026
a0481f4
Server: restore the final newline of NamespaceDefaultPermissionReader.cs
romanett Oct 21, 2026
37857a5
Server: answer readiness under the lock during a cutoff and treat rev…
romanett Oct 21, 2026
6598b6f
Server: resolve the namespace metadata again before reusing a read ve…
romanett Oct 21, 2026
08b96ce
Server: share one subscriber context per session instead of one per m…
romanett Oct 22, 2026
ac30ac2
Fix lazy browse paging and routing lifetime consistency
marcschier Oct 23, 2026
62f2c1a
Pin explicit request routing views across server dispatch
marcschier Oct 23, 2026
b21eb31
Select explicit application state and validate additive batch metadata
marcschier Oct 23, 2026
ab42664
Bound repeated test-server port fallback and clean up failed starts
marcschier Oct 24, 2026
abe4970
Stage lifecycle metadata explicitly and publish shared additive regis…
marcschier Oct 24, 2026
7e6220e
Server: pin request views and gate generation lifetime
marcschier Oct 24, 2026
49a8673
Server: harden prepared batch callback lifetime
marcschier Oct 24, 2026
6e65c0f
Server: expose stable node manager slots
marcschier Oct 24, 2026
f703235
Test node manager slot snapshots under reload
marcschier Oct 24, 2026
0da86b0
Server: return asynchronous generation retirement
marcschier Oct 24, 2026
837553a
Server: expose lifecycle view slots and revision
marcschier Oct 24, 2026
9c168a1
WIP: P4 transaction/binding-record cutover (unvalidated)
marcschier Oct 25, 2026
40b3397
Unify retirement bindings and precompute batch publication
marcschier Oct 25, 2026
78482db
Remove global binding admission and reconcile outside lifecycle writer
marcschier Oct 25, 2026
5d4994e
Use context-free lifecycle transactions from WoT projection adapter
marcschier Oct 25, 2026
3543735
Forward hosted and NodeSet compatibility calls to canonical lifecycle…
marcschier Oct 25, 2026
beda3cb
Move retired generation ownership into independent reclaimer
marcschier Oct 25, 2026
f7116fa
Await physical retirement separately from native WoT mutation publica…
marcschier Oct 25, 2026
14c94dd
Move mutation and publication ownership into lifecycle writer
marcschier Oct 25, 2026
0b3c4ea
Preserve successful committed bindings across reconciliation failures
marcschier Oct 25, 2026
44b3f91
Use canonical lifecycle transactions and obsolete convenience extensions
marcschier Oct 25, 2026
6190d75
Keep candidate namespace routes private until publication
marcschier Oct 25, 2026
b0ad1f1
Complete private candidate preparation and optimistic publication own…
marcschier Oct 25, 2026
994df89
Remove callback admission and unify dynamic publication ownership
marcschier Oct 25, 2026
fdf7ff7
Preserve publication-owned references during retired generation cleanup
marcschier Oct 25, 2026
066b1d4
Decouple publication and preparation from physical generation cleanup
marcschier Oct 25, 2026
90c2d08
Remove global request drain and validation tracking
marcschier Oct 25, 2026
3479d11
Align lifecycle tests with independently owned physical retirement
marcschier Oct 25, 2026
83d9dd6
Track subscription-owned items by exact node-manager generation
marcschier Oct 25, 2026
d4a082e
Track slot-owned recovery and terminal monitored-item invalidation
marcschier Oct 25, 2026
f362edf
Remove the process-wide monitored-item recovery counter
marcschier Oct 25, 2026
d7deff3
Reconcile monitored-item handoffs in one pass
marcschier Oct 25, 2026
da1bafe
Keep admitted virtual event delivery local to each item
marcschier Oct 25, 2026
1c663bd
Remove unused monitored-item rollback recovery protocol
marcschier Oct 25, 2026
dc1e3ce
Carry source generation admissions explicitly through sampled values
marcschier Oct 25, 2026
e2a8228
Carry event consumer admissions through exact source generations
marcschier Oct 25, 2026
c8fc4bf
Propagate revocable root event admissions explicitly through contexts
marcschier Oct 25, 2026
2a00c99
Scope condition-refresh source admissions to explicit callback targets
marcschier Oct 25, 2026
3d958a6
Replace synchronous recovery guards with awaited subtree recovery
marcschier Oct 25, 2026
b4b6438
Reclaim monitored-node consumers through generation lifetime
marcschier Oct 25, 2026
1d48bad
Keep unresolved monitored items ownerless instead of parking on Core
marcschier Oct 25, 2026
82c362e
Modify unresolved items through shared server filter policy
marcschier Oct 25, 2026
ef96b51
Dispose monitored items without adoption reservations
marcschier Oct 25, 2026
098f346
Release event providers that complete adoption after client disposal
marcschier Oct 25, 2026
4d70e78
Consolidate native monitored-item removal ownership
marcschier Oct 25, 2026
5aa1947
Capture monitored-item membership without backend lifecycle callbacks
marcschier Oct 25, 2026
44b4d7d
Use generation invalidation for lost monitored nodes
marcschier Oct 25, 2026
39e5486
Forbid monitored-item adoption after subscription removal
marcschier Oct 25, 2026
09f1a8a
Remove obsolete node-manager membership snapshot callback
marcschier Oct 25, 2026
1d8f9c8
Preserve native sampling ownership when source release fails
marcschier Oct 26, 2026
d579587
Remove obsolete subscription-wide recovery snapshots
marcschier Oct 26, 2026
b045ed3
Keep event adoption independent of sampling changes
marcschier Oct 26, 2026
893a42e
Preserve native adoption rollback after sampling cleanup failure
marcschier Oct 26, 2026
1e5926f
Reject stale native monitored-item source preparation
marcschier Oct 26, 2026
178cdde
Release native monitored-item bindings atomically and retain provider…
marcschier Oct 26, 2026
b4aec54
Keep failed monitored-item adoption scoped to its exact source incarn…
marcschier Oct 26, 2026
0ae73cf
Derive monitored-item source availability from generation ownership
marcschier Oct 26, 2026
57acbb0
Remove item detach facade and preserve native source ownership during…
marcschier Oct 26, 2026
1494d84
Compensate failed post-native adoption without releasing unchanged so…
marcschier Oct 26, 2026
ad67d26
Replace detached-item endpoints with exact native source operations
marcschier Oct 26, 2026
20242fe
Preserve source incarnations through local deletion and late provider…
marcschier Oct 26, 2026
0b9a967
Complete P5 adversarial source ownership gates
marcschier Oct 26, 2026
ffcb45d
Resolve system roles through slots and remove unused projection host
marcschier Oct 26, 2026
2233131
Publish initial application generations through the lifecycle pipeline
marcschier Oct 26, 2026
64934ca
Migrate live startup consumers to factories and typed conformance access
marcschier Oct 26, 2026
7bf0017
Remove startup adoption and require private application factories
marcschier Oct 26, 2026
6e3c5a7
Unify hosted generation shutdown and retry ownership
marcschier Oct 26, 2026
c4cd2bc
Clarify defensive hosted master shutdown forwarding
marcschier Oct 26, 2026
4fa2974
Keep forked generation work in its admitted counter stripe
marcschier Oct 26, 2026
4607f3b
Keep admitted session notifications in binding records through retire…
marcschier Oct 26, 2026
26e12e4
Skip activation notifications after a registered session target is re…
marcschier Oct 26, 2026
161c7ae
Honor authoritative custom-session close claims during generation bin…
marcschier Oct 26, 2026
604fc9c
Release direct-dispatch test contexts before server shutdown
marcschier Oct 26, 2026
babd712
Release internally owned subscription deletion routing contexts
marcschier Oct 26, 2026
a140b45
Preserve configured startup namespace ordering before system bootstrap
marcschier Oct 26, 2026
cda1952
Correct initial factory constructor migration guidance
marcschier Oct 26, 2026
492c55a
Forward native publication decorator shutdown removals to the real host
marcschier Oct 26, 2026
3f4662c
Defer DI and AMB shared-service setup until published readiness
marcschier Oct 26, 2026
cba2d55
Resume interrupted AMB published authoring without replaying complete…
marcschier Oct 26, 2026
2e38931
Defer Pump shared services until published readiness
marcschier Oct 26, 2026
6034f59
Preserve session state across identity refresh
marcschier Oct 26, 2026
042ecd1
Release test request views before server teardown
marcschier Oct 26, 2026
8eac328
Keep configuration disposal test independent of server ownership
marcschier Oct 26, 2026
a0c44d1
Cancel initial readiness and isolate lifecycle test storage
marcschier Oct 27, 2026
a92a0ec
Join registry retirement before releasing test dependencies
marcschier Oct 27, 2026
655c4c7
Synchronize bundled Browse continuation migration guidance
marcschier Oct 27, 2026
8568dd0
Preserve startup causes and hosted cleanup ownership
marcschier Oct 27, 2026
5302f01
Preserve replacement references and restore portable history
marcschier Oct 27, 2026
d53427b
Carry runtime reference cleanup across replacement generations
marcschier Oct 27, 2026
3454749
Validate lazy reciprocal sources before retirement cleanup
marcschier Oct 27, 2026
b37e457
Exercise admitted event drains and canonical generation migration
marcschier Oct 27, 2026
7b5afa4
Merge master into NodeManager lifetime redesign
marcschier Oct 27, 2026
1b3def9
Fix publication cleanup and generation ownership regressions
marcschier Oct 27, 2026
f425af1
Defer AliasName registry access until published readiness
marcschier Oct 27, 2026
a0c4507
Preserve native reference override metadata and complete Boiler readi…
marcschier Oct 27, 2026
7f82d48
Avoid reserving unchanged surviving reference sources
marcschier Oct 27, 2026
1b3e1b0
Align Alias registry coverage with published readiness
marcschier Oct 27, 2026
32f37f0
Reject retiring identity reuse while its admission drains
marcschier Oct 27, 2026
dd2b4da
Preserve synchronous factory namespace declaration order
marcschier Oct 27, 2026
15be8a2
Keep parked Publish requests out of address-space epoch drains
marcschier Oct 27, 2026
bdf87db
Reclaim shutdown applications despite post-publication reconciliation…
marcschier Oct 27, 2026
7c6e52e
Preserve reference sample namespaces across optional manager startup
marcschier Oct 27, 2026
eb4697d
Align retained provenance tests with physical generation lifetime
marcschier Oct 27, 2026
61dc840
Retry actual native reference reservation conflicts before durable pu…
marcschier Oct 28, 2026
ddadbcc
Preserve owned alias registrations across replacement and retirement
marcschier Oct 28, 2026
5c4357f
Configure historian services during published readiness
marcschier Oct 28, 2026
54d3a1b
Release borrowed operation routing pins at cohort quiescence
marcschier Oct 28, 2026
f2786fc
Migrate late monitored items under committed generation policy
marcschier Oct 28, 2026
4bcd674
Merge commit '70e987332856587505195aa428d262a8aace44e6' into marcschi…
marcschier Oct 28, 2026
4108610
Bind all-events items to current admitted owner generations
marcschier Oct 28, 2026
7eca9c7
Collect macOS crash evidence after tolerated testhost exits
marcschier Oct 28, 2026
f5f8329
Continue independent monitored-item handoffs after release failures
marcschier Oct 28, 2026
f34ce3c
Retry independent compatibility lifecycle publications before decision
marcschier Oct 28, 2026
145f438
Preserve public lifecycle conflict exception type
marcschier Oct 28, 2026
a2b188f
Merge branch 'master' of https://github.com/OPCFoundation/UA-.NETStan…
marcschier Oct 28, 2026
0eb2d24
Merge remote-tracking branch 'origin/master' into marcschier-nodemana…
marcschier Oct 28, 2026
901d6ee
Harden NodeManager readiness, reconciliation and shutdown lifetimes
marcschier Oct 29, 2026
9ac39ad
Merge remote-tracking branch 'origin/master' into marcschier-nodemana…
marcschier Oct 29, 2026
4cd67b5
Clarify readiness event delivery and compatibility retry contracts
marcschier Oct 29, 2026
2e49031
Server: complete NodeManager lifetime and CI corrections
marcschier Oct 30, 2026
e21fd95
Server: add async namespace manager registration
marcschier Oct 30, 2026
0f86a88
Bound compatibility retries for stale publications
marcschier Oct 30, 2026
2d4f333
Retry failed terminal generation cleanup
marcschier Oct 30, 2026
437deb0
Warn on prolonged NodeManager lifecycle waits
marcschier Oct 30, 2026
38b4959
Server: address lifecycle review feedback
marcschier Oct 30, 2026
c96a369
Server: allow removal after readiness failure
marcschier Oct 30, 2026
085cea8
Server: align readiness failure test expectations
marcschier Oct 30, 2026
020d87a
Tests: isolate reverse-connect timer rearming assertion
marcschier Oct 30, 2026
bf04de5
Fix NodeManager lifecycle net48 compatibility
marcschier Oct 30, 2026
e44b565
Fix readiness emission drain accounting
marcschier Oct 31, 2026
7f7a566
Surface retired generation cleanup failures
marcschier Oct 31, 2026
ce49022
Merge remote-tracking branch 'origin/master' into marcschier-nodemana…
marcschier Oct 31, 2026
349fc39
Fix Client CI compilation and redundancy race test
marcschier Oct 31, 2026
68989e8
Add opt-in macOS PKCS#11 loader diagnostics
marcschier Oct 31, 2026
a7e62cf
Expose PKCS#11 diagnostic through CI dispatch
marcschier Oct 31, 2026
02d7fe1
Align reclaimer retry tests with surfaced cleanup failures
marcschier Oct 31, 2026
25d33f0
Server: reload readiness failure keeps replacement hidden until removal
marcschier Oct 31, 2026
8e6141e
Tests: assert durable lifetime cap instead of Assert.Warn
marcschier Oct 31, 2026
8e23ae3
Tests: fix cleanup-retry test hang that blocked server shutdown
marcschier Oct 31, 2026
4c5c4ba
Tests: align lifecycle cleanup-failure tests with automatic retry con…
marcschier Oct 31, 2026
aabae19
Remove unshipped immediate Remove overload; document 2.0.1 lifecycle …
marcschier Oct 31, 2026
34aec01
Add opt-in macOS full shard-11 PKCS#11 diagnostic with test host dyld…
marcschier Oct 31, 2026
3ab1b36
Pin PKCS#11 modules for the process lifetime
marcschier Oct 31, 2026
ca74b6f
Restore a shared durable data-change batch as one batch
marcschier Oct 31, 2026
e21f7d8
Share the PKI root per lifecycle test fixture
marcschier Oct 31, 2026
3c2d5b1
Merge remote-tracking branch 'origin/master' into marcschier-nodemana…
marcschier Oct 31, 2026
bf8cd7e
Keep the upstream benchmark session implementation after merge
marcschier Oct 31, 2026
9db9eb7
Shard modern Server tests into lifecycle and remaining workloads
marcschier Oct 31, 2026
5d14a4a
Anchor the first data change sample time to the clock
marcschier Oct 31, 2026
5c25a8f
Merge branch 'master' into marcschier-nodemanager-redesign-e24
marcschier Nov 1, 2026
e5925c0
Merge branch 'master' into marcschier-nodemanager-redesign-e24
marcschier Nov 1, 2026
14085ee
Server: retain failed server for disposal retry; restore WoT view nam…
marcschier Nov 1, 2026
40f9096
Merge branch 'marcschier-nodemanager-redesign-e24' of https://github.…
marcschier Nov 1, 2026
99421a0
CI: fit Server shard split into the matrix budget after LADS
marcschier Nov 1, 2026
3a282a7
Close NodeManager lifetime review gaps
marcschier Nov 1, 2026
61f0bf7
Establish server-free NodeManager lifecycle test foundation
marcschier Nov 1, 2026
c2d8279
Restore hosted lifecycle detachment on disposal failure
marcschier Nov 1, 2026
750d84f
Merge commit 'c2d8279e39d2d743d2a2cd00b95f3e28bd976998' into marcschi…
marcschier Nov 1, 2026
b4f7f69
Stabilize operation system context caching
marcschier Nov 1, 2026
1b777fd
Reuse exact-source authorization verdicts while sampling
marcschier Nov 1, 2026
2ec2482
Document S4 notification and activation measurement gaps
marcschier Nov 1, 2026
82327ca
Add slot-targeted lifecycle change contracts
marcschier Nov 1, 2026
b7ed9f2
Simplify lifecycle candidate state and cleanup ownership
marcschier Nov 1, 2026
0a48fb5
Correct the performance tracking issue link
marcschier Nov 1, 2026
1cf9db6
Use copy-on-write type table snapshots
marcschier Nov 1, 2026
6b1cd5c
Measure lifecycle type snapshot preparation
marcschier Nov 1, 2026
80f689c
Qualify additive type registration snapshots
marcschier Nov 1, 2026
e1b5063
Align discovery registration with readiness
marcschier Nov 1, 2026
54b21d5
Stage historian registrations with NodeManager readiness
marcschier Nov 2, 2026
5a9d8a7
Migrate WoTCon to lifecycle change sets and captured validation
marcschier Nov 2, 2026
3263ed6
Fix atomic candidate claims and global historian unbinding
marcschier Nov 2, 2026
d434507
Align WoTCon overview with lifecycle transaction calls
marcschier Nov 2, 2026
ddba8db
Merge remote-tracking branch 'origin/master' into marcschier-nodemana…
marcschier Nov 2, 2026
da9192c
Fix committed reference recovery and sampled subscriber validation
marcschier Nov 2, 2026
b0761fb
Consolidate lifecycle documentation around developer usage
marcschier Nov 2, 2026
775cd91
Fix staged historian ownership and retirement disposal checkpoints
marcschier Nov 2, 2026
dffb84c
docs: record #4869 candidate delivery measurements
marcschier Nov 2, 2026
cc9bf22
Configuration: propagate completed apply failures
marcschier Nov 2, 2026
5c29062
Add additive F1 lifecycle change-set contract
marcschier Nov 2, 2026
fb20efe
Integrate F1 lifecycle contract and WotCon observer fix
marcschier Nov 2, 2026
1902236
docs: record #4869 candidate delivery measurements
marcschier Nov 2, 2026
7da0045
Configuration: propagate completed apply failures
marcschier Nov 2, 2026
d53bf41
Merge commit 'refs/pull/4949/head' of https://github.com/OPCFoundatio…
marcschier Nov 3, 2026
12f1042
Complete lifecycle ownership and host boundaries
marcschier Nov 3, 2026
e9af535
Merge master into NodeManager redesign
marcschier Nov 3, 2026
68ef084
NodeManager redesign follow-up (S1-S9) (#4949)
marcschier Nov 3, 2026
f89a5d1
Merge branch 'master' into marcschier-nodemanager-redesign-e24
marcschier Nov 3, 2026
674cb03
Server: restore event delivery at scale (admission once per event, ca…
romanett Nov 3, 2026
a33e0f5
Session: read the identity refresh state without the session lock (#4…
romanett Nov 3, 2026
ff95ca5
Reconcile fork history into upstream NodeManager redesign
marcschier Nov 4, 2026
e6f318e
Integrate NodeManager redesign implementation
marcschier Nov 4, 2026
3406dfc
Address NodeManager lifecycle review feedback
marcschier Nov 4, 2026
30b8cf6
Server: refresh historian capabilities after routing changes
marcschier Nov 4, 2026
8387aa7
CI: use repository SDK from global.json
marcschier Nov 4, 2026
6c780dc
Fix PR 4982 review findings
marcschier Nov 4, 2026
c1abdeb
Fix CI test expectations for NodeManager lifecycle
marcschier Nov 4, 2026
acbae3a
Merge master into PR 4982 branch
marcschier Nov 4, 2026
8ea1b92
Address lifecycle review follow-up
marcschier Nov 5, 2026
808025a
Fix historian lifecycle registration and bound macOS WoT CI
marcschier Nov 5, 2026
3bf0ddf
Split macOS WoT live-event integration workload
marcschier Nov 5, 2026
558580b
Server: avoid a per-request ConditionalWeakTable in OperationContext …
romanett Nov 5, 2026
2518bc9
Merge remote-tracking branch 'origin/master' into marcschier-adopt-de…
marcschier Nov 5, 2026
338abf5
Bound remaining macOS WoT and lifecycle CI workloads
marcschier Nov 5, 2026
e909358
Merge master and preserve lifecycle-ready AMB fixture startup
marcschier Nov 5, 2026
0f5f925
Verify hosted startup failure identity and cleanup
marcschier Nov 5, 2026
eb57f89
Wait for actual native-peer retirement before fixture restart
marcschier Nov 6, 2026
3c82292
Resolve analyzer findings in native retirement regression
marcschier Nov 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- [NodeState Cloning and Lifecycle](#nodestate-cloning-and-lifecycle)
- [INodeManager3 - new role-permission and method-resolution hooks](#inodemanager3---new-role-permission-and-method-resolution-hooks)
- [NodeState guards itself; NodeBrowser is single-consumer (UA0027)](#nodestate-guards-itself-nodebrowser-is-single-consumer-ua0027)
- [Declare complete browser dependencies when requested](#declare-complete-browser-dependencies-when-requested)
- [Browse continuation lifetime](#browse-continuation-lifetime)
- [NodeBrowser gains an async iteration seam](#nodebrowser-gains-an-async-iteration-seam)
- [`INodeCache` changes](#inodecache-changes)

Expand Down Expand Up @@ -334,31 +334,20 @@ that to the browser's own `Next()`.

Analyzer `UA0027` reports every remaining `NodeBrowser.DataLock` reference.

### Declare complete browser dependencies when requested
### Browse continuation lifetime

`IBrowseContinuationDependencies` is an optional capability for consumers that
need every target owner required by the remaining Browse pages. The standard
`NodeBrowser` reports the targets in its stored reference snapshot without
advancing iteration. A derived browser does not inherit a completeness promise
for references it might produce lazily.
`IBrowseContinuationDependencies` and `TryGetContinuationDependencies` are no
longer part of the continuation contract. A Browse continuation records the
issuing generation weakly and does not retain its NodeManager, routing view, or
reference targets. `BrowseNext` succeeds only while that generation's gate is
open; after retirement, the server returns `BadContinuationPointInvalid`.
Targets on later pages are resolved through the current request view.

Override `TryGetContinuationDependencies` only when every remaining target can
be declared before saving the first page. For a complete, fixed
`m_futureTargets` set:

```csharp
public override bool TryGetContinuationDependencies(out ArrayOf<ExpandedNodeId> targetIds)
{
targetIds = [.. GetRemainingReferenceTargets(), .. m_futureTargets];
return true;
}
```

Returning `true` with an empty set promises that no other target owner is needed.
Return `false` when lazy dependencies cannot be bounded; report the complete
remaining set rather than only currently buffered references. This metadata
contract alone does not change pagination or retain NodeManager generations:
continuation admission, retention and invalidation remain server responsibilities.
Do not implement dependency enumeration to support pagination. A lazy browser
can keep its cursor in `ContinuationPoint.Data` and return references through
`Next()` or `NextAsync()` as before. The standard file-system
`DirectoryBrowser` continues to work without pre-enumerating entries or
capturing target owners.

### NodeBrowser gains an async iteration seam

Expand Down
2 changes: 1 addition & 1 deletion .azurepipelines/onefuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ steps:
displayName: Set up the repository .NET SDK
inputs:
packageType: sdk
version: '10.0.403'
useGlobalJson: true

- ${{ parameters.prepareSteps }}

Expand Down
140 changes: 125 additions & 15 deletions .github/actions/run-dotnet-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ inputs:
artifact-name:
description: Name of the artifact that receives the results of this batch.
required: true
macos-native-loader-diagnostics:
description: >-
Disabled, control, or trace. Trace enables bounded dyld diagnostics only
for the PKCS#11 test host on macOS.
required: false
default: disabled

runs:
using: composite
Expand All @@ -52,6 +58,11 @@ runs:
with:
dotnet-version: ${{ inputs.dotnet }}

- name: Setup repository .NET SDK
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json

- name: Set cloud version
shell: pwsh
run: ./.azurepipelines/set-version.ps1
Expand Down Expand Up @@ -225,6 +236,9 @@ runs:
CI_HANG_TIMEOUT: ${{ inputs.hang-timeout }}
CI_PER_PROJECT_TIMEOUT: ${{ inputs.per-project-timeout }}
CI_COVERAGE: ${{ inputs.coverage }}
CI_MACOS_NATIVE_LOADER_DIAGNOSTICS: ${{ inputs.macos-native-loader-diagnostics }}
OPCUA_CAPTURE_MACOS_NATIVE_LOADER_DIAGNOSTICS: >-
${{ inputs.macos-native-loader-diagnostics == 'trace' && 'true' || 'false' }}
# Record an allocation stack (and the owning fixture) per Certificate
# handle, so a teardown "Certificate leak detected" failure names the
# leaked handle's origin. The rare one-certificate Sessions.Tests leak on
Expand Down Expand Up @@ -259,6 +273,7 @@ runs:
-HangTimeout $env:CI_HANG_TIMEOUT `
-PerProjectTimeoutMinutes ([int]$env:CI_PER_PROJECT_TIMEOUT) `
-ResultsDirectory 'TestResults' `
-QuietOutput:($env:CI_MACOS_NATIVE_LOADER_DIAGNOSTICS -ne 'disabled') `
-Coverage:($env:CI_COVERAGE -eq 'true')

# Apple Crash Reporter writes .crash (legacy) and .ips (JSON, macOS 12+)
Expand All @@ -268,30 +283,112 @@ runs:
# SIGABRT or SIGSEGV. Only reports whose base name mentions 'testhost' or
# 'dotnet' are collected, which excludes unrelated crashes on shared runners.
- name: Stage macOS crash reports
if: ${{ failure() && runner.os == 'macOS' }}
# A tolerated testhost exit can leave the preceding step successful.
if: ${{ always() && runner.os == 'macOS' }}
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$src = [System.IO.Path]::Combine($env:HOME, 'Library', 'Logs', 'DiagnosticReports')
$dst = 'TestResults/mac-diagnostics'
if (-not (Test-Path $src)) {
Write-Host "No DiagnosticReports directory found at '$src'; skipping."
exit 0
$null = New-Item -ItemType Directory -Path $dst -Force
$status = Join-Path $dst 'collection.txt'
function Write-Diagnostic([string] $message) {
Add-Content -LiteralPath $status -Value $message
Write-Host $message
}
$cutoff = (Get-Date).AddHours(-2)
$files = @(Get-ChildItem -Path $src -File -ErrorAction SilentlyContinue |
Where-Object { ($_.Extension -ieq '.crash' -or $_.Extension -ieq '.ips') -and
($_.BaseName -ilike '*testhost*' -or $_.BaseName -ilike '*dotnet*') -and
$_.LastWriteTime -ge $cutoff })
if ($files.Count -eq 0) {
Write-Host 'No recent macOS crash reports found.'
exit 0
$files = @()
if (Test-Path -LiteralPath $src) {
$files = @(Get-ChildItem -LiteralPath $src -File |
Where-Object { ($_.Extension -ieq '.crash' -or $_.Extension -ieq '.ips') -and
($_.BaseName -ilike '*testhost*' -or $_.BaseName -ilike '*dotnet*') -and
$_.LastWriteTime -ge $cutoff })
}
$null = New-Item -ItemType Directory -Path $dst -Force
else {
Write-Diagnostic "No DiagnosticReports directory found at '$src'."
}
$hasNativeStack = $false
foreach ($f in $files) {
Copy-Item -Path $f.FullName -Destination $dst -Force
Write-Host "Staged: $($f.Name)"
Copy-Item -LiteralPath $f.FullName -Destination $dst -Force
$report = Get-Content -LiteralPath $f.FullName -Raw
if ($report -match '(?m)^Thread \d+ Crashed:' -or
($report -match '"threads"\s*:' -and $report -match '"frames"\s*:\s*\[\s*\{')) {
$hasNativeStack = $true
}
Write-Diagnostic "Staged: $($f.Name)"
}
Write-Diagnostic "Staged $($files.Count) recent macOS crash report(s) to '$dst'."
if ($hasNativeStack) {
Write-Diagnostic 'A staged report contains native thread frames; LLDB fallback not required.'
exit 0
}

# Blame crash dumps are Mach-O cores on macOS, even with a .dmp suffix.
# Keep the newest three backtraces, with at most one minute per core.
$dumps = @(Get-ChildItem -LiteralPath 'TestResults' -Recurse -File -Filter '*_crashdump.dmp' |
Where-Object { $_.LastWriteTime -ge $cutoff } |
Sort-Object LastWriteTime -Descending |
Select-Object -First 3)
if ($dumps.Count -eq 0) {
Write-Diagnostic 'No native thread frames or recent blame crash dumps available.'
exit 0
}
$lldb = Get-Command lldb -CommandType Application -ErrorAction SilentlyContinue |
Select-Object -First 1
if ($null -eq $lldb) {
Write-Diagnostic '::warning::LLDB is unavailable; native backtraces could not be collected.'
exit 0
}
$dumpIndex = 0
foreach ($dump in $dumps) {
$name = "$dumpIndex-$($dump.Name)"
$dumpIndex++
$stdout = Join-Path $dst "$name.backtrace.txt"
$stderr = Join-Path $dst "$name.stderr.txt"
$process = $null
try {
$coreArgument = '"' + $dump.FullName.Replace('"', '\"') + '"'
$arguments = '--batch --no-lldbinit --core ' + $coreArgument +
' -o "thread backtrace all" -o "image list"'
Write-Diagnostic "Collecting native thread/image backtrace: $($dump.FullName)"
$process = Start-Process -FilePath $lldb.Source -ArgumentList $arguments -PassThru `
-RedirectStandardOutput $stdout -RedirectStandardError $stderr
if (-not $process.WaitForExit(60000)) {
Write-Diagnostic "::warning::LLDB timed out after 60 seconds for '$name'; partial output retained."
}
elseif ($process.ExitCode -ne 0) {
Write-Diagnostic "::warning::LLDB failed for '$name' with exit $($process.ExitCode); output retained."
}
else {
Write-Diagnostic "LLDB completed for '$name'; see '$stdout' and '$stderr'."
}
}
catch {
Write-Diagnostic "::warning::Native backtrace collection failed for '$name': $($_.Exception.Message)"
}
finally {
if ($null -ne $process) {
try {
if (-not $process.HasExited) {
$process.Kill($true)
if (-not $process.WaitForExit(5000) -or -not $process.HasExited) {
throw 'LLDB remained alive after bounded process-tree termination.'
}
}
}
catch {
if (-not $process.HasExited) {
Write-Diagnostic "::error::LLDB cleanup failed for '$name': $($_.Exception.Message)"
throw
}
Write-Diagnostic "LLDB exited during process-tree termination for '$name'."
}
finally {
$process.Dispose()
}
}
}
}
Write-Host "Staged $($files.Count) macOS crash report(s) to '$dst'."

- name: Stage Linux core dumps
# Counterpart of 'Stage macOS crash reports' for the kernel cores enabled by
Expand Down Expand Up @@ -365,6 +462,19 @@ runs:

ls -la "$dst"

- name: Capture macOS native loader diagnostics
if: >-
${{ always() && runner.os == 'macOS' &&
inputs.macos-native-loader-diagnostics != 'disabled' &&
contains(inputs.projects, 'Opc.Ua.Security.Pkcs11.Tests') }}
shell: pwsh
env:
CI_MACOS_NATIVE_LOADER_DIAGNOSTICS: ${{ inputs.macos-native-loader-diagnostics }}
run: |
./.github/scripts/capture-macos-native-loader-diagnostics.ps1 `
-ResultsDirectory 'TestResults' `
-Mode $env:CI_MACOS_NATIVE_LOADER_DIAGNOSTICS

- name: Upload test results
# always(): the results of a failed run are the reason to keep them.
if: ${{ always() }}
Expand Down
6 changes: 6 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ This is the official OPC UA .NET Standard Stack from the OPC Foundation. It prov
- **Audit and Redaction**: Use the audit APIs for security events. Classify sensitive log parameters (addresses, application and user identities, paths, exception texts) with the `Opc.Ua.Redaction` data classification attributes

### Testing Standards
- Keep server-free lifecycle component tests in their direct fixtures under
`tests/Opc.Ua.Server.Tests/NodeManager`; use `NodeManagerLifecycleTests` for
behavior that requires a real server. Preserve the `Server` and
`NodeManagerLifecycle` categories when relocating cases. Fully qualified
test filters must name the fixture that owns the case. See
`docs/DeveloperGuide.md#testing-nodemanager-lifecycle-components` for fixture scopes.
- Use NUnit or TUNIT framework (match existing test projects)
- DO NOT mix Nunit and TUNIT in the same project.
- DO Use NUnit asserts methods (Assert.That). Use the TUNIT assertions when using TUNIT.
Expand Down
Loading
Loading