Pulse/internal
rcourtman d0d989289a Refactor alert system: fix race conditions, memory leaks, and improve code quality
- Rename checkFlapping to checkFlappingLocked to clarify lock contract
- Replace goto statements with structured control flow
- Wire up unused recordAlertFired/recordAlertResolved metric hooks
- Add trackingMapCleanup goroutine to prevent memory leaks from stale entries
- Tighten alert ID validation to alphanumeric + safe punctuation
- Fix history save error handling to properly manage backup lifecycle
- Add auto-migration for deprecated GroupingWindow field
- Refactor 300+ line UpdateConfig into focused helper functions
- Unify duplicate evaluateVMCondition/evaluateContainerCondition
- Add constants for magic numbers (thresholds, timing, flapping)
- Update tests to match new backup behavior
2025-12-02 23:31:36 +00:00
..
agentbinaries chore: fix staticcheck SA warnings 2025-11-27 09:16:53 +00:00
agentupdate Fix Windows agent self-update restart failure 2025-11-30 12:02:43 +00:00
alerts Refactor alert system: fix race conditions, memory leaks, and improve code quality 2025-12-02 23:31:36 +00:00
api Refactor alert system: fix race conditions, memory leaks, and improve code quality 2025-12-02 23:31:36 +00:00
auth refactor: Remove duplicate IsPasswordHashed from auth package 2025-12-02 17:19:07 +00:00
buffer Fix offline buffering: add tests, remove unused config, fix flaky test 2025-12-02 22:31:44 +00:00
config style: Apply gofmt to 37 files 2025-12-02 17:21:48 +00:00
crypto chore: remove additional dead code 2025-11-27 05:13:26 +00:00
discovery Add unit tests for discovery config_override utility functions 2025-11-30 00:50:07 +00:00
dockeragent Fix offline buffering: add tests, remove unused config, fix flaky test 2025-12-02 22:31:44 +00:00
errors refactor: Remove unreachable dead code branches 2025-12-02 14:48:57 +00:00
hostagent Fix offline buffering: add tests, remove unused config, fix flaky test 2025-12-02 22:31:44 +00:00
hostmetrics Add unit tests for ZFS storage utility functions (hostmetrics) 2025-11-30 12:50:58 +00:00
logging chore: remove dead code and unused exports 2025-11-27 13:17:39 +00:00
mdadm perf: Pre-compile regexes in mdadm package 2025-12-02 15:11:04 +00:00
metrics chore: remove dead code and unused exports 2025-11-27 13:17:39 +00:00
mock docs: Add godoc comments to more exported functions 2025-12-02 16:03:57 +00:00
models style: Apply gofmt to 37 files 2025-12-02 17:21:48 +00:00
monitoring style: Apply gofmt to 37 files 2025-12-02 17:21:48 +00:00
notifications style: Apply gofmt to 37 files 2025-12-02 17:21:48 +00:00
sensors Add rp1_adc to CPU chip detection in sensors parser 2025-12-01 09:45:39 +00:00
ssh/knownhosts test: Add tests for SSH knownhosts error and path methods 2025-12-01 17:50:13 +00:00
system style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
tempproxy perf: Remove redundant fmt.Sprintf in tempproxy contains function 2025-12-02 15:24:40 +00:00
types test: add unit tests for types package 2025-11-26 14:10:21 +00:00
updates style: Apply gofmt to 37 files 2025-12-02 17:21:48 +00:00
utils Consolidate duplicate normalizeVersion functions into shared utility 2025-11-29 22:57:33 +00:00
websocket refactor: Remove unreachable dead code branches 2025-12-02 14:56:35 +00:00