mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-14 00:00:30 +00:00
47392b5f68
Mock fixture IDs churned across backend restarts, breaking resource identity continuity in mock mode: k8s pod and deployment names picked their namespace and prefix with rand.Intn per boot, the ceph FSID was pure rand.Int63n, and generic agent hosts randomized both platform profile (which feeds the host ID) and hostname. Every restart re-keyed those unified resources and re-seeded ~31k orphan metric rows that lingered for the full 90d mock retention. Derive all of them from mockStableChoice/mockStableDecimalString over stable inputs (cluster ID, item ordinal, instance name) instead, matching the generator's existing stable-ID idiom and its documented contract. Add a regression test that builds the fixture graph twice and requires every identity set to match. Verified live: two mock-mode boots now share all 185 distinct metric resource IDs and the second boot's backfill seeds 0 rows (was ~31k).