Pulse/pkg/metrics
rcourtman 201819f8f8
Some checks are pending
Build and Test / Secret Scan (push) Waiting to run
Build and Test / Frontend & Backend (push) Waiting to run
test(go): skip perf-budget overruns on contended local hosts, enforce in CI
A full local go test run on 2026-06-11 failed pkg/metrics while vite
builds were saturating the machine. Reproduced under synthetic 8-core
load: only the TestSLO_* wall-clock p95 assertions failed, never the
functional tests. A latency budget measured on a shared dev machine
cannot distinguish host contention from a code regression; load storms
inflated medians up to ~4x with no code change, so no absolute
threshold separates the two.

Route the latency SLO assertions (pkg/metrics, internal/api,
internal/monitoring) and the load/stress perf assertions (internal/api)
through helpers that keep strict enforcement on GitHub Actions runners
(controlled environment, existing hosted-runner envelopes unchanged)
and skip locally on overrun, printing the full p50/p95/p99
distribution in the skip message. A local pass still means the budget
was genuinely met. Error-response and correctness checks remain hard
failures. CI -race runs are unaffected: these tests already skip under
the race detector.

Verified: pkg/metrics, internal/api, and internal/monitoring all pass
with 8 CPU burners saturating the host, the scenario that previously
turned TestSLO_RollupTierBatchedFleet and four other budget tests red.
2026-06-11 13:12:59 +01:00
..
alert_metrics.go feat(enterprise): add Advanced Reporting and Audit Webhooks integration 2026-01-09 21:31:49 +00:00
alert_metrics_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
norace_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
race_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
store.go fix(mock): backfill the metrics store in mock mode so reports get real history 2026-06-10 21:25:02 +01:00
store_additional_test.go metrics: drain freelist proportionally so metrics.db stops bloating 2026-06-05 13:29:48 +01:00
store_bench_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
store_downsample_test.go Prepare v6.0.0 release candidate 2026-06-04 14:07:14 +01:00
store_loadtest_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
store_query_plan_test.go Optimize compact storage summary chart path 2026-04-10 19:09:12 +01:00
store_series_coverage_test.go fix(mock): backfill the metrics store in mock mode so reports get real history 2026-06-10 21:25:02 +01:00
store_slo_test.go test(go): skip perf-budget overruns on contended local hosts, enforce in CI 2026-06-11 13:12:59 +01:00
store_test.go Defer metrics store startup maintenance 2026-04-01 13:29:39 +01:00