Commit Graph

14088 Commits

Author SHA1 Message Date
ionutboangiu
2f7da3702a remove redundant dm init in test flush helper 2025-05-27 17:31:01 +02:00
ionutboangiu
d619246c84 close db connections in test flush helpers
Previously, database connections would stay alive until "go test"
would finish, sometimes leading to max conn errors.
2025-05-27 17:31:01 +02:00
ionutboangiu
d02bfac20b Fix rsyslog config to capture logs across distros
Add three conditions to properly capture CGRateS logs:

- programname startswith 'cgr-engine': catches logs from external
  libraries that don't use our syslogger (e.g. diameter conn errors)
- programname startswith 'CGRateS': handles deb-based distros
  where our syslog tag becomes the program name
- msg contains 'CGRateS': handles rpm-based distros where systemd
  journal overrides programname but our tag remains in message content
2025-05-27 17:30:30 +02:00
ionutboangiu
6557c13b61 remove unused chargers conn in test
to prevent errors due to chargers not being enabled
2025-05-26 08:22:23 +02:00
ionutboangiu
8d8af20ee1 ensure MaxAbstracts reply is the right type
to prevent panic while using *internal conn
2025-05-26 08:22:23 +02:00
ionutboangiu
4af1cc106c cdrs: add internal channel to connmanager
now checking for the right constant (CDRServer)
2025-05-26 08:22:23 +02:00
ionutboangiu
c3bf93f1b6 Fix context lifecycle in scheduled actions
Remove ctx field from scheduledActs struct and create a fresh context
when actions execute via cron. This prevents "context canceled" errors
that occurred when stored contexts from API calls were used for delayed
execution. The context is now properly received from the caller in case
of "*asap" actions.
2025-05-26 08:19:43 +02:00
arberkatellari
7fe60c2b8b fix failing tests 2025-05-18 16:21:37 +02:00
ionutboangiu
a4e45cd7db ci: fix var name to disable repo cloning 2025-05-14 12:11:06 +02:00
arberkatellari
5847ceab00 Add and revise tests for offline internal DB 2025-05-13 17:07:17 +02:00
arberkatellari
5b66678313 Add offline internal DB functionality for dataDB,storDB & configDB 2025-05-13 17:07:17 +02:00
ionutboangiu
ac0b43a218 update session basics test 2025-05-12 17:31:19 +02:00
ionutboangiu
07da68b0bb prevent redundant cost calculations in V1CostForEvent
Previously the function continued looping through all verbosity
iterations (default 1000) even after finding a valid cost,
causing unnecessary processing.
2025-05-12 17:29:41 +02:00
ionutboangiu
0937d374e5 remove outdated documentation files 2025-05-12 14:15:13 +02:00
ionutboangiu
c30c09084d cast cached resource into the correct type
and ensure it is wrapped to allow locking
2025-05-09 09:45:40 +02:00
ionutboangiu
2e883b2489 update installation docs + cleanup 2025-05-09 09:44:53 +02:00
ionutboangiu
6a2654e6d8 port doc changes from v0.11 2025-05-09 09:44:53 +02:00
ionutboangiu
3acb9deac5 Simplify GetCDRs implementation
Remove redundant checks and use a single CDR instance for both filtering and
results.
2025-05-09 09:43:04 +02:00
ionutboangiu
2a85e371a2 Fix GORM pagination with zero limit/offset
Previously, q.Limit(0) was always set, causing GORM to
return no records since limit=0 was interpreted as "get 0
records" rather than "no limit". Now we only set limit and
offset when they're > 0, which makes pagination behave
correctly with default values.
2025-05-09 09:43:04 +02:00
ionutboangiu
961f132efb remove redundant dist entry in reprepro cfg 2025-05-08 16:31:10 +02:00
ionutboangiu
109ed8fe34 prometheus: replace string literals with constants 2025-05-03 21:44:51 +02:00
ionutboangiu
c2fb0df6c6 normalize metric types for mixed connection types 2025-05-03 21:44:51 +02:00
ionutboangiu
b86e5d2b14 prom: append correct subsystem to cores internal conn 2025-05-03 21:44:51 +02:00
ionutboangiu
d8eccf83da revise wrong prom metric comment 2025-05-03 21:44:51 +02:00
ionutboangiu
a71c803bc1 update prometheus deps 2025-05-03 21:44:51 +02:00
ionutboangiu
5e46eeb28a move action type definitions to utils 2025-05-03 21:42:36 +02:00
ionutboangiu
eeecae4576 move resources to dedicated package 2025-05-03 21:42:36 +02:00
ionutboangiu
40c2c11158 remove empty chargers test file 2025-05-03 21:42:36 +02:00
gezimbll
1c11eb3582 add *gigawords dataconverter 2025-04-25 16:24:43 +02:00
ionutboangiu
b715aa392c analyzers: lower RequestDuration query threshold 2025-04-22 19:35:11 +02:00
ionutboangiu
e84c434073 remove prints from integration tests 2025-04-22 19:35:11 +02:00
ionutboangiu
bd8c9d3b5e migrate guardian package to external dep 2025-04-22 19:35:11 +02:00
ionutboangiu
16d131b058 move attributes to dedicated package 2025-04-22 19:33:12 +02:00
ionutboangiu
61e94b4a14 refactor URL extraction and API request functions 2025-04-22 19:33:12 +02:00
ionutboangiu
069cadd618 move routes to dedicated package 2025-04-22 19:33:12 +02:00
ionutboangiu
9a42adc716 Retrieve routes default ratio from global var
to prevent cyclic import (utils > config > utils)
2025-04-22 19:33:12 +02:00
ionutboangiu
7b74552c8f export DynamicDP type and constructor 2025-04-22 19:33:12 +02:00
armirveliaj
4507d55b0b add coverage tests in RateS 2025-04-22 19:22:59 +02:00
arberkatellari
7363e29f93 Revise deb_packages script and update Go version 2025-04-18 13:18:37 +02:00
ionutboangiu
f56e46e00d prevent panic when len(AlteredFields) == 0 2025-04-11 12:51:29 +02:00
armirveliaj
ab8188c923 CGREvent inside AttrSProcessEventReply change 2025-03-30 13:55:30 +02:00
ionutboangiu
eafde112ea include recently split pkgs in test scripts 2025-03-30 13:54:43 +02:00
ionutboangiu
14516b69e5 fix wrong api reply type in test 2025-03-30 13:54:43 +02:00
ionutboangiu
ea3ebcc6dd add config sanity checks for prometheus_agent 2025-03-25 14:27:52 +01:00
ionutboangiu
347ea9d988 Add CoreS metrics collection to PrometheusAgent 2025-03-25 14:27:52 +01:00
ionutboangiu
d8c75dd2c3 cores: add GOMAXPROCS, GC percent and memlimit metrics
- gathered when Debug=true
- removed Lookups (always 0)
2025-03-25 14:27:52 +01:00
ionutboangiu
d14d62b865 update prom client library 2025-03-25 14:27:52 +01:00
ionutboangiu
e117b2df30 prometheus_agent: add cores_conns config opt 2025-03-25 14:27:52 +01:00
ionutboangiu
13044ddd9d refactor matched accounts sorting 2025-03-25 14:25:00 +01:00
ionutboangiu
70b6cca25b refactor rating profile matching by weight 2025-03-25 14:25:00 +01:00