Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Keep each Windows absence witness local to its actual check

pulse-triage[bot]930922227843
diff --git a/scripts/installtests/windows_native_acceptance_test.go b/scripts/installtests/windows_native_acceptance_test.go
index edfa7c1ddb..85a28b6a22 100644
--- a/scripts/installtests/windows_native_acceptance_test.go
+++ b/scripts/installtests/windows_native_acceptance_test.go
@@ -36,6 +36,14 @@ func windowsNativeAcceptanceContract(harness string, steps []nativeWindowsExitSt
strings.Contains(harness, "Get-NetTCPConnection -LocalPort 9191") {
return fmt.Errorf("failed observation can stand in for absence")
}
+ // Retained-state acceptance also reads listeners. That independent read
+ // cannot stand in for the final post-uninstall absence function's own gate.
+ absenceStart := strings.Index(harness, "function Assert-LifecycleAgentAbsent {")
+ absenceEnd := strings.Index(harness, "function Invoke-UninstallAndAssertClean {")
+ if absenceStart < 0 || absenceEnd <= absenceStart ||
+ !strings.Contains(harness[absenceStart:absenceEnd], `$listeners = @(Get-NetTCPConnection -ErrorAction Stop | Where-Object {`) {
+ return fmt.Errorf("post-uninstall absence requires its own independent listener enumeration")
+ }
preflight := "Assert-LifecycleAgentAbsent\n $previousDisableAutoUpdate = [Environment]::GetEnvironmentVariable"
if !strings.Contains(harness, preflight) {
return fmt.Errorf("machine state can change before independent clean-runner admission")