fix: add truthful KTAP monitoring diagnostics
This commit is contained in:
@@ -78,6 +78,13 @@ static int Probe()
|
||||
architecture = Environment.Is64BitProcess ? "x64" : "x86",
|
||||
connectRequestIssued = false,
|
||||
comActivationAttempted = false,
|
||||
lastKtapConnectState = "not-attempted",
|
||||
ktapConnectAttempted = false,
|
||||
ktapConnectAccepted = false,
|
||||
ktapHelloObserved = (bool?)null,
|
||||
networkMonitoringRecordExpected = false,
|
||||
networkMonitoringCheckRequired = false,
|
||||
networkMonitoringVerified = (bool?)null,
|
||||
runtimeRegistration = new
|
||||
{
|
||||
ready = runtimeRegistration.IsReady,
|
||||
@@ -123,8 +130,15 @@ static async Task<int> DryRunAsync()
|
||||
command = "dry-run",
|
||||
mode = engine.Status.Mode.ToString(),
|
||||
state = engine.Status.State.ToString(),
|
||||
connectRequestIssued = false,
|
||||
connectRequestIssued = true,
|
||||
comActivationAttempted = false,
|
||||
lastKtapConnectState = "not-attempted",
|
||||
ktapConnectAttempted = false,
|
||||
ktapConnectAccepted = false,
|
||||
ktapHelloObserved = (bool?)null,
|
||||
networkMonitoringRecordExpected = false,
|
||||
networkMonitoringCheckRequired = false,
|
||||
networkMonitoringVerified = (bool?)null,
|
||||
commands = results.Select(result => new
|
||||
{
|
||||
operation = result.Operation.ToString(),
|
||||
@@ -149,6 +163,13 @@ static int TestPlan(SmokeCommandInvocation invocation)
|
||||
runtimeProcessGateChecked = false,
|
||||
connectRequestIssued = false,
|
||||
comActivationAttempted = false,
|
||||
lastKtapConnectState = "not-attempted",
|
||||
ktapConnectAttempted = false,
|
||||
ktapConnectAccepted = false,
|
||||
ktapHelloObserved = (bool?)null,
|
||||
networkMonitoringRecordExpected = false,
|
||||
networkMonitoringCheckRequired = false,
|
||||
networkMonitoringVerified = (bool?)null,
|
||||
sceneCount = plan.PrepareCue is null ? 0 : 2,
|
||||
automaticReconnectEnabled = plan.Options.ReconnectEnabled,
|
||||
safety = "Configuration and scene assets validated only; no engine or COM was created."
|
||||
@@ -209,6 +230,13 @@ static void WritePreflightFailure(string command, string errorCode) =>
|
||||
runtimeProcessGateChecked = false,
|
||||
connectRequestIssued = false,
|
||||
comActivationAttempted = false,
|
||||
lastKtapConnectState = "not-attempted",
|
||||
ktapConnectAttempted = false,
|
||||
ktapConnectAccepted = false,
|
||||
ktapHelloObserved = (bool?)null,
|
||||
networkMonitoringRecordExpected = false,
|
||||
networkMonitoringCheckRequired = false,
|
||||
networkMonitoringVerified = (bool?)null,
|
||||
errorCode,
|
||||
safety = "Rejected before engine creation; no COM activation was attempted."
|
||||
});
|
||||
@@ -227,6 +255,13 @@ static int Usage(string? errorCode)
|
||||
command = "invalid",
|
||||
connectRequestIssued = false,
|
||||
comActivationAttempted = false,
|
||||
lastKtapConnectState = "not-attempted",
|
||||
ktapConnectAttempted = false,
|
||||
ktapConnectAccepted = false,
|
||||
ktapHelloObserved = (bool?)null,
|
||||
networkMonitoringRecordExpected = false,
|
||||
networkMonitoringCheckRequired = false,
|
||||
networkMonitoringVerified = (bool?)null,
|
||||
errorCode = errorCode ?? "invalid-command-line"
|
||||
});
|
||||
Console.Error.WriteLine(
|
||||
|
||||
Reference in New Issue
Block a user