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.

Stabilize TrueNAS poller enable-disable proof

rcourtman868239a64818
diff --git a/docs/release-control/v6/internal/records/documentation-currentness-and-legacy-cleanup-v6-rc4-packet-2026-05-05.md b/docs/release-control/v6/internal/records/documentation-currentness-and-legacy-cleanup-v6-rc4-packet-2026-05-05.md
index c9fc64f2fa..333534050e 100644
--- a/docs/release-control/v6/internal/records/documentation-currentness-and-legacy-cleanup-v6-rc4-packet-2026-05-05.md
+++ b/docs/release-control/v6/internal/records/documentation-currentness-and-legacy-cleanup-v6-rc4-packet-2026-05-05.md
@@ -134,6 +134,13 @@ plain nil interface and still dereferenced a typed nil `*websocket.Hub`. The
monitor broadcast contract now treats typed nil broadcasters as absent, and the
regression proof covers the tenant-scoped broadcast path.
+The third draft release workflow then exposed a race in
+`TestTrueNASPollerEnableDisableCycle`: the proof stopped the poller after a
+request-count threshold, before the asynchronous refresh was guaranteed to have
+committed the canonical TrueNAS host record. The test now waits for the actual
+ingested TrueNAS host before stopping the poller, so the release gate proves the
+canonical record instead of transport activity alone.
+
No public issue comment, retitle, closure, or customer-facing message was made
as part of this packet update.
@@ -153,5 +160,10 @@ as part of this packet update.
- `prepare`, `frontend_checks`, `helm_smoke`, and `docker_build` passed
- `backend_tests` failed on a tenant monitor typed-nil WebSocket hub panic in
`internal/api`
+- Draft release workflow `25385764666`:
+ - `prepare`, `frontend_checks`, `helm_smoke`, and `docker_build` passed
+ - `backend_tests` failed on `TestTrueNASPollerEnableDisableCycle` stopping
+ before canonical TrueNAS host ingest was proved
- `go test -race ./internal/config ./tests/migration ./scripts/installtests`
- `go test -race ./internal/monitoring ./internal/api`
+- `go test -race ./internal/monitoring -run TestTrueNASPollerEnableDisableCycle -count=20`
diff --git a/internal/monitoring/truenas_poller_test.go b/internal/monitoring/truenas_poller_test.go
index 435b7f4ab6..bb6c906dd5 100644
--- a/internal/monitoring/truenas_poller_test.go
+++ b/internal/monitoring/truenas_poller_test.go
@@ -128,7 +128,10 @@ func TestTrueNASPollerEnableDisableCycle(t *testing.T) {
t.Cleanup(poller.Stop)
waitForCondition(t, 2*time.Second, func() bool {
- return pollerProviderCount(poller) == 1 && pollerHasProvider(poller, connection.ID) && mock.RequestCount() >= 5
+ return pollerProviderCount(poller) == 1 &&
+ pollerHasProvider(poller, connection.ID) &&
+ mock.RequestCount() >= 5 &&
+ hasTrueNASHostForOrg(poller, "default", "nas-enable-disable")
}, "expected enabled poller to start and poll configured TrueNAS connection")
poller.Stop()