Files
Pulse/internal/alerts
pulse-triage[bot] 86dc31b006 Parallelize isolated slow tests in pkg/metrics and internal/alerts
Cut Backend tests (rest-0 and rest-1) wall time — the slowest job in
Build and Test — by adding t.Parallel() to verified global-free slow
tests in two unclaimed heavy packages (rebuilding 83fe43cd52 with all
internal/mock parallelizations removed because mock fixture helpers and
cadence tests share package-level globals):

- pkg/metrics (rest-0): silence zerolog/log.Logger once in TestMain
  (pkg/metrics/testmain_test.go) so parallel tests never mutate
  log.Logger concurrently while keeping the serial log-capture test,
  startupMaintenanceHook/metricsClusteredMigrationHook tests, and all
  TestSLO_* latency tests strictly serial.
- internal/alerts (rest-1): add t.Parallel() to 14 isolated slow tests
  (including subprocess parents and subtests in storage_crash_test.go
  and pending_resource_collection_test.go) while keeping
  zerolog.SetGlobalLevel and SetMetricHooks tests serial.

Zero production code, test assertions, or internal/mock files changed.

Contract-Neutral: Test-only parallelization in pkg/metrics and internal/alerts; no production behavior or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-28 13:25:36 +00:00
..
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00