fix(grpc-data): A1 review round 2 F1 + F2 — an ack-revert establishes nothing; every Good edge withdraws; Bad edge forgets unsignalable
F1: RevertNativeAlarmAck projected through WriteAlarmCondition, which re-marked a comms-withdrawn native condition known; with the Good edge's conditional withdrawal skipped (GoodSinceUtc null) it read known-inactive-Good until the replay. AlarmStateUpdate.EstablishesState (false for the revert) rides a new default sink overload WriteAlarmCondition(..., establishesState) through the deferred and SDK sinks to the node manager, and every Good edge now withdraws unconditionally. F2: the Bad edge clears the unsignalable set, so a stale report cannot arm the backstop on the next Good edge. The rig's CollectAlarmTraffic skips withdrawals (every edge now sends one).
This commit is contained in:
@@ -141,7 +141,7 @@ public abstract class NativeAlarmSignalTestBase : RuntimeActorTestBase
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>The publish-actor messages that are alarm-state updates or marks, in arrival order, until
|
||||
/// <summary>The publish-actor messages that are alarm-state updates or KNOWN marks (withdrawals skipped), in arrival order, until
|
||||
/// <paramref name="until"/> matches (inclusive).</summary>
|
||||
/// <param name="publish">The probe.</param>
|
||||
/// <param name="until">Stop condition.</param>
|
||||
@@ -156,6 +156,8 @@ public abstract class NativeAlarmSignalTestBase : RuntimeActorTestBase
|
||||
var m = publish.ReceiveOne(deadline - DateTime.UtcNow);
|
||||
if (m is null) break;
|
||||
if (m is not (OpcUaPublishActor.AlarmStateUpdate or OpcUaPublishActor.MarkConditionsKnown)) continue;
|
||||
// Withdrawals (every connectivity edge sends one, review round 2 F1) are not marks.
|
||||
if (m is OpcUaPublishActor.MarkConditionsKnown { Known: false }) continue;
|
||||
seen.Add(m);
|
||||
if (until(m)) return seen;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user