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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
test(ai): await incident note persistence before cleanup
pulse-triage[bot]20af32e0156e
diff --git a/internal/ai/memory/incident_query_test.go b/internal/ai/memory/incident_query_test.goindex ecf2ccbeec..0be4471ae5 100644--- a/internal/ai/memory/incident_query_test.go+++ b/internal/ai/memory/incident_query_test.go@@ -228,6 +228,9 @@ func TestIncidentAlertContextRetainsOperatorNote(t *testing.T) {require.NoError(t, err)require.Len(t, page.Incidents, 1)require.True(t, store.RecordNote("noted-alert", page.Incidents[0].ID, "Keep the old pool until its replacement is verified", "operator"))+ // RecordNote persists asynchronously. Keep the temporary data directory+ // alive until that write finishes so cleanup cannot race the save goroutine.+ waitForCompletedSaves(t, store, 1)context := store.FormatForAlert("noted-alert", 10)require.Contains(t, context, "Note added by operator: Keep the old pool until its replacement is verified")require.Contains(t, context, "source=operator_note")