mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 10:35:51 +00:00
0c788079d0
Backport of the main-branch guard. pkg/server tests boot the real server through Run() with the version literal "test-version", which normalizes to 0.0.0-test-version, and each test runs against its own t.TempDir(), so every run mints a fresh install ID. The service-health failure reporter sends synchronously from a deferred handler as soon as Run() returns an error, so any test exercising a startup failure posts one ping. This line still emitted after main was fixed: release-line lane work runs pkg/server tests on this branch, and those pings arrive with the old version classifier too, so they land mislabelled as ordinary prereleases and re-contaminate install-population reads that were just corrected. send() now refuses the production endpoint whenever testing.Testing() reports true. The check compares against productionPingEndpoint, so telemetry's own tests keep asserting on ping content through a redirected endpoint. Verified on this branch: three runs of the failing-startup tests, zero pings received.