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.

Model registered large-cluster polls with an expired detail budget

pulse-triage[bot]427898afea37
diff --git a/internal/monitoring/proxmox_large_cluster_poll_budget_test.go b/internal/monitoring/proxmox_large_cluster_poll_budget_test.go
index b2f240b8ca..93f5668ef9 100644
--- a/internal/monitoring/proxmox_large_cluster_poll_budget_test.go
+++ b/internal/monitoring/proxmox_large_cluster_poll_budget_test.go
@@ -107,7 +107,7 @@ func TestLargePVEClusterPublishesCompleteGenerationWhenEnrichmentBudgetExpires(t
monitor.replacePVEClient("large-cluster", client)
// Expire only deep enrichment. The parent still owns the authoritative
// inventory and its reserved publication tail, unlike explicit cancellation.
- ctx, cancel := context.WithTimeout(context.Background(), pvePollTailReserve+40*time.Millisecond)
+ ctx, cancel := context.WithTimeout(context.Background(), pvePollTailReserve-time.Second)
defer cancel()
started := time.Now()
@@ -185,8 +185,11 @@ func TestLargePVEClusterCoreSuccessKeepsConnectionHealthy(t *testing.T) {
monitor.guestAgentWorkSlots = make(chan struct{}, defaultGuestAgentVMMaxConcurrent)
monitor.config.PVEInstances[0].MonitorVMs = true
monitor.config.PVEInstances[0].MonitorContainers = true
+ monitor.replacePVEClient("large-cluster", client)
- ctx, cancel := context.WithTimeout(context.Background(), 250*time.Millisecond)
+ // This models an already exhausted detail budget, not cancellation of the
+ // entire connection cycle. Leave its authoritative publication tail alive.
+ ctx, cancel := context.WithTimeout(context.Background(), pvePollTailReserve-time.Second)
defer cancel()
monitor.pollPVEInstance(ctx, "large-cluster", client)